blob: 47bd6d83289a936d8e9ab5ea08d85fd70a504a98 [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
cristy9af1cbf2014-12-28 22:03:09 +00001018PACKAGE_VERSION_ADDENDUM
1019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
1024PACKAGE_PERL_VERSION
1025MAGICKPP_LIBRARY_VERSION_INFO
1026MAGICKPP_LIBRARY_CURRENT_MIN
1027MAGICKPP_LIBRARY_AGE
1028MAGICKPP_LIBRARY_REVISION
1029MAGICKPP_LIBRARY_CURRENT
1030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
1032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
1035MAGICK_SVN_REVISION
1036MAGICK_VERSION
1037MAGICK_PATCHLEVEL_VERSION
1038MAGICK_MICRO_VERSION
1039MAGICK_MINOR_VERSION
1040MAGICK_MAJOR_VERSION
1041MAGICK_TARGET_OS
1042MAGICK_TARGET_VENDOR
1043MAGICK_TARGET_CPU
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001046AM_BACKSLASH
1047AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001048AM_DEFAULT_V
1049AM_V
cristy73bd4a52010-10-05 11:24:23 +00001050am__untar
1051am__tar
1052AMTAR
1053am__leading_dot
1054SET_MAKE
1055AWK
1056mkdir_p
1057MKDIR_P
1058INSTALL_STRIP_PROGRAM
1059STRIP
1060install_sh
1061MAKEINFO
1062AUTOHEADER
1063AUTOMAKE
1064AUTOCONF
1065ACLOCAL
1066VERSION
1067PACKAGE
1068CYGPATH_W
1069am__isrc
1070INSTALL_DATA
1071INSTALL_SCRIPT
1072INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001073target_os
1074target_vendor
1075target_cpu
1076target
1077host_os
1078host_vendor
1079host_cpu
1080host
1081build_os
1082build_vendor
1083build_cpu
1084build
cristy3ed852e2009-09-05 21:47:34 +00001085target_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
cristy3ed852e2009-09-05 21:47:34 +00003538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 ac_build_alias=$build_alias
3548test "x$ac_build_alias" = x &&
3549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3550test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_build" >&6; }
3558case $ac_cv_build in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562build=$ac_cv_build
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_build
3565shift
3566build_cpu=$1
3567build_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571build_os=$*
3572IFS=$ac_save_IFS
3573case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$host_alias" = x; then
3582 ac_cv_host=$ac_cv_build
3583else
3584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_host" >&6; }
3591case $ac_cv_host in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595host=$ac_cv_host
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_host
3598shift
3599host_cpu=$1
3600host_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604host_os=$*
3605IFS=$ac_save_IFS
3606case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3607
3608
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003611if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003612 $as_echo_n "(cached) " >&6
3613else
3614 if test "x$target_alias" = x; then
3615 ac_cv_target=$ac_cv_host
3616else
3617 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003619fi
3620
3621fi
cristy8b350f62009-11-15 23:12:43 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003623$as_echo "$ac_cv_target" >&6; }
3624case $ac_cv_target in
3625*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003626*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003627esac
3628target=$ac_cv_target
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_target
3631shift
3632target_cpu=$1
3633target_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637target_os=$*
3638IFS=$ac_save_IFS
3639case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3640
3641
3642# The aliases save the names the user supplied, while $host etc.
3643# will get canonicalized.
3644test -n "$target_alias" &&
3645 test "$program_prefix$program_suffix$program_transform_name" = \
3646 NONENONEs,x,x, &&
3647 program_prefix=${target_alias}-
3648
cristy837d6dc2010-02-27 01:16:57 +00003649
cristya5bda012013-11-03 18:05:38 +00003650am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003651
3652# Find a good install program. We prefer a C program (faster),
3653# so one script is as good as another. But avoid the broken or
3654# incompatible versions:
3655# SysV /etc/install, /usr/sbin/install
3656# SunOS /usr/etc/install
3657# IRIX /sbin/install
3658# AIX /bin/install
3659# AmigaOS /C/install, which installs bootblocks on floppy discs
3660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663# OS/2's system install, which has a completely different semantic
3664# ./install, which can be erroneously created by make from ./install.sh.
3665# Reject install programs that cannot install multiple files.
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3667$as_echo_n "checking for a BSD-compatible install... " >&6; }
3668if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003669if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003670 $as_echo_n "(cached) " >&6
3671else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673for as_dir in $PATH
3674do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 # Account for people who put trailing slashes in PATH elements.
3678case $as_dir/ in #((
3679 ./ | .// | /[cC]/* | \
3680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3682 /usr/ucb/* ) ;;
3683 *)
3684 # OSF1 and SCO ODT 3.0 have their own names for install.
3685 # Don't use installbsd from OSF since it installs stuff as root
3686 # by default.
3687 for ac_prog in ginstall scoinst install; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003689 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003690 if test $ac_prog = install &&
3691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # AIX install. It has an incompatible calling convention.
3693 :
3694 elif test $ac_prog = install &&
3695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # program-specific install script used by HP pwplus--don't use.
3697 :
3698 else
3699 rm -rf conftest.one conftest.two conftest.dir
3700 echo one > conftest.one
3701 echo two > conftest.two
3702 mkdir conftest.dir
3703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3704 test -s conftest.one && test -s conftest.two &&
3705 test -s conftest.dir/conftest.one &&
3706 test -s conftest.dir/conftest.two
3707 then
3708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3709 break 3
3710 fi
3711 fi
3712 fi
3713 done
3714 done
3715 ;;
3716esac
3717
3718 done
3719IFS=$as_save_IFS
3720
3721rm -rf conftest.one conftest.two conftest.dir
3722
3723fi
3724 if test "${ac_cv_path_install+set}" = set; then
3725 INSTALL=$ac_cv_path_install
3726 else
3727 # As a last resort, use the slow shell script. Don't cache a
3728 # value for INSTALL within a source directory, because that will
3729 # break other packages using the cache if that directory is
3730 # removed, or if the value is a relative name.
3731 INSTALL=$ac_install_sh
3732 fi
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3735$as_echo "$INSTALL" >&6; }
3736
3737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3738# It thinks the first close brace ends the variable substitution.
3739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3740
3741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3742
3743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3744
cristy9af1cbf2014-12-28 22:03:09 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3746$as_echo_n "checking whether build environment is sane... " >&6; }
3747# Reject unsafe characters in $srcdir or the absolute working directory
3748# name. Accept space and tab only in the latter.
3749am_lf='
3750'
3751case `pwd` in
3752 *[\\\"\#\$\&\'\`$am_lf]*)
3753 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3754esac
3755case $srcdir in
3756 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3757 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3758esac
3759
3760# Do 'set' in a subshell so we don't clobber the current shell's
3761# arguments. Must try -L first in case configure is actually a
3762# symlink; some systems play weird games with the mod time of symlinks
3763# (eg FreeBSD returns the mod time of the symlink's containing
3764# directory).
3765if (
3766 am_has_slept=no
3767 for am_try in 1 2; do
3768 echo "timestamp, slept: $am_has_slept" > conftest.file
3769 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3770 if test "$*" = "X"; then
3771 # -L didn't work.
3772 set X `ls -t "$srcdir/configure" conftest.file`
3773 fi
3774 if test "$*" != "X $srcdir/configure conftest.file" \
3775 && test "$*" != "X conftest.file $srcdir/configure"; then
3776
3777 # If neither matched, then we have a broken ls. This can happen
3778 # if, for instance, CONFIG_SHELL is bash and it inherits a
3779 # broken ls alias from the environment. This has actually
3780 # happened. Such a system could not be considered "sane".
3781 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3782 alias in your environment" "$LINENO" 5
3783 fi
3784 if test "$2" = conftest.file || test $am_try -eq 2; then
3785 break
3786 fi
3787 # Just in case.
3788 sleep 1
3789 am_has_slept=yes
3790 done
3791 test "$2" = conftest.file
3792 )
3793then
3794 # Ok.
3795 :
3796else
3797 as_fn_error $? "newly created file is older than distributed files!
3798Check your system clock" "$LINENO" 5
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3801$as_echo "yes" >&6; }
3802# If we didn't sleep, we still need to ensure time stamps of config.status and
3803# generated files are strictly newer.
3804am_sleep_pid=
3805if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3806 ( sleep 1 ) &
3807 am_sleep_pid=$!
3808fi
3809
3810rm -f conftest.file
3811
cristy73bd4a52010-10-05 11:24:23 +00003812test "$program_prefix" != NONE &&
3813 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3814# Use a double $ so make ignores it.
3815test "$program_suffix" != NONE &&
3816 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3817# Double any \ or $.
3818# By default was `s,x,x', remove it if useless.
3819ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3820program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3821
3822# expand $ac_aux_dir to an absolute path
3823am_aux_dir=`cd $ac_aux_dir && pwd`
3824
3825if test x"${MISSING+set}" != xset; then
3826 case $am_aux_dir in
3827 *\ * | *\ *)
3828 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3829 *)
3830 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3831 esac
3832fi
3833# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003834if eval "$MISSING --is-lightweight"; then
3835 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003836else
3837 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3839$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003840fi
3841
3842if test x"${install_sh}" != xset; then
3843 case $am_aux_dir in
3844 *\ * | *\ *)
3845 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3846 *)
3847 install_sh="\${SHELL} $am_aux_dir/install-sh"
3848 esac
3849fi
3850
cristyc0890a62012-07-19 00:18:20 +00003851# Installed binaries are usually stripped using 'strip' when the user
3852# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003853# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003854# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003855if test "$cross_compiling" != no; then
3856 if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3858set dummy ${ac_tool_prefix}strip; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003861if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003862 $as_echo_n "(cached) " >&6
3863else
3864 if test -n "$STRIP"; then
3865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879 done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884STRIP=$ac_cv_prog_STRIP
3885if test -n "$STRIP"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3887$as_echo "$STRIP" >&6; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$ac_cv_prog_STRIP"; then
3896 ac_ct_STRIP=$STRIP
3897 # Extract the first word of "strip", so it can be a program name with args.
3898set dummy strip; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003901if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$ac_ct_STRIP"; then
3905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003914 ac_cv_prog_ac_ct_STRIP="strip"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3925if test -n "$ac_ct_STRIP"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3927$as_echo "$ac_ct_STRIP" >&6; }
3928else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
3931fi
3932
3933 if test "x$ac_ct_STRIP" = x; then
3934 STRIP=":"
3935 else
3936 case $cross_compiling:$ac_tool_warned in
3937yes:)
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940ac_tool_warned=yes ;;
3941esac
3942 STRIP=$ac_ct_STRIP
3943 fi
3944else
3945 STRIP="$ac_cv_prog_STRIP"
3946fi
3947
3948fi
3949INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3952$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3953if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003954 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003955 $as_echo_n "(cached) " >&6
3956else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3959do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in mkdir gmkdir; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003964 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003965 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3966 'mkdir (GNU coreutils) '* | \
3967 'mkdir (coreutils) '* | \
3968 'mkdir (fileutils) '4.1*)
3969 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3970 break 3;;
3971 esac
3972 done
3973 done
3974 done
3975IFS=$as_save_IFS
3976
3977fi
3978
3979 test -d ./--version && rmdir ./--version
3980 if test "${ac_cv_path_mkdir+set}" = set; then
3981 MKDIR_P="$ac_cv_path_mkdir -p"
3982 else
3983 # As a last resort, use the slow shell script. Don't cache a
3984 # value for MKDIR_P within a source directory, because that will
3985 # break other packages using the cache if that directory is
3986 # removed, or if the value is a relative name.
3987 MKDIR_P="$ac_install_sh -d"
3988 fi
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3991$as_echo "$MKDIR_P" >&6; }
3992
cristy73bd4a52010-10-05 11:24:23 +00003993for ac_prog in gawk mawk nawk awk
3994do
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996set dummy $ac_prog; ac_word=$2
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003999if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$AWK"; then
4003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004012 ac_cv_prog_AWK="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017 done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022AWK=$ac_cv_prog_AWK
4023if test -n "$AWK"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4025$as_echo "$AWK" >&6; }
4026else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032 test -n "$AWK" && break
4033done
4034
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4036$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4037set x ${MAKE-make}
4038ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004039if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004040 $as_echo_n "(cached) " >&6
4041else
4042 cat >conftest.make <<\_ACEOF
4043SHELL = /bin/sh
4044all:
4045 @echo '@@@%%%=$(MAKE)=@@@%%%'
4046_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004047# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004048case `${MAKE-make} -f conftest.make 2>/dev/null` in
4049 *@@@%%%=?*=@@@%%%*)
4050 eval ac_cv_prog_make_${ac_make}_set=yes;;
4051 *)
4052 eval ac_cv_prog_make_${ac_make}_set=no;;
4053esac
4054rm -f conftest.make
4055fi
4056if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058$as_echo "yes" >&6; }
4059 SET_MAKE=
4060else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
4063 SET_MAKE="MAKE=${MAKE-make}"
4064fi
4065
4066rm -rf .tst 2>/dev/null
4067mkdir .tst 2>/dev/null
4068if test -d .tst; then
4069 am__leading_dot=.
4070else
4071 am__leading_dot=_
4072fi
4073rmdir .tst 2>/dev/null
4074
cristya448bd22011-10-14 12:38:13 +00004075# Check whether --enable-silent-rules was given.
4076if test "${enable_silent_rules+set}" = set; then :
4077 enableval=$enable_silent_rules;
4078fi
4079
cristyc0890a62012-07-19 00:18:20 +00004080case $enable_silent_rules in # (((
4081 yes) AM_DEFAULT_VERBOSITY=0;;
4082 no) AM_DEFAULT_VERBOSITY=1;;
4083 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004084esac
cristyc3fb77b2012-02-06 01:49:41 +00004085am_make=${MAKE-make}
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4087$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4088if ${am_cv_make_support_nested_variables+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 if $as_echo 'TRUE=$(BAR$(V))
4092BAR0=false
4093BAR1=true
4094V=1
4095am__doit:
4096 @$(TRUE)
4097.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4098 am_cv_make_support_nested_variables=yes
4099else
4100 am_cv_make_support_nested_variables=no
4101fi
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4104$as_echo "$am_cv_make_support_nested_variables" >&6; }
4105if test $am_cv_make_support_nested_variables = yes; then
4106 AM_V='$(V)'
4107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4108else
4109 AM_V=$AM_DEFAULT_VERBOSITY
4110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4111fi
cristya448bd22011-10-14 12:38:13 +00004112AM_BACKSLASH='\'
4113
cristy73bd4a52010-10-05 11:24:23 +00004114if test "`cd $srcdir && pwd`" != "`pwd`"; then
4115 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4116 # is not polluted with repeated "-I."
4117 am__isrc=' -I$(srcdir)'
4118 # test to see if srcdir already configured
4119 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004120 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004121 fi
4122fi
4123
4124# test whether we have cygpath
4125if test -z "$CYGPATH_W"; then
4126 if (cygpath --version) >/dev/null 2>/dev/null; then
4127 CYGPATH_W='cygpath -w'
4128 else
4129 CYGPATH_W=echo
4130 fi
4131fi
4132
4133
4134# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004135 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004136 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004137
4138
cristya448bd22011-10-14 12:38:13 +00004139cat >>confdefs.h <<_ACEOF
4140#define PACKAGE "$PACKAGE"
4141_ACEOF
4142
4143
4144cat >>confdefs.h <<_ACEOF
4145#define VERSION "$VERSION"
4146_ACEOF
4147
cristy73bd4a52010-10-05 11:24:23 +00004148# Some tools Automake needs.
4149
4150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4151
4152
4153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4154
4155
4156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4157
4158
4159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4160
4161
4162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4163
cristyc0890a62012-07-19 00:18:20 +00004164# For better backward compatibility. To be removed once Automake 1.9.x
4165# dies out for good. For more background, see:
4166# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4167# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4168mkdir_p='$(MKDIR_P)'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170# We need awk for the "check" target. The system "awk" is bad on
4171# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004172# Always define AMTAR for backward compatibility. Yes, it's still used
4173# in the wild :-( We should find a proper way to deprecate it ...
4174AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004175
cristye69bdbe2013-05-03 21:40:44 +00004176
4177# We'll loop over all known methods to create a tar archive until one works.
4178_am_tools='gnutar pax cpio none'
4179
cristyc3fb77b2012-02-06 01:49:41 +00004180am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004181
4182
4183
4184
4185
cristy3ed852e2009-09-05 21:47:34 +00004186
cristya5bda012013-11-03 18:05:38 +00004187# POSIX will say in a future version that running "rm -f" with no argument
4188# is OK; and we want to be able to make that assumption in our Makefile
4189# recipes. So use an aggressive probe to check that the usage we want is
4190# actually supported "in the wild" to an acceptable degree.
4191# See automake bug#10828.
4192# To make any issue more visible, cause the running configure to be aborted
4193# by default if the 'rm' program in use doesn't match our expectations; the
4194# user can still override this though.
4195if rm -f && rm -fr && rm -rf; then : OK; else
4196 cat >&2 <<'END'
4197Oops!
4198
4199Your 'rm' program seems unable to run without file operands specified
4200on the command line, even when the '-f' option is present. This is contrary
4201to the behaviour of most rm programs out there, and not conforming with
4202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4203
4204Please tell bug-automake@gnu.org about your system, including the value
4205of your $PATH and any error possibly output before this message. This
4206can help us improve future automake versions.
4207
4208END
4209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4210 echo 'Configuration will proceed anyway, since you have set the' >&2
4211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4212 echo >&2
4213 else
4214 cat >&2 <<'END'
4215Aborting the configuration process, to ensure you take notice of the issue.
4216
4217You can download and install GNU coreutils to get an 'rm' implementation
4218that behaves properly: <http://www.gnu.org/software/coreutils/>.
4219
4220If you want to complete the configuration process using your problematic
4221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4222to "yes", and re-run configure.
4223
4224END
4225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4226 fi
4227fi
cristy73bd4a52010-10-05 11:24:23 +00004228# Check whether --enable-silent-rules was given.
4229if test "${enable_silent_rules+set}" = set; then :
4230 enableval=$enable_silent_rules;
4231fi
4232
cristyc0890a62012-07-19 00:18:20 +00004233case $enable_silent_rules in # (((
4234 yes) AM_DEFAULT_VERBOSITY=0;;
4235 no) AM_DEFAULT_VERBOSITY=1;;
4236 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004237esac
cristyc3fb77b2012-02-06 01:49:41 +00004238am_make=${MAKE-make}
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4240$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4241if ${am_cv_make_support_nested_variables+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243else
4244 if $as_echo 'TRUE=$(BAR$(V))
4245BAR0=false
4246BAR1=true
4247V=1
4248am__doit:
4249 @$(TRUE)
4250.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4251 am_cv_make_support_nested_variables=yes
4252else
4253 am_cv_make_support_nested_variables=no
4254fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4257$as_echo "$am_cv_make_support_nested_variables" >&6; }
4258if test $am_cv_make_support_nested_variables = yes; then
4259 AM_V='$(V)'
4260 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4261else
4262 AM_V=$AM_DEFAULT_VERBOSITY
4263 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4264fi
cristy73bd4a52010-10-05 11:24:23 +00004265AM_BACKSLASH='\'
4266
cristy3ed852e2009-09-05 21:47:34 +00004267
cristy9af1cbf2014-12-28 22:03:09 +00004268#
4269# Save initial user-tunable values
4270#
4271USER_LIBS=$LIBS
4272for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4273 eval isset=\${$var+set}
4274 if test "$isset" = 'set'; then
4275 eval val=$`echo $var`
4276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4277 fi
4278done
4279
4280
4281CONFIGURE_ARGS="$0 ${ac_configure_args}"
4282
4283
4284# Source file containing package/library versioning information.
4285. ${srcdir}/version.sh
4286
4287echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4288
4289MAGICK_TARGET_CPU=$host_cpu
4290
4291
4292cat >>confdefs.h <<_ACEOF
4293#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4294_ACEOF
4295
4296
4297MAGICK_TARGET_VENDOR=$host_vendor
4298
4299
4300cat >>confdefs.h <<_ACEOF
4301#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4302_ACEOF
4303
4304
4305MAGICK_TARGET_OS=$host_os
4306
4307
4308cat >>confdefs.h <<_ACEOF
4309#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4310_ACEOF
4311
4312
4313
4314# Substitute versioning
4315MAGICK_MAJOR_VERSION=7
4316
4317MAGICK_MINOR_VERSION=0
4318
4319MAGICK_MICRO_VERSION=0
4320
4321MAGICK_PATCHLEVEL_VERSION=0
4322
4323MAGICK_VERSION=7.0.0-0
4324
4325MAGICK_SVN_REVISION=17466:17491M
4326
4327
4328# Substitute library versioning
4329MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4330
4331MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4332
4333
4334MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4335
4336MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4337
4338
4339
4340# Ensure that make can run correctly
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4342$as_echo_n "checking whether build environment is sane... " >&6; }
4343# Reject unsafe characters in $srcdir or the absolute working directory
4344# name. Accept space and tab only in the latter.
4345am_lf='
4346'
4347case `pwd` in
4348 *[\\\"\#\$\&\'\`$am_lf]*)
4349 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4350esac
4351case $srcdir in
4352 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4353 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4354esac
4355
4356# Do 'set' in a subshell so we don't clobber the current shell's
4357# arguments. Must try -L first in case configure is actually a
4358# symlink; some systems play weird games with the mod time of symlinks
4359# (eg FreeBSD returns the mod time of the symlink's containing
4360# directory).
4361if (
4362 am_has_slept=no
4363 for am_try in 1 2; do
4364 echo "timestamp, slept: $am_has_slept" > conftest.file
4365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4366 if test "$*" = "X"; then
4367 # -L didn't work.
4368 set X `ls -t "$srcdir/configure" conftest.file`
4369 fi
4370 if test "$*" != "X $srcdir/configure conftest.file" \
4371 && test "$*" != "X conftest.file $srcdir/configure"; then
4372
4373 # If neither matched, then we have a broken ls. This can happen
4374 # if, for instance, CONFIG_SHELL is bash and it inherits a
4375 # broken ls alias from the environment. This has actually
4376 # happened. Such a system could not be considered "sane".
4377 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4378 alias in your environment" "$LINENO" 5
4379 fi
4380 if test "$2" = conftest.file || test $am_try -eq 2; then
4381 break
4382 fi
4383 # Just in case.
4384 sleep 1
4385 am_has_slept=yes
4386 done
4387 test "$2" = conftest.file
4388 )
4389then
4390 # Ok.
4391 :
4392else
4393 as_fn_error $? "newly created file is older than distributed files!
4394Check your system clock" "$LINENO" 5
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397$as_echo "yes" >&6; }
4398# If we didn't sleep, we still need to ensure time stamps of config.status and
4399# generated files are strictly newer.
4400am_sleep_pid=
4401if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4402 ( sleep 1 ) &
4403 am_sleep_pid=$!
4404fi
4405
4406rm -f conftest.file
4407
4408
cristyf279b692014-08-13 12:01:27 +00004409# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004410MAGICK_LIB_VERSION="0x"
4411if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4412 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4413fi
4414MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4415if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4416 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4417fi
4418MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4419if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4420 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4421fi
4422MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4423
4424
4425# Definition used to define MagickLibVersionText in version.h
4426MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4427
4428
4429# Definition used to define MagickLibVersionNumber in version.h
4430MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4431
4432
cristy5ed9c6e2013-07-14 21:20:31 +00004433MAGICKPP_LIB_VERSION="0x"
4434if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4435 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4436fi
4437MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4438if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4439 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4440fi
4441MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4442if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4443 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4444fi
4445MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4446
4447
4448# Definition used to define MagickLibVersionText in version.h
4449MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4450
4451
4452# Definition used to define MagickLibVersionNumber in version.h
4453MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4454
4455
4456
4457
cristy3ed852e2009-09-05 21:47:34 +00004458# Regenerate config.status if ChangeLog or version.sh is updated.
4459CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4460
4461
4462PERLMAINCC=$CC
4463
4464MAGICK_CFLAGS=''
4465MAGICK_CPPFLAGS=$CPPFLAGS_USER
4466MAGICK_PCFLAGS=$CPPFLAGS_USER
4467MAGICK_LDFLAGS=''
4468MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004469MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004470
4471#
4472# Evaluate shell variable equivalents to Makefile directory variables
4473#
4474if test "x$prefix" = xNONE; then
4475 prefix=$ac_default_prefix
4476fi
4477# Let make expand exec_prefix.
4478if test "x$exec_prefix" = xNONE; then
4479 exec_prefix='${prefix}'
4480fi
4481
4482#
4483eval "eval PREFIX_DIR=${prefix}"
4484
4485eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4486
4487eval "eval BIN_DIR=$bindir"
4488
4489eval "eval SBIN_DIR=$sbindir"
4490
4491eval "eval LIBEXEC_DIR=$libexecdir"
4492
4493eval "eval DATA_DIR=$datadir"
4494
cristy4e65ec22012-04-08 01:33:27 +00004495eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004496
cristy3ed852e2009-09-05 21:47:34 +00004497eval "eval SYSCONF_DIR=$sysconfdir"
4498
4499eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4500
4501eval "eval LOCALSTATE_DIR=$localstatedir"
4502
4503eval "eval LIB_DIR=$libdir"
4504
4505eval "eval INCLUDE_DIR=$includedir"
4506
4507eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4508
4509eval "eval INFO_DIR=$infodir"
4510
4511eval "eval MAN_DIR=$mandir"
4512
4513
4514# Get full paths to source and build directories
4515srcdirfull="`cd $srcdir && pwd`"
4516builddir="`pwd`"
4517
4518#
4519# Compute variables useful for running uninstalled software.
4520#
4521MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4522MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4523MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4524MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4525DIRSEP=':'
4526case "${build_os}" in
4527 mingw* )
4528 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4529 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4530 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4531 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4532 DIRSEP=';'
4533 ;;
4534esac
4535case "${host_os}" in
4536 mingw* )
4537 DIRSEP=';'
4538 ;;
4539esac
4540
4541
4542
4543
4544
4545
cristya0b81c32010-01-22 02:54:33 +00004546
4547#
4548# Enable OS features.
4549#
cristy73bd4a52010-10-05 11:24:23 +00004550DEPDIR="${am__leading_dot}deps"
4551
4552ac_config_commands="$ac_config_commands depfiles"
4553
4554
4555am_make=${MAKE-make}
4556cat > confinc << 'END'
4557am__doit:
4558 @echo this is the am__doit target
4559.PHONY: am__doit
4560END
4561# If we don't find an include directive, just comment out the code.
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4563$as_echo_n "checking for style of include used by $am_make... " >&6; }
4564am__include="#"
4565am__quote=
4566_am_result=none
4567# First try GNU make style include.
4568echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004569# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004570case `$am_make -s -f confmf 2> /dev/null` in #(
4571*the\ am__doit\ target*)
4572 am__include=include
4573 am__quote=
4574 _am_result=GNU
4575 ;;
4576esac
4577# Now try BSD make style include.
4578if test "$am__include" = "#"; then
4579 echo '.include "confinc"' > confmf
4580 case `$am_make -s -f confmf 2> /dev/null` in #(
4581 *the\ am__doit\ target*)
4582 am__include=.include
4583 am__quote="\""
4584 _am_result=BSD
4585 ;;
4586 esac
4587fi
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4591$as_echo "$_am_result" >&6; }
4592rm -f confinc confmf
4593
4594# Check whether --enable-dependency-tracking was given.
4595if test "${enable_dependency_tracking+set}" = set; then :
4596 enableval=$enable_dependency_tracking;
4597fi
4598
4599if test "x$enable_dependency_tracking" != xno; then
4600 am_depcomp="$ac_aux_dir/depcomp"
4601 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004602 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004603fi
4604 if test "x$enable_dependency_tracking" != xno; then
4605 AMDEP_TRUE=
4606 AMDEP_FALSE='#'
4607else
4608 AMDEP_TRUE='#'
4609 AMDEP_FALSE=
4610fi
4611
4612
cristy3ed852e2009-09-05 21:47:34 +00004613ac_ext=c
4614ac_cpp='$CPP $CPPFLAGS'
4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004623if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004624 $as_echo_n "(cached) " >&6
4625else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638 break 2
4639 fi
4640done
cristy8b350f62009-11-15 23:12:43 +00004641 done
cristy3ed852e2009-09-05 21:47:34 +00004642IFS=$as_save_IFS
4643
4644fi
4645fi
4646CC=$ac_cv_prog_CC
4647if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo "$CC" >&6; }
4650else
cristy8b350f62009-11-15 23:12:43 +00004651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo "no" >&6; }
4653fi
4654
4655
4656fi
4657if test -z "$ac_cv_prog_CC"; then
4658 ac_ct_CC=$CC
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004663if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 $as_echo_n "(cached) " >&6
4665else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004676 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678 break 2
4679 fi
4680done
cristy8b350f62009-11-15 23:12:43 +00004681 done
cristy3ed852e2009-09-05 21:47:34 +00004682IFS=$as_save_IFS
4683
4684fi
4685fi
4686ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$ac_ct_CC" >&6; }
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo "no" >&6; }
4693fi
4694
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
cristy8b350f62009-11-15 23:12:43 +00004700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 CC=$ac_ct_CC
4705 fi
4706else
4707 CC="$ac_cv_prog_CC"
4708fi
4709
4710if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004716if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004717 $as_echo_n "(cached) " >&6
4718else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004729 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731 break 2
4732 fi
4733done
cristy8b350f62009-11-15 23:12:43 +00004734 done
cristy3ed852e2009-09-05 21:47:34 +00004735IFS=$as_save_IFS
4736
4737fi
4738fi
4739CC=$ac_cv_prog_CC
4740if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742$as_echo "$CC" >&6; }
4743else
cristy8b350f62009-11-15 23:12:43 +00004744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo "no" >&6; }
4746fi
4747
4748
4749 fi
4750fi
4751if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004756if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004757 $as_echo_n "(cached) " >&6
4758else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761else
4762 ac_prog_rejected=no
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected=yes
4772 continue
4773 fi
4774 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004776 break 2
4777 fi
4778done
cristy8b350f62009-11-15 23:12:43 +00004779 done
cristy3ed852e2009-09-05 21:47:34 +00004780IFS=$as_save_IFS
4781
4782if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy $ac_cv_prog_CC
4785 shift
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4790 shift
4791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4792 fi
4793fi
4794fi
4795fi
4796CC=$ac_cv_prog_CC
4797if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004799$as_echo "$CC" >&6; }
4800else
cristy8b350f62009-11-15 23:12:43 +00004801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802$as_echo "no" >&6; }
4803fi
4804
4805
4806fi
4807if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in cl.exe
4810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004815if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004816 $as_echo_n "(cached) " >&6
4817else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830 break 2
4831 fi
4832done
cristy8b350f62009-11-15 23:12:43 +00004833 done
cristy3ed852e2009-09-05 21:47:34 +00004834IFS=$as_save_IFS
4835
4836fi
4837fi
4838CC=$ac_cv_prog_CC
4839if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$CC" >&6; }
4842else
cristy8b350f62009-11-15 23:12:43 +00004843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "no" >&6; }
4845fi
4846
4847
4848 test -n "$CC" && break
4849 done
4850fi
4851if test -z "$CC"; then
4852 ac_ct_CC=$CC
4853 for ac_prog in cl.exe
4854do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004859if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004860 $as_echo_n "(cached) " >&6
4861else
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004872 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874 break 2
4875 fi
4876done
cristy8b350f62009-11-15 23:12:43 +00004877 done
cristy3ed852e2009-09-05 21:47:34 +00004878IFS=$as_save_IFS
4879
4880fi
4881fi
4882ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "$ac_ct_CC" >&6; }
4886else
cristy8b350f62009-11-15 23:12:43 +00004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "no" >&6; }
4889fi
4890
4891
4892 test -n "$ac_ct_CC" && break
4893done
4894
4895 if test "x$ac_ct_CC" = x; then
4896 CC=""
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899yes:)
cristy8b350f62009-11-15 23:12:43 +00004900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902ac_tool_warned=yes ;;
4903esac
4904 CC=$ac_ct_CC
4905 fi
4906fi
4907
4908fi
4909
4910
cristy8b350f62009-11-15 23:12:43 +00004911test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004913as_fn_error $? "no acceptable C compiler found in \$PATH
4914See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004915
4916# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004917$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918set X $ac_compile
4919ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004920for ac_option in --version -v -V -qversion; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004922case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925esac
cristy8b350f62009-11-15 23:12:43 +00004926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927$as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004929 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004930 if test -s conftest.err; then
4931 sed '10a\
4932... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004935 fi
cristycd4c5312009-11-22 01:19:08 +00004936 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939done
cristy3ed852e2009-09-05 21:47:34 +00004940
cristy8b350f62009-11-15 23:12:43 +00004941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004942/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004943
cristy3ed852e2009-09-05 21:47:34 +00004944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004953ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004954# Try to create an executable without -o first, disregard a.out.
4955# It will help us diagnose broken compilers, and finding out an intuition
4956# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004959ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4960
4961# The possible output files:
4962ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4963
4964ac_rmfiles=
4965for ac_file in $ac_files
4966do
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4970 esac
4971done
4972rm -f $ac_rmfiles
4973
cristy8b350f62009-11-15 23:12:43 +00004974if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
cristy8b350f62009-11-15 23:12:43 +00004979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004981 (eval "$ac_link_default") 2>&5
4982 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987# in a Makefile. We should not override ac_cv_exeext if it was cached,
4988# so that the user can short-circuit this test for compilers unknown to
4989# Autoconf.
4990for ac_file in $ac_files ''
4991do
4992 test -f "$ac_file" || continue
4993 case $ac_file in
4994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4995 ;;
4996 [ab].out )
4997 # We found the default executable, but exeext='' is most
4998 # certainly right.
4999 break;;
5000 *.* )
cristy8b350f62009-11-15 23:12:43 +00005001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005002 then :; else
5003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 fi
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5009 # actually working.
5010 break;;
5011 * )
5012 break;;
5013 esac
5014done
5015test "$ac_cv_exeext" = no && ac_cv_exeext=
5016
5017else
5018 ac_file=''
5019fi
cristy8b350f62009-11-15 23:12:43 +00005020if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024sed 's/^/| /' conftest.$ac_ext >&5
5025
cristy8b350f62009-11-15 23:12:43 +00005026{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005028as_fn_error 77 "C compiler cannot create executables
5029See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005030else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005033fi
cristycd4c5312009-11-22 01:19:08 +00005034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035$as_echo_n "checking for C compiler default output file name... " >&6; }
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005038ac_exeext=$ac_cv_exeext
5039
cristycd4c5312009-11-22 01:19:08 +00005040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005041ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005043$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005044if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005045case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048esac
cristy8b350f62009-11-15 23:12:43 +00005049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005051 (eval "$ac_link") 2>&5
5052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057# work properly (i.e., refer to `conftest.exe'), while it won't with
5058# `rm'.
5059for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067done
5068else
cristy8b350f62009-11-15 23:12:43 +00005069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5072See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005073fi
cristycd4c5312009-11-22 01:19:08 +00005074rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005076$as_echo "$ac_cv_exeext" >&6; }
5077
5078rm -f conftest.$ac_ext
5079EXEEXT=$ac_cv_exeext
5080ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h. */
5083#include <stdio.h>
5084int
5085main ()
5086{
5087FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094ac_clean_files="$ac_clean_files conftest.out"
5095# Check that the compiler produces executables we can run. If not, either
5096# the compiler is broken, or we cross compile.
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098$as_echo_n "checking whether we are cross compiling... " >&6; }
5099if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106$as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117$as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005129as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005130If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005131See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005132 fi
5133 fi
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136$as_echo "$cross_compiling" >&6; }
5137
5138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005142if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005143 $as_echo_n "(cached) " >&6
5144else
cristy8b350f62009-11-15 23:12:43 +00005145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005146/* end confdefs.h. */
5147
5148int
5149main ()
5150{
5151
5152 ;
5153 return 0;
5154}
5155_ACEOF
5156rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005157if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005158case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161esac
cristy8b350f62009-11-15 23:12:43 +00005162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175done
5176else
5177 $as_echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
cristy8b350f62009-11-15 23:12:43 +00005180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005182as_fn_error $? "cannot compute suffix of object files: cannot compile
5183See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005184fi
cristy3ed852e2009-09-05 21:47:34 +00005185rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186fi
cristy8b350f62009-11-15 23:12:43 +00005187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005188$as_echo "$ac_cv_objext" >&6; }
5189OBJEXT=$ac_cv_objext
5190ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005192$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005193if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005194 $as_echo_n "(cached) " >&6
5195else
cristy8b350f62009-11-15 23:12:43 +00005196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202#ifndef __GNUC__
5203 choke me
5204#endif
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 ac_compiler_gnu=yes
5212else
cristy8b350f62009-11-15 23:12:43 +00005213 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217
5218fi
cristy8b350f62009-11-15 23:12:43 +00005219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005220$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223else
5224 GCC=
5225fi
5226ac_test_CFLAGS=${CFLAGS+set}
5227ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005229$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005230if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005238/* end confdefs.h. */
5239
5240int
5241main ()
5242{
5243
5244 ;
5245 return 0;
5246}
5247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005248if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005249 ac_cv_prog_cc_g=yes
5250else
cristy8b350f62009-11-15 23:12:43 +00005251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005253/* end confdefs.h. */
5254
5255int
5256main ()
5257{
5258
5259 ;
5260 return 0;
5261}
5262_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005263if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005264
cristy8b350f62009-11-15 23:12:43 +00005265else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005267 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005280 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005281fi
cristy3ed852e2009-09-05 21:47:34 +00005282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
cristy3ed852e2009-09-05 21:47:34 +00005284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
cristy3ed852e2009-09-05 21:47:34 +00005286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5288fi
cristy8b350f62009-11-15 23:12:43 +00005289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005290$as_echo "$ac_cv_prog_cc_g" >&6; }
5291if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5298 fi
5299else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5304 fi
5305fi
cristy8b350f62009-11-15 23:12:43 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005308if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005309 $as_echo_n "(cached) " >&6
5310else
5311 ac_cv_prog_cc_c89=no
5312ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005314/* end confdefs.h. */
5315#include <stdarg.h>
5316#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005317struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5319struct buf { int x; };
5320FILE * (*rcsopen) (struct buf *, struct stat *, int);
5321static char *e (p, i)
5322 char **p;
5323 int i;
5324{
5325 return p[i];
5326}
5327static char *f (char * (*g) (char **, int), char **p, ...)
5328{
5329 char *s;
5330 va_list v;
5331 va_start (v,p);
5332 s = g (p, va_arg (v,int));
5333 va_end (v);
5334 return s;
5335}
5336
5337/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5338 function prototypes and stuff, but not '\xHH' hex character constants.
5339 These don't provoke an error unfortunately, instead are silently treated
5340 as 'x'. The following induces an error, until -std is added to get
5341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5342 array size at least. It's necessary to write '\x00'==0 to get something
5343 that's true only with -std. */
5344int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5345
5346/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5347 inside strings and character constants. */
5348#define FOO(x) 'x'
5349int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5350
5351int test (int i, double x);
5352struct s1 {int (*f) (int a);};
5353struct s2 {int (*f) (double a);};
5354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5355int argc;
5356char **argv;
5357int
5358main ()
5359{
5360return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5367do
5368 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005369 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005370 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005371fi
cristy3ed852e2009-09-05 21:47:34 +00005372rm -f core conftest.err conftest.$ac_objext
5373 test "x$ac_cv_prog_cc_c89" != "xno" && break
5374done
5375rm -f conftest.$ac_ext
5376CC=$ac_save_CC
5377
5378fi
5379# AC_CACHE_VAL
5380case "x$ac_cv_prog_cc_c89" in
5381 x)
cristy8b350f62009-11-15 23:12:43 +00005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005383$as_echo "none needed" >&6; } ;;
5384 xno)
cristy8b350f62009-11-15 23:12:43 +00005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005386$as_echo "unsupported" >&6; } ;;
5387 *)
5388 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005390$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5391esac
cristy8b350f62009-11-15 23:12:43 +00005392if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005393
cristy8b350f62009-11-15 23:12:43 +00005394fi
cristy3ed852e2009-09-05 21:47:34 +00005395
5396ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005401
cristya5bda012013-11-03 18:05:38 +00005402ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5408$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5409if ${am_cv_prog_cc_c_o+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423 # Make sure it works both with $CC and with simple cc.
5424 # Following AC_PROG_CC_C_O, we do the test twice because some
5425 # compilers refuse to overwrite an existing .o file with -o,
5426 # though they will create one.
5427 am_cv_prog_cc_c_o=yes
5428 for am_i in 1 2; do
5429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } \
5434 && test -f conftest2.$ac_objext; then
5435 : OK
5436 else
5437 am_cv_prog_cc_c_o=no
5438 break
5439 fi
5440 done
5441 rm -f core conftest*
5442 unset am_i
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5445$as_echo "$am_cv_prog_cc_c_o" >&6; }
5446if test "$am_cv_prog_cc_c_o" != yes; then
5447 # Losing compiler, so override with the script.
5448 # FIXME: It is wrong to rewrite CC.
5449 # But if we don't then we get into trouble of one sort or another.
5450 # A longer-term fix would be to have automake use am__CC in this case,
5451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5452 CC="$am_aux_dir/compile $CC"
5453fi
5454ac_ext=c
5455ac_cpp='$CPP $CPPFLAGS'
5456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460
cristy73bd4a52010-10-05 11:24:23 +00005461depcc="$CC" am_compiler_list=
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5464$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005465if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5469 # We make a subdir and do the tests there. Otherwise we can end up
5470 # making bogus files that we don't know about and never remove. For
5471 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005472 # making a dummy file named 'D' -- because '-MD' means "put the output
5473 # in D".
cristy7247bba2012-02-05 16:37:27 +00005474 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005475 mkdir conftest.dir
5476 # Copy depcomp to subdir because otherwise we won't find it if we're
5477 # using a relative directory.
5478 cp "$am_depcomp" conftest.dir
5479 cd conftest.dir
5480 # We will build objects and dependencies in a subdirectory because
5481 # it helps to detect inapplicable dependency modes. For instance
5482 # both Tru64's cc and ICC support -MD to output dependencies as a
5483 # side effect of compilation, but ICC will put the dependencies in
5484 # the current directory while Tru64 will put them in the object
5485 # directory.
5486 mkdir sub
5487
5488 am_cv_CC_dependencies_compiler_type=none
5489 if test "$am_compiler_list" = ""; then
5490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5491 fi
5492 am__universal=false
5493 case " $depcc " in #(
5494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5495 esac
5496
5497 for depmode in $am_compiler_list; do
5498 # Setup a source with many dependencies, because some compilers
5499 # like to wrap large dependency lists on column 80 (with \), and
5500 # we should not choose a depcomp mode which is confused by this.
5501 #
5502 # We need to recreate these files for each test, as the compiler may
5503 # overwrite some of them when testing with obscure command lines.
5504 # This happens at least with the AIX C compiler.
5505 : > sub/conftest.c
5506 for i in 1 2 3 4 5 6; do
5507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5509 # Solaris 10 /bin/sh.
5510 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005511 done
5512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5513
cristyc0890a62012-07-19 00:18:20 +00005514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005515 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005516 # handle '-M -o', and we need to detect this. Also, some Intel
5517 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005518 am__obj=sub/conftest.${OBJEXT-o}
5519 am__minus_obj="-o $am__obj"
5520 case $depmode in
5521 gcc)
5522 # This depmode causes a compiler race in universal mode.
5523 test "$am__universal" = false || continue
5524 ;;
5525 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005526 # After this tag, mechanisms are not by side-effect, so they'll
5527 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005528 if test "x$enable_dependency_tracking" = xyes; then
5529 continue
5530 else
5531 break
5532 fi
5533 ;;
cristy7247bba2012-02-05 16:37:27 +00005534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005535 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005536 # not run yet. These depmodes are late enough in the game, and
5537 # so weak that their functioning should not be impacted.
5538 am__obj=conftest.${OBJEXT-o}
5539 am__minus_obj=
5540 ;;
5541 none) break ;;
5542 esac
5543 if depmode=$depmode \
5544 source=sub/conftest.c object=$am__obj \
5545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5547 >/dev/null 2>conftest.err &&
5548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5552 # icc doesn't choke on unknown options, it will just issue warnings
5553 # or remarks (even with -Werror). So we grep stderr for any message
5554 # that says an option was ignored or not supported.
5555 # When given -MP, icc 7.0 and 7.1 complain thusly:
5556 # icc: Command line warning: ignoring option '-M'; no argument required
5557 # The diagnosis changed in icc 8.0:
5558 # icc: Command line remark: option '-MP' not supported
5559 if (grep 'ignoring option' conftest.err ||
5560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5561 am_cv_CC_dependencies_compiler_type=$depmode
5562 break
5563 fi
5564 fi
5565 done
5566
5567 cd ..
5568 rm -rf conftest.dir
5569else
5570 am_cv_CC_dependencies_compiler_type=none
5571fi
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5575$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5576CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5577
5578 if
5579 test "x$enable_dependency_tracking" != xno \
5580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5581 am__fastdepCC_TRUE=
5582 am__fastdepCC_FALSE='#'
5583else
5584 am__fastdepCC_TRUE='#'
5585 am__fastdepCC_FALSE=
5586fi
5587
5588
cristy3ed852e2009-09-05 21:47:34 +00005589
cristya0b81c32010-01-22 02:54:33 +00005590ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5596$as_echo_n "checking how to run the C preprocessor... " >&6; }
5597# On Suns, sometimes $CPP names a directory.
5598if test -n "$CPP" && test -d "$CPP"; then
5599 CPP=
5600fi
5601if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005602 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005603 $as_echo_n "(cached) " >&6
5604else
5605 # Double quotes because CPP needs to be expanded
5606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5607 do
5608 ac_preproc_ok=false
5609for ac_c_preproc_warn_flag in '' yes
5610do
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624 Syntax error
5625_ACEOF
5626if ac_fn_c_try_cpp "$LINENO"; then :
5627
5628else
5629 # Broken: fails on valid input.
5630continue
5631fi
cristyda16f162011-02-19 23:52:17 +00005632rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005633
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638#include <ac_nonexistent.h>
5639_ACEOF
5640if ac_fn_c_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5642continue
5643else
5644 # Passes both tests.
5645ac_preproc_ok=:
5646break
5647fi
cristyda16f162011-02-19 23:52:17 +00005648rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005649
5650done
5651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005652rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005653if $ac_preproc_ok; then :
5654 break
5655fi
5656
5657 done
5658 ac_cv_prog_CPP=$CPP
5659
5660fi
5661 CPP=$ac_cv_prog_CPP
5662else
5663 ac_cv_prog_CPP=$CPP
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5666$as_echo "$CPP" >&6; }
5667ac_preproc_ok=false
5668for ac_c_preproc_warn_flag in '' yes
5669do
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678#ifdef __STDC__
5679# include <limits.h>
5680#else
5681# include <assert.h>
5682#endif
5683 Syntax error
5684_ACEOF
5685if ac_fn_c_try_cpp "$LINENO"; then :
5686
5687else
5688 # Broken: fails on valid input.
5689continue
5690fi
cristyda16f162011-02-19 23:52:17 +00005691rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005692
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h. */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if ac_fn_c_try_cpp "$LINENO"; then :
5700 # Broken: success on invalid input.
5701continue
5702else
5703 # Passes both tests.
5704ac_preproc_ok=:
5705break
5706fi
cristyda16f162011-02-19 23:52:17 +00005707rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005708
5709done
5710# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005711rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005712if $ac_preproc_ok; then :
5713
5714else
5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005717as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5718See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005719fi
5720
5721ac_ext=c
5722ac_cpp='$CPP $CPPFLAGS'
5723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5729$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005730if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005731 $as_echo_n "(cached) " >&6
5732else
5733 if test -z "$GREP"; then
5734 ac_path_GREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in grep ggrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005744 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005745# Check for GNU ac_path_GREP and select it if it is found.
5746 # Check for GNU $ac_path_GREP
5747case `"$ac_path_GREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'GREP' >> "conftest.nl"
5759 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_GREP="$ac_path_GREP"
5765 ac_path_GREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_GREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005779 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005780 fi
5781else
5782 ac_cv_path_GREP=$GREP
5783fi
5784
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5787$as_echo "$ac_cv_path_GREP" >&6; }
5788 GREP="$ac_cv_path_GREP"
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5792$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5797 then ac_cv_path_EGREP="$GREP -E"
5798 else
5799 if test -z "$EGREP"; then
5800 ac_path_EGREP_found=false
5801 # Loop through the user's path and test for each of PROGNAME-LIST
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_prog in egrep; do
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005810 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005811# Check for GNU ac_path_EGREP and select it if it is found.
5812 # Check for GNU $ac_path_EGREP
5813case `"$ac_path_EGREP" --version 2>&1` in
5814*GNU*)
5815 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5816*)
5817 ac_count=0
5818 $as_echo_n 0123456789 >"conftest.in"
5819 while :
5820 do
5821 cat "conftest.in" "conftest.in" >"conftest.tmp"
5822 mv "conftest.tmp" "conftest.in"
5823 cp "conftest.in" "conftest.nl"
5824 $as_echo 'EGREP' >> "conftest.nl"
5825 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5827 as_fn_arith $ac_count + 1 && ac_count=$as_val
5828 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5829 # Best one so far, save it but keep looking for a better one
5830 ac_cv_path_EGREP="$ac_path_EGREP"
5831 ac_path_EGREP_max=$ac_count
5832 fi
5833 # 10*(2^10) chars as input seems more than enough
5834 test $ac_count -gt 10 && break
5835 done
5836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5837esac
5838
5839 $ac_path_EGREP_found && break 3
5840 done
5841 done
5842 done
5843IFS=$as_save_IFS
5844 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005845 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005846 fi
5847else
5848 ac_cv_path_EGREP=$EGREP
5849fi
5850
5851 fi
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5854$as_echo "$ac_cv_path_EGREP" >&6; }
5855 EGREP="$ac_cv_path_EGREP"
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5859$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005860if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005861 $as_echo_n "(cached) " >&6
5862else
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865#include <stdlib.h>
5866#include <stdarg.h>
5867#include <string.h>
5868#include <float.h>
5869
5870int
5871main ()
5872{
5873
5874 ;
5875 return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"; then :
5879 ac_cv_header_stdc=yes
5880else
5881 ac_cv_header_stdc=no
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
5885if test $ac_cv_header_stdc = yes; then
5886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h. */
5889#include <string.h>
5890
5891_ACEOF
5892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "memchr" >/dev/null 2>&1; then :
5894
5895else
5896 ac_cv_header_stdc=no
5897fi
5898rm -f conftest*
5899
5900fi
5901
5902if test $ac_cv_header_stdc = yes; then
5903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include <stdlib.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "free" >/dev/null 2>&1; then :
5911
5912else
5913 ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5921 if test "$cross_compiling" = yes; then :
5922 :
5923else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h. */
5926#include <ctype.h>
5927#include <stdlib.h>
5928#if ((' ' & 0x0FF) == 0x020)
5929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5931#else
5932# define ISLOWER(c) \
5933 (('a' <= (c) && (c) <= 'i') \
5934 || ('j' <= (c) && (c) <= 'r') \
5935 || ('s' <= (c) && (c) <= 'z'))
5936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5937#endif
5938
5939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5940int
5941main ()
5942{
5943 int i;
5944 for (i = 0; i < 256; i++)
5945 if (XOR (islower (i), ISLOWER (i))
5946 || toupper (i) != TOUPPER (i))
5947 return 2;
5948 return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_run "$LINENO"; then :
5952
5953else
5954 ac_cv_header_stdc=no
5955fi
5956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5957 conftest.$ac_objext conftest.beam conftest.$ac_ext
5958fi
5959
5960fi
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5963$as_echo "$ac_cv_header_stdc" >&6; }
5964if test $ac_cv_header_stdc = yes; then
5965
5966$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5967
5968fi
5969
5970# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5972 inttypes.h stdint.h unistd.h
5973do :
5974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5975ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5976"
cristy98dddb52010-11-04 00:30:15 +00005977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005978 cat >>confdefs.h <<_ACEOF
5979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980_ACEOF
5981
5982fi
5983
5984done
5985
5986
5987
5988 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 +00005989if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005990 MINIX=yes
5991else
5992 MINIX=
5993fi
5994
5995
5996 if test "$MINIX" = yes; then
5997
5998$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5999
6000
6001$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6002
6003
6004$as_echo "#define _MINIX 1" >>confdefs.h
6005
6006 fi
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6010$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006011if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h. */
6016
cristy14fefe52012-05-21 00:59:18 +00006017# define __EXTENSIONS__ 1
6018 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006019int
6020main ()
6021{
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_safe_to_define___extensions__=yes
6029else
6030 ac_cv_safe_to_define___extensions__=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033fi
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6035$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6036 test $ac_cv_safe_to_define___extensions__ = yes &&
6037 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6038
6039 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6040
6041 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6042
6043 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6044
6045 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6046
6047
6048
cristy9af1cbf2014-12-28 22:03:09 +00006049# ==============================================================================
6050# Find required base packages
6051# ==============================================================================
6052
cristya0b81c32010-01-22 02:54:33 +00006053ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6060set dummy ${ac_tool_prefix}gcc; ac_word=$2
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006063if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006064 $as_echo_n "(cached) " >&6
6065else
6066 if test -n "$CC"; then
6067 ac_cv_prog_CC="$CC" # Let the user override the test.
6068else
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006076 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080done
6081 done
6082IFS=$as_save_IFS
6083
6084fi
6085fi
6086CC=$ac_cv_prog_CC
6087if test -n "$CC"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6089$as_echo "$CC" >&6; }
6090else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092$as_echo "no" >&6; }
6093fi
6094
6095
6096fi
6097if test -z "$ac_cv_prog_CC"; then
6098 ac_ct_CC=$CC
6099 # Extract the first word of "gcc", so it can be a program name with args.
6100set dummy gcc; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006103if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006104 $as_echo_n "(cached) " >&6
6105else
6106 if test -n "$ac_ct_CC"; then
6107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006116 ac_cv_prog_ac_ct_CC="gcc"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121 done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126ac_ct_CC=$ac_cv_prog_ac_ct_CC
6127if test -n "$ac_ct_CC"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6129$as_echo "$ac_ct_CC" >&6; }
6130else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135 if test "x$ac_ct_CC" = x; then
6136 CC=""
6137 else
6138 case $cross_compiling:$ac_tool_warned in
6139yes:)
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142ac_tool_warned=yes ;;
6143esac
6144 CC=$ac_ct_CC
6145 fi
6146else
6147 CC="$ac_cv_prog_CC"
6148fi
6149
6150if test -z "$CC"; then
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6153set dummy ${ac_tool_prefix}cc; ac_word=$2
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006156if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006157 $as_echo_n "(cached) " >&6
6158else
6159 if test -n "$CC"; then
6160 ac_cv_prog_CC="$CC" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006169 ac_cv_prog_CC="${ac_tool_prefix}cc"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174 done
6175IFS=$as_save_IFS
6176
6177fi
6178fi
6179CC=$ac_cv_prog_CC
6180if test -n "$CC"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6182$as_echo "$CC" >&6; }
6183else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185$as_echo "no" >&6; }
6186fi
6187
6188
6189 fi
6190fi
6191if test -z "$CC"; then
6192 # Extract the first word of "cc", so it can be a program name with args.
6193set dummy cc; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006196if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$CC"; then
6200 ac_cv_prog_CC="$CC" # Let the user override the test.
6201else
6202 ac_prog_rejected=no
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006210 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6211 ac_prog_rejected=yes
6212 continue
6213 fi
6214 ac_cv_prog_CC="cc"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219 done
6220IFS=$as_save_IFS
6221
6222if test $ac_prog_rejected = yes; then
6223 # We found a bogon in the path, so make sure we never use it.
6224 set dummy $ac_cv_prog_CC
6225 shift
6226 if test $# != 0; then
6227 # We chose a different compiler from the bogus one.
6228 # However, it has the same basename, so the bogon will be chosen
6229 # first if we set CC to just the basename; use the full file name.
6230 shift
6231 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6232 fi
6233fi
6234fi
6235fi
6236CC=$ac_cv_prog_CC
6237if test -n "$CC"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6239$as_echo "$CC" >&6; }
6240else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245
6246fi
6247if test -z "$CC"; then
6248 if test -n "$ac_tool_prefix"; then
6249 for ac_prog in cl.exe
6250 do
6251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006255if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006256 $as_echo_n "(cached) " >&6
6257else
6258 if test -n "$CC"; then
6259 ac_cv_prog_CC="$CC" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273 done
6274IFS=$as_save_IFS
6275
6276fi
6277fi
6278CC=$ac_cv_prog_CC
6279if test -n "$CC"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6281$as_echo "$CC" >&6; }
6282else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284$as_echo "no" >&6; }
6285fi
6286
6287
6288 test -n "$CC" && break
6289 done
6290fi
6291if test -z "$CC"; then
6292 ac_ct_CC=$CC
6293 for ac_prog in cl.exe
6294do
6295 # Extract the first word of "$ac_prog", so it can be a program name with args.
6296set dummy $ac_prog; ac_word=$2
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006299if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006300 $as_echo_n "(cached) " >&6
6301else
6302 if test -n "$ac_ct_CC"; then
6303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006312 ac_cv_prog_ac_ct_CC="$ac_prog"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316done
6317 done
6318IFS=$as_save_IFS
6319
6320fi
6321fi
6322ac_ct_CC=$ac_cv_prog_ac_ct_CC
6323if test -n "$ac_ct_CC"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6325$as_echo "$ac_ct_CC" >&6; }
6326else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329fi
6330
6331
6332 test -n "$ac_ct_CC" && break
6333done
6334
6335 if test "x$ac_ct_CC" = x; then
6336 CC=""
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339yes:)
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344 CC=$ac_ct_CC
6345 fi
6346fi
6347
6348fi
6349
6350
6351test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006353as_fn_error $? "no acceptable C compiler found in \$PATH
6354See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006355
6356# Provide some information about the compiler.
6357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6358set X $ac_compile
6359ac_compiler=$2
6360for ac_option in --version -v -V -qversion; do
6361 { { ac_try="$ac_compiler $ac_option >&5"
6362case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6367$as_echo "$ac_try_echo"; } >&5
6368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6369 ac_status=$?
6370 if test -s conftest.err; then
6371 sed '10a\
6372... rest of stderr output deleted ...
6373 10q' conftest.err >conftest.er1
6374 cat conftest.er1 >&5
6375 fi
6376 rm -f conftest.er1 conftest.err
6377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; }
6379done
6380
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6382$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006383if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006384 $as_echo_n "(cached) " >&6
6385else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h. */
6388
6389int
6390main ()
6391{
6392#ifndef __GNUC__
6393 choke me
6394#endif
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_compiler_gnu=yes
6402else
6403 ac_compiler_gnu=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406ac_cv_c_compiler_gnu=$ac_compiler_gnu
6407
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6410$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6411if test $ac_compiler_gnu = yes; then
6412 GCC=yes
6413else
6414 GCC=
6415fi
6416ac_test_CFLAGS=${CFLAGS+set}
6417ac_save_CFLAGS=$CFLAGS
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6419$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006420if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006421 $as_echo_n "(cached) " >&6
6422else
6423 ac_save_c_werror_flag=$ac_c_werror_flag
6424 ac_c_werror_flag=yes
6425 ac_cv_prog_cc_g=no
6426 CFLAGS="-g"
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h. */
6429
6430int
6431main ()
6432{
6433
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438if ac_fn_c_try_compile "$LINENO"; then :
6439 ac_cv_prog_cc_g=yes
6440else
6441 CFLAGS=""
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h. */
6444
6445int
6446main ()
6447{
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453if ac_fn_c_try_compile "$LINENO"; then :
6454
6455else
6456 ac_c_werror_flag=$ac_save_c_werror_flag
6457 CFLAGS="-g"
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h. */
6460
6461int
6462main ()
6463{
6464
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"; then :
6470 ac_cv_prog_cc_g=yes
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 ac_c_werror_flag=$ac_save_c_werror_flag
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6480$as_echo "$ac_cv_prog_cc_g" >&6; }
6481if test "$ac_test_CFLAGS" = set; then
6482 CFLAGS=$ac_save_CFLAGS
6483elif test $ac_cv_prog_cc_g = yes; then
6484 if test "$GCC" = yes; then
6485 CFLAGS="-g -O2"
6486 else
6487 CFLAGS="-g"
6488 fi
6489else
6490 if test "$GCC" = yes; then
6491 CFLAGS="-O2"
6492 else
6493 CFLAGS=
6494 fi
6495fi
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6497$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006498if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006499 $as_echo_n "(cached) " >&6
6500else
6501 ac_cv_prog_cc_c89=no
6502ac_save_CC=$CC
6503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h. */
6505#include <stdarg.h>
6506#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006507struct stat;
cristya0b81c32010-01-22 02:54:33 +00006508/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6509struct buf { int x; };
6510FILE * (*rcsopen) (struct buf *, struct stat *, int);
6511static char *e (p, i)
6512 char **p;
6513 int i;
6514{
6515 return p[i];
6516}
6517static char *f (char * (*g) (char **, int), char **p, ...)
6518{
6519 char *s;
6520 va_list v;
6521 va_start (v,p);
6522 s = g (p, va_arg (v,int));
6523 va_end (v);
6524 return s;
6525}
6526
6527/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6528 function prototypes and stuff, but not '\xHH' hex character constants.
6529 These don't provoke an error unfortunately, instead are silently treated
6530 as 'x'. The following induces an error, until -std is added to get
6531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6532 array size at least. It's necessary to write '\x00'==0 to get something
6533 that's true only with -std. */
6534int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6535
6536/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6537 inside strings and character constants. */
6538#define FOO(x) 'x'
6539int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6540
6541int test (int i, double x);
6542struct s1 {int (*f) (int a);};
6543struct s2 {int (*f) (double a);};
6544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6545int argc;
6546char **argv;
6547int
6548main ()
6549{
6550return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6556 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6557do
6558 CC="$ac_save_CC $ac_arg"
6559 if ac_fn_c_try_compile "$LINENO"; then :
6560 ac_cv_prog_cc_c89=$ac_arg
6561fi
6562rm -f core conftest.err conftest.$ac_objext
6563 test "x$ac_cv_prog_cc_c89" != "xno" && break
6564done
6565rm -f conftest.$ac_ext
6566CC=$ac_save_CC
6567
6568fi
6569# AC_CACHE_VAL
6570case "x$ac_cv_prog_cc_c89" in
6571 x)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6573$as_echo "none needed" >&6; } ;;
6574 xno)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6576$as_echo "unsupported" >&6; } ;;
6577 *)
6578 CC="$CC $ac_cv_prog_cc_c89"
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6580$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6581esac
6582if test "x$ac_cv_prog_cc_c89" != xno; then :
6583
6584fi
6585
6586ac_ext=c
6587ac_cpp='$CPP $CPPFLAGS'
6588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
cristya5bda012013-11-03 18:05:38 +00006592ac_ext=c
6593ac_cpp='$CPP $CPPFLAGS'
6594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6596ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6598$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6599if ${am_cv_prog_cc_c_o+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h. */
6604
6605int
6606main ()
6607{
6608
6609 ;
6610 return 0;
6611}
6612_ACEOF
6613 # Make sure it works both with $CC and with simple cc.
6614 # Following AC_PROG_CC_C_O, we do the test twice because some
6615 # compilers refuse to overwrite an existing .o file with -o,
6616 # though they will create one.
6617 am_cv_prog_cc_c_o=yes
6618 for am_i in 1 2; do
6619 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6620 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } \
6624 && test -f conftest2.$ac_objext; then
6625 : OK
6626 else
6627 am_cv_prog_cc_c_o=no
6628 break
6629 fi
6630 done
6631 rm -f core conftest*
6632 unset am_i
6633fi
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6635$as_echo "$am_cv_prog_cc_c_o" >&6; }
6636if test "$am_cv_prog_cc_c_o" != yes; then
6637 # Losing compiler, so override with the script.
6638 # FIXME: It is wrong to rewrite CC.
6639 # But if we don't then we get into trouble of one sort or another.
6640 # A longer-term fix would be to have automake use am__CC in this case,
6641 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6642 CC="$am_aux_dir/compile $CC"
6643fi
6644ac_ext=c
6645ac_cpp='$CPP $CPPFLAGS'
6646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649
6650
cristy73bd4a52010-10-05 11:24:23 +00006651depcc="$CC" am_compiler_list=
6652
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6654$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006655if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006656 $as_echo_n "(cached) " >&6
6657else
6658 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6659 # We make a subdir and do the tests there. Otherwise we can end up
6660 # making bogus files that we don't know about and never remove. For
6661 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006662 # making a dummy file named 'D' -- because '-MD' means "put the output
6663 # in D".
cristy7247bba2012-02-05 16:37:27 +00006664 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006665 mkdir conftest.dir
6666 # Copy depcomp to subdir because otherwise we won't find it if we're
6667 # using a relative directory.
6668 cp "$am_depcomp" conftest.dir
6669 cd conftest.dir
6670 # We will build objects and dependencies in a subdirectory because
6671 # it helps to detect inapplicable dependency modes. For instance
6672 # both Tru64's cc and ICC support -MD to output dependencies as a
6673 # side effect of compilation, but ICC will put the dependencies in
6674 # the current directory while Tru64 will put them in the object
6675 # directory.
6676 mkdir sub
6677
6678 am_cv_CC_dependencies_compiler_type=none
6679 if test "$am_compiler_list" = ""; then
6680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6681 fi
6682 am__universal=false
6683 case " $depcc " in #(
6684 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6685 esac
6686
6687 for depmode in $am_compiler_list; do
6688 # Setup a source with many dependencies, because some compilers
6689 # like to wrap large dependency lists on column 80 (with \), and
6690 # we should not choose a depcomp mode which is confused by this.
6691 #
6692 # We need to recreate these files for each test, as the compiler may
6693 # overwrite some of them when testing with obscure command lines.
6694 # This happens at least with the AIX C compiler.
6695 : > sub/conftest.c
6696 for i in 1 2 3 4 5 6; do
6697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006698 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6699 # Solaris 10 /bin/sh.
6700 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006701 done
6702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6703
cristyc0890a62012-07-19 00:18:20 +00006704 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006705 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006706 # handle '-M -o', and we need to detect this. Also, some Intel
6707 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006708 am__obj=sub/conftest.${OBJEXT-o}
6709 am__minus_obj="-o $am__obj"
6710 case $depmode in
6711 gcc)
6712 # This depmode causes a compiler race in universal mode.
6713 test "$am__universal" = false || continue
6714 ;;
6715 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006716 # After this tag, mechanisms are not by side-effect, so they'll
6717 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006718 if test "x$enable_dependency_tracking" = xyes; then
6719 continue
6720 else
6721 break
6722 fi
6723 ;;
cristy7247bba2012-02-05 16:37:27 +00006724 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006725 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006726 # not run yet. These depmodes are late enough in the game, and
6727 # so weak that their functioning should not be impacted.
6728 am__obj=conftest.${OBJEXT-o}
6729 am__minus_obj=
6730 ;;
6731 none) break ;;
6732 esac
6733 if depmode=$depmode \
6734 source=sub/conftest.c object=$am__obj \
6735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6737 >/dev/null 2>conftest.err &&
6738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6742 # icc doesn't choke on unknown options, it will just issue warnings
6743 # or remarks (even with -Werror). So we grep stderr for any message
6744 # that says an option was ignored or not supported.
6745 # When given -MP, icc 7.0 and 7.1 complain thusly:
6746 # icc: Command line warning: ignoring option '-M'; no argument required
6747 # The diagnosis changed in icc 8.0:
6748 # icc: Command line remark: option '-MP' not supported
6749 if (grep 'ignoring option' conftest.err ||
6750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6751 am_cv_CC_dependencies_compiler_type=$depmode
6752 break
6753 fi
6754 fi
6755 done
6756
6757 cd ..
6758 rm -rf conftest.dir
6759else
6760 am_cv_CC_dependencies_compiler_type=none
6761fi
6762
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6765$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6766CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6767
6768 if
6769 test "x$enable_dependency_tracking" != xno \
6770 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6771 am__fastdepCC_TRUE=
6772 am__fastdepCC_FALSE='#'
6773else
6774 am__fastdepCC_TRUE='#'
6775 am__fastdepCC_FALSE=
6776fi
6777
6778
cristy95646052009-11-28 23:05:30 +00006779ac_ext=cpp
6780ac_cpp='$CXXCPP $CPPFLAGS'
6781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784if test -z "$CXX"; then
6785 if test -n "$CCC"; then
6786 CXX=$CCC
6787 else
6788 if test -n "$ac_tool_prefix"; then
6789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6790 do
6791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006795if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006796 $as_echo_n "(cached) " >&6
6797else
6798 if test -n "$CXX"; then
6799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813 done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818CXX=$ac_cv_prog_CXX
6819if test -n "$CXX"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6821$as_echo "$CXX" >&6; }
6822else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828 test -n "$CXX" && break
6829 done
6830fi
6831if test -z "$CXX"; then
6832 ac_ct_CXX=$CXX
6833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6834do
6835 # Extract the first word of "$ac_prog", so it can be a program name with args.
6836set dummy $ac_prog; ac_word=$2
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006839if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006840 $as_echo_n "(cached) " >&6
6841else
6842 if test -n "$ac_ct_CXX"; then
6843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006852 ac_cv_prog_ac_ct_CXX="$ac_prog"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856done
6857 done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6863if test -n "$ac_ct_CXX"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6865$as_echo "$ac_ct_CXX" >&6; }
6866else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871
6872 test -n "$ac_ct_CXX" && break
6873done
6874
6875 if test "x$ac_ct_CXX" = x; then
6876 CXX="g++"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879yes:)
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882ac_tool_warned=yes ;;
6883esac
6884 CXX=$ac_ct_CXX
6885 fi
6886fi
6887
6888 fi
6889fi
6890# Provide some information about the compiler.
6891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6892set X $ac_compile
6893ac_compiler=$2
6894for ac_option in --version -v -V -qversion; do
6895 { { ac_try="$ac_compiler $ac_option >&5"
6896case "(($ac_try" in
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6899esac
6900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6901$as_echo "$ac_try_echo"; } >&5
6902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6903 ac_status=$?
6904 if test -s conftest.err; then
6905 sed '10a\
6906... rest of stderr output deleted ...
6907 10q' conftest.err >conftest.er1
6908 cat conftest.er1 >&5
6909 fi
6910 rm -f conftest.er1 conftest.err
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; }
6913done
6914
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6916$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006917if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006918 $as_echo_n "(cached) " >&6
6919else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h. */
6922
6923int
6924main ()
6925{
6926#ifndef __GNUC__
6927 choke me
6928#endif
6929
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934if ac_fn_cxx_try_compile "$LINENO"; then :
6935 ac_compiler_gnu=yes
6936else
6937 ac_compiler_gnu=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6941
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6944$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6945if test $ac_compiler_gnu = yes; then
6946 GXX=yes
6947else
6948 GXX=
6949fi
6950ac_test_CXXFLAGS=${CXXFLAGS+set}
6951ac_save_CXXFLAGS=$CXXFLAGS
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6953$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006954if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006955 $as_echo_n "(cached) " >&6
6956else
6957 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6958 ac_cxx_werror_flag=yes
6959 ac_cv_prog_cxx_g=no
6960 CXXFLAGS="-g"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
6963
6964int
6965main ()
6966{
6967
6968 ;
6969 return 0;
6970}
6971_ACEOF
6972if ac_fn_cxx_try_compile "$LINENO"; then :
6973 ac_cv_prog_cxx_g=yes
6974else
6975 CXXFLAGS=""
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h. */
6978
6979int
6980main ()
6981{
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
6987if ac_fn_cxx_try_compile "$LINENO"; then :
6988
6989else
6990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6991 CXXFLAGS="-g"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h. */
6994
6995int
6996main ()
6997{
6998
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003if ac_fn_cxx_try_compile "$LINENO"; then :
7004 ac_cv_prog_cxx_g=yes
7005fi
7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007fi
7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7012fi
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7014$as_echo "$ac_cv_prog_cxx_g" >&6; }
7015if test "$ac_test_CXXFLAGS" = set; then
7016 CXXFLAGS=$ac_save_CXXFLAGS
7017elif test $ac_cv_prog_cxx_g = yes; then
7018 if test "$GXX" = yes; then
7019 CXXFLAGS="-g -O2"
7020 else
7021 CXXFLAGS="-g"
7022 fi
7023else
7024 if test "$GXX" = yes; then
7025 CXXFLAGS="-O2"
7026 else
7027 CXXFLAGS=
7028 fi
7029fi
7030ac_ext=c
7031ac_cpp='$CPP $CPPFLAGS'
7032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035
cristy73bd4a52010-10-05 11:24:23 +00007036depcc="$CXX" am_compiler_list=
7037
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7039$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007040if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007041 $as_echo_n "(cached) " >&6
7042else
7043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7044 # We make a subdir and do the tests there. Otherwise we can end up
7045 # making bogus files that we don't know about and never remove. For
7046 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007047 # making a dummy file named 'D' -- because '-MD' means "put the output
7048 # in D".
cristy7247bba2012-02-05 16:37:27 +00007049 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007050 mkdir conftest.dir
7051 # Copy depcomp to subdir because otherwise we won't find it if we're
7052 # using a relative directory.
7053 cp "$am_depcomp" conftest.dir
7054 cd conftest.dir
7055 # We will build objects and dependencies in a subdirectory because
7056 # it helps to detect inapplicable dependency modes. For instance
7057 # both Tru64's cc and ICC support -MD to output dependencies as a
7058 # side effect of compilation, but ICC will put the dependencies in
7059 # the current directory while Tru64 will put them in the object
7060 # directory.
7061 mkdir sub
7062
7063 am_cv_CXX_dependencies_compiler_type=none
7064 if test "$am_compiler_list" = ""; then
7065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7066 fi
7067 am__universal=false
7068 case " $depcc " in #(
7069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7070 esac
7071
7072 for depmode in $am_compiler_list; do
7073 # Setup a source with many dependencies, because some compilers
7074 # like to wrap large dependency lists on column 80 (with \), and
7075 # we should not choose a depcomp mode which is confused by this.
7076 #
7077 # We need to recreate these files for each test, as the compiler may
7078 # overwrite some of them when testing with obscure command lines.
7079 # This happens at least with the AIX C compiler.
7080 : > sub/conftest.c
7081 for i in 1 2 3 4 5 6; do
7082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007083 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7084 # Solaris 10 /bin/sh.
7085 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007086 done
7087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7088
cristyc0890a62012-07-19 00:18:20 +00007089 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007090 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007091 # handle '-M -o', and we need to detect this. Also, some Intel
7092 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007093 am__obj=sub/conftest.${OBJEXT-o}
7094 am__minus_obj="-o $am__obj"
7095 case $depmode in
7096 gcc)
7097 # This depmode causes a compiler race in universal mode.
7098 test "$am__universal" = false || continue
7099 ;;
7100 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007101 # After this tag, mechanisms are not by side-effect, so they'll
7102 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007103 if test "x$enable_dependency_tracking" = xyes; then
7104 continue
7105 else
7106 break
7107 fi
7108 ;;
cristy7247bba2012-02-05 16:37:27 +00007109 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007110 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007111 # not run yet. These depmodes are late enough in the game, and
7112 # so weak that their functioning should not be impacted.
7113 am__obj=conftest.${OBJEXT-o}
7114 am__minus_obj=
7115 ;;
7116 none) break ;;
7117 esac
7118 if depmode=$depmode \
7119 source=sub/conftest.c object=$am__obj \
7120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7122 >/dev/null 2>conftest.err &&
7123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7127 # icc doesn't choke on unknown options, it will just issue warnings
7128 # or remarks (even with -Werror). So we grep stderr for any message
7129 # that says an option was ignored or not supported.
7130 # When given -MP, icc 7.0 and 7.1 complain thusly:
7131 # icc: Command line warning: ignoring option '-M'; no argument required
7132 # The diagnosis changed in icc 8.0:
7133 # icc: Command line remark: option '-MP' not supported
7134 if (grep 'ignoring option' conftest.err ||
7135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7136 am_cv_CXX_dependencies_compiler_type=$depmode
7137 break
7138 fi
7139 fi
7140 done
7141
7142 cd ..
7143 rm -rf conftest.dir
7144else
7145 am_cv_CXX_dependencies_compiler_type=none
7146fi
7147
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7150$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7151CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7152
7153 if
7154 test "x$enable_dependency_tracking" != xno \
7155 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7156 am__fastdepCXX_TRUE=
7157 am__fastdepCXX_FALSE='#'
7158else
7159 am__fastdepCXX_TRUE='#'
7160 am__fastdepCXX_FALSE=
7161fi
7162
7163
cristy8b350f62009-11-15 23:12:43 +00007164 case $ac_cv_prog_cc_stdc in #(
7165 no) :
7166 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7167 *) :
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007169$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007170if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007171 $as_echo_n "(cached) " >&6
7172else
7173 ac_cv_prog_cc_c99=no
7174ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176/* end confdefs.h. */
7177#include <stdarg.h>
7178#include <stdbool.h>
7179#include <stdlib.h>
7180#include <wchar.h>
7181#include <stdio.h>
7182
7183// Check varargs macros. These examples are taken from C99 6.10.3.5.
7184#define debug(...) fprintf (stderr, __VA_ARGS__)
7185#define showlist(...) puts (#__VA_ARGS__)
7186#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7187static void
7188test_varargs_macros (void)
7189{
7190 int x = 1234;
7191 int y = 5678;
7192 debug ("Flag");
7193 debug ("X = %d\n", x);
7194 showlist (The first, second, and third items.);
7195 report (x>y, "x is %d but y is %d", x, y);
7196}
7197
7198// Check long long types.
7199#define BIG64 18446744073709551615ull
7200#define BIG32 4294967295ul
7201#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7202#if !BIG_OK
7203 your preprocessor is broken;
7204#endif
7205#if BIG_OK
7206#else
7207 your preprocessor is broken;
7208#endif
7209static long long int bignum = -9223372036854775807LL;
7210static unsigned long long int ubignum = BIG64;
7211
7212struct incomplete_array
7213{
7214 int datasize;
7215 double data[];
7216};
7217
7218struct named_init {
7219 int number;
7220 const wchar_t *name;
7221 double average;
7222};
7223
7224typedef const char *ccp;
7225
7226static inline int
7227test_restrict (ccp restrict text)
7228{
7229 // See if C++-style comments work.
7230 // Iterate through items via the restricted pointer.
7231 // Also check for declarations in for loops.
7232 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7233 continue;
7234 return 0;
7235}
7236
7237// Check varargs and va_copy.
7238static void
7239test_varargs (const char *format, ...)
7240{
7241 va_list args;
7242 va_start (args, format);
7243 va_list args_copy;
7244 va_copy (args_copy, args);
7245
7246 const char *str;
7247 int number;
7248 float fnumber;
7249
7250 while (*format)
7251 {
7252 switch (*format++)
7253 {
7254 case 's': // string
7255 str = va_arg (args_copy, const char *);
7256 break;
7257 case 'd': // int
7258 number = va_arg (args_copy, int);
7259 break;
7260 case 'f': // float
7261 fnumber = va_arg (args_copy, double);
7262 break;
7263 default:
7264 break;
7265 }
7266 }
7267 va_end (args_copy);
7268 va_end (args);
7269}
7270
7271int
7272main ()
7273{
7274
7275 // Check bool.
7276 _Bool success = false;
7277
7278 // Check restrict.
7279 if (test_restrict ("String literal") == 0)
7280 success = true;
7281 char *restrict newvar = "Another string";
7282
7283 // Check varargs.
7284 test_varargs ("s, d' f .", "string", 65, 34.234);
7285 test_varargs_macros ();
7286
7287 // Check flexible array members.
7288 struct incomplete_array *ia =
7289 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7290 ia->datasize = 10;
7291 for (int i = 0; i < ia->datasize; ++i)
7292 ia->data[i] = i * 1.234;
7293
7294 // Check named initializers.
7295 struct named_init ni = {
7296 .number = 34,
7297 .name = L"Test wide string",
7298 .average = 543.34343,
7299 };
7300
7301 ni.number = 58;
7302
7303 int dynamic_array[ni.number];
7304 dynamic_array[ni.number - 1] = 543;
7305
7306 // work around unused variable warnings
7307 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7308 || dynamic_array[ni.number - 1] != 543);
7309
7310 ;
7311 return 0;
7312}
7313_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007314for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007315do
7316 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007317 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007318 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007319fi
cristy3ed852e2009-09-05 21:47:34 +00007320rm -f core conftest.err conftest.$ac_objext
7321 test "x$ac_cv_prog_cc_c99" != "xno" && break
7322done
7323rm -f conftest.$ac_ext
7324CC=$ac_save_CC
7325
7326fi
7327# AC_CACHE_VAL
7328case "x$ac_cv_prog_cc_c99" in
7329 x)
cristy8b350f62009-11-15 23:12:43 +00007330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007331$as_echo "none needed" >&6; } ;;
7332 xno)
cristy8b350f62009-11-15 23:12:43 +00007333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007334$as_echo "unsupported" >&6; } ;;
7335 *)
7336 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007338$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7339esac
cristy8b350f62009-11-15 23:12:43 +00007340if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007341 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7342else
cristy8b350f62009-11-15 23:12:43 +00007343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007344$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007345if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007346 $as_echo_n "(cached) " >&6
7347else
7348 ac_cv_prog_cc_c89=no
7349ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007351/* end confdefs.h. */
7352#include <stdarg.h>
7353#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007354struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7356struct buf { int x; };
7357FILE * (*rcsopen) (struct buf *, struct stat *, int);
7358static char *e (p, i)
7359 char **p;
7360 int i;
7361{
7362 return p[i];
7363}
7364static char *f (char * (*g) (char **, int), char **p, ...)
7365{
7366 char *s;
7367 va_list v;
7368 va_start (v,p);
7369 s = g (p, va_arg (v,int));
7370 va_end (v);
7371 return s;
7372}
7373
7374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7375 function prototypes and stuff, but not '\xHH' hex character constants.
7376 These don't provoke an error unfortunately, instead are silently treated
7377 as 'x'. The following induces an error, until -std is added to get
7378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7379 array size at least. It's necessary to write '\x00'==0 to get something
7380 that's true only with -std. */
7381int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7382
7383/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7384 inside strings and character constants. */
7385#define FOO(x) 'x'
7386int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7387
7388int test (int i, double x);
7389struct s1 {int (*f) (int a);};
7390struct s2 {int (*f) (double a);};
7391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7392int argc;
7393char **argv;
7394int
7395main ()
7396{
7397return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7398 ;
7399 return 0;
7400}
7401_ACEOF
7402for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7404do
7405 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007406 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007407 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007408fi
cristy3ed852e2009-09-05 21:47:34 +00007409rm -f core conftest.err conftest.$ac_objext
7410 test "x$ac_cv_prog_cc_c89" != "xno" && break
7411done
7412rm -f conftest.$ac_ext
7413CC=$ac_save_CC
7414
7415fi
7416# AC_CACHE_VAL
7417case "x$ac_cv_prog_cc_c89" in
7418 x)
cristy8b350f62009-11-15 23:12:43 +00007419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007420$as_echo "none needed" >&6; } ;;
7421 xno)
cristy8b350f62009-11-15 23:12:43 +00007422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007423$as_echo "unsupported" >&6; } ;;
7424 *)
7425 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007427$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7428esac
cristy8b350f62009-11-15 23:12:43 +00007429if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7431else
7432 ac_cv_prog_cc_stdc=no
7433fi
7434
cristy3ed852e2009-09-05 21:47:34 +00007435fi
cristy3ed852e2009-09-05 21:47:34 +00007436 ;;
7437esac
cristy8b350f62009-11-15 23:12:43 +00007438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007439$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007440 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007441 $as_echo_n "(cached) " >&6
7442fi
7443
cristy8b350f62009-11-15 23:12:43 +00007444 case $ac_cv_prog_cc_stdc in #(
7445 no) :
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7447$as_echo "unsupported" >&6; } ;; #(
7448 '') :
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7450$as_echo "none needed" >&6; } ;; #(
7451 *) :
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007453$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7454esac
7455
cristy3ed852e2009-09-05 21:47:34 +00007456ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking how to run the C preprocessor... " >&6; }
7463# On Suns, sometimes $CPP names a directory.
7464if test -n "$CPP" && test -d "$CPP"; then
7465 CPP=
7466fi
7467if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007468 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007469 $as_echo_n "(cached) " >&6
7470else
7471 # Double quotes because CPP needs to be expanded
7472 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7473 do
7474 ac_preproc_ok=false
7475for ac_c_preproc_warn_flag in '' yes
7476do
7477 # Use a header file that comes with gcc, so configuring glibc
7478 # with a fresh cross-compiler works.
7479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 # <limits.h> exists even on freestanding compilers.
7481 # On the NeXT, cc -E runs the code through the compiler's parser,
7482 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007484/* end confdefs.h. */
7485#ifdef __STDC__
7486# include <limits.h>
7487#else
7488# include <assert.h>
7489#endif
7490 Syntax error
7491_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007492if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007493
cristy8b350f62009-11-15 23:12:43 +00007494else
cristy3ed852e2009-09-05 21:47:34 +00007495 # Broken: fails on valid input.
7496continue
7497fi
cristyda16f162011-02-19 23:52:17 +00007498rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007499
7500 # OK, works on sane cases. Now check whether nonexistent headers
7501 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007503/* end confdefs.h. */
7504#include <ac_nonexistent.h>
7505_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007506if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007507 # Broken: success on invalid input.
7508continue
7509else
cristy3ed852e2009-09-05 21:47:34 +00007510 # Passes both tests.
7511ac_preproc_ok=:
7512break
7513fi
cristyda16f162011-02-19 23:52:17 +00007514rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007515
7516done
7517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007518rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007519if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007520 break
7521fi
7522
7523 done
7524 ac_cv_prog_CPP=$CPP
7525
7526fi
7527 CPP=$ac_cv_prog_CPP
7528else
7529 ac_cv_prog_CPP=$CPP
7530fi
cristy8b350f62009-11-15 23:12:43 +00007531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007532$as_echo "$CPP" >&6; }
7533ac_preproc_ok=false
7534for ac_c_preproc_warn_flag in '' yes
7535do
7536 # Use a header file that comes with gcc, so configuring glibc
7537 # with a fresh cross-compiler works.
7538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7539 # <limits.h> exists even on freestanding compilers.
7540 # On the NeXT, cc -E runs the code through the compiler's parser,
7541 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007543/* end confdefs.h. */
7544#ifdef __STDC__
7545# include <limits.h>
7546#else
7547# include <assert.h>
7548#endif
7549 Syntax error
7550_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007551if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007552
cristy8b350f62009-11-15 23:12:43 +00007553else
cristy3ed852e2009-09-05 21:47:34 +00007554 # Broken: fails on valid input.
7555continue
7556fi
cristyda16f162011-02-19 23:52:17 +00007557rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007558
7559 # OK, works on sane cases. Now check whether nonexistent headers
7560 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007562/* end confdefs.h. */
7563#include <ac_nonexistent.h>
7564_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007565if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007566 # Broken: success on invalid input.
7567continue
7568else
cristy3ed852e2009-09-05 21:47:34 +00007569 # Passes both tests.
7570ac_preproc_ok=:
7571break
7572fi
cristyda16f162011-02-19 23:52:17 +00007573rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007574
7575done
7576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007577rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007578if $ac_preproc_ok; then :
7579
cristy3ed852e2009-09-05 21:47:34 +00007580else
cristy8b350f62009-11-15 23:12:43 +00007581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007583as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7584See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007585fi
7586
7587ac_ext=c
7588ac_cpp='$CPP $CPPFLAGS'
7589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7591ac_compiler_gnu=$ac_cv_c_compiler_gnu
7592
cristy73bd4a52010-10-05 11:24:23 +00007593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7594$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007595if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007596 $as_echo_n "(cached) " >&6
7597else
7598 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7599 for ac_i in 1 2 3 4 5 6 7; do
7600 ac_script="$ac_script$as_nl$ac_script"
7601 done
7602 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7603 { ac_script=; unset ac_script;}
7604 if test -z "$SED"; then
7605 ac_path_SED_found=false
7606 # Loop through the user's path and test for each of PROGNAME-LIST
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_prog in sed gsed; do
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007615 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007616# Check for GNU ac_path_SED and select it if it is found.
7617 # Check for GNU $ac_path_SED
7618case `"$ac_path_SED" --version 2>&1` in
7619*GNU*)
7620 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7621*)
7622 ac_count=0
7623 $as_echo_n 0123456789 >"conftest.in"
7624 while :
7625 do
7626 cat "conftest.in" "conftest.in" >"conftest.tmp"
7627 mv "conftest.tmp" "conftest.in"
7628 cp "conftest.in" "conftest.nl"
7629 $as_echo '' >> "conftest.nl"
7630 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7632 as_fn_arith $ac_count + 1 && ac_count=$as_val
7633 if test $ac_count -gt ${ac_path_SED_max-0}; then
7634 # Best one so far, save it but keep looking for a better one
7635 ac_cv_path_SED="$ac_path_SED"
7636 ac_path_SED_max=$ac_count
7637 fi
7638 # 10*(2^10) chars as input seems more than enough
7639 test $ac_count -gt 10 && break
7640 done
7641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7642esac
7643
7644 $ac_path_SED_found && break 3
7645 done
7646 done
7647 done
7648IFS=$as_save_IFS
7649 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007650 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007651 fi
7652else
7653 ac_cv_path_SED=$SED
7654fi
7655
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7658$as_echo "$ac_cv_path_SED" >&6; }
7659 SED="$ac_cv_path_SED"
7660 rm -f conftest.sed
7661
7662test -z "$SED" && SED=sed
7663Xsed="$SED -e 1s/^X//"
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7676$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007677if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007678 $as_echo_n "(cached) " >&6
7679else
7680 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7681 then ac_cv_path_FGREP="$GREP -F"
7682 else
7683 if test -z "$FGREP"; then
7684 ac_path_FGREP_found=false
7685 # Loop through the user's path and test for each of PROGNAME-LIST
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_prog in fgrep; do
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007694 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007695# Check for GNU ac_path_FGREP and select it if it is found.
7696 # Check for GNU $ac_path_FGREP
7697case `"$ac_path_FGREP" --version 2>&1` in
7698*GNU*)
7699 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7700*)
7701 ac_count=0
7702 $as_echo_n 0123456789 >"conftest.in"
7703 while :
7704 do
7705 cat "conftest.in" "conftest.in" >"conftest.tmp"
7706 mv "conftest.tmp" "conftest.in"
7707 cp "conftest.in" "conftest.nl"
7708 $as_echo 'FGREP' >> "conftest.nl"
7709 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7711 as_fn_arith $ac_count + 1 && ac_count=$as_val
7712 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7713 # Best one so far, save it but keep looking for a better one
7714 ac_cv_path_FGREP="$ac_path_FGREP"
7715 ac_path_FGREP_max=$ac_count
7716 fi
7717 # 10*(2^10) chars as input seems more than enough
7718 test $ac_count -gt 10 && break
7719 done
7720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7721esac
7722
7723 $ac_path_FGREP_found && break 3
7724 done
7725 done
7726 done
7727IFS=$as_save_IFS
7728 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007729 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007730 fi
7731else
7732 ac_cv_path_FGREP=$FGREP
7733fi
7734
7735 fi
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7738$as_echo "$ac_cv_path_FGREP" >&6; }
7739 FGREP="$ac_cv_path_FGREP"
7740
7741
7742test -z "$GREP" && GREP=grep
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
cristy0c60a692010-11-04 01:09:47 +00007760ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7761ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7762ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7763
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7765$as_echo_n "checking how to print strings... " >&6; }
7766# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007767if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007768 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7769 ECHO='print -r --'
7770elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7771 ECHO='printf %s\n'
7772else
7773 # Use this function as a fallback that always works.
7774 func_fallback_echo ()
7775 {
7776 eval 'cat <<_LTECHO_EOF
7777$1
7778_LTECHO_EOF'
7779 }
7780 ECHO='func_fallback_echo'
7781fi
7782
7783# func_echo_all arg...
7784# Invoke $ECHO with all args, space-separated.
7785func_echo_all ()
7786{
7787 $ECHO ""
7788}
7789
7790case "$ECHO" in
7791 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7792$as_echo "printf" >&6; } ;;
7793 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7794$as_echo "print -r" >&6; } ;;
7795 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7796$as_echo "cat" >&6; } ;;
7797esac
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
cristy73bd4a52010-10-05 11:24:23 +00007812
7813
7814# Check whether --with-gnu-ld was given.
7815if test "${with_gnu_ld+set}" = set; then :
7816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7817else
7818 with_gnu_ld=no
7819fi
7820
7821ac_prog=ld
7822if test "$GCC" = yes; then
7823 # Check if gcc -print-prog-name=ld gives a path.
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7825$as_echo_n "checking for ld used by $CC... " >&6; }
7826 case $host in
7827 *-*-mingw*)
7828 # gcc leaves a trailing carriage return which upsets mingw
7829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7830 *)
7831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7832 esac
7833 case $ac_prog in
7834 # Accept absolute paths.
7835 [\\/]* | ?:[\\/]*)
7836 re_direlt='/[^/][^/]*/\.\./'
7837 # Canonicalize the pathname of ld
7838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7841 done
7842 test -z "$LD" && LD="$ac_prog"
7843 ;;
7844 "")
7845 # If it fails, then pretend we aren't using GCC.
7846 ac_prog=ld
7847 ;;
7848 *)
7849 # If it is relative, then search for the first ld in PATH.
7850 with_gnu_ld=unknown
7851 ;;
7852 esac
7853elif test "$with_gnu_ld" = yes; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7855$as_echo_n "checking for GNU ld... " >&6; }
7856else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7858$as_echo_n "checking for non-GNU ld... " >&6; }
7859fi
cristyda16f162011-02-19 23:52:17 +00007860if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007861 $as_echo_n "(cached) " >&6
7862else
7863 if test -z "$LD"; then
7864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7865 for ac_dir in $PATH; do
7866 IFS="$lt_save_ifs"
7867 test -z "$ac_dir" && ac_dir=.
7868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7869 lt_cv_path_LD="$ac_dir/$ac_prog"
7870 # Check to see if the program is GNU ld. I'd rather use --version,
7871 # but apparently some variants of GNU ld only accept -v.
7872 # Break only if it was the GNU/non-GNU ld that we prefer.
7873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7874 *GNU* | *'with BFD'*)
7875 test "$with_gnu_ld" != no && break
7876 ;;
7877 *)
7878 test "$with_gnu_ld" != yes && break
7879 ;;
7880 esac
7881 fi
7882 done
7883 IFS="$lt_save_ifs"
7884else
7885 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7886fi
7887fi
7888
7889LD="$lt_cv_path_LD"
7890if test -n "$LD"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7892$as_echo "$LD" >&6; }
7893else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
cristy98dddb52010-11-04 00:30:15 +00007897test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7899$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007900if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007901 $as_echo_n "(cached) " >&6
7902else
7903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7904case `$LD -v 2>&1 </dev/null` in
7905*GNU* | *'with BFD'*)
7906 lt_cv_prog_gnu_ld=yes
7907 ;;
7908*)
7909 lt_cv_prog_gnu_ld=no
7910 ;;
7911esac
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7914$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7915with_gnu_ld=$lt_cv_prog_gnu_ld
7916
7917
7918
7919
7920
7921
7922
7923
7924
cristy3ed852e2009-09-05 21:47:34 +00007925
cristy837d6dc2010-02-27 01:16:57 +00007926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7927$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007928if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007929 $as_echo_n "(cached) " >&6
7930else
7931 ac_cv_prog_cc_c99=no
7932ac_save_CC=$CC
7933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h. */
7935#include <stdarg.h>
7936#include <stdbool.h>
7937#include <stdlib.h>
7938#include <wchar.h>
7939#include <stdio.h>
7940
7941// Check varargs macros. These examples are taken from C99 6.10.3.5.
7942#define debug(...) fprintf (stderr, __VA_ARGS__)
7943#define showlist(...) puts (#__VA_ARGS__)
7944#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7945static void
7946test_varargs_macros (void)
7947{
7948 int x = 1234;
7949 int y = 5678;
7950 debug ("Flag");
7951 debug ("X = %d\n", x);
7952 showlist (The first, second, and third items.);
7953 report (x>y, "x is %d but y is %d", x, y);
7954}
7955
7956// Check long long types.
7957#define BIG64 18446744073709551615ull
7958#define BIG32 4294967295ul
7959#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7960#if !BIG_OK
7961 your preprocessor is broken;
7962#endif
7963#if BIG_OK
7964#else
7965 your preprocessor is broken;
7966#endif
7967static long long int bignum = -9223372036854775807LL;
7968static unsigned long long int ubignum = BIG64;
7969
7970struct incomplete_array
7971{
7972 int datasize;
7973 double data[];
7974};
7975
7976struct named_init {
7977 int number;
7978 const wchar_t *name;
7979 double average;
7980};
7981
7982typedef const char *ccp;
7983
7984static inline int
7985test_restrict (ccp restrict text)
7986{
7987 // See if C++-style comments work.
7988 // Iterate through items via the restricted pointer.
7989 // Also check for declarations in for loops.
7990 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7991 continue;
7992 return 0;
7993}
7994
7995// Check varargs and va_copy.
7996static void
7997test_varargs (const char *format, ...)
7998{
7999 va_list args;
8000 va_start (args, format);
8001 va_list args_copy;
8002 va_copy (args_copy, args);
8003
8004 const char *str;
8005 int number;
8006 float fnumber;
8007
8008 while (*format)
8009 {
8010 switch (*format++)
8011 {
8012 case 's': // string
8013 str = va_arg (args_copy, const char *);
8014 break;
8015 case 'd': // int
8016 number = va_arg (args_copy, int);
8017 break;
8018 case 'f': // float
8019 fnumber = va_arg (args_copy, double);
8020 break;
8021 default:
8022 break;
8023 }
8024 }
8025 va_end (args_copy);
8026 va_end (args);
8027}
8028
8029int
8030main ()
8031{
8032
8033 // Check bool.
8034 _Bool success = false;
8035
8036 // Check restrict.
8037 if (test_restrict ("String literal") == 0)
8038 success = true;
8039 char *restrict newvar = "Another string";
8040
8041 // Check varargs.
8042 test_varargs ("s, d' f .", "string", 65, 34.234);
8043 test_varargs_macros ();
8044
8045 // Check flexible array members.
8046 struct incomplete_array *ia =
8047 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8048 ia->datasize = 10;
8049 for (int i = 0; i < ia->datasize; ++i)
8050 ia->data[i] = i * 1.234;
8051
8052 // Check named initializers.
8053 struct named_init ni = {
8054 .number = 34,
8055 .name = L"Test wide string",
8056 .average = 543.34343,
8057 };
8058
8059 ni.number = 58;
8060
8061 int dynamic_array[ni.number];
8062 dynamic_array[ni.number - 1] = 543;
8063
8064 // work around unused variable warnings
8065 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8066 || dynamic_array[ni.number - 1] != 543);
8067
8068 ;
8069 return 0;
8070}
8071_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008072for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008073do
8074 CC="$ac_save_CC $ac_arg"
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 ac_cv_prog_cc_c99=$ac_arg
8077fi
8078rm -f core conftest.err conftest.$ac_objext
8079 test "x$ac_cv_prog_cc_c99" != "xno" && break
8080done
8081rm -f conftest.$ac_ext
8082CC=$ac_save_CC
8083
8084fi
8085# AC_CACHE_VAL
8086case "x$ac_cv_prog_cc_c99" in
8087 x)
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8089$as_echo "none needed" >&6; } ;;
8090 xno)
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8092$as_echo "unsupported" >&6; } ;;
8093 *)
8094 CC="$CC $ac_cv_prog_cc_c99"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8096$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8097esac
8098if test "x$ac_cv_prog_cc_c99" != xno; then :
8099
8100fi
8101
8102
cristy73bd4a52010-10-05 11:24:23 +00008103
cristy17491be2014-06-24 01:10:53 +00008104ac_ext=c
8105ac_cpp='$CPP $CPPFLAGS'
8106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8108ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109
cristy73bd4a52010-10-05 11:24:23 +00008110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8111$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008112if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008113 $as_echo_n "(cached) " >&6
8114else
8115 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008116ac_save_CFLAGS="$CFLAGS"
8117for 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 +00008118do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h. */
8121
8122int
8123main ()
8124{
cristy24fc1fe2010-10-23 21:13:01 +00008125
cristy73bd4a52010-10-05 11:24:23 +00008126 ;
8127 return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_compile "$LINENO"; then :
8131 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8132fi
8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134done
cristy17491be2014-06-24 01:10:53 +00008135CFLAGS="$ac_save_CFLAGS"
8136
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8139$as_echo "$ac_cv_cflags_warn_all" >&6; }
8140
8141
8142case ".$ac_cv_cflags_warn_all" in
8143 .ok|.ok,*) ;;
8144 .|.no|.no,*) ;;
8145 *) if ${CFLAGS+:} false; then :
8146 case " $CFLAGS " in
8147 *" $ac_cv_cflags_warn_all "*)
8148 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8149 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8150 ac_status=$?
8151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8152 test $ac_status = 0; }
8153 ;;
8154 *)
8155 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8156 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8157 ac_status=$?
8158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8159 test $ac_status = 0; }
8160 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8161 ;;
8162 esac
8163else
8164 CFLAGS="$ac_cv_cflags_warn_all"
8165fi
8166 ;;
8167esac
8168
8169ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008170ac_cpp='$CPP $CPPFLAGS'
8171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173ac_compiler_gnu=$ac_cv_c_compiler_gnu
8174
8175
cristya0b81c32010-01-22 02:54:33 +00008176
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8178$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8179set x ${MAKE-make}
8180ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008181if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008182 $as_echo_n "(cached) " >&6
8183else
8184 cat >conftest.make <<\_ACEOF
8185SHELL = /bin/sh
8186all:
8187 @echo '@@@%%%=$(MAKE)=@@@%%%'
8188_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008189# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008190case `${MAKE-make} -f conftest.make 2>/dev/null` in
8191 *@@@%%%=?*=@@@%%%*)
8192 eval ac_cv_prog_make_${ac_make}_set=yes;;
8193 *)
8194 eval ac_cv_prog_make_${ac_make}_set=no;;
8195esac
8196rm -f conftest.make
8197fi
8198if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8200$as_echo "yes" >&6; }
8201 SET_MAKE=
8202else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205 SET_MAKE="MAKE=${MAKE-make}"
8206fi
8207
cristy8b350f62009-11-15 23:12:43 +00008208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008209$as_echo_n "checking whether ln -s works... " >&6; }
8210LN_S=$as_ln_s
8211if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008213$as_echo "yes" >&6; }
8214else
cristy8b350f62009-11-15 23:12:43 +00008215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008216$as_echo "no, using $LN_S" >&6; }
8217fi
8218
cristy8d0ff762013-03-10 20:33:28 +00008219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8220$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8221if ${ac_cv_path_SED+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8225 for ac_i in 1 2 3 4 5 6 7; do
8226 ac_script="$ac_script$as_nl$ac_script"
8227 done
8228 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8229 { ac_script=; unset ac_script;}
8230 if test -z "$SED"; then
8231 ac_path_SED_found=false
8232 # Loop through the user's path and test for each of PROGNAME-LIST
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_prog in sed gsed; do
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8241 as_fn_executable_p "$ac_path_SED" || continue
8242# Check for GNU ac_path_SED and select it if it is found.
8243 # Check for GNU $ac_path_SED
8244case `"$ac_path_SED" --version 2>&1` in
8245*GNU*)
8246 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8247*)
8248 ac_count=0
8249 $as_echo_n 0123456789 >"conftest.in"
8250 while :
8251 do
8252 cat "conftest.in" "conftest.in" >"conftest.tmp"
8253 mv "conftest.tmp" "conftest.in"
8254 cp "conftest.in" "conftest.nl"
8255 $as_echo '' >> "conftest.nl"
8256 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8258 as_fn_arith $ac_count + 1 && ac_count=$as_val
8259 if test $ac_count -gt ${ac_path_SED_max-0}; then
8260 # Best one so far, save it but keep looking for a better one
8261 ac_cv_path_SED="$ac_path_SED"
8262 ac_path_SED_max=$ac_count
8263 fi
8264 # 10*(2^10) chars as input seems more than enough
8265 test $ac_count -gt 10 && break
8266 done
8267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8268esac
8269
8270 $ac_path_SED_found && break 3
8271 done
8272 done
8273 done
8274IFS=$as_save_IFS
8275 if test -z "$ac_cv_path_SED"; then
8276 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8277 fi
8278else
8279 ac_cv_path_SED=$SED
8280fi
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8284$as_echo "$ac_cv_path_SED" >&6; }
8285 SED="$ac_cv_path_SED"
8286 rm -f conftest.sed
8287
cristybc556452012-08-17 19:44:03 +00008288for ac_prog in gawk mawk nawk awk
8289do
8290 # Extract the first word of "$ac_prog", so it can be a program name with args.
8291set dummy $ac_prog; ac_word=$2
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
8294if ${ac_cv_prog_AWK+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296else
8297 if test -n "$AWK"; then
8298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_AWK="$ac_prog"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312 done
8313IFS=$as_save_IFS
8314
8315fi
8316fi
8317AWK=$ac_cv_prog_AWK
8318if test -n "$AWK"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8320$as_echo "$AWK" >&6; }
8321else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
8326
8327 test -n "$AWK" && break
8328done
8329
cristy73bd4a52010-10-05 11:24:23 +00008330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8331$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8332
8333# Check whether --with-dmalloc was given.
8334if test "${with_dmalloc+set}" = set; then :
8335 withval=$with_dmalloc; if test "$withval" = yes; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8337$as_echo "yes" >&6; }
8338
8339$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8340
8341 LIBS="$LIBS -ldmalloc"
8342 LDFLAGS="$LDFLAGS -g"
8343else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8355$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008356if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008357 $as_echo_n "(cached) " >&6
8358else
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h. */
8361#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008362 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008363 static void
8364 foo(void) {
8365 exit(1);
8366 }
8367
8368int
8369main ()
8370{
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_compile "$LINENO"; then :
8377 ax_cv___attribute__=yes
8378else
8379 ax_cv___attribute__=no
8380
8381fi
8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8386$as_echo "$ax_cv___attribute__" >&6; }
8387 if test "$ax_cv___attribute__" = "yes"; then
8388
8389$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8390
8391 fi
8392
8393
8394
cristya0459972013-11-03 18:09:35 +00008395
8396
cristy17491be2014-06-24 01:10:53 +00008397
cristya0459972013-11-03 18:09:35 +00008398# Check whether --with-gcc-arch was given.
8399if test "${with_gcc_arch+set}" = set; then :
8400 withval=$with_gcc_arch; ax_gcc_arch=$withval
8401else
cristy17491be2014-06-24 01:10:53 +00008402 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008403fi
8404
8405
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8407$as_echo_n "checking for gcc architecture flag... " >&6; }
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8409$as_echo "" >&6; }
8410if ${ax_cv_gcc_archflag+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413
8414ax_cv_gcc_archflag="unknown"
8415
8416if test "$GCC" = yes; then
8417
8418if test "x$ax_gcc_arch" = xyes; then
8419ax_gcc_arch=""
8420if test "$cross_compiling" = no; then
8421case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008422 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008423
8424ac_ext=c
8425ac_cpp='$CPP $CPPFLAGS'
8426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8428ac_compiler_gnu=$ac_cv_c_compiler_gnu
8429
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8431$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8432if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434else
8435 if test "$cross_compiling" = yes; then :
8436 ax_cv_gcc_x86_cpuid_0=unknown
8437else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h. */
8440#include <stdio.h>
8441int
8442main ()
8443{
8444
8445 int op = 0, eax, ebx, ecx, edx;
8446 FILE *f;
8447 __asm__("cpuid"
8448 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8449 : "a" (op));
8450 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8451 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8452 fclose(f);
8453 return 0;
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_run "$LINENO"; then :
8460 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8461else
8462 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8463fi
8464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8465 conftest.$ac_objext conftest.beam conftest.$ac_ext
8466fi
8467
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8470$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8471ac_ext=c
8472ac_cpp='$CPP $CPPFLAGS'
8473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8475ac_compiler_gnu=$ac_cv_c_compiler_gnu
8476
8477
8478
8479ac_ext=c
8480ac_cpp='$CPP $CPPFLAGS'
8481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8483ac_compiler_gnu=$ac_cv_c_compiler_gnu
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8486$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8487if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489else
8490 if test "$cross_compiling" = yes; then :
8491 ax_cv_gcc_x86_cpuid_1=unknown
8492else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h. */
8495#include <stdio.h>
8496int
8497main ()
8498{
8499
8500 int op = 1, eax, ebx, ecx, edx;
8501 FILE *f;
8502 __asm__("cpuid"
8503 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8504 : "a" (op));
8505 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8506 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8507 fclose(f);
8508 return 0;
8509
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514if ac_fn_c_try_run "$LINENO"; then :
8515 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8516else
8517 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8518fi
8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8520 conftest.$ac_objext conftest.beam conftest.$ac_ext
8521fi
8522
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8525$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8526ac_ext=c
8527ac_cpp='$CPP $CPPFLAGS'
8528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531
8532
8533 case $ax_cv_gcc_x86_cpuid_0 in
8534 *:756e6547:*:*) # Intel
8535 case $ax_cv_gcc_x86_cpuid_1 in
8536 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8537 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008538 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8539 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8540 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8541 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008542 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8543 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8544 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8545 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8546 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8547 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8548 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8549 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8550 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008551 case $host_cpu in
8552 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8553 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8554 esac ;;
cristy17491be2014-06-24 01:10:53 +00008555 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008556 esac ;;
8557 *:68747541:*:*) # AMD
8558 case $ax_cv_gcc_x86_cpuid_1 in
8559 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8560 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8561 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8562 *60?:*:*:*) ax_gcc_arch=k7 ;;
8563 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8564 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8565 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8566 *6[68a]?:*:*:*)
8567
8568ac_ext=c
8569ac_cpp='$CPP $CPPFLAGS'
8570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8572ac_compiler_gnu=$ac_cv_c_compiler_gnu
8573
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8575$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8576if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578else
8579 if test "$cross_compiling" = yes; then :
8580 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8581else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583/* end confdefs.h. */
8584#include <stdio.h>
8585int
8586main ()
8587{
8588
8589 int op = 0x80000006, eax, ebx, ecx, edx;
8590 FILE *f;
8591 __asm__("cpuid"
8592 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8593 : "a" (op));
8594 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8595 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8596 fclose(f);
8597 return 0;
8598
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603if ac_fn_c_try_run "$LINENO"; then :
8604 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8605else
8606 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8607fi
8608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8609 conftest.$ac_objext conftest.beam conftest.$ac_ext
8610fi
8611
8612fi
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8614$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8615ac_ext=c
8616ac_cpp='$CPP $CPPFLAGS'
8617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619ac_compiler_gnu=$ac_cv_c_compiler_gnu
8620
8621 # L2 cache size
8622 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8623 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8624 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8625 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8626 esac ;;
cristy17491be2014-06-24 01:10:53 +00008627 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8628 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8629 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8630 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8631 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8632 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8633 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008634 esac ;;
8635 *:746e6543:*:*) # IDT
8636 case $ax_cv_gcc_x86_cpuid_1 in
8637 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8638 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8639 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8640 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8641 esac ;;
8642 esac
8643 if test x"$ax_gcc_arch" = x; then # fallback
8644 case $host_cpu in
8645 i586*) ax_gcc_arch=pentium ;;
8646 i686*) ax_gcc_arch=pentiumpro ;;
8647 esac
8648 fi
8649 ;;
8650
8651 sparc*)
8652 # Extract the first word of "prtdiag", so it can be a program name with args.
8653set dummy prtdiag; ac_word=$2
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655$as_echo_n "checking for $ac_word... " >&6; }
8656if ${ac_cv_path_PRTDIAG+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658else
8659 case $PRTDIAG in
8660 [\\/]* | ?:[\\/]*)
8661 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8662 ;;
8663 *)
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8666for as_dir in $as_dummy
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676done
8677 done
8678IFS=$as_save_IFS
8679
8680 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8681 ;;
8682esac
8683fi
8684PRTDIAG=$ac_cv_path_PRTDIAG
8685if test -n "$PRTDIAG"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8687$as_echo "$PRTDIAG" >&6; }
8688else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
8691fi
8692
8693
8694 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 +00008695 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008696 case $cputype in
8697 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8698 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8699 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8700 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8701 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8702 *cypress*) ax_gcc_arch=cypress ;;
8703 esac ;;
8704
8705 alphaev5) ax_gcc_arch=ev5 ;;
8706 alphaev56) ax_gcc_arch=ev56 ;;
8707 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8708 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8709 alphaev6) ax_gcc_arch=ev6 ;;
8710 alphaev67) ax_gcc_arch=ev67 ;;
8711 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8712 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8713 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8714 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8715
8716 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008717 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`
8718 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008719 case $cputype in
8720 *750*) ax_gcc_arch="750 G3" ;;
8721 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8722 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8723 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8724 *970*) ax_gcc_arch="970 G5 power4";;
8725 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8726 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8727 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8728 *) ax_gcc_arch=$cputype ;;
8729 esac
8730 ax_gcc_arch="$ax_gcc_arch powerpc"
8731 ;;
8732esac
8733fi # not cross-compiling
8734fi # guess arch
8735
8736if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8737for arch in $ax_gcc_arch; do
8738 if test "xno" = xyes; then # if we require portable code
8739 flags="-mtune=$arch"
8740 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8741 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8742 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8743 else
8744 flags="-march=$arch -mcpu=$arch -m$arch"
8745 fi
8746 for flag in $flags; do
8747 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8749$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8750if eval \${$as_CACHEVAR+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752else
8753
8754 ax_check_save_flags=$CFLAGS
8755 CFLAGS="$CFLAGS $flag"
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h. */
8758
8759int
8760main ()
8761{
8762
8763 ;
8764 return 0;
8765}
8766_ACEOF
8767if ac_fn_c_try_compile "$LINENO"; then :
8768 eval "$as_CACHEVAR=yes"
8769else
8770 eval "$as_CACHEVAR=no"
8771fi
8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773 CFLAGS=$ax_check_save_flags
8774fi
8775eval ac_res=\$$as_CACHEVAR
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8777$as_echo "$ac_res" >&6; }
8778if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8779 ax_cv_gcc_archflag=$flag; break
8780else
8781 :
8782fi
8783
8784 done
8785 test "x$ax_cv_gcc_archflag" = xunknown || break
8786done
8787fi
8788
8789fi # $GCC=yes
8790
8791fi
8792
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8794$as_echo_n "checking for gcc architecture flag... " >&6; }
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8796$as_echo "$ax_cv_gcc_archflag" >&6; }
8797if test "x$ax_cv_gcc_archflag" = xunknown; then
8798 :
8799else
8800 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8801fi
8802
8803
8804
cristy73bd4a52010-10-05 11:24:23 +00008805if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8806 if test -n "$ac_tool_prefix"; then
8807 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8808set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008811if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008812 $as_echo_n "(cached) " >&6
8813else
8814 case $PKG_CONFIG in
8815 [\\/]* | ?:[\\/]*)
8816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8817 ;;
8818 *)
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831 done
8832IFS=$as_save_IFS
8833
8834 ;;
8835esac
8836fi
8837PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8838if test -n "$PKG_CONFIG"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8840$as_echo "$PKG_CONFIG" >&6; }
8841else
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843$as_echo "no" >&6; }
8844fi
8845
8846
8847fi
8848if test -z "$ac_cv_path_PKG_CONFIG"; then
8849 ac_pt_PKG_CONFIG=$PKG_CONFIG
8850 # Extract the first word of "pkg-config", so it can be a program name with args.
8851set dummy pkg-config; ac_word=$2
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008854if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008855 $as_echo_n "(cached) " >&6
8856else
8857 case $ac_pt_PKG_CONFIG in
8858 [\\/]* | ?:[\\/]*)
8859 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8860 ;;
8861 *)
8862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863for as_dir in $PATH
8864do
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
8867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008869 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 break 2
8872 fi
8873done
8874 done
8875IFS=$as_save_IFS
8876
8877 ;;
8878esac
8879fi
8880ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8881if test -n "$ac_pt_PKG_CONFIG"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8883$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8884else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
8887fi
8888
8889 if test "x$ac_pt_PKG_CONFIG" = x; then
8890 PKG_CONFIG=""
8891 else
8892 case $cross_compiling:$ac_tool_warned in
8893yes:)
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8896ac_tool_warned=yes ;;
8897esac
8898 PKG_CONFIG=$ac_pt_PKG_CONFIG
8899 fi
8900else
8901 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8902fi
8903
8904fi
8905if test -n "$PKG_CONFIG"; then
8906 _pkg_min_version=0.9.0
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8908$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8909 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8911$as_echo "yes" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914$as_echo "no" >&6; }
8915 PKG_CONFIG=""
8916 fi
8917
8918fi
cristy3ed852e2009-09-05 21:47:34 +00008919
cristy9af1cbf2014-12-28 22:03:09 +00008920
8921
cristyd95b7a52013-10-23 13:12:53 +00008922# Test for 64-bit build.
8923# The cast to long int works around a bug in the HP C Compiler
8924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8926# This bug is HP SR number 8606223364.
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8928$as_echo_n "checking size of size_t... " >&6; }
8929if ${ac_cv_sizeof_size_t+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931else
8932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8933
8934else
8935 if test "$ac_cv_type_size_t" = yes; then
8936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8938as_fn_error 77 "cannot compute sizeof (size_t)
8939See \`config.log' for more details" "$LINENO" 5; }
8940 else
8941 ac_cv_sizeof_size_t=0
8942 fi
8943fi
8944
8945fi
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8947$as_echo "$ac_cv_sizeof_size_t" >&6; }
8948
8949
8950
8951cat >>confdefs.h <<_ACEOF
8952#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8953_ACEOF
8954
8955
8956
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8958$as_echo_n "checking for C compiler vendor... " >&6; }
8959if ${ax_cv_c_compiler_vendor+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961else
8962 # note: don't check for gcc first since some other compilers define __GNUC__
8963 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8964 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8965 pathscale: __PATHCC__,__PATHSCALE__
8966 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00008967 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00008968 gnu: __GNUC__
8969 sun: __SUNPRO_C,__SUNPRO_CC
8970 hp: __HP_cc,__HP_aCC
8971 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8972 borland: __BORLANDC__,__TURBOC__
8973 comeau: __COMO__
8974 cray: _CRAYC
8975 kai: __KCC
8976 lcc: __LCC__
8977 sgi: __sgi,sgi
8978 microsoft: _MSC_VER
8979 metrowerks: __MWERKS__
8980 watcom: __WATCOMC__
8981 portland: __PGI
8982 unknown: UNKNOWN"
8983 for ventest in $vendors; do
8984 case $ventest in
8985 *:) vendor=$ventest; continue ;;
8986 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8987 esac
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h. */
8990
8991int
8992main ()
8993{
8994
8995 #if !($vencpp)
8996 thisisanerror;
8997 #endif
8998
8999 ;
9000 return 0;
9001}
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"; then :
9004 break
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 done
9008 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9009
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9012$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9013
cristyd95b7a52013-10-23 13:12:53 +00009014# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9015# compiler.
9016if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009017 ac_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
cristy17491be2014-06-24 01:10:53 +00009023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9024$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9025if ${ac_cv_cflags_warn_all+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027else
9028 ac_cv_cflags_warn_all="no, unknown"
9029ac_save_CFLAGS="$CFLAGS"
9030for 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 +00009031do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034
9035int
9036main ()
9037{
9038
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_compile "$LINENO"; then :
9044 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047done
cristy17491be2014-06-24 01:10:53 +00009048CFLAGS="$ac_save_CFLAGS"
9049
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9052$as_echo "$ac_cv_cflags_warn_all" >&6; }
9053
9054
9055case ".$ac_cv_cflags_warn_all" in
9056 .ok|.ok,*) ;;
9057 .|.no|.no,*) ;;
9058 *) if ${CFLAGS+:} false; then :
9059 case " $CFLAGS " in
9060 *" $ac_cv_cflags_warn_all "*)
9061 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9062 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9063 ac_status=$?
9064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9065 test $ac_status = 0; }
9066 ;;
9067 *)
9068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9069 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9070 ac_status=$?
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; }
9073 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9074 ;;
9075 esac
9076else
9077 CFLAGS="$ac_cv_cflags_warn_all"
9078fi
9079 ;;
9080esac
9081
9082ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009083ac_cpp='$CPP $CPPFLAGS'
9084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9086ac_compiler_gnu=$ac_cv_c_compiler_gnu
9087
9088
9089fi
cristyd95b7a52013-10-23 13:12:53 +00009090
9091if test "x$GCC" = "xyes"; then
9092 CFLAGS="$CFLAGS -fexceptions"
9093 touch local.exp
9094else
9095 cat > local.exp <<EOF
9096set CC_FOR_TARGET "$CC"
9097EOF
9098fi
9099
cristy9b86f202012-11-28 21:55:35 +00009100# Check for linker script support
9101
9102 # Check whether --enable-ld-version-script was given.
9103if test "${enable_ld_version_script+set}" = set; then :
9104 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9105fi
9106
9107 if test -z "$have_ld_version_script"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9109$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9110 save_LDFLAGS="$LDFLAGS"
9111 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9112 cat > conftest.map <<EOF
9113foo
9114EOF
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h. */
9117
9118int
9119main ()
9120{
9121
9122 ;
9123 return 0;
9124}
9125_ACEOF
9126if ac_fn_c_try_link "$LINENO"; then :
9127 accepts_syntax_errors=yes
9128else
9129 accepts_syntax_errors=no
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 if test "$accepts_syntax_errors" = no; then
9134 cat > conftest.map <<EOF
9135VERS_1 {
9136 global: sym;
9137};
9138
9139VERS_2 {
9140 global: sym;
9141} VERS_1;
9142EOF
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h. */
9145
9146int
9147main ()
9148{
9149
9150 ;
9151 return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_link "$LINENO"; then :
9155 have_ld_version_script=yes
9156else
9157 have_ld_version_script=no
9158fi
9159rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9161 else
9162 have_ld_version_script=no
9163 fi
9164 rm -f conftest.map
9165 LDFLAGS="$save_LDFLAGS"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9167$as_echo "$have_ld_version_script" >&6; }
9168 fi
9169 if test "$have_ld_version_script" = "yes"; then
9170 HAVE_LD_VERSION_SCRIPT_TRUE=
9171 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9172else
9173 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9174 HAVE_LD_VERSION_SCRIPT_FALSE=
9175fi
9176
9177
9178
cristy3ed852e2009-09-05 21:47:34 +00009179#
cristy3ed852e2009-09-05 21:47:34 +00009180# Enable run-time checking.
9181#
9182# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009183if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009184 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9185else
9186 enable_bounds_checking='no'
9187fi
9188
9189
9190if test "$enable_bounds_checking" = yes; then
9191
cristy8b350f62009-11-15 23:12:43 +00009192$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009193
9194fi
9195
9196#
9197# Tests for Windows
9198#
9199
9200
9201
9202GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009203native_win32_build='no'
9204cygwin_build='no'
9205case "${host_os}" in
9206 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009207 cygwin_build='yes'
9208 GDI32_LIBS='-lgdi32'
9209 ;;
9210 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009211 native_win32_build='yes'
9212 GDI32_LIBS='-lgdi32'
9213 ;;
9214esac
9215if test "${GDI32_LIBS}x" != 'x'; then
9216
cristy8b350f62009-11-15 23:12:43 +00009217$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009218
9219fi
9220
cristy73bd4a52010-10-05 11:24:23 +00009221 if test "${GDI32_LIBS}x" != 'x' ; then
9222 WINGDI32_DELEGATE_TRUE=
9223 WINGDI32_DELEGATE_FALSE='#'
9224else
9225 WINGDI32_DELEGATE_TRUE='#'
9226 WINGDI32_DELEGATE_FALSE=
9227fi
9228
9229 if test "${native_win32_build}" = 'yes' ; then
9230 WIN32_NATIVE_BUILD_TRUE=
9231 WIN32_NATIVE_BUILD_FALSE='#'
9232else
9233 WIN32_NATIVE_BUILD_TRUE='#'
9234 WIN32_NATIVE_BUILD_FALSE=
9235fi
9236
9237 if test "${cygwin_build}" = 'yes' ; then
9238 CYGWIN_BUILD_TRUE=
9239 CYGWIN_BUILD_FALSE='#'
9240else
9241 CYGWIN_BUILD_TRUE='#'
9242 CYGWIN_BUILD_FALSE=
9243fi
9244
9245 if test "x${CC}" = 'xcl.exe' ; then
9246 USING_CL_TRUE=
9247 USING_CL_FALSE='#'
9248else
9249 USING_CL_TRUE='#'
9250 USING_CL_FALSE=
9251fi
9252
cristy3ed852e2009-09-05 21:47:34 +00009253
9254WinPathScript="${srcdirfull}/winpath.sh"
9255
9256
9257#
9258# Compiler flags tweaks
9259#
9260if test "${GCC}" != "yes"; then
9261 case "${host}" in
9262 *-*-hpux* )
9263 # aCC: HP ANSI C++ B3910B A.03.34
9264 CFLAGS="${CFLAGS} -Wp,-H30000"
9265 if test -n "${CXXFLAGS}"; then
9266 CXXFLAGS='-AA'
9267 else
9268 CXXFLAGS="${CXXFLAGS} -AA"
9269 fi
9270 ;;
9271 *-dec-osf5.* )
9272 # Compaq alphaev68-dec-osf5.1 compiler
9273 if test -n "${CXXFLAGS}"; then
9274 CXXFLAGS='-std strict_ansi -noimplicit_include'
9275 else
9276 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9277 fi
9278 esac
9279fi
9280
9281# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009283$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009284if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009285 $as_echo_n "(cached) " >&6
9286else
9287
9288im_cv_ld_lazyload='none'
9289case "${host}" in
9290 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9291 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9292 im_cv_ld_lazyload='-Wl,-zlazyload'
9293 fi
9294 ;;
9295esac
9296
9297fi
cristy8b350f62009-11-15 23:12:43 +00009298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009299$as_echo "$im_cv_ld_lazyload" >&6; }
9300if test "${im_cv_ld_lazyload}" != 'none' ; then
9301 if test -z "${LDFLAGS}" ; then
9302 LDFLAGS="${im_cv_ld_lazyload}"
9303 else
9304 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9305 fi
9306fi
9307
9308case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009309 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009310 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009311 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009312if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009313 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9314else
9315 build_osxuniversal=no
9316fi
9317
9318
cristyc37574e2013-02-16 01:04:55 +00009319 if test "${build_osxuniversal}" != no ; then
9320 if test "$enable_dependency_tracking" != no ; then
9321 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009322Please re-run configure with these options:
9323 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009324 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009325 fi
9326 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9327 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9328 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009329 fi
9330 ;;
9331esac
9332
cristy0151ae12011-10-28 16:32:29 +00009333#
9334# ARCH specific include directory
9335#
9336
cristy670aa3c2011-11-03 00:54:00 +00009337# Check whether --with-includearch-dir was given.
9338if test "${with_includearch_dir+set}" = set; then :
9339 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009340else
cristy670aa3c2011-11-03 00:54:00 +00009341 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009342fi
9343
9344
cristyd286fd72013-02-24 19:25:33 +00009345eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009346
cristy0151ae12011-10-28 16:32:29 +00009347
9348#
9349# ARCH specific configuration directory
9350#
9351
cristy670aa3c2011-11-03 00:54:00 +00009352# Check whether --with-sharearch-dir was given.
9353if test "${with_sharearch_dir+set}" = set; then :
9354 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009355else
cristy408ebcd2011-11-14 01:36:57 +00009356 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009357fi
9358
9359
cristy670aa3c2011-11-03 00:54:00 +00009360eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009361
cristy0151ae12011-10-28 16:32:29 +00009362
cristy2ec87cc2013-02-18 17:46:50 +00009363# Path to the pkgconfig folder
9364
9365# Check whether --with-pkgconfigdir was given.
9366if test "${with_pkgconfigdir+set}" = set; then :
9367 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9368else
9369 pkgconfigdir='${libdir}/pkgconfig'
9370fi
9371
9372
9373
cristy0151ae12011-10-28 16:32:29 +00009374#
cristy3ed852e2009-09-05 21:47:34 +00009375# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009376#
9377# Find Posix threads library
9378#
cristy3ed852e2009-09-05 21:47:34 +00009379
9380# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009381if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009382 withval=$with_threads; with_threads=$withval
9383else
9384 with_threads='yes'
9385fi
9386
9387
cristy1ae5c992013-07-30 14:55:07 +00009388THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009389have_threads=no
9390if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009391
9392
cristy73bd4a52010-10-05 11:24:23 +00009393ac_ext=c
9394ac_cpp='$CPP $CPPFLAGS'
9395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9397ac_compiler_gnu=$ac_cv_c_compiler_gnu
9398
9399ax_pthread_ok=no
9400
9401# We used to check for pthread.h first, but this fails if pthread.h
9402# requires special compiler flags (e.g. on True64 or Sequent).
9403# It gets checked for in the link test anyway.
9404
9405# First of all, check if the user has set any of the PTHREAD_LIBS,
9406# etcetera environment variables, and if threads linking works using
9407# them:
9408if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9409 save_CFLAGS="$CFLAGS"
9410 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9411 save_LIBS="$LIBS"
9412 LIBS="$PTHREAD_LIBS $LIBS"
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9414$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h. */
9417
9418/* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9421#ifdef __cplusplus
9422extern "C"
9423#endif
9424char pthread_join ();
9425int
9426main ()
9427{
9428return pthread_join ();
9429 ;
9430 return 0;
9431}
9432_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then :
9434 ax_pthread_ok=yes
9435fi
9436rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9439$as_echo "$ax_pthread_ok" >&6; }
9440 if test x"$ax_pthread_ok" = xno; then
9441 PTHREAD_LIBS=""
9442 PTHREAD_CFLAGS=""
9443 fi
9444 LIBS="$save_LIBS"
9445 CFLAGS="$save_CFLAGS"
9446fi
9447
9448# We must check for the threads library under a number of different
9449# names; the ordering is very important because some systems
9450# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9451# libraries is broken (non-POSIX).
9452
9453# Create a list of thread flags to try. Items starting with a "-" are
9454# C compiler flags, and other items are library names, except for "none"
9455# which indicates that we try without any flags at all, and "pthread-config"
9456# which is a program returning the flags for the Pth emulation library.
9457
cristy2ec87cc2013-02-18 17:46:50 +00009458ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009459
9460# The ordering *is* (sometimes) important. Some notes on the
9461# individual items follow:
9462
9463# pthreads: AIX (must check this before -lpthread)
9464# none: in case threads are in libc; should be tried before -Kthread and
9465# other compiler flags to prevent continual compiler warnings
9466# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9467# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9468# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9469# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9470# -pthreads: Solaris/gcc
9471# -mthreads: Mingw32/gcc, Lynx/gcc
9472# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9473# doesn't hurt to check since this sometimes defines pthreads too;
9474# also defines -D_REENTRANT)
9475# ... -mt is also the pthreads flag for HP/aCC
9476# pthread: Linux, etcetera
9477# --thread-safe: KAI C++
9478# pthread-config: use pthread-config program (for GNU Pth library)
9479
cristy2ec87cc2013-02-18 17:46:50 +00009480case ${host_os} in
9481 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009482
9483 # On Solaris (at least, for some versions), libc contains stubbed
9484 # (non-functional) versions of the pthreads routines, so link-based
9485 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9486 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9487 # a function called by this macro, so we could check for that, but
9488 # who knows whether they'll stub that too in a future libc.) So,
9489 # we'll just look for -pthreads and -lpthread first:
9490
9491 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9492 ;;
9493
cristy2ec87cc2013-02-18 17:46:50 +00009494 darwin*)
cristya316db12011-10-24 00:49:45 +00009495 ax_pthread_flags="-pthread $ax_pthread_flags"
9496 ;;
cristy73bd4a52010-10-05 11:24:23 +00009497esac
9498
cristy17491be2014-06-24 01:10:53 +00009499# Clang doesn't consider unrecognized options an error unless we specify
9500# -Werror. We throw in some extra Clang-specific options to ensure that
9501# this doesn't happen for GCC, which also accepts -Werror.
9502
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9504$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9505save_CFLAGS="$CFLAGS"
9506ax_pthread_extra_flags="-Werror"
9507CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h. */
9510int foo(void);
9511int
9512main ()
9513{
9514foo()
9515 ;
9516 return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_compile "$LINENO"; then :
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9521$as_echo "yes" >&6; }
9522else
9523 ax_pthread_extra_flags=
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525$as_echo "no" >&6; }
9526fi
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528CFLAGS="$save_CFLAGS"
9529
cristy73bd4a52010-10-05 11:24:23 +00009530if test x"$ax_pthread_ok" = xno; then
9531for flag in $ax_pthread_flags; do
9532
9533 case $flag in
9534 none)
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9536$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9537 ;;
9538
9539 -*)
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9541$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9542 PTHREAD_CFLAGS="$flag"
9543 ;;
9544
cristya316db12011-10-24 00:49:45 +00009545 pthread-config)
9546 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009547set dummy pthread-config; ac_word=$2
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009550if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009551 $as_echo_n "(cached) " >&6
9552else
9553 if test -n "$ax_pthread_config"; then
9554 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009563 ac_cv_prog_ax_pthread_config="yes"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9566 fi
9567done
9568 done
9569IFS=$as_save_IFS
9570
9571 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9572fi
9573fi
9574ax_pthread_config=$ac_cv_prog_ax_pthread_config
9575if test -n "$ax_pthread_config"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9577$as_echo "$ax_pthread_config" >&6; }
9578else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580$as_echo "no" >&6; }
9581fi
9582
9583
cristya316db12011-10-24 00:49:45 +00009584 if test x"$ax_pthread_config" = xno; then continue; fi
9585 PTHREAD_CFLAGS="`pthread-config --cflags`"
9586 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9587 ;;
cristy73bd4a52010-10-05 11:24:23 +00009588
9589 *)
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9591$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9592 PTHREAD_LIBS="-l$flag"
9593 ;;
9594 esac
9595
9596 save_LIBS="$LIBS"
9597 save_CFLAGS="$CFLAGS"
9598 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009599 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009600
9601 # Check for various functions. We must include pthread.h,
9602 # since some functions may be macros. (On the Sequent, we
9603 # need a special flag -Kthread to make this header compile.)
9604 # We check for pthread_join because it is in -lpthread on IRIX
9605 # while pthread_create is in libc. We check for pthread_attr_init
9606 # due to DEC craziness with -lpthreads. We check for
9607 # pthread_cleanup_push because it is one of the few pthread
9608 # functions on Solaris that doesn't have a non-functional libc stub.
9609 # We try pthread_create on general principles.
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611/* end confdefs.h. */
9612#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009613 static void routine(void *a) { a = 0; }
9614 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009615int
9616main ()
9617{
9618pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009619 pthread_create(&th, 0, start_routine, 0);
9620 pthread_join(th, 0);
9621 pthread_attr_init(&attr);
9622 pthread_cleanup_push(routine, 0);
9623 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009624 ;
9625 return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_link "$LINENO"; then :
9629 ax_pthread_ok=yes
9630fi
9631rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633
9634 LIBS="$save_LIBS"
9635 CFLAGS="$save_CFLAGS"
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9638$as_echo "$ax_pthread_ok" >&6; }
9639 if test "x$ax_pthread_ok" = xyes; then
9640 break;
9641 fi
9642
9643 PTHREAD_LIBS=""
9644 PTHREAD_CFLAGS=""
9645done
9646fi
9647
9648# Various other checks:
9649if test "x$ax_pthread_ok" = xyes; then
9650 save_LIBS="$LIBS"
9651 LIBS="$PTHREAD_LIBS $LIBS"
9652 save_CFLAGS="$CFLAGS"
9653 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9654
9655 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009657$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009658 attr_name=unknown
9659 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009661/* end confdefs.h. */
9662#include <pthread.h>
9663int
9664main ()
9665{
cristya316db12011-10-24 00:49:45 +00009666int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672 attr_name=$attr; break
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009676 done
cristy73bd4a52010-10-05 11:24:23 +00009677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9678$as_echo "$attr_name" >&6; }
9679 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9680
9681cat >>confdefs.h <<_ACEOF
9682#define PTHREAD_CREATE_JOINABLE $attr_name
9683_ACEOF
9684
9685 fi
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9688$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9689 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009690 case ${host_os} in
9691 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9692 osf* | hpux*) flag="-D_REENTRANT";;
9693 solaris*)
9694 if test "$GCC" = "yes"; then
9695 flag="-D_REENTRANT"
9696 else
cristy17491be2014-06-24 01:10:53 +00009697 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009698 flag="-mt -D_REENTRANT"
9699 fi
9700 ;;
cristy73bd4a52010-10-05 11:24:23 +00009701 esac
cristy17491be2014-06-24 01:10:53 +00009702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9703$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009704 if test "x$flag" != xno; then
9705 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9706 fi
9707
cristya316db12011-10-24 00:49:45 +00009708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9709$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9710if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712else
9713
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009716#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009717int
9718main ()
9719{
9720int i = PTHREAD_PRIO_INHERIT;
9721 ;
9722 return 0;
9723}
9724_ACEOF
9725if ac_fn_c_try_link "$LINENO"; then :
9726 ax_cv_PTHREAD_PRIO_INHERIT=yes
9727else
9728 ax_cv_PTHREAD_PRIO_INHERIT=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9735$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9736 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9737
9738$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9739
9740fi
9741
cristy73bd4a52010-10-05 11:24:23 +00009742 LIBS="$save_LIBS"
9743 CFLAGS="$save_CFLAGS"
9744
cristy23493c42013-04-11 16:04:59 +00009745 # More AIX lossage: compile with *_r variant
9746 if test "x$GCC" != xyes; then
9747 case $host_os in
9748 aix*)
9749 case "x/$CC" in #(
9750 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9751 #handle absolute path differently from PATH based program lookup
9752 case "x$CC" in #(
9753 x/*) :
9754 if as_fn_executable_p ${CC}_r; then :
9755 PTHREAD_CC="${CC}_r"
9756fi ;; #(
9757 *) :
9758 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009759do
9760 # Extract the first word of "$ac_prog", so it can be a program name with args.
9761set dummy $ac_prog; ac_word=$2
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009764if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009765 $as_echo_n "(cached) " >&6
9766else
9767 if test -n "$PTHREAD_CC"; then
9768 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9769else
9770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009777 ac_cv_prog_PTHREAD_CC="$ac_prog"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781done
9782 done
9783IFS=$as_save_IFS
9784
9785fi
9786fi
9787PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9788if test -n "$PTHREAD_CC"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9790$as_echo "$PTHREAD_CC" >&6; }
9791else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793$as_echo "no" >&6; }
9794fi
9795
9796
9797 test -n "$PTHREAD_CC" && break
9798done
cristy23493c42013-04-11 16:04:59 +00009799test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9800 ;;
9801esac ;; #(
9802 *) :
9803 ;;
9804esac
9805 ;;
9806 esac
cristya316db12011-10-24 00:49:45 +00009807 fi
cristy73bd4a52010-10-05 11:24:23 +00009808fi
9809
cristy23493c42013-04-11 16:04:59 +00009810test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9811
cristy73bd4a52010-10-05 11:24:23 +00009812
9813
9814
9815
9816# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9817if test x"$ax_pthread_ok" = xyes; then
9818
9819$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9820
9821 :
9822else
9823 ax_pthread_ok=no
9824
9825fi
9826ac_ext=c
9827ac_cpp='$CPP $CPPFLAGS'
9828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830ac_compiler_gnu=$ac_cv_c_compiler_gnu
9831
9832
cristy7acf8fb2010-09-23 19:58:53 +00009833 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009834 have_threads=yes
9835 DEF_THREAD="$PTHREAD_CFLAGS"
9836 CFLAGS="$CFLAGS $DEF_THREAD"
9837 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009838 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009839 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009840 { $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 +00009841$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9842 CC="$PTHREAD_CC"
9843 fi
cristy55bf91c2010-09-24 00:29:41 +00009844
9845$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9846
cristy3ed852e2009-09-05 21:47:34 +00009847 fi
9848fi
cristy1ae5c992013-07-30 14:55:07 +00009849LIBS="$LIBS $THREAD_LIBS"
9850
cristy3ed852e2009-09-05 21:47:34 +00009851
9852# Enable support for OpenMP
9853if test "$have_threads" != 'yes'; then
9854 ac_cv_prog_c_openmp=unsupported
9855fi
9856
9857 OPENMP_CFLAGS=
9858 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009859if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009860 enableval=$enable_openmp;
9861fi
9862
9863 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009865$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009866if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009867 $as_echo_n "(cached) " >&6
9868else
cristy8b350f62009-11-15 23:12:43 +00009869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009871
9872#ifndef _OPENMP
9873 choke me
9874#endif
9875#include <omp.h>
9876int main () { return omp_get_num_threads (); }
9877
9878_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009880 ac_cv_prog_c_openmp='none needed'
9881else
cristy8b350f62009-11-15 23:12:43 +00009882 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009883 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9884 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009885 ac_save_CFLAGS=$CFLAGS
9886 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009889
9890#ifndef _OPENMP
9891 choke me
9892#endif
9893#include <omp.h>
9894int main () { return omp_get_num_threads (); }
9895
9896_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009898 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009899fi
cristy8b350f62009-11-15 23:12:43 +00009900rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009902 CFLAGS=$ac_save_CFLAGS
9903 if test "$ac_cv_prog_c_openmp" != unsupported; then
9904 break
9905 fi
9906 done
9907fi
cristy8b350f62009-11-15 23:12:43 +00009908rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009910fi
cristy8b350f62009-11-15 23:12:43 +00009911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009912$as_echo "$ac_cv_prog_c_openmp" >&6; }
9913 case $ac_cv_prog_c_openmp in #(
9914 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009915 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009916 *)
cristy8b350f62009-11-15 23:12:43 +00009917 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009918 esac
9919 fi
9920
9921
9922CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9923MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9924
cristy391f1ce2010-09-09 17:23:28 +00009925if test "$enable_openmp" != no; then
9926 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9927 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9928 fi
9929fi
cristy3ed852e2009-09-05 21:47:34 +00009930
cristy736173a2009-09-20 21:18:22 +00009931# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009932
9933
cristy73bd4a52010-10-05 11:24:23 +00009934ac_ext=c
9935ac_cpp='$CPP $CPPFLAGS'
9936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9938ac_compiler_gnu=$ac_cv_c_compiler_gnu
9939
9940ax_pthread_ok=no
9941
9942# We used to check for pthread.h first, but this fails if pthread.h
9943# requires special compiler flags (e.g. on True64 or Sequent).
9944# It gets checked for in the link test anyway.
9945
9946# First of all, check if the user has set any of the PTHREAD_LIBS,
9947# etcetera environment variables, and if threads linking works using
9948# them:
9949if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9950 save_CFLAGS="$CFLAGS"
9951 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9952 save_LIBS="$LIBS"
9953 LIBS="$PTHREAD_LIBS $LIBS"
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9955$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h. */
9958
9959/* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
9962#ifdef __cplusplus
9963extern "C"
9964#endif
9965char pthread_join ();
9966int
9967main ()
9968{
9969return pthread_join ();
9970 ;
9971 return 0;
9972}
9973_ACEOF
9974if ac_fn_c_try_link "$LINENO"; then :
9975 ax_pthread_ok=yes
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9980$as_echo "$ax_pthread_ok" >&6; }
9981 if test x"$ax_pthread_ok" = xno; then
9982 PTHREAD_LIBS=""
9983 PTHREAD_CFLAGS=""
9984 fi
9985 LIBS="$save_LIBS"
9986 CFLAGS="$save_CFLAGS"
9987fi
9988
9989# We must check for the threads library under a number of different
9990# names; the ordering is very important because some systems
9991# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9992# libraries is broken (non-POSIX).
9993
9994# Create a list of thread flags to try. Items starting with a "-" are
9995# C compiler flags, and other items are library names, except for "none"
9996# which indicates that we try without any flags at all, and "pthread-config"
9997# which is a program returning the flags for the Pth emulation library.
9998
cristy2ec87cc2013-02-18 17:46:50 +00009999ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010000
10001# The ordering *is* (sometimes) important. Some notes on the
10002# individual items follow:
10003
10004# pthreads: AIX (must check this before -lpthread)
10005# none: in case threads are in libc; should be tried before -Kthread and
10006# other compiler flags to prevent continual compiler warnings
10007# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10008# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10009# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10010# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10011# -pthreads: Solaris/gcc
10012# -mthreads: Mingw32/gcc, Lynx/gcc
10013# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10014# doesn't hurt to check since this sometimes defines pthreads too;
10015# also defines -D_REENTRANT)
10016# ... -mt is also the pthreads flag for HP/aCC
10017# pthread: Linux, etcetera
10018# --thread-safe: KAI C++
10019# pthread-config: use pthread-config program (for GNU Pth library)
10020
cristy2ec87cc2013-02-18 17:46:50 +000010021case ${host_os} in
10022 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010023
10024 # On Solaris (at least, for some versions), libc contains stubbed
10025 # (non-functional) versions of the pthreads routines, so link-based
10026 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10027 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10028 # a function called by this macro, so we could check for that, but
10029 # who knows whether they'll stub that too in a future libc.) So,
10030 # we'll just look for -pthreads and -lpthread first:
10031
10032 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10033 ;;
10034
cristy2ec87cc2013-02-18 17:46:50 +000010035 darwin*)
cristya316db12011-10-24 00:49:45 +000010036 ax_pthread_flags="-pthread $ax_pthread_flags"
10037 ;;
cristy73bd4a52010-10-05 11:24:23 +000010038esac
10039
cristy17491be2014-06-24 01:10:53 +000010040# Clang doesn't consider unrecognized options an error unless we specify
10041# -Werror. We throw in some extra Clang-specific options to ensure that
10042# this doesn't happen for GCC, which also accepts -Werror.
10043
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10045$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10046save_CFLAGS="$CFLAGS"
10047ax_pthread_extra_flags="-Werror"
10048CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h. */
10051int foo(void);
10052int
10053main ()
10054{
10055foo()
10056 ;
10057 return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_compile "$LINENO"; then :
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10062$as_echo "yes" >&6; }
10063else
10064 ax_pthread_extra_flags=
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066$as_echo "no" >&6; }
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069CFLAGS="$save_CFLAGS"
10070
cristy73bd4a52010-10-05 11:24:23 +000010071if test x"$ax_pthread_ok" = xno; then
10072for flag in $ax_pthread_flags; do
10073
10074 case $flag in
10075 none)
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10077$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10078 ;;
10079
10080 -*)
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10082$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10083 PTHREAD_CFLAGS="$flag"
10084 ;;
10085
cristya316db12011-10-24 00:49:45 +000010086 pthread-config)
10087 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010088set dummy pthread-config; ac_word=$2
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010091if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010092 $as_echo_n "(cached) " >&6
10093else
10094 if test -n "$ax_pthread_config"; then
10095 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010104 ac_cv_prog_ax_pthread_config="yes"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109 done
10110IFS=$as_save_IFS
10111
10112 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10113fi
10114fi
10115ax_pthread_config=$ac_cv_prog_ax_pthread_config
10116if test -n "$ax_pthread_config"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10118$as_echo "$ax_pthread_config" >&6; }
10119else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121$as_echo "no" >&6; }
10122fi
10123
10124
cristya316db12011-10-24 00:49:45 +000010125 if test x"$ax_pthread_config" = xno; then continue; fi
10126 PTHREAD_CFLAGS="`pthread-config --cflags`"
10127 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10128 ;;
cristy73bd4a52010-10-05 11:24:23 +000010129
10130 *)
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10132$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10133 PTHREAD_LIBS="-l$flag"
10134 ;;
10135 esac
10136
10137 save_LIBS="$LIBS"
10138 save_CFLAGS="$CFLAGS"
10139 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010140 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010141
10142 # Check for various functions. We must include pthread.h,
10143 # since some functions may be macros. (On the Sequent, we
10144 # need a special flag -Kthread to make this header compile.)
10145 # We check for pthread_join because it is in -lpthread on IRIX
10146 # while pthread_create is in libc. We check for pthread_attr_init
10147 # due to DEC craziness with -lpthreads. We check for
10148 # pthread_cleanup_push because it is one of the few pthread
10149 # functions on Solaris that doesn't have a non-functional libc stub.
10150 # We try pthread_create on general principles.
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152/* end confdefs.h. */
10153#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010154 static void routine(void *a) { a = 0; }
10155 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010156int
10157main ()
10158{
10159pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010160 pthread_create(&th, 0, start_routine, 0);
10161 pthread_join(th, 0);
10162 pthread_attr_init(&attr);
10163 pthread_cleanup_push(routine, 0);
10164 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010165 ;
10166 return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_link "$LINENO"; then :
10170 ax_pthread_ok=yes
10171fi
10172rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174
10175 LIBS="$save_LIBS"
10176 CFLAGS="$save_CFLAGS"
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10179$as_echo "$ax_pthread_ok" >&6; }
10180 if test "x$ax_pthread_ok" = xyes; then
10181 break;
10182 fi
10183
10184 PTHREAD_LIBS=""
10185 PTHREAD_CFLAGS=""
10186done
10187fi
10188
10189# Various other checks:
10190if test "x$ax_pthread_ok" = xyes; then
10191 save_LIBS="$LIBS"
10192 LIBS="$PTHREAD_LIBS $LIBS"
10193 save_CFLAGS="$CFLAGS"
10194 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10195
10196 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010198$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010199 attr_name=unknown
10200 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010202/* end confdefs.h. */
10203#include <pthread.h>
10204int
10205main ()
10206{
cristya316db12011-10-24 00:49:45 +000010207int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010208 ;
10209 return 0;
10210}
10211_ACEOF
10212if ac_fn_c_try_link "$LINENO"; then :
10213 attr_name=$attr; break
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010217 done
cristy73bd4a52010-10-05 11:24:23 +000010218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10219$as_echo "$attr_name" >&6; }
10220 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10221
10222cat >>confdefs.h <<_ACEOF
10223#define PTHREAD_CREATE_JOINABLE $attr_name
10224_ACEOF
10225
10226 fi
10227
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10229$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10230 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010231 case ${host_os} in
10232 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10233 osf* | hpux*) flag="-D_REENTRANT";;
10234 solaris*)
10235 if test "$GCC" = "yes"; then
10236 flag="-D_REENTRANT"
10237 else
cristy17491be2014-06-24 01:10:53 +000010238 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010239 flag="-mt -D_REENTRANT"
10240 fi
10241 ;;
cristy73bd4a52010-10-05 11:24:23 +000010242 esac
cristy17491be2014-06-24 01:10:53 +000010243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10244$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010245 if test "x$flag" != xno; then
10246 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10247 fi
10248
cristya316db12011-10-24 00:49:45 +000010249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10250$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10251if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010257#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010258int
10259main ()
10260{
10261int i = PTHREAD_PRIO_INHERIT;
10262 ;
10263 return 0;
10264}
10265_ACEOF
10266if ac_fn_c_try_link "$LINENO"; then :
10267 ax_cv_PTHREAD_PRIO_INHERIT=yes
10268else
10269 ax_cv_PTHREAD_PRIO_INHERIT=no
10270fi
10271rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10276$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10277 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10278
10279$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10280
10281fi
10282
cristy73bd4a52010-10-05 11:24:23 +000010283 LIBS="$save_LIBS"
10284 CFLAGS="$save_CFLAGS"
10285
cristy23493c42013-04-11 16:04:59 +000010286 # More AIX lossage: compile with *_r variant
10287 if test "x$GCC" != xyes; then
10288 case $host_os in
10289 aix*)
10290 case "x/$CC" in #(
10291 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10292 #handle absolute path differently from PATH based program lookup
10293 case "x$CC" in #(
10294 x/*) :
10295 if as_fn_executable_p ${CC}_r; then :
10296 PTHREAD_CC="${CC}_r"
10297fi ;; #(
10298 *) :
10299 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010300do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302set dummy $ac_prog; ac_word=$2
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010305if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010306 $as_echo_n "(cached) " >&6
10307else
10308 if test -n "$PTHREAD_CC"; then
10309 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010318 ac_cv_prog_PTHREAD_CC="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322done
10323 done
10324IFS=$as_save_IFS
10325
10326fi
10327fi
10328PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10329if test -n "$PTHREAD_CC"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10331$as_echo "$PTHREAD_CC" >&6; }
10332else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334$as_echo "no" >&6; }
10335fi
10336
10337
10338 test -n "$PTHREAD_CC" && break
10339done
cristy23493c42013-04-11 16:04:59 +000010340test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10341 ;;
10342esac ;; #(
10343 *) :
10344 ;;
10345esac
10346 ;;
10347 esac
cristya316db12011-10-24 00:49:45 +000010348 fi
cristy73bd4a52010-10-05 11:24:23 +000010349fi
10350
cristy23493c42013-04-11 16:04:59 +000010351test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10352
cristy73bd4a52010-10-05 11:24:23 +000010353
10354
10355
10356
10357# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10358if test x"$ax_pthread_ok" = xyes; then
10359
10360$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10361
10362 :
10363else
10364 ax_pthread_ok=no
10365
10366fi
10367ac_ext=c
10368ac_cpp='$CPP $CPPFLAGS'
10369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372
10373
10374
10375# Check whether --enable-opencl was given.
10376if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010377 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010378else
cristy48794642012-09-02 15:19:08 +000010379 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010380fi
10381
10382
cristy48794642012-09-02 15:19:08 +000010383if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010384 ac_ext=c
10385ac_cpp='$CPP $CPPFLAGS'
10386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10388ac_compiler_gnu=$ac_cv_c_compiler_gnu
10389
cristy75314cc2012-09-15 23:08:29 +000010390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10391$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10392if ${ax_cv_c_compiler_ms+:} false; then :
10393 $as_echo_n "(cached) " >&6
10394else
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h. */
10397
10398int
10399main ()
10400{
10401#ifndef _MSC_VER
10402 choke me
10403#endif
10404
10405 ;
10406 return 0;
10407}
10408_ACEOF
10409if ac_fn_c_try_compile "$LINENO"; then :
10410 ax_compiler_ms=yes
10411else
10412 ax_compiler_ms=no
10413fi
10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415ax_cv_c_compiler_ms=$ax_compiler_ms
10416
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10419$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010420 if test X$ax_compiler_ms = Xno; then :
10421 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10422fi
10423
10424 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010425 ax_save_CL_CFLAGS=$CL_CFLAGS
10426
10427 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010428 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10429 for ac_header in CL/cl.h OpenCL/cl.h
10430do :
10431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10432ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010434 cat >>confdefs.h <<_ACEOF
10435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010437 found_opencl_header='yes'
10438 break;
10439else
10440 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010441fi
10442
10443done
10444
cristyfdc7d122013-08-17 20:46:45 +000010445
10446 if test X$found_opencl_header = Xno; then :
10447 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10448 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10449 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10450 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10451 for ac_header in CL/cl.h OpenCL/cl.h
10452do :
10453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10454ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10456 cat >>confdefs.h <<_ACEOF
10457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10458_ACEOF
10459 found_opencl_header='yes'
10460 break;
10461else
10462 found_opencl_header='no'
10463fi
10464
10465done
10466
10467
10468fi
10469
10470 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010471
10472 for ac_header in windows.h
10473do :
10474 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010475if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010476 cat >>confdefs.h <<_ACEOF
10477#define HAVE_WINDOWS_H 1
10478_ACEOF
10479
10480fi
10481
10482done
10483
10484
10485
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10488$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010489if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010490 $as_echo_n "(cached) " >&6
10491else
10492 ax_cv_check_cl_libcl=no
10493 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010494 x86_64) ax_check_cl_libdir=lib64
10495 ax_check_cl_amd_libdir=x86_64
10496 ;;
10497 *) ax_check_cl_libdir=lib
10498 ax_check_cl_amd_libdir=x86
10499 ;;
cristy73bd4a52010-10-05 11:24:23 +000010500 esac
10501 ax_save_CPPFLAGS=$CPPFLAGS
10502 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10503 ax_save_LIBS=$LIBS
10504 LIBS=""
10505 ax_check_libs="-lOpenCL -lCL -lclparser"
10506 for ax_lib in $ax_check_libs; do
10507 if test X$ax_compiler_ms = Xyes; then :
10508 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10509else
10510 ax_try_lib=$ax_lib
10511fi
10512 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h. */
10515
10516 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10517 # include <windows.h>
10518 # endif
10519 # ifdef HAVE_CL_CL_H
10520 # include <CL/cl.h>
10521 # elif defined(HAVE_OPENCL_CL_H)
10522 # include <OpenCL/cl.h>
10523 # else
10524 # error no CL.h
10525 # endif
10526int
10527main ()
10528{
10529clCreateContextFromType(0,0,0,0,0)
10530 ;
10531 return 0;
10532}
10533_ACEOF
10534if ac_fn_c_try_link "$LINENO"; then :
10535 ax_cv_check_cl_libcl=$ax_try_lib; break
10536else
10537 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"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539/* end confdefs.h. */
10540
10541 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10542 # include <windows.h>
10543 # endif
10544 # ifdef HAVE_CL_CL_H
10545 # include <CL/cl.h>
10546 # elif defined(HAVE_OPENCL_CL_H)
10547 # include <OpenCL/cl.h>
10548 # else
10549 # error no CL.h
10550 # endif
10551int
10552main ()
10553{
10554clCreateContextFromType(0,0,0,0,0)
10555 ;
10556 return 0;
10557}
10558_ACEOF
10559if ac_fn_c_try_link "$LINENO"; then :
10560 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10561else
cristy78c5a0c2010-12-04 20:00:59 +000010562 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 +000010563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565
10566 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10567 # include <windows.h>
10568 # endif
10569 # ifdef HAVE_CL_CL_H
10570 # include <CL/cl.h>
10571 # elif defined(HAVE_OPENCL_CL_H)
10572 # include <OpenCL/cl.h>
10573 # else
10574 # error no CL.h
10575 # endif
10576int
10577main ()
10578{
10579clCreateContextFromType(0,0,0,0,0)
10580 ;
10581 return 0;
10582}
10583_ACEOF
10584if ac_fn_c_try_link "$LINENO"; then :
10585 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010586else
10587 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"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h. */
10590
10591 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10592 # include <windows.h>
10593 # endif
10594 # ifdef HAVE_CL_CL_H
10595 # include <CL/cl.h>
10596 # elif defined(HAVE_OPENCL_CL_H)
10597 # include <OpenCL/cl.h>
10598 # else
10599 # error no CL.h
10600 # endif
10601int
10602main ()
10603{
10604clCreateContextFromType(0,0,0,0,0)
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609if ac_fn_c_try_link "$LINENO"; then :
10610 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10611
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615
10616
cristy73bd4a52010-10-05 11:24:23 +000010617fi
10618rm -f core conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620fi
10621rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623fi
10624rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 done
10627
cristyc3f8b8e2011-12-22 14:55:16 +000010628 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010629 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631/* end confdefs.h. */
10632
10633 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10634 # include <windows.h>
10635 # endif
10636 # ifdef HAVE_CL_CL_H
10637 # include <CL/cl.h>
10638 # elif defined(HAVE_OPENCL_CL_H)
10639 # include <OpenCL/cl.h>
10640 # else
10641 # error no CL.h
10642 # endif
10643int
10644main ()
10645{
10646clCreateContextFromType(0,0,0,0,0)
10647 ;
10648 return 0;
10649}
10650_ACEOF
10651if ac_fn_c_try_link "$LINENO"; then :
10652 ax_cv_check_cl_libcl=$LIBS
10653fi
10654rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656fi
10657
10658 LIBS=$ax_save_LIBS
10659 CPPFLAGS=$ax_save_CPPFLAGS
10660fi
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10662$as_echo "$ax_cv_check_cl_libcl" >&6; }
10663
10664 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10665 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10666else
10667 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10668$as_echo "#define _OPENCL 1" >>confdefs.h
10669
10670fi
10671 ac_ext=c
10672ac_cpp='$CPP $CPPFLAGS'
10673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10675ac_compiler_gnu=$ac_cv_c_compiler_gnu
10676
10677fi
10678
10679
10680
cristy0c832c62014-03-07 22:21:04 +000010681#remove static link on Linux
10682CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10683
cristy73bd4a52010-10-05 11:24:23 +000010684
cristyc7083c12009-10-14 03:16:55 +000010685CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010686CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010687LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010688
cristy391f1ce2010-09-09 17:23:28 +000010689if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010690 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010691 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10692 fi
cristyfd9dcd42010-08-08 18:07:02 +000010693fi
cristy2e8b51d2009-10-17 18:26:15 +000010694
cristy3ed852e2009-09-05 21:47:34 +000010695########
10696#
10697# Check for large file support
10698#
10699########
10700# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010701if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010702 enableval=$enable_largefile;
10703fi
10704
10705if test "$enable_largefile" != no; then
10706
cristy8b350f62009-11-15 23:12:43 +000010707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010708$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010709if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010710 $as_echo_n "(cached) " >&6
10711else
10712 ac_cv_sys_largefile_CC=no
10713 if test "$GCC" != yes; then
10714 ac_save_CC=$CC
10715 while :; do
10716 # IRIX 6.2 and later do not support large files by default,
10717 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010719/* end confdefs.h. */
10720#include <sys/types.h>
10721 /* Check that off_t can represent 2**63 - 1 correctly.
10722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10723 since some C++ compilers masquerading as C compilers
10724 incorrectly reject 9223372036854775807. */
10725#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10727 && LARGE_OFF_T % 2147483647 == 1)
10728 ? 1 : -1];
10729int
10730main ()
10731{
10732
10733 ;
10734 return 0;
10735}
10736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010737 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010738 break
cristy3ed852e2009-09-05 21:47:34 +000010739fi
cristy3ed852e2009-09-05 21:47:34 +000010740rm -f core conftest.err conftest.$ac_objext
10741 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010742 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010743 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010744fi
cristy3ed852e2009-09-05 21:47:34 +000010745rm -f core conftest.err conftest.$ac_objext
10746 break
10747 done
10748 CC=$ac_save_CC
10749 rm -f conftest.$ac_ext
10750 fi
10751fi
cristy8b350f62009-11-15 23:12:43 +000010752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010753$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10754 if test "$ac_cv_sys_largefile_CC" != no; then
10755 CC=$CC$ac_cv_sys_largefile_CC
10756 fi
10757
cristy8b350f62009-11-15 23:12:43 +000010758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010759$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010760if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010761 $as_echo_n "(cached) " >&6
10762else
10763 while :; do
cristy8b350f62009-11-15 23:12:43 +000010764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010765/* end confdefs.h. */
10766#include <sys/types.h>
10767 /* Check that off_t can represent 2**63 - 1 correctly.
10768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10769 since some C++ compilers masquerading as C compilers
10770 incorrectly reject 9223372036854775807. */
10771#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10773 && LARGE_OFF_T % 2147483647 == 1)
10774 ? 1 : -1];
10775int
10776main ()
10777{
10778
10779 ;
10780 return 0;
10781}
10782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010783if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010784 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010785fi
cristy3ed852e2009-09-05 21:47:34 +000010786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010788/* end confdefs.h. */
10789#define _FILE_OFFSET_BITS 64
10790#include <sys/types.h>
10791 /* Check that off_t can represent 2**63 - 1 correctly.
10792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10793 since some C++ compilers masquerading as C compilers
10794 incorrectly reject 9223372036854775807. */
10795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10797 && LARGE_OFF_T % 2147483647 == 1)
10798 ? 1 : -1];
10799int
10800main ()
10801{
10802
10803 ;
10804 return 0;
10805}
10806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010807if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010808 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010809fi
cristy3ed852e2009-09-05 21:47:34 +000010810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811 ac_cv_sys_file_offset_bits=unknown
10812 break
10813done
10814fi
cristy8b350f62009-11-15 23:12:43 +000010815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010816$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10817case $ac_cv_sys_file_offset_bits in #(
10818 no | unknown) ;;
10819 *)
10820cat >>confdefs.h <<_ACEOF
10821#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10822_ACEOF
10823;;
10824esac
10825rm -rf conftest*
10826 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010828$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010829if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010830 $as_echo_n "(cached) " >&6
10831else
10832 while :; do
cristy8b350f62009-11-15 23:12:43 +000010833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010834/* end confdefs.h. */
10835#include <sys/types.h>
10836 /* Check that off_t can represent 2**63 - 1 correctly.
10837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10838 since some C++ compilers masquerading as C compilers
10839 incorrectly reject 9223372036854775807. */
10840#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10842 && LARGE_OFF_T % 2147483647 == 1)
10843 ? 1 : -1];
10844int
10845main ()
10846{
10847
10848 ;
10849 return 0;
10850}
10851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010852if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010853 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010854fi
cristy3ed852e2009-09-05 21:47:34 +000010855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010857/* end confdefs.h. */
10858#define _LARGE_FILES 1
10859#include <sys/types.h>
10860 /* Check that off_t can represent 2**63 - 1 correctly.
10861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10862 since some C++ compilers masquerading as C compilers
10863 incorrectly reject 9223372036854775807. */
10864#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10866 && LARGE_OFF_T % 2147483647 == 1)
10867 ? 1 : -1];
10868int
10869main ()
10870{
10871
10872 ;
10873 return 0;
10874}
10875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010876if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010877 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010878fi
cristy3ed852e2009-09-05 21:47:34 +000010879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 ac_cv_sys_large_files=unknown
10881 break
10882done
10883fi
cristy8b350f62009-11-15 23:12:43 +000010884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010885$as_echo "$ac_cv_sys_large_files" >&6; }
10886case $ac_cv_sys_large_files in #(
10887 no | unknown) ;;
10888 *)
10889cat >>confdefs.h <<_ACEOF
10890#define _LARGE_FILES $ac_cv_sys_large_files
10891_ACEOF
10892;;
10893esac
10894rm -rf conftest*
10895 fi
cristy14fefe52012-05-21 00:59:18 +000010896
10897
cristy3ed852e2009-09-05 21:47:34 +000010898fi
10899
cristy8b350f62009-11-15 23:12:43 +000010900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010901$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010902if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010903 $as_echo_n "(cached) " >&6
10904else
10905 while :; do
cristy8b350f62009-11-15 23:12:43 +000010906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010907/* end confdefs.h. */
10908#include <sys/types.h> /* for off_t */
10909 #include <stdio.h>
10910int
10911main ()
10912{
10913int (*fp) (FILE *, off_t, int) = fseeko;
10914 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10915 ;
10916 return 0;
10917}
10918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010920 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010921fi
cristy8b350f62009-11-15 23:12:43 +000010922rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010925/* end confdefs.h. */
10926#define _LARGEFILE_SOURCE 1
10927#include <sys/types.h> /* for off_t */
10928 #include <stdio.h>
10929int
10930main ()
10931{
10932int (*fp) (FILE *, off_t, int) = fseeko;
10933 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10934 ;
10935 return 0;
10936}
10937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010939 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010940fi
cristy8b350f62009-11-15 23:12:43 +000010941rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010943 ac_cv_sys_largefile_source=unknown
10944 break
10945done
10946fi
cristy8b350f62009-11-15 23:12:43 +000010947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010948$as_echo "$ac_cv_sys_largefile_source" >&6; }
10949case $ac_cv_sys_largefile_source in #(
10950 no | unknown) ;;
10951 *)
10952cat >>confdefs.h <<_ACEOF
10953#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10954_ACEOF
10955;;
10956esac
10957rm -rf conftest*
10958
10959# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10960# in glibc 2.1.3, but that breaks too many other things.
10961# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10962if test $ac_cv_sys_largefile_source != unknown; then
10963
cristy8b350f62009-11-15 23:12:43 +000010964$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010965
10966fi
10967
10968LFS_CPPFLAGS=''
10969if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010970 case $ac_cv_sys_file_offset_bits in
10971 no)
10972 # nothing to do here as the host supports LFS fine
10973 ;;
10974 unknown)
cristy8b350f62009-11-15 23:12:43 +000010975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010976$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010977 if test "$cross_compiling" = yes; then :
10978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010980as_fn_error $? "cannot run test program while cross compiling
10981See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010982else
cristy8b350f62009-11-15 23:12:43 +000010983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010985#include <unistd.h>
10986 main () {
10987 exit(!(sizeof(off_t) == 8));
10988 }
cristyda16f162011-02-19 23:52:17 +000010989int
10990main ()
10991{
10992
10993 ;
10994 return 0;
10995}
cristy3ed852e2009-09-05 21:47:34 +000010996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010997if ac_fn_c_try_run "$LINENO"; then :
10998 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010999
cristyad38abe2012-12-23 23:03:21 +000011000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11001$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011002else
cristyad38abe2012-12-23 23:03:21 +000011003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011005fi
cristy8b350f62009-11-15 23:12:43 +000011006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11007 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011008fi
11009
cristyc1e0cc12011-09-21 16:41:16 +000011010 ;;
11011 *)
11012 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11013 ;;
11014 esac
cristy3ed852e2009-09-05 21:47:34 +000011015 if test "$ac_cv_sys_large_files" != 'no'; then
11016 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11017 fi
11018 if test "$ac_cv_sys_largefile_source" != 'no'; then
11019 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11020 fi
11021fi
11022
11023
cristy3ed852e2009-09-05 21:47:34 +000011024# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011025enable_dlopen=yes
11026
11027
11028
11029case `pwd` in
11030 *\ * | *\ *)
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11032$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11033esac
11034
11035
11036
cristy99bd5232011-12-07 14:38:20 +000011037macro_version='2.4.2'
11038macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052ltmain="$ac_aux_dir/ltmain.sh"
11053
cristy0c60a692010-11-04 01:09:47 +000011054# Backslashify metacharacters that are still active within
11055# double-quoted strings.
11056sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11057
11058# Same as above, but do not quote variable references.
11059double_quote_subst='s/\(["`\\]\)/\\\1/g'
11060
11061# Sed substitution to delay expansion of an escaped shell variable in a
11062# double_quote_subst'ed string.
11063delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11064
11065# Sed substitution to delay expansion of an escaped single quote.
11066delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11067
11068# Sed substitution to avoid accidental globbing in evaled expressions
11069no_glob_subst='s/\*/\\\*/g'
11070
cristy73bd4a52010-10-05 11:24:23 +000011071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11072$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011073if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011074 $as_echo_n "(cached) " >&6
11075else
11076 if test -n "$NM"; then
11077 # Let the user override the test.
11078 lt_cv_path_NM="$NM"
11079else
11080 lt_nm_to_check="${ac_tool_prefix}nm"
11081 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11082 lt_nm_to_check="$lt_nm_to_check nm"
11083 fi
11084 for lt_tmp_nm in $lt_nm_to_check; do
11085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11086 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11087 IFS="$lt_save_ifs"
11088 test -z "$ac_dir" && ac_dir=.
11089 tmp_nm="$ac_dir/$lt_tmp_nm"
11090 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11091 # Check to see if the nm accepts a BSD-compat flag.
11092 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11093 # nm: unknown option "B" ignored
11094 # Tru64's nm complains that /dev/null is an invalid object file
11095 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11096 */dev/null* | *'Invalid file or object type'*)
11097 lt_cv_path_NM="$tmp_nm -B"
11098 break
11099 ;;
11100 *)
11101 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11102 */dev/null*)
11103 lt_cv_path_NM="$tmp_nm -p"
11104 break
11105 ;;
11106 *)
11107 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11108 continue # so that we can try to find one that supports BSD flags
11109 ;;
11110 esac
11111 ;;
11112 esac
11113 fi
11114 done
11115 IFS="$lt_save_ifs"
11116 done
11117 : ${lt_cv_path_NM=no}
11118fi
11119fi
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11121$as_echo "$lt_cv_path_NM" >&6; }
11122if test "$lt_cv_path_NM" != "no"; then
11123 NM="$lt_cv_path_NM"
11124else
11125 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011126 if test -n "$DUMPBIN"; then :
11127 # Let the user override the test.
11128 else
11129 if test -n "$ac_tool_prefix"; then
11130 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011131 do
11132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011136if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011137 $as_echo_n "(cached) " >&6
11138else
11139 if test -n "$DUMPBIN"; then
11140 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11141else
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011149 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11152 fi
11153done
11154 done
11155IFS=$as_save_IFS
11156
11157fi
11158fi
11159DUMPBIN=$ac_cv_prog_DUMPBIN
11160if test -n "$DUMPBIN"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11162$as_echo "$DUMPBIN" >&6; }
11163else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165$as_echo "no" >&6; }
11166fi
11167
11168
11169 test -n "$DUMPBIN" && break
11170 done
11171fi
11172if test -z "$DUMPBIN"; then
11173 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011174 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011175do
11176 # Extract the first word of "$ac_prog", so it can be a program name with args.
11177set dummy $ac_prog; ac_word=$2
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011180if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011181 $as_echo_n "(cached) " >&6
11182else
11183 if test -n "$ac_ct_DUMPBIN"; then
11184 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11185else
11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187for as_dir in $PATH
11188do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011193 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11196 fi
11197done
11198 done
11199IFS=$as_save_IFS
11200
11201fi
11202fi
11203ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11204if test -n "$ac_ct_DUMPBIN"; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11206$as_echo "$ac_ct_DUMPBIN" >&6; }
11207else
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11209$as_echo "no" >&6; }
11210fi
11211
11212
11213 test -n "$ac_ct_DUMPBIN" && break
11214done
11215
11216 if test "x$ac_ct_DUMPBIN" = x; then
11217 DUMPBIN=":"
11218 else
11219 case $cross_compiling:$ac_tool_warned in
11220yes:)
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11223ac_tool_warned=yes ;;
11224esac
11225 DUMPBIN=$ac_ct_DUMPBIN
11226 fi
11227fi
11228
cristy0c60a692010-11-04 01:09:47 +000011229 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11230 *COFF*)
11231 DUMPBIN="$DUMPBIN -symbols"
11232 ;;
11233 *)
11234 DUMPBIN=:
11235 ;;
11236 esac
11237 fi
cristy73bd4a52010-10-05 11:24:23 +000011238
11239 if test "$DUMPBIN" != ":"; then
11240 NM="$DUMPBIN"
11241 fi
11242fi
11243test -z "$NM" && NM=nm
11244
11245
11246
11247
11248
11249
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11251$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011252if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011253 $as_echo_n "(cached) " >&6
11254else
11255 lt_cv_nm_interface="BSD nm"
11256 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011257 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011258 (eval "$ac_compile" 2>conftest.err)
11259 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011260 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011261 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11262 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011263 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011264 cat conftest.out >&5
11265 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11266 lt_cv_nm_interface="MS dumpbin"
11267 fi
11268 rm -f conftest*
11269fi
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11271$as_echo "$lt_cv_nm_interface" >&6; }
11272
11273# find the maximum length of command line arguments
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11275$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011276if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011277 $as_echo_n "(cached) " >&6
11278else
11279 i=0
11280 teststring="ABCD"
11281
11282 case $build_os in
11283 msdosdjgpp*)
11284 # On DJGPP, this test can blow up pretty badly due to problems in libc
11285 # (any single argument exceeding 2000 bytes causes a buffer overrun
11286 # during glob expansion). Even if it were fixed, the result of this
11287 # check would be larger than it should be.
11288 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11289 ;;
11290
11291 gnu*)
11292 # Under GNU Hurd, this test is not required because there is
11293 # no limit to the length of command line arguments.
11294 # Libtool will interpret -1 as no limit whatsoever
11295 lt_cv_sys_max_cmd_len=-1;
11296 ;;
11297
11298 cygwin* | mingw* | cegcc*)
11299 # On Win9x/ME, this test blows up -- it succeeds, but takes
11300 # about 5 minutes as the teststring grows exponentially.
11301 # Worse, since 9x/ME are not pre-emptively multitasking,
11302 # you end up with a "frozen" computer, even though with patience
11303 # the test eventually succeeds (with a max line length of 256k).
11304 # Instead, let's just punt: use the minimum linelength reported by
11305 # all of the supported platforms: 8192 (on NT/2K/XP).
11306 lt_cv_sys_max_cmd_len=8192;
11307 ;;
11308
cristy0c60a692010-11-04 01:09:47 +000011309 mint*)
11310 # On MiNT this can take a long time and run out of memory.
11311 lt_cv_sys_max_cmd_len=8192;
11312 ;;
11313
cristy73bd4a52010-10-05 11:24:23 +000011314 amigaos*)
11315 # On AmigaOS with pdksh, this test takes hours, literally.
11316 # So we just punt and use a minimum line length of 8192.
11317 lt_cv_sys_max_cmd_len=8192;
11318 ;;
11319
11320 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11321 # This has been around since 386BSD, at least. Likely further.
11322 if test -x /sbin/sysctl; then
11323 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11324 elif test -x /usr/sbin/sysctl; then
11325 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11326 else
11327 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11328 fi
11329 # And add a safety zone
11330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11332 ;;
11333
11334 interix*)
11335 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11336 lt_cv_sys_max_cmd_len=196608
11337 ;;
11338
cristy99bd5232011-12-07 14:38:20 +000011339 os2*)
11340 # The test takes a long time on OS/2.
11341 lt_cv_sys_max_cmd_len=8192
11342 ;;
11343
cristy73bd4a52010-10-05 11:24:23 +000011344 osf*)
11345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11347 # nice to cause kernel panics so lets avoid the loop below.
11348 # First set a reasonable default.
11349 lt_cv_sys_max_cmd_len=16384
11350 #
11351 if test -x /sbin/sysconfig; then
11352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11353 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11354 esac
11355 fi
11356 ;;
11357 sco3.2v5*)
11358 lt_cv_sys_max_cmd_len=102400
11359 ;;
11360 sysv5* | sco5v6* | sysv4.2uw2*)
11361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11362 if test -n "$kargmax"; then
11363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11364 else
11365 lt_cv_sys_max_cmd_len=32768
11366 fi
11367 ;;
11368 *)
11369 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11370 if test -n "$lt_cv_sys_max_cmd_len"; then
11371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11373 else
11374 # Make teststring a little bigger before we do anything with it.
11375 # a 1K string should be a reasonable start.
11376 for i in 1 2 3 4 5 6 7 8 ; do
11377 teststring=$teststring$teststring
11378 done
11379 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11380 # If test is not a shell built-in, we'll probably end up computing a
11381 # maximum length that is only half of the actual maximum length, but
11382 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011383 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011384 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011385 test $i != 17 # 1/2 MB should be enough
11386 do
11387 i=`expr $i + 1`
11388 teststring=$teststring$teststring
11389 done
11390 # Only check the string length outside the loop.
11391 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11392 teststring=
11393 # Add a significant safety factor because C++ compilers can tack on
11394 # massive amounts of additional arguments before passing them to the
11395 # linker. It appears as though 1/2 is a usable value.
11396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11397 fi
11398 ;;
11399 esac
11400
11401fi
11402
11403if test -n $lt_cv_sys_max_cmd_len ; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11405$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11406else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11408$as_echo "none" >&6; }
11409fi
11410max_cmd_len=$lt_cv_sys_max_cmd_len
11411
11412
11413
11414
11415
11416
11417: ${CP="cp -f"}
11418: ${MV="mv -f"}
11419: ${RM="rm -f"}
11420
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11422$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11423# Try some XSI features
11424xsi_shell=no
11425( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011426 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11427 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011428 && eval 'test $(( 1 + 1 )) -eq 2 \
11429 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11430 && xsi_shell=yes
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11432$as_echo "$xsi_shell" >&6; }
11433
11434
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11436$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11437lt_shell_append=no
11438( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11439 >/dev/null 2>&1 \
11440 && lt_shell_append=yes
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11442$as_echo "$lt_shell_append" >&6; }
11443
11444
11445if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11446 lt_unset=unset
11447else
11448 lt_unset=false
11449fi
11450
11451
11452
11453
11454
11455# test EBCDIC or ASCII
11456case `echo X|tr X '\101'` in
11457 A) # ASCII based system
11458 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11459 lt_SP2NL='tr \040 \012'
11460 lt_NL2SP='tr \015\012 \040\040'
11461 ;;
11462 *) # EBCDIC based system
11463 lt_SP2NL='tr \100 \n'
11464 lt_NL2SP='tr \r\n \100\100'
11465 ;;
11466esac
11467
11468
11469
11470
11471
11472
11473
11474
11475
cristyda16f162011-02-19 23:52:17 +000011476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11477$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11478if ${lt_cv_to_host_file_cmd+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480else
11481 case $host in
11482 *-*-mingw* )
11483 case $build in
11484 *-*-mingw* ) # actually msys
11485 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11486 ;;
11487 *-*-cygwin* )
11488 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11489 ;;
11490 * ) # otherwise, assume *nix
11491 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11492 ;;
11493 esac
11494 ;;
11495 *-*-cygwin* )
11496 case $build in
11497 *-*-mingw* ) # actually msys
11498 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11499 ;;
11500 *-*-cygwin* )
11501 lt_cv_to_host_file_cmd=func_convert_file_noop
11502 ;;
11503 * ) # otherwise, assume *nix
11504 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11505 ;;
11506 esac
11507 ;;
11508 * ) # unhandled hosts (and "normal" native builds)
11509 lt_cv_to_host_file_cmd=func_convert_file_noop
11510 ;;
11511esac
11512
11513fi
11514
11515to_host_file_cmd=$lt_cv_to_host_file_cmd
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11517$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11518
11519
11520
11521
11522
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11524$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11525if ${lt_cv_to_tool_file_cmd+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527else
11528 #assume ordinary cross tools, or native build.
11529lt_cv_to_tool_file_cmd=func_convert_file_noop
11530case $host in
11531 *-*-mingw* )
11532 case $build in
11533 *-*-mingw* ) # actually msys
11534 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11535 ;;
11536 esac
11537 ;;
11538esac
11539
11540fi
11541
11542to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11544$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11545
11546
11547
11548
11549
cristy73bd4a52010-10-05 11:24:23 +000011550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11551$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011552if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011553 $as_echo_n "(cached) " >&6
11554else
11555 lt_cv_ld_reload_flag='-r'
11556fi
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11558$as_echo "$lt_cv_ld_reload_flag" >&6; }
11559reload_flag=$lt_cv_ld_reload_flag
11560case $reload_flag in
11561"" | " "*) ;;
11562*) reload_flag=" $reload_flag" ;;
11563esac
11564reload_cmds='$LD$reload_flag -o $output$reload_objs'
11565case $host_os in
cristyda16f162011-02-19 23:52:17 +000011566 cygwin* | mingw* | pw32* | cegcc*)
11567 if test "$GCC" != yes; then
11568 reload_cmds=false
11569 fi
11570 ;;
cristy73bd4a52010-10-05 11:24:23 +000011571 darwin*)
11572 if test "$GCC" = yes; then
11573 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11574 else
11575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11576 fi
11577 ;;
11578esac
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588if test -n "$ac_tool_prefix"; then
11589 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11590set dummy ${ac_tool_prefix}objdump; ac_word=$2
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011593if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011594 $as_echo_n "(cached) " >&6
11595else
11596 if test -n "$OBJDUMP"; then
11597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11598else
11599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $PATH
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011606 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610done
11611 done
11612IFS=$as_save_IFS
11613
11614fi
11615fi
11616OBJDUMP=$ac_cv_prog_OBJDUMP
11617if test -n "$OBJDUMP"; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11619$as_echo "$OBJDUMP" >&6; }
11620else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622$as_echo "no" >&6; }
11623fi
11624
11625
11626fi
11627if test -z "$ac_cv_prog_OBJDUMP"; then
11628 ac_ct_OBJDUMP=$OBJDUMP
11629 # Extract the first word of "objdump", so it can be a program name with args.
11630set dummy objdump; ac_word=$2
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011633if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011634 $as_echo_n "(cached) " >&6
11635else
11636 if test -n "$ac_ct_OBJDUMP"; then
11637 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011646 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651 done
11652IFS=$as_save_IFS
11653
11654fi
11655fi
11656ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11657if test -n "$ac_ct_OBJDUMP"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11659$as_echo "$ac_ct_OBJDUMP" >&6; }
11660else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
11663fi
11664
11665 if test "x$ac_ct_OBJDUMP" = x; then
11666 OBJDUMP="false"
11667 else
11668 case $cross_compiling:$ac_tool_warned in
11669yes:)
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11672ac_tool_warned=yes ;;
11673esac
11674 OBJDUMP=$ac_ct_OBJDUMP
11675 fi
11676else
11677 OBJDUMP="$ac_cv_prog_OBJDUMP"
11678fi
11679
11680test -z "$OBJDUMP" && OBJDUMP=objdump
11681
11682
11683
11684
11685
11686
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11688$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011689if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011690 $as_echo_n "(cached) " >&6
11691else
11692 lt_cv_file_magic_cmd='$MAGIC_CMD'
11693lt_cv_file_magic_test_file=
11694lt_cv_deplibs_check_method='unknown'
11695# Need to set the preceding variable on all platforms that support
11696# interlibrary dependencies.
11697# 'none' -- dependencies not supported.
11698# `unknown' -- same as none, but documents that we really don't know.
11699# 'pass_all' -- all dependencies passed with no checks.
11700# 'test_compile' -- check by making test program.
11701# 'file_magic [[regex]]' -- check by looking for files in library path
11702# which responds to the $file_magic_cmd with a given extended regex.
11703# If you have `file' or equivalent on your system and you're not sure
11704# whether `pass_all' will *always* work, you probably want this one.
11705
11706case $host_os in
11707aix[4-9]*)
11708 lt_cv_deplibs_check_method=pass_all
11709 ;;
11710
11711beos*)
11712 lt_cv_deplibs_check_method=pass_all
11713 ;;
11714
11715bsdi[45]*)
11716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11717 lt_cv_file_magic_cmd='/usr/bin/file -L'
11718 lt_cv_file_magic_test_file=/shlib/libc.so
11719 ;;
11720
11721cygwin*)
11722 # func_win32_libid is a shell function defined in ltmain.sh
11723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11724 lt_cv_file_magic_cmd='func_win32_libid'
11725 ;;
11726
11727mingw* | pw32*)
11728 # Base MSYS/MinGW do not provide the 'file' command needed by
11729 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11730 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011731 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11732 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11734 lt_cv_file_magic_cmd='func_win32_libid'
11735 else
cristy0c60a692010-11-04 01:09:47 +000011736 # Keep this pattern in sync with the one in func_win32_libid.
11737 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 +000011738 lt_cv_file_magic_cmd='$OBJDUMP -f'
11739 fi
11740 ;;
11741
cristy0c60a692010-11-04 01:09:47 +000011742cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011743 # use the weaker test based on 'objdump'. See mingw*.
11744 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11745 lt_cv_file_magic_cmd='$OBJDUMP -f'
11746 ;;
11747
11748darwin* | rhapsody*)
11749 lt_cv_deplibs_check_method=pass_all
11750 ;;
11751
11752freebsd* | dragonfly*)
11753 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11754 case $host_cpu in
11755 i*86 )
11756 # Not sure whether the presence of OpenBSD here was a mistake.
11757 # Let's accept both of them until this is cleared up.
11758 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11759 lt_cv_file_magic_cmd=/usr/bin/file
11760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11761 ;;
11762 esac
11763 else
11764 lt_cv_deplibs_check_method=pass_all
11765 fi
11766 ;;
11767
11768gnu*)
11769 lt_cv_deplibs_check_method=pass_all
11770 ;;
11771
cristy0c60a692010-11-04 01:09:47 +000011772haiku*)
11773 lt_cv_deplibs_check_method=pass_all
11774 ;;
11775
cristy73bd4a52010-10-05 11:24:23 +000011776hpux10.20* | hpux11*)
11777 lt_cv_file_magic_cmd=/usr/bin/file
11778 case $host_cpu in
11779 ia64*)
11780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11781 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11782 ;;
11783 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011784 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 +000011785 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11786 ;;
11787 *)
cristy0c60a692010-11-04 01:09:47 +000011788 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 +000011789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11790 ;;
11791 esac
11792 ;;
11793
11794interix[3-9]*)
11795 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11797 ;;
11798
11799irix5* | irix6* | nonstopux*)
11800 case $LD in
11801 *-32|*"-32 ") libmagic=32-bit;;
11802 *-n32|*"-n32 ") libmagic=N32;;
11803 *-64|*"-64 ") libmagic=64-bit;;
11804 *) libmagic=never-match;;
11805 esac
11806 lt_cv_deplibs_check_method=pass_all
11807 ;;
11808
cristy99bd5232011-12-07 14:38:20 +000011809# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011810linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011811 lt_cv_deplibs_check_method=pass_all
11812 ;;
11813
11814netbsd*)
11815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11817 else
11818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11819 fi
11820 ;;
11821
11822newos6*)
11823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11824 lt_cv_file_magic_cmd=/usr/bin/file
11825 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11826 ;;
11827
11828*nto* | *qnx*)
11829 lt_cv_deplibs_check_method=pass_all
11830 ;;
11831
11832openbsd*)
11833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11835 else
11836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11837 fi
11838 ;;
11839
11840osf3* | osf4* | osf5*)
11841 lt_cv_deplibs_check_method=pass_all
11842 ;;
11843
11844rdos*)
11845 lt_cv_deplibs_check_method=pass_all
11846 ;;
11847
11848solaris*)
11849 lt_cv_deplibs_check_method=pass_all
11850 ;;
11851
11852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11853 lt_cv_deplibs_check_method=pass_all
11854 ;;
11855
11856sysv4 | sysv4.3*)
11857 case $host_vendor in
11858 motorola)
11859 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]'
11860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11861 ;;
11862 ncr)
11863 lt_cv_deplibs_check_method=pass_all
11864 ;;
11865 sequent)
11866 lt_cv_file_magic_cmd='/bin/file'
11867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11868 ;;
11869 sni)
11870 lt_cv_file_magic_cmd='/bin/file'
11871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11872 lt_cv_file_magic_test_file=/lib/libc.so
11873 ;;
11874 siemens)
11875 lt_cv_deplibs_check_method=pass_all
11876 ;;
11877 pc)
11878 lt_cv_deplibs_check_method=pass_all
11879 ;;
11880 esac
11881 ;;
11882
11883tpf*)
11884 lt_cv_deplibs_check_method=pass_all
11885 ;;
11886esac
11887
11888fi
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11890$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011891
11892file_magic_glob=
11893want_nocaseglob=no
11894if test "$build" = "$host"; then
11895 case $host_os in
11896 mingw* | pw32*)
11897 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11898 want_nocaseglob=yes
11899 else
11900 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11901 fi
11902 ;;
11903 esac
11904fi
11905
cristy73bd4a52010-10-05 11:24:23 +000011906file_magic_cmd=$lt_cv_file_magic_cmd
11907deplibs_check_method=$lt_cv_deplibs_check_method
11908test -z "$deplibs_check_method" && deplibs_check_method=unknown
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
cristyda16f162011-02-19 23:52:17 +000011921
11922
11923
11924
11925
11926
11927
11928
11929
11930
cristy73bd4a52010-10-05 11:24:23 +000011931if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011932 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11933set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011936if ${ac_cv_prog_DLLTOOL+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938else
11939 if test -n "$DLLTOOL"; then
11940 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11941else
11942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943for as_dir in $PATH
11944do
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
11947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011949 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 break 2
11952 fi
11953done
11954 done
11955IFS=$as_save_IFS
11956
11957fi
11958fi
11959DLLTOOL=$ac_cv_prog_DLLTOOL
11960if test -n "$DLLTOOL"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11962$as_echo "$DLLTOOL" >&6; }
11963else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
11966fi
11967
11968
11969fi
11970if test -z "$ac_cv_prog_DLLTOOL"; then
11971 ac_ct_DLLTOOL=$DLLTOOL
11972 # Extract the first word of "dlltool", so it can be a program name with args.
11973set dummy dlltool; ac_word=$2
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975$as_echo_n "checking for $ac_word... " >&6; }
11976if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978else
11979 if test -n "$ac_ct_DLLTOOL"; then
11980 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11981else
11982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011989 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11992 fi
11993done
11994 done
11995IFS=$as_save_IFS
11996
11997fi
11998fi
11999ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12000if test -n "$ac_ct_DLLTOOL"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12002$as_echo "$ac_ct_DLLTOOL" >&6; }
12003else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
12006fi
12007
12008 if test "x$ac_ct_DLLTOOL" = x; then
12009 DLLTOOL="false"
12010 else
12011 case $cross_compiling:$ac_tool_warned in
12012yes:)
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12015ac_tool_warned=yes ;;
12016esac
12017 DLLTOOL=$ac_ct_DLLTOOL
12018 fi
12019else
12020 DLLTOOL="$ac_cv_prog_DLLTOOL"
12021fi
12022
12023test -z "$DLLTOOL" && DLLTOOL=dlltool
12024
12025
12026
12027
12028
12029
12030
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12032$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12033if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035else
12036 lt_cv_sharedlib_from_linklib_cmd='unknown'
12037
12038case $host_os in
12039cygwin* | mingw* | pw32* | cegcc*)
12040 # two different shell functions defined in ltmain.sh
12041 # decide which to use based on capabilities of $DLLTOOL
12042 case `$DLLTOOL --help 2>&1` in
12043 *--identify-strict*)
12044 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12045 ;;
12046 *)
12047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12048 ;;
12049 esac
12050 ;;
12051*)
12052 # fallback: assume linklib IS sharedlib
12053 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12054 ;;
12055esac
12056
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12059$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12060sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12061test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12062
12063
12064
12065
12066
12067
12068
12069if test -n "$ac_tool_prefix"; then
12070 for ac_prog in ar
12071 do
12072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075$as_echo_n "checking for $ac_word... " >&6; }
12076if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012077 $as_echo_n "(cached) " >&6
12078else
12079 if test -n "$AR"; then
12080 ac_cv_prog_AR="$AR" # Let the user override the test.
12081else
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12092 fi
12093done
12094 done
12095IFS=$as_save_IFS
12096
12097fi
12098fi
12099AR=$ac_cv_prog_AR
12100if test -n "$AR"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12102$as_echo "$AR" >&6; }
12103else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
12106fi
12107
12108
cristyda16f162011-02-19 23:52:17 +000012109 test -n "$AR" && break
12110 done
cristy73bd4a52010-10-05 11:24:23 +000012111fi
cristyda16f162011-02-19 23:52:17 +000012112if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012113 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012114 for ac_prog in ar
12115do
12116 # Extract the first word of "$ac_prog", so it can be a program name with args.
12117set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012120if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012121 $as_echo_n "(cached) " >&6
12122else
12123 if test -n "$ac_ct_AR"; then
12124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12125else
12126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $PATH
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012133 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12136 fi
12137done
12138 done
12139IFS=$as_save_IFS
12140
12141fi
12142fi
12143ac_ct_AR=$ac_cv_prog_ac_ct_AR
12144if test -n "$ac_ct_AR"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12146$as_echo "$ac_ct_AR" >&6; }
12147else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149$as_echo "no" >&6; }
12150fi
12151
cristyda16f162011-02-19 23:52:17 +000012152
12153 test -n "$ac_ct_AR" && break
12154done
12155
cristy73bd4a52010-10-05 11:24:23 +000012156 if test "x$ac_ct_AR" = x; then
12157 AR="false"
12158 else
12159 case $cross_compiling:$ac_tool_warned in
12160yes:)
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12163ac_tool_warned=yes ;;
12164esac
12165 AR=$ac_ct_AR
12166 fi
cristy73bd4a52010-10-05 11:24:23 +000012167fi
12168
cristyda16f162011-02-19 23:52:17 +000012169: ${AR=ar}
12170: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
cristyda16f162011-02-19 23:52:17 +000012182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12183$as_echo_n "checking for archiver @FILE support... " >&6; }
12184if ${lt_cv_ar_at_file+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186else
12187 lt_cv_ar_at_file=no
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189/* end confdefs.h. */
12190
12191int
12192main ()
12193{
12194
12195 ;
12196 return 0;
12197}
12198_ACEOF
12199if ac_fn_c_try_compile "$LINENO"; then :
12200 echo conftest.$ac_objext > conftest.lst
12201 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12203 (eval $lt_ar_try) 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; }
12207 if test "$ac_status" -eq 0; then
12208 # Ensure the archiver fails upon bogus file names.
12209 rm -f conftest.$ac_objext libconftest.a
12210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12211 (eval $lt_ar_try) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; }
12215 if test "$ac_status" -ne 0; then
12216 lt_cv_ar_at_file=@
12217 fi
12218 fi
12219 rm -f conftest.* libconftest.a
12220
12221fi
12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223
12224fi
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12226$as_echo "$lt_cv_ar_at_file" >&6; }
12227
12228if test "x$lt_cv_ar_at_file" = xno; then
12229 archiver_list_spec=
12230else
12231 archiver_list_spec=$lt_cv_ar_at_file
12232fi
12233
12234
12235
12236
12237
12238
12239
cristy73bd4a52010-10-05 11:24:23 +000012240if test -n "$ac_tool_prefix"; then
12241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12242set dummy ${ac_tool_prefix}strip; ac_word=$2
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012245if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012246 $as_echo_n "(cached) " >&6
12247else
12248 if test -n "$STRIP"; then
12249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12261 fi
12262done
12263 done
12264IFS=$as_save_IFS
12265
12266fi
12267fi
12268STRIP=$ac_cv_prog_STRIP
12269if test -n "$STRIP"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12271$as_echo "$STRIP" >&6; }
12272else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
12275fi
12276
12277
12278fi
12279if test -z "$ac_cv_prog_STRIP"; then
12280 ac_ct_STRIP=$STRIP
12281 # Extract the first word of "strip", so it can be a program name with args.
12282set dummy strip; ac_word=$2
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012285if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012286 $as_echo_n "(cached) " >&6
12287else
12288 if test -n "$ac_ct_STRIP"; then
12289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12290else
12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292for as_dir in $PATH
12293do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012298 ac_cv_prog_ac_ct_STRIP="strip"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302done
12303 done
12304IFS=$as_save_IFS
12305
12306fi
12307fi
12308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12309if test -n "$ac_ct_STRIP"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12311$as_echo "$ac_ct_STRIP" >&6; }
12312else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314$as_echo "no" >&6; }
12315fi
12316
12317 if test "x$ac_ct_STRIP" = x; then
12318 STRIP=":"
12319 else
12320 case $cross_compiling:$ac_tool_warned in
12321yes:)
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12324ac_tool_warned=yes ;;
12325esac
12326 STRIP=$ac_ct_STRIP
12327 fi
12328else
12329 STRIP="$ac_cv_prog_STRIP"
12330fi
12331
12332test -z "$STRIP" && STRIP=:
12333
12334
12335
12336
12337
12338
12339if test -n "$ac_tool_prefix"; then
12340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012344if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012345 $as_echo_n "(cached) " >&6
12346else
12347 if test -n "$RANLIB"; then
12348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361done
12362 done
12363IFS=$as_save_IFS
12364
12365fi
12366fi
12367RANLIB=$ac_cv_prog_RANLIB
12368if test -n "$RANLIB"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12370$as_echo "$RANLIB" >&6; }
12371else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376
12377fi
12378if test -z "$ac_cv_prog_RANLIB"; then
12379 ac_ct_RANLIB=$RANLIB
12380 # Extract the first word of "ranlib", so it can be a program name with args.
12381set dummy ranlib; ac_word=$2
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012385 $as_echo_n "(cached) " >&6
12386else
12387 if test -n "$ac_ct_RANLIB"; then
12388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12389else
12390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391for as_dir in $PATH
12392do
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012397 ac_cv_prog_ac_ct_RANLIB="ranlib"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12400 fi
12401done
12402 done
12403IFS=$as_save_IFS
12404
12405fi
12406fi
12407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12408if test -n "$ac_ct_RANLIB"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12410$as_echo "$ac_ct_RANLIB" >&6; }
12411else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
12414fi
12415
12416 if test "x$ac_ct_RANLIB" = x; then
12417 RANLIB=":"
12418 else
12419 case $cross_compiling:$ac_tool_warned in
12420yes:)
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12423ac_tool_warned=yes ;;
12424esac
12425 RANLIB=$ac_ct_RANLIB
12426 fi
12427else
12428 RANLIB="$ac_cv_prog_RANLIB"
12429fi
12430
12431test -z "$RANLIB" && RANLIB=:
12432
12433
12434
12435
12436
12437
12438# Determine commands to create old-style static archives.
12439old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12440old_postinstall_cmds='chmod 644 $oldlib'
12441old_postuninstall_cmds=
12442
12443if test -n "$RANLIB"; then
12444 case $host_os in
12445 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012447 ;;
12448 *)
cristy99bd5232011-12-07 14:38:20 +000012449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012450 ;;
12451 esac
cristy99bd5232011-12-07 14:38:20 +000012452 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012453fi
12454
cristy0c60a692010-11-04 01:09:47 +000012455case $host_os in
12456 darwin*)
12457 lock_old_archive_extraction=yes ;;
12458 *)
12459 lock_old_archive_extraction=no ;;
12460esac
12461
12462
12463
12464
12465
12466
cristy73bd4a52010-10-05 11:24:23 +000012467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500# If no C compiler was specified, use CC.
12501LTCC=${LTCC-"$CC"}
12502
12503# If no C compiler flags were specified, use CFLAGS.
12504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12505
12506# Allow CC to be a program name with arguments.
12507compiler=$CC
12508
12509
12510# Check for command to grab the raw symbol name followed by C symbol from nm.
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012513if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 $as_echo_n "(cached) " >&6
12515else
12516
12517# These are sane defaults that work on at least a few old systems.
12518# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12519
12520# Character class describing NM global symbol codes.
12521symcode='[BCDEGRST]'
12522
12523# Regexp to match symbols that can be accessed directly from C.
12524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12525
12526# Define system-specific variables.
12527case $host_os in
12528aix*)
12529 symcode='[BCDT]'
12530 ;;
12531cygwin* | mingw* | pw32* | cegcc*)
12532 symcode='[ABCDGISTW]'
12533 ;;
12534hpux*)
12535 if test "$host_cpu" = ia64; then
12536 symcode='[ABCDEGRST]'
12537 fi
12538 ;;
12539irix* | nonstopux*)
12540 symcode='[BCDEGRST]'
12541 ;;
12542osf*)
12543 symcode='[BCDEGQRST]'
12544 ;;
12545solaris*)
12546 symcode='[BDRT]'
12547 ;;
12548sco3.2v5*)
12549 symcode='[DT]'
12550 ;;
12551sysv4.2uw2*)
12552 symcode='[DT]'
12553 ;;
12554sysv5* | sco5v6* | unixware* | OpenUNIX*)
12555 symcode='[ABDT]'
12556 ;;
12557sysv4)
12558 symcode='[DFNSTU]'
12559 ;;
12560esac
12561
12562# If we're using GNU nm, then use its standard symbol codes.
12563case `$NM -V 2>&1` in
12564*GNU* | *'with BFD'*)
12565 symcode='[ABCDGIRSTW]' ;;
12566esac
12567
12568# Transform an extracted symbol line into a proper C declaration.
12569# Some systems (esp. on ia64) link data and code symbols differently,
12570# so use this general approach.
12571lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12572
12573# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012574lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12575lt_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 +000012576
12577# Handle CRLF in mingw tool chain
12578opt_cr=
12579case $build_os in
12580mingw*)
12581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12582 ;;
12583esac
12584
12585# Try without a prefix underscore, then with it.
12586for ac_symprfx in "" "_"; do
12587
12588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12589 symxfrm="\\1 $ac_symprfx\\2 \\2"
12590
12591 # Write the raw and C identifiers.
12592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12593 # Fake it for dumpbin and say T for any non-static function
12594 # and D for any global variable.
12595 # Also find C++ and __fastcall symbols from MSVC++,
12596 # which start with @ or ?.
12597 lt_cv_sys_global_symbol_pipe="$AWK '"\
12598" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012599" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012600" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12601" \$ 0!~/External *\|/{next};"\
12602" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12603" {if(hide[section]) next};"\
12604" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12605" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12606" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12607" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12608" ' prfx=^$ac_symprfx"
12609 else
12610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12611 fi
cristyda16f162011-02-19 23:52:17 +000012612 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012613
12614 # Check to see that the pipe works correctly.
12615 pipe_works=no
12616
12617 rm -f conftest*
12618 cat > conftest.$ac_ext <<_LT_EOF
12619#ifdef __cplusplus
12620extern "C" {
12621#endif
12622char nm_test_var;
12623void nm_test_func(void);
12624void nm_test_func(void){}
12625#ifdef __cplusplus
12626}
12627#endif
12628int main(){nm_test_var='a';nm_test_func();return(0);}
12629_LT_EOF
12630
12631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12632 (eval $ac_compile) 2>&5
12633 ac_status=$?
12634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12635 test $ac_status = 0; }; then
12636 # Now try to grab the symbols.
12637 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12639 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012640 ac_status=$?
12641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12642 test $ac_status = 0; } && test -s "$nlist"; then
12643 # Try sorting and uniquifying the output.
12644 if sort "$nlist" | uniq > "$nlist"T; then
12645 mv -f "$nlist"T "$nlist"
12646 else
12647 rm -f "$nlist"T
12648 fi
12649
12650 # Make sure that we snagged all the symbols we need.
12651 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12652 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12653 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012654/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12655#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12656/* DATA imports from DLLs on WIN32 con't be const, because runtime
12657 relocations are performed -- see ld's documentation on pseudo-relocs. */
12658# define LT_DLSYM_CONST
12659#elif defined(__osf__)
12660/* This system does not cope well with relocations in const data. */
12661# define LT_DLSYM_CONST
12662#else
12663# define LT_DLSYM_CONST const
12664#endif
12665
cristy73bd4a52010-10-05 11:24:23 +000012666#ifdef __cplusplus
12667extern "C" {
12668#endif
12669
12670_LT_EOF
12671 # Now generate the symbol file.
12672 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12673
12674 cat <<_LT_EOF >> conftest.$ac_ext
12675
12676/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012677LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012678 const char *name;
12679 void *address;
12680}
12681lt__PROGRAM__LTX_preloaded_symbols[] =
12682{
12683 { "@PROGRAM@", (void *) 0 },
12684_LT_EOF
12685 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12686 cat <<\_LT_EOF >> conftest.$ac_ext
12687 {0, (void *) 0}
12688};
12689
12690/* This works around a problem in FreeBSD linker */
12691#ifdef FREEBSD_WORKAROUND
12692static const void *lt_preloaded_setup() {
12693 return lt__PROGRAM__LTX_preloaded_symbols;
12694}
12695#endif
12696
12697#ifdef __cplusplus
12698}
12699#endif
12700_LT_EOF
12701 # Now try linking the two files.
12702 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012703 lt_globsym_save_LIBS=$LIBS
12704 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012705 LIBS="conftstm.$ac_objext"
12706 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12712 pipe_works=yes
12713 fi
cristyda16f162011-02-19 23:52:17 +000012714 LIBS=$lt_globsym_save_LIBS
12715 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012716 else
12717 echo "cannot find nm_test_func in $nlist" >&5
12718 fi
12719 else
12720 echo "cannot find nm_test_var in $nlist" >&5
12721 fi
12722 else
12723 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12724 fi
12725 else
12726 echo "$progname: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 fi
12729 rm -rf conftest* conftst*
12730
12731 # Do not use the global_symbol_pipe unless it works.
12732 if test "$pipe_works" = yes; then
12733 break
12734 else
12735 lt_cv_sys_global_symbol_pipe=
12736 fi
12737done
12738
12739fi
12740
12741if test -z "$lt_cv_sys_global_symbol_pipe"; then
12742 lt_cv_sys_global_symbol_to_cdecl=
12743fi
12744if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12746$as_echo "failed" >&6; }
12747else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12749$as_echo "ok" >&6; }
12750fi
12751
cristyda16f162011-02-19 23:52:17 +000012752# Response file support.
12753if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12754 nm_file_list_spec='@'
12755elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12756 nm_file_list_spec='@'
12757fi
cristy73bd4a52010-10-05 11:24:23 +000012758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
cristyda16f162011-02-19 23:52:17 +000012779
12780
12781
12782
12783
12784
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12786$as_echo_n "checking for sysroot... " >&6; }
12787
12788# Check whether --with-sysroot was given.
12789if test "${with_sysroot+set}" = set; then :
12790 withval=$with_sysroot;
12791else
12792 with_sysroot=no
12793fi
12794
12795
12796lt_sysroot=
12797case ${with_sysroot} in #(
12798 yes)
12799 if test "$GCC" = yes; then
12800 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12801 fi
12802 ;; #(
12803 /*)
12804 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12805 ;; #(
12806 no|'')
12807 ;; #(
12808 *)
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12810$as_echo "${with_sysroot}" >&6; }
12811 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12812 ;;
12813esac
12814
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12816$as_echo "${lt_sysroot:-no}" >&6; }
12817
12818
12819
12820
12821
cristy73bd4a52010-10-05 11:24:23 +000012822# Check whether --enable-libtool-lock was given.
12823if test "${enable_libtool_lock+set}" = set; then :
12824 enableval=$enable_libtool_lock;
12825fi
12826
12827test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12828
12829# Some flags need to be propagated to the compiler or linker for good
12830# libtool support.
12831case $host in
12832ia64-*-hpux*)
12833 # Find out which ABI we are using.
12834 echo 'int i;' > conftest.$ac_ext
12835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12836 (eval $ac_compile) 2>&5
12837 ac_status=$?
12838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; }; then
12840 case `/usr/bin/file conftest.$ac_objext` in
12841 *ELF-32*)
12842 HPUX_IA64_MODE="32"
12843 ;;
12844 *ELF-64*)
12845 HPUX_IA64_MODE="64"
12846 ;;
12847 esac
12848 fi
12849 rm -rf conftest*
12850 ;;
12851*-*-irix6*)
12852 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012853 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12855 (eval $ac_compile) 2>&5
12856 ac_status=$?
12857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12858 test $ac_status = 0; }; then
12859 if test "$lt_cv_prog_gnu_ld" = yes; then
12860 case `/usr/bin/file conftest.$ac_objext` in
12861 *32-bit*)
12862 LD="${LD-ld} -melf32bsmip"
12863 ;;
12864 *N32*)
12865 LD="${LD-ld} -melf32bmipn32"
12866 ;;
12867 *64-bit*)
12868 LD="${LD-ld} -melf64bmip"
12869 ;;
12870 esac
12871 else
12872 case `/usr/bin/file conftest.$ac_objext` in
12873 *32-bit*)
12874 LD="${LD-ld} -32"
12875 ;;
12876 *N32*)
12877 LD="${LD-ld} -n32"
12878 ;;
12879 *64-bit*)
12880 LD="${LD-ld} -64"
12881 ;;
12882 esac
12883 fi
12884 fi
12885 rm -rf conftest*
12886 ;;
12887
cristyd95b7a52013-10-23 13:12:53 +000012888x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012889s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12890 # Find out which ABI we are using.
12891 echo 'int i;' > conftest.$ac_ext
12892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12893 (eval $ac_compile) 2>&5
12894 ac_status=$?
12895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896 test $ac_status = 0; }; then
12897 case `/usr/bin/file conftest.o` in
12898 *32-bit*)
12899 case $host in
12900 x86_64-*kfreebsd*-gnu)
12901 LD="${LD-ld} -m elf_i386_fbsd"
12902 ;;
12903 x86_64-*linux*)
12904 LD="${LD-ld} -m elf_i386"
12905 ;;
cristya5bda012013-11-03 18:05:38 +000012906 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012907 LD="${LD-ld} -m elf32lppclinux"
12908 ;;
cristya5bda012013-11-03 18:05:38 +000012909 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012910 LD="${LD-ld} -m elf32ppclinux"
12911 ;;
12912 s390x-*linux*)
12913 LD="${LD-ld} -m elf_s390"
12914 ;;
12915 sparc64-*linux*)
12916 LD="${LD-ld} -m elf32_sparc"
12917 ;;
12918 esac
12919 ;;
12920 *64-bit*)
12921 case $host in
12922 x86_64-*kfreebsd*-gnu)
12923 LD="${LD-ld} -m elf_x86_64_fbsd"
12924 ;;
12925 x86_64-*linux*)
12926 LD="${LD-ld} -m elf_x86_64"
12927 ;;
cristyd95b7a52013-10-23 13:12:53 +000012928 powerpcle-*linux*)
12929 LD="${LD-ld} -m elf64lppc"
12930 ;;
12931 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012932 LD="${LD-ld} -m elf64ppc"
12933 ;;
12934 s390*-*linux*|s390*-*tpf*)
12935 LD="${LD-ld} -m elf64_s390"
12936 ;;
12937 sparc*-*linux*)
12938 LD="${LD-ld} -m elf64_sparc"
12939 ;;
12940 esac
12941 ;;
12942 esac
12943 fi
12944 rm -rf conftest*
12945 ;;
12946
12947*-*-sco3.2v5*)
12948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12949 SAVE_CFLAGS="$CFLAGS"
12950 CFLAGS="$CFLAGS -belf"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12952$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012953if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 ac_ext=c
12957ac_cpp='$CPP $CPPFLAGS'
12958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h. */
12964
12965int
12966main ()
12967{
12968
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973if ac_fn_c_try_link "$LINENO"; then :
12974 lt_cv_cc_needs_belf=yes
12975else
12976 lt_cv_cc_needs_belf=no
12977fi
12978rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 ac_ext=c
12981ac_cpp='$CPP $CPPFLAGS'
12982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984ac_compiler_gnu=$ac_cv_c_compiler_gnu
12985
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12988$as_echo "$lt_cv_cc_needs_belf" >&6; }
12989 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12990 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12991 CFLAGS="$SAVE_CFLAGS"
12992 fi
12993 ;;
cristy99bd5232011-12-07 14:38:20 +000012994*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012995 # Find out which ABI we are using.
12996 echo 'int i;' > conftest.$ac_ext
12997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12998 (eval $ac_compile) 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; }; then
13002 case `/usr/bin/file conftest.o` in
13003 *64-bit*)
13004 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013005 yes*)
13006 case $host in
13007 i?86-*-solaris*)
13008 LD="${LD-ld} -m elf_x86_64"
13009 ;;
13010 sparc*-*-solaris*)
13011 LD="${LD-ld} -m elf64_sparc"
13012 ;;
13013 esac
13014 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13015 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13016 LD="${LD-ld}_sol2"
13017 fi
13018 ;;
cristy73bd4a52010-10-05 11:24:23 +000013019 *)
13020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13021 LD="${LD-ld} -64"
13022 fi
13023 ;;
13024 esac
13025 ;;
13026 esac
13027 fi
13028 rm -rf conftest*
13029 ;;
13030esac
13031
13032need_locks="$enable_libtool_lock"
13033
cristyda16f162011-02-19 23:52:17 +000013034if test -n "$ac_tool_prefix"; then
13035 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13036set dummy ${ac_tool_prefix}mt; ac_word=$2
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038$as_echo_n "checking for $ac_word... " >&6; }
13039if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041else
13042 if test -n "$MANIFEST_TOOL"; then
13043 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13044else
13045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046for as_dir in $PATH
13047do
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013052 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 break 2
13055 fi
13056done
13057 done
13058IFS=$as_save_IFS
13059
13060fi
13061fi
13062MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13063if test -n "$MANIFEST_TOOL"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13065$as_echo "$MANIFEST_TOOL" >&6; }
13066else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
13069fi
13070
13071
13072fi
13073if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13074 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13075 # Extract the first word of "mt", so it can be a program name with args.
13076set dummy mt; ac_word=$2
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078$as_echo_n "checking for $ac_word... " >&6; }
13079if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081else
13082 if test -n "$ac_ct_MANIFEST_TOOL"; then
13083 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13084else
13085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $PATH
13087do
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013092 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13095 fi
13096done
13097 done
13098IFS=$as_save_IFS
13099
13100fi
13101fi
13102ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13103if test -n "$ac_ct_MANIFEST_TOOL"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13105$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13106else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
13109fi
13110
13111 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13112 MANIFEST_TOOL=":"
13113 else
13114 case $cross_compiling:$ac_tool_warned in
13115yes:)
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13118ac_tool_warned=yes ;;
13119esac
13120 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13121 fi
13122else
13123 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13124fi
13125
13126test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13128$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13129if ${lt_cv_path_mainfest_tool+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131else
13132 lt_cv_path_mainfest_tool=no
13133 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13134 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13135 cat conftest.err >&5
13136 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13137 lt_cv_path_mainfest_tool=yes
13138 fi
13139 rm -f conftest*
13140fi
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13142$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13143if test "x$lt_cv_path_mainfest_tool" != xyes; then
13144 MANIFEST_TOOL=:
13145fi
13146
13147
13148
13149
13150
cristy73bd4a52010-10-05 11:24:23 +000013151
13152 case $host_os in
13153 rhapsody* | darwin*)
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13156set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013159if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$DSYMUTIL"; then
13163 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013172 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182DSYMUTIL=$ac_cv_prog_DSYMUTIL
13183if test -n "$DSYMUTIL"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13185$as_echo "$DSYMUTIL" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192fi
13193if test -z "$ac_cv_prog_DSYMUTIL"; then
13194 ac_ct_DSYMUTIL=$DSYMUTIL
13195 # Extract the first word of "dsymutil", so it can be a program name with args.
13196set dummy dsymutil; ac_word=$2
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013199if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013200 $as_echo_n "(cached) " >&6
13201else
13202 if test -n "$ac_ct_DSYMUTIL"; then
13203 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13204else
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216done
13217 done
13218IFS=$as_save_IFS
13219
13220fi
13221fi
13222ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13223if test -n "$ac_ct_DSYMUTIL"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13225$as_echo "$ac_ct_DSYMUTIL" >&6; }
13226else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
13229fi
13230
13231 if test "x$ac_ct_DSYMUTIL" = x; then
13232 DSYMUTIL=":"
13233 else
13234 case $cross_compiling:$ac_tool_warned in
13235yes:)
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238ac_tool_warned=yes ;;
13239esac
13240 DSYMUTIL=$ac_ct_DSYMUTIL
13241 fi
13242else
13243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13244fi
13245
13246 if test -n "$ac_tool_prefix"; then
13247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13248set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$NMEDIT"; then
13255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274NMEDIT=$ac_cv_prog_NMEDIT
13275if test -n "$NMEDIT"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13277$as_echo "$NMEDIT" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283
13284fi
13285if test -z "$ac_cv_prog_NMEDIT"; then
13286 ac_ct_NMEDIT=$NMEDIT
13287 # Extract the first word of "nmedit", so it can be a program name with args.
13288set dummy nmedit; ac_word=$2
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013291if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013292 $as_echo_n "(cached) " >&6
13293else
13294 if test -n "$ac_ct_NMEDIT"; then
13295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013304 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13307 fi
13308done
13309 done
13310IFS=$as_save_IFS
13311
13312fi
13313fi
13314ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13315if test -n "$ac_ct_NMEDIT"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13317$as_echo "$ac_ct_NMEDIT" >&6; }
13318else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
13322
13323 if test "x$ac_ct_NMEDIT" = x; then
13324 NMEDIT=":"
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330ac_tool_warned=yes ;;
13331esac
13332 NMEDIT=$ac_ct_NMEDIT
13333 fi
13334else
13335 NMEDIT="$ac_cv_prog_NMEDIT"
13336fi
13337
13338 if test -n "$ac_tool_prefix"; then
13339 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}lipo; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$LIPO"; then
13347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366LIPO=$ac_cv_prog_LIPO
13367if test -n "$LIPO"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13369$as_echo "$LIPO" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_LIPO"; then
13378 ac_ct_LIPO=$LIPO
13379 # Extract the first word of "lipo", so it can be a program name with args.
13380set dummy lipo; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013383if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013384 $as_echo_n "(cached) " >&6
13385else
13386 if test -n "$ac_ct_LIPO"; then
13387 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013396 ac_cv_prog_ac_ct_LIPO="lipo"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400done
13401 done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13407if test -n "$ac_ct_LIPO"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13409$as_echo "$ac_ct_LIPO" >&6; }
13410else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415 if test "x$ac_ct_LIPO" = x; then
13416 LIPO=":"
13417 else
13418 case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424 LIPO=$ac_ct_LIPO
13425 fi
13426else
13427 LIPO="$ac_cv_prog_LIPO"
13428fi
13429
13430 if test -n "$ac_tool_prefix"; then
13431 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13432set dummy ${ac_tool_prefix}otool; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013435if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013436 $as_echo_n "(cached) " >&6
13437else
13438 if test -n "$OTOOL"; then
13439 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013448 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452done
13453 done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458OTOOL=$ac_cv_prog_OTOOL
13459if test -n "$OTOOL"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13461$as_echo "$OTOOL" >&6; }
13462else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467
13468fi
13469if test -z "$ac_cv_prog_OTOOL"; then
13470 ac_ct_OTOOL=$OTOOL
13471 # Extract the first word of "otool", so it can be a program name with args.
13472set dummy otool; ac_word=$2
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013475if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013476 $as_echo_n "(cached) " >&6
13477else
13478 if test -n "$ac_ct_OTOOL"; then
13479 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13480else
13481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482for as_dir in $PATH
13483do
13484 IFS=$as_save_IFS
13485 test -z "$as_dir" && as_dir=.
13486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013488 ac_cv_prog_ac_ct_OTOOL="otool"
13489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13490 break 2
13491 fi
13492done
13493 done
13494IFS=$as_save_IFS
13495
13496fi
13497fi
13498ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13499if test -n "$ac_ct_OTOOL"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13501$as_echo "$ac_ct_OTOOL" >&6; }
13502else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504$as_echo "no" >&6; }
13505fi
13506
13507 if test "x$ac_ct_OTOOL" = x; then
13508 OTOOL=":"
13509 else
13510 case $cross_compiling:$ac_tool_warned in
13511yes:)
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13514ac_tool_warned=yes ;;
13515esac
13516 OTOOL=$ac_ct_OTOOL
13517 fi
13518else
13519 OTOOL="$ac_cv_prog_OTOOL"
13520fi
13521
13522 if test -n "$ac_tool_prefix"; then
13523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13524set dummy ${ac_tool_prefix}otool64; ac_word=$2
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013527if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013528 $as_echo_n "(cached) " >&6
13529else
13530 if test -n "$OTOOL64"; then
13531 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13532else
13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536 IFS=$as_save_IFS
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013540 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 break 2
13543 fi
13544done
13545 done
13546IFS=$as_save_IFS
13547
13548fi
13549fi
13550OTOOL64=$ac_cv_prog_OTOOL64
13551if test -n "$OTOOL64"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13553$as_echo "$OTOOL64" >&6; }
13554else
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556$as_echo "no" >&6; }
13557fi
13558
13559
13560fi
13561if test -z "$ac_cv_prog_OTOOL64"; then
13562 ac_ct_OTOOL64=$OTOOL64
13563 # Extract the first word of "otool64", so it can be a program name with args.
13564set dummy otool64; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013567if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013568 $as_echo_n "(cached) " >&6
13569else
13570 if test -n "$ac_ct_OTOOL64"; then
13571 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013580 ac_cv_prog_ac_ct_OTOOL64="otool64"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584done
13585 done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13591if test -n "$ac_ct_OTOOL64"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13593$as_echo "$ac_ct_OTOOL64" >&6; }
13594else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599 if test "x$ac_ct_OTOOL64" = x; then
13600 OTOOL64=":"
13601 else
13602 case $cross_compiling:$ac_tool_warned in
13603yes:)
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606ac_tool_warned=yes ;;
13607esac
13608 OTOOL64=$ac_ct_OTOOL64
13609 fi
13610else
13611 OTOOL64="$ac_cv_prog_OTOOL64"
13612fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13641$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013642if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013643 $as_echo_n "(cached) " >&6
13644else
13645 lt_cv_apple_cc_single_mod=no
13646 if test -z "${LT_MULTI_MODULE}"; then
13647 # By default we will add the -single_module flag. You can override
13648 # by either setting the environment variable LT_MULTI_MODULE
13649 # non-empty at configure time, or by adding -multi_module to the
13650 # link flags.
13651 rm -rf libconftest.dylib*
13652 echo "int foo(void){return 1;}" > conftest.c
13653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13654-dynamiclib -Wl,-single_module conftest.c" >&5
13655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13657 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013658 # If there is a non-empty error log, and "single_module"
13659 # appears in it, assume the flag caused a linker warning
13660 if test -s conftest.err && $GREP single_module conftest.err; then
13661 cat conftest.err >&5
13662 # Otherwise, if the output was created with a 0 exit code from
13663 # the compiler, it worked.
13664 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013665 lt_cv_apple_cc_single_mod=yes
13666 else
13667 cat conftest.err >&5
13668 fi
13669 rm -rf libconftest.dylib*
13670 rm -f conftest.*
13671 fi
13672fi
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13674$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013675
cristy73bd4a52010-10-05 11:24:23 +000013676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13677$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013678if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013679 $as_echo_n "(cached) " >&6
13680else
13681 lt_cv_ld_exported_symbols_list=no
13682 save_LDFLAGS=$LDFLAGS
13683 echo "_main" > conftest.sym
13684 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686/* end confdefs.h. */
13687
13688int
13689main ()
13690{
13691
13692 ;
13693 return 0;
13694}
13695_ACEOF
13696if ac_fn_c_try_link "$LINENO"; then :
13697 lt_cv_ld_exported_symbols_list=yes
13698else
13699 lt_cv_ld_exported_symbols_list=no
13700fi
13701rm -f core conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703 LDFLAGS="$save_LDFLAGS"
13704
13705fi
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13707$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013708
cristy0c60a692010-11-04 01:09:47 +000013709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13710$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013711if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013712 $as_echo_n "(cached) " >&6
13713else
13714 lt_cv_ld_force_load=no
13715 cat > conftest.c << _LT_EOF
13716int forced_loaded() { return 2;}
13717_LT_EOF
13718 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13719 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13720 echo "$AR cru libconftest.a conftest.o" >&5
13721 $AR cru libconftest.a conftest.o 2>&5
13722 echo "$RANLIB libconftest.a" >&5
13723 $RANLIB libconftest.a 2>&5
13724 cat > conftest.c << _LT_EOF
13725int main() { return 0;}
13726_LT_EOF
13727 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13728 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13729 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013730 if test -s conftest.err && $GREP force_load conftest.err; then
13731 cat conftest.err >&5
13732 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013733 lt_cv_ld_force_load=yes
13734 else
13735 cat conftest.err >&5
13736 fi
13737 rm -f conftest.err libconftest.a conftest conftest.c
13738 rm -rf conftest.dSYM
13739
13740fi
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13742$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013743 case $host_os in
13744 rhapsody* | darwin1.[012])
13745 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13746 darwin1.*)
13747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13748 darwin*) # darwin 5.x on
13749 # if running on 10.5 or later, the deployment target defaults
13750 # to the OS version, if on x86, and 10.4, the deployment
13751 # target defaults to 10.4. Don't you love it?
13752 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13753 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13754 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13755 10.[012]*)
13756 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13757 10.*)
13758 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13759 esac
13760 ;;
13761 esac
13762 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13763 _lt_dar_single_mod='$single_module'
13764 fi
13765 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13766 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13767 else
13768 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13769 fi
cristy0c60a692010-11-04 01:09:47 +000013770 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013771 _lt_dsymutil='~$DSYMUTIL $lib || :'
13772 else
13773 _lt_dsymutil=
13774 fi
13775 ;;
13776 esac
13777
13778for ac_header in dlfcn.h
13779do :
13780 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13781"
cristyda16f162011-02-19 23:52:17 +000013782if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013783 cat >>confdefs.h <<_ACEOF
13784#define HAVE_DLFCN_H 1
13785_ACEOF
13786
13787fi
13788
13789done
13790
13791
13792
cristy73bd4a52010-10-05 11:24:23 +000013793
cristyda16f162011-02-19 23:52:17 +000013794func_stripname_cnf ()
13795{
13796 case ${2} in
13797 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13798 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13799 esac
13800} # func_stripname_cnf
13801
13802
13803
cristy73bd4a52010-10-05 11:24:23 +000013804
13805
13806# Set options
13807enable_win32_dll=yes
13808
13809case $host in
cristy0c60a692010-11-04 01:09:47 +000013810*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013811 if test -n "$ac_tool_prefix"; then
13812 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13813set dummy ${ac_tool_prefix}as; ac_word=$2
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013816if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013817 $as_echo_n "(cached) " >&6
13818else
13819 if test -n "$AS"; then
13820 ac_cv_prog_AS="$AS" # Let the user override the test.
13821else
13822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823for as_dir in $PATH
13824do
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013829 ac_cv_prog_AS="${ac_tool_prefix}as"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13832 fi
13833done
13834 done
13835IFS=$as_save_IFS
13836
13837fi
13838fi
13839AS=$ac_cv_prog_AS
13840if test -n "$AS"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13842$as_echo "$AS" >&6; }
13843else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845$as_echo "no" >&6; }
13846fi
13847
13848
13849fi
13850if test -z "$ac_cv_prog_AS"; then
13851 ac_ct_AS=$AS
13852 # Extract the first word of "as", so it can be a program name with args.
13853set dummy as; ac_word=$2
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013856if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013857 $as_echo_n "(cached) " >&6
13858else
13859 if test -n "$ac_ct_AS"; then
13860 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13861else
13862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863for as_dir in $PATH
13864do
13865 IFS=$as_save_IFS
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013869 ac_cv_prog_ac_ct_AS="as"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871 break 2
13872 fi
13873done
13874 done
13875IFS=$as_save_IFS
13876
13877fi
13878fi
13879ac_ct_AS=$ac_cv_prog_ac_ct_AS
13880if test -n "$ac_ct_AS"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13882$as_echo "$ac_ct_AS" >&6; }
13883else
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885$as_echo "no" >&6; }
13886fi
13887
13888 if test "x$ac_ct_AS" = x; then
13889 AS="false"
13890 else
13891 case $cross_compiling:$ac_tool_warned in
13892yes:)
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13895ac_tool_warned=yes ;;
13896esac
13897 AS=$ac_ct_AS
13898 fi
13899else
13900 AS="$ac_cv_prog_AS"
13901fi
13902
13903 if test -n "$ac_tool_prefix"; then
13904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13905set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013908if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013909 $as_echo_n "(cached) " >&6
13910else
13911 if test -n "$DLLTOOL"; then
13912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13913else
13914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915for as_dir in $PATH
13916do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925done
13926 done
13927IFS=$as_save_IFS
13928
13929fi
13930fi
13931DLLTOOL=$ac_cv_prog_DLLTOOL
13932if test -n "$DLLTOOL"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13934$as_echo "$DLLTOOL" >&6; }
13935else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937$as_echo "no" >&6; }
13938fi
13939
13940
13941fi
13942if test -z "$ac_cv_prog_DLLTOOL"; then
13943 ac_ct_DLLTOOL=$DLLTOOL
13944 # Extract the first word of "dlltool", so it can be a program name with args.
13945set dummy dlltool; ac_word=$2
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013948if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013949 $as_echo_n "(cached) " >&6
13950else
13951 if test -n "$ac_ct_DLLTOOL"; then
13952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13953else
13954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13955for as_dir in $PATH
13956do
13957 IFS=$as_save_IFS
13958 test -z "$as_dir" && as_dir=.
13959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013961 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13963 break 2
13964 fi
13965done
13966 done
13967IFS=$as_save_IFS
13968
13969fi
13970fi
13971ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13972if test -n "$ac_ct_DLLTOOL"; then
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13974$as_echo "$ac_ct_DLLTOOL" >&6; }
13975else
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977$as_echo "no" >&6; }
13978fi
13979
13980 if test "x$ac_ct_DLLTOOL" = x; then
13981 DLLTOOL="false"
13982 else
13983 case $cross_compiling:$ac_tool_warned in
13984yes:)
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13987ac_tool_warned=yes ;;
13988esac
13989 DLLTOOL=$ac_ct_DLLTOOL
13990 fi
13991else
13992 DLLTOOL="$ac_cv_prog_DLLTOOL"
13993fi
13994
13995 if test -n "$ac_tool_prefix"; then
13996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13997set dummy ${ac_tool_prefix}objdump; ac_word=$2
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014000if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014001 $as_echo_n "(cached) " >&6
14002else
14003 if test -n "$OBJDUMP"; then
14004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14005else
14006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007for as_dir in $PATH
14008do
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014013 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14016 fi
14017done
14018 done
14019IFS=$as_save_IFS
14020
14021fi
14022fi
14023OBJDUMP=$ac_cv_prog_OBJDUMP
14024if test -n "$OBJDUMP"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14026$as_echo "$OBJDUMP" >&6; }
14027else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029$as_echo "no" >&6; }
14030fi
14031
14032
14033fi
14034if test -z "$ac_cv_prog_OBJDUMP"; then
14035 ac_ct_OBJDUMP=$OBJDUMP
14036 # Extract the first word of "objdump", so it can be a program name with args.
14037set dummy objdump; ac_word=$2
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014040if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014041 $as_echo_n "(cached) " >&6
14042else
14043 if test -n "$ac_ct_OBJDUMP"; then
14044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14045else
14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047for as_dir in $PATH
14048do
14049 IFS=$as_save_IFS
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014053 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 break 2
14056 fi
14057done
14058 done
14059IFS=$as_save_IFS
14060
14061fi
14062fi
14063ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14064if test -n "$ac_ct_OBJDUMP"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14066$as_echo "$ac_ct_OBJDUMP" >&6; }
14067else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
14070fi
14071
14072 if test "x$ac_ct_OBJDUMP" = x; then
14073 OBJDUMP="false"
14074 else
14075 case $cross_compiling:$ac_tool_warned in
14076yes:)
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14079ac_tool_warned=yes ;;
14080esac
14081 OBJDUMP=$ac_ct_OBJDUMP
14082 fi
14083else
14084 OBJDUMP="$ac_cv_prog_OBJDUMP"
14085fi
14086
14087 ;;
14088esac
14089
14090test -z "$AS" && AS=as
14091
14092
14093
14094
14095
14096test -z "$DLLTOOL" && DLLTOOL=dlltool
14097
14098
14099
14100
14101
14102test -z "$OBJDUMP" && OBJDUMP=objdump
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112 # Check whether --enable-shared was given.
14113if test "${enable_shared+set}" = set; then :
14114 enableval=$enable_shared; p=${PACKAGE-default}
14115 case $enableval in
14116 yes) enable_shared=yes ;;
14117 no) enable_shared=no ;;
14118 *)
14119 enable_shared=no
14120 # Look at the argument we got. We use all the common list separators.
14121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14122 for pkg in $enableval; do
14123 IFS="$lt_save_ifs"
14124 if test "X$pkg" = "X$p"; then
14125 enable_shared=yes
14126 fi
14127 done
14128 IFS="$lt_save_ifs"
14129 ;;
14130 esac
14131else
14132 enable_shared=yes
14133fi
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143 # Check whether --enable-static was given.
14144if test "${enable_static+set}" = set; then :
14145 enableval=$enable_static; p=${PACKAGE-default}
14146 case $enableval in
14147 yes) enable_static=yes ;;
14148 no) enable_static=no ;;
14149 *)
14150 enable_static=no
14151 # Look at the argument we got. We use all the common list separators.
14152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14153 for pkg in $enableval; do
14154 IFS="$lt_save_ifs"
14155 if test "X$pkg" = "X$p"; then
14156 enable_static=yes
14157 fi
14158 done
14159 IFS="$lt_save_ifs"
14160 ;;
14161 esac
14162else
14163 enable_static=yes
14164fi
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175# Check whether --with-pic was given.
14176if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014177 withval=$with_pic; lt_p=${PACKAGE-default}
14178 case $withval in
14179 yes|no) pic_mode=$withval ;;
14180 *)
14181 pic_mode=default
14182 # Look at the argument we got. We use all the common list separators.
14183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14184 for lt_pkg in $withval; do
14185 IFS="$lt_save_ifs"
14186 if test "X$lt_pkg" = "X$lt_p"; then
14187 pic_mode=yes
14188 fi
14189 done
14190 IFS="$lt_save_ifs"
14191 ;;
14192 esac
cristy73bd4a52010-10-05 11:24:23 +000014193else
14194 pic_mode=default
14195fi
14196
14197
14198test -z "$pic_mode" && pic_mode=default
14199
14200
14201
14202
14203
14204
14205
14206 # Check whether --enable-fast-install was given.
14207if test "${enable_fast_install+set}" = set; then :
14208 enableval=$enable_fast_install; p=${PACKAGE-default}
14209 case $enableval in
14210 yes) enable_fast_install=yes ;;
14211 no) enable_fast_install=no ;;
14212 *)
14213 enable_fast_install=no
14214 # Look at the argument we got. We use all the common list separators.
14215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14216 for pkg in $enableval; do
14217 IFS="$lt_save_ifs"
14218 if test "X$pkg" = "X$p"; then
14219 enable_fast_install=yes
14220 fi
14221 done
14222 IFS="$lt_save_ifs"
14223 ;;
14224 esac
14225else
14226 enable_fast_install=yes
14227fi
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239# This can be used to rebuild libtool when needed
14240LIBTOOL_DEPS="$ltmain"
14241
14242# Always use our own libtool.
14243LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
cristy0c60a692010-11-04 01:09:47 +000014269
cristy99bd5232011-12-07 14:38:20 +000014270
14271
14272
14273
cristy73bd4a52010-10-05 11:24:23 +000014274test -z "$LN_S" && LN_S="ln -s"
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289if test -n "${ZSH_VERSION+set}" ; then
14290 setopt NO_GLOB_SUBST
14291fi
14292
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14294$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014295if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014296 $as_echo_n "(cached) " >&6
14297else
14298 rm -f .libs 2>/dev/null
14299mkdir .libs 2>/dev/null
14300if test -d .libs; then
14301 lt_cv_objdir=.libs
14302else
14303 # MS-DOS does not allow filenames that begin with a dot.
14304 lt_cv_objdir=_libs
14305fi
14306rmdir .libs 2>/dev/null
14307fi
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14309$as_echo "$lt_cv_objdir" >&6; }
14310objdir=$lt_cv_objdir
14311
14312
14313
14314
14315
14316cat >>confdefs.h <<_ACEOF
14317#define LT_OBJDIR "$lt_cv_objdir/"
14318_ACEOF
14319
14320
14321
14322
cristy73bd4a52010-10-05 11:24:23 +000014323case $host_os in
14324aix3*)
14325 # AIX sometimes has problems with the GCC collect2 program. For some
14326 # reason, if we set the COLLECT_NAMES environment variable, the problems
14327 # vanish in a puff of smoke.
14328 if test "X${COLLECT_NAMES+set}" != Xset; then
14329 COLLECT_NAMES=
14330 export COLLECT_NAMES
14331 fi
14332 ;;
14333esac
14334
cristy73bd4a52010-10-05 11:24:23 +000014335# Global variables:
14336ofile=libtool
14337can_build_shared=yes
14338
14339# All known linkers require a `.a' archive for static linking (except MSVC,
14340# which needs '.lib').
14341libext=a
14342
14343with_gnu_ld="$lt_cv_prog_gnu_ld"
14344
14345old_CC="$CC"
14346old_CFLAGS="$CFLAGS"
14347
14348# Set sane defaults for various variables
14349test -z "$CC" && CC=cc
14350test -z "$LTCC" && LTCC=$CC
14351test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14352test -z "$LD" && LD=ld
14353test -z "$ac_objext" && ac_objext=o
14354
14355for cc_temp in $compiler""; do
14356 case $cc_temp in
14357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14359 \-*) ;;
14360 *) break;;
14361 esac
14362done
cristy0c60a692010-11-04 01:09:47 +000014363cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014364
14365
14366# Only perform the check for file, if the check method requires it
14367test -z "$MAGIC_CMD" && MAGIC_CMD=file
14368case $deplibs_check_method in
14369file_magic*)
14370 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14372$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014373if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014374 $as_echo_n "(cached) " >&6
14375else
14376 case $MAGIC_CMD in
14377[\\/*] | ?:[\\/]*)
14378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14379 ;;
14380*)
14381 lt_save_MAGIC_CMD="$MAGIC_CMD"
14382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14384 for ac_dir in $ac_dummy; do
14385 IFS="$lt_save_ifs"
14386 test -z "$ac_dir" && ac_dir=.
14387 if test -f $ac_dir/${ac_tool_prefix}file; then
14388 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14389 if test -n "$file_magic_test_file"; then
14390 case $deplibs_check_method in
14391 "file_magic "*)
14392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14395 $EGREP "$file_magic_regex" > /dev/null; then
14396 :
14397 else
14398 cat <<_LT_EOF 1>&2
14399
14400*** Warning: the command libtool uses to detect shared libraries,
14401*** $file_magic_cmd, produces output that libtool cannot recognize.
14402*** The result is that libtool may fail to recognize shared libraries
14403*** as such. This will affect the creation of libtool libraries that
14404*** depend on shared libraries, but programs linked with such libtool
14405*** libraries will work regardless of this problem. Nevertheless, you
14406*** may want to report the problem to your system manager and/or to
14407*** bug-libtool@gnu.org
14408
14409_LT_EOF
14410 fi ;;
14411 esac
14412 fi
14413 break
14414 fi
14415 done
14416 IFS="$lt_save_ifs"
14417 MAGIC_CMD="$lt_save_MAGIC_CMD"
14418 ;;
14419esac
14420fi
14421
14422MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14423if test -n "$MAGIC_CMD"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14425$as_echo "$MAGIC_CMD" >&6; }
14426else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428$as_echo "no" >&6; }
14429fi
14430
14431
14432
14433
14434
14435if test -z "$lt_cv_path_MAGIC_CMD"; then
14436 if test -n "$ac_tool_prefix"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14438$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014439if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014440 $as_echo_n "(cached) " >&6
14441else
14442 case $MAGIC_CMD in
14443[\\/*] | ?:[\\/]*)
14444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14445 ;;
14446*)
14447 lt_save_MAGIC_CMD="$MAGIC_CMD"
14448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14450 for ac_dir in $ac_dummy; do
14451 IFS="$lt_save_ifs"
14452 test -z "$ac_dir" && ac_dir=.
14453 if test -f $ac_dir/file; then
14454 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14455 if test -n "$file_magic_test_file"; then
14456 case $deplibs_check_method in
14457 "file_magic "*)
14458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14461 $EGREP "$file_magic_regex" > /dev/null; then
14462 :
14463 else
14464 cat <<_LT_EOF 1>&2
14465
14466*** Warning: the command libtool uses to detect shared libraries,
14467*** $file_magic_cmd, produces output that libtool cannot recognize.
14468*** The result is that libtool may fail to recognize shared libraries
14469*** as such. This will affect the creation of libtool libraries that
14470*** depend on shared libraries, but programs linked with such libtool
14471*** libraries will work regardless of this problem. Nevertheless, you
14472*** may want to report the problem to your system manager and/or to
14473*** bug-libtool@gnu.org
14474
14475_LT_EOF
14476 fi ;;
14477 esac
14478 fi
14479 break
14480 fi
14481 done
14482 IFS="$lt_save_ifs"
14483 MAGIC_CMD="$lt_save_MAGIC_CMD"
14484 ;;
14485esac
14486fi
14487
14488MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14489if test -n "$MAGIC_CMD"; then
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14491$as_echo "$MAGIC_CMD" >&6; }
14492else
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494$as_echo "no" >&6; }
14495fi
14496
14497
14498 else
14499 MAGIC_CMD=:
14500 fi
14501fi
14502
14503 fi
14504 ;;
14505esac
14506
14507# Use C for the default configuration in the libtool script
14508
14509lt_save_CC="$CC"
14510ac_ext=c
14511ac_cpp='$CPP $CPPFLAGS'
14512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515
14516
14517# Source file extension for C test sources.
14518ac_ext=c
14519
14520# Object file extension for compiled C test sources.
14521objext=o
14522objext=$objext
14523
14524# Code to be used in simple compile tests
14525lt_simple_compile_test_code="int some_variable = 0;"
14526
14527# Code to be used in simple link tests
14528lt_simple_link_test_code='int main(){return(0);}'
14529
14530
14531
14532
14533
14534
14535
14536# If no C compiler was specified, use CC.
14537LTCC=${LTCC-"$CC"}
14538
14539# If no C compiler flags were specified, use CFLAGS.
14540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14541
14542# Allow CC to be a program name with arguments.
14543compiler=$CC
14544
14545# Save the default compiler, since it gets overwritten when the other
14546# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14547compiler_DEFAULT=$CC
14548
14549# save warnings/boilerplate of simple test code
14550ac_outfile=conftest.$ac_objext
14551echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14553_lt_compiler_boilerplate=`cat conftest.err`
14554$RM conftest*
14555
14556ac_outfile=conftest.$ac_objext
14557echo "$lt_simple_link_test_code" >conftest.$ac_ext
14558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14559_lt_linker_boilerplate=`cat conftest.err`
14560$RM -r conftest*
14561
14562
14563## CAVEAT EMPTOR:
14564## There is no encapsulation within the following macros, do not change
14565## the running order or otherwise move them around unless you know exactly
14566## what you are doing...
14567if test -n "$compiler"; then
14568
14569lt_prog_compiler_no_builtin_flag=
14570
14571if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014572 case $cc_basename in
14573 nvcc*)
14574 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14575 *)
14576 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14577 esac
cristy73bd4a52010-10-05 11:24:23 +000014578
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14580$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014581if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014582 $as_echo_n "(cached) " >&6
14583else
14584 lt_cv_prog_compiler_rtti_exceptions=no
14585 ac_outfile=conftest.$ac_objext
14586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14587 lt_compiler_flag="-fno-rtti -fno-exceptions"
14588 # Insert the option either (1) after the last *FLAGS variable, or
14589 # (2) before a word containing "conftest.", or (3) at the end.
14590 # Note that $ac_compile itself does not contain backslashes and begins
14591 # with a dollar sign (not a hyphen), so the echo should work correctly.
14592 # The option is referenced via a variable to avoid confusing sed.
14593 lt_compile=`echo "$ac_compile" | $SED \
14594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14596 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014598 (eval "$lt_compile" 2>conftest.err)
14599 ac_status=$?
14600 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014602 if (exit $ac_status) && test -s "$ac_outfile"; then
14603 # The compiler can only warn and ignore the option if not recognized
14604 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14608 lt_cv_prog_compiler_rtti_exceptions=yes
14609 fi
14610 fi
14611 $RM conftest*
14612
14613fi
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14615$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14616
14617if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14619else
14620 :
14621fi
14622
14623fi
14624
14625
14626
14627
14628
14629
14630 lt_prog_compiler_wl=
14631lt_prog_compiler_pic=
14632lt_prog_compiler_static=
14633
cristy73bd4a52010-10-05 11:24:23 +000014634
14635 if test "$GCC" = yes; then
14636 lt_prog_compiler_wl='-Wl,'
14637 lt_prog_compiler_static='-static'
14638
14639 case $host_os in
14640 aix*)
14641 # All AIX code is PIC.
14642 if test "$host_cpu" = ia64; then
14643 # AIX 5 now supports IA64 processor
14644 lt_prog_compiler_static='-Bstatic'
14645 fi
14646 ;;
14647
14648 amigaos*)
14649 case $host_cpu in
14650 powerpc)
14651 # see comment about AmigaOS4 .so support
14652 lt_prog_compiler_pic='-fPIC'
14653 ;;
14654 m68k)
14655 # FIXME: we need at least 68020 code to build shared libraries, but
14656 # adding the `-m68020' flag to GCC prevents building anything better,
14657 # like `-m68040'.
14658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14659 ;;
14660 esac
14661 ;;
14662
14663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14664 # PIC is the default for these OSes.
14665 ;;
14666
14667 mingw* | cygwin* | pw32* | os2* | cegcc*)
14668 # This hack is so that the source file can tell whether it is being
14669 # built for inclusion in a dll (and should export symbols for example).
14670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14671 # (--disable-auto-import) libraries
14672 lt_prog_compiler_pic='-DDLL_EXPORT'
14673 ;;
14674
14675 darwin* | rhapsody*)
14676 # PIC is the default on this platform
14677 # Common symbols not allowed in MH_DYLIB files
14678 lt_prog_compiler_pic='-fno-common'
14679 ;;
14680
cristy0c60a692010-11-04 01:09:47 +000014681 haiku*)
14682 # PIC is the default for Haiku.
14683 # The "-static" flag exists, but is broken.
14684 lt_prog_compiler_static=
14685 ;;
14686
cristy73bd4a52010-10-05 11:24:23 +000014687 hpux*)
14688 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14689 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14690 # sets the default TLS model and affects inlining.
14691 case $host_cpu in
14692 hppa*64*)
14693 # +Z the default
14694 ;;
14695 *)
14696 lt_prog_compiler_pic='-fPIC'
14697 ;;
14698 esac
14699 ;;
14700
14701 interix[3-9]*)
14702 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14703 # Instead, we relocate shared libraries at runtime.
14704 ;;
14705
14706 msdosdjgpp*)
14707 # Just because we use GCC doesn't mean we suddenly get shared libraries
14708 # on systems that don't support them.
14709 lt_prog_compiler_can_build_shared=no
14710 enable_shared=no
14711 ;;
14712
14713 *nto* | *qnx*)
14714 # QNX uses GNU C++, but need to define -shared option too, otherwise
14715 # it will coredump.
14716 lt_prog_compiler_pic='-fPIC -shared'
14717 ;;
14718
14719 sysv4*MP*)
14720 if test -d /usr/nec; then
14721 lt_prog_compiler_pic=-Kconform_pic
14722 fi
14723 ;;
14724
14725 *)
14726 lt_prog_compiler_pic='-fPIC'
14727 ;;
14728 esac
cristy0c60a692010-11-04 01:09:47 +000014729
14730 case $cc_basename in
14731 nvcc*) # Cuda Compiler Driver 2.2
14732 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014733 if test -n "$lt_prog_compiler_pic"; then
14734 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14735 fi
cristy0c60a692010-11-04 01:09:47 +000014736 ;;
14737 esac
cristy73bd4a52010-10-05 11:24:23 +000014738 else
14739 # PORTME Check for flag to pass linker flags through the system compiler.
14740 case $host_os in
14741 aix*)
14742 lt_prog_compiler_wl='-Wl,'
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 now supports IA64 processor
14745 lt_prog_compiler_static='-Bstatic'
14746 else
14747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14748 fi
14749 ;;
14750
14751 mingw* | cygwin* | pw32* | os2* | cegcc*)
14752 # This hack is so that the source file can tell whether it is being
14753 # built for inclusion in a dll (and should export symbols for example).
14754 lt_prog_compiler_pic='-DDLL_EXPORT'
14755 ;;
14756
14757 hpux9* | hpux10* | hpux11*)
14758 lt_prog_compiler_wl='-Wl,'
14759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14760 # not for PA HP-UX.
14761 case $host_cpu in
14762 hppa*64*|ia64*)
14763 # +Z the default
14764 ;;
14765 *)
14766 lt_prog_compiler_pic='+Z'
14767 ;;
14768 esac
14769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14770 lt_prog_compiler_static='${wl}-a ${wl}archive'
14771 ;;
14772
14773 irix5* | irix6* | nonstopux*)
14774 lt_prog_compiler_wl='-Wl,'
14775 # PIC (with -KPIC) is the default.
14776 lt_prog_compiler_static='-non_shared'
14777 ;;
14778
cristy0c60a692010-11-04 01:09:47 +000014779 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014780 case $cc_basename in
14781 # old Intel for x86_64 which still supported -KPIC.
14782 ecc*)
14783 lt_prog_compiler_wl='-Wl,'
14784 lt_prog_compiler_pic='-KPIC'
14785 lt_prog_compiler_static='-static'
14786 ;;
14787 # icc used to be incompatible with GCC.
14788 # ICC 10 doesn't accept -KPIC any more.
14789 icc* | ifort*)
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_pic='-fPIC'
14792 lt_prog_compiler_static='-static'
14793 ;;
14794 # Lahey Fortran 8.1.
14795 lf95*)
14796 lt_prog_compiler_wl='-Wl,'
14797 lt_prog_compiler_pic='--shared'
14798 lt_prog_compiler_static='--static'
14799 ;;
cristyda16f162011-02-19 23:52:17 +000014800 nagfor*)
14801 # NAG Fortran compiler
14802 lt_prog_compiler_wl='-Wl,-Wl,,'
14803 lt_prog_compiler_pic='-PIC'
14804 lt_prog_compiler_static='-Bstatic'
14805 ;;
cristy0c60a692010-11-04 01:09:47 +000014806 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014807 # Portland Group compilers (*not* the Pentium gcc compiler,
14808 # which looks to be a dead project)
14809 lt_prog_compiler_wl='-Wl,'
14810 lt_prog_compiler_pic='-fpic'
14811 lt_prog_compiler_static='-Bstatic'
14812 ;;
14813 ccc*)
14814 lt_prog_compiler_wl='-Wl,'
14815 # All Alpha code is PIC.
14816 lt_prog_compiler_static='-non_shared'
14817 ;;
cristy0c60a692010-11-04 01:09:47 +000014818 xl* | bgxl* | bgf* | mpixl*)
14819 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014820 lt_prog_compiler_wl='-Wl,'
14821 lt_prog_compiler_pic='-qpic'
14822 lt_prog_compiler_static='-qstaticlink'
14823 ;;
14824 *)
14825 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014826 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14828 lt_prog_compiler_pic='-KPIC'
14829 lt_prog_compiler_static='-Bstatic'
14830 lt_prog_compiler_wl=''
14831 ;;
cristy99bd5232011-12-07 14:38:20 +000014832 *Sun\ F* | *Sun*Fortran*)
14833 lt_prog_compiler_pic='-KPIC'
14834 lt_prog_compiler_static='-Bstatic'
14835 lt_prog_compiler_wl='-Qoption ld '
14836 ;;
cristy73bd4a52010-10-05 11:24:23 +000014837 *Sun\ C*)
14838 # Sun C 5.9
14839 lt_prog_compiler_pic='-KPIC'
14840 lt_prog_compiler_static='-Bstatic'
14841 lt_prog_compiler_wl='-Wl,'
14842 ;;
cristy99bd5232011-12-07 14:38:20 +000014843 *Intel*\ [CF]*Compiler*)
14844 lt_prog_compiler_wl='-Wl,'
14845 lt_prog_compiler_pic='-fPIC'
14846 lt_prog_compiler_static='-static'
14847 ;;
14848 *Portland\ Group*)
14849 lt_prog_compiler_wl='-Wl,'
14850 lt_prog_compiler_pic='-fpic'
14851 lt_prog_compiler_static='-Bstatic'
14852 ;;
cristy73bd4a52010-10-05 11:24:23 +000014853 esac
14854 ;;
14855 esac
14856 ;;
14857
14858 newsos6)
14859 lt_prog_compiler_pic='-KPIC'
14860 lt_prog_compiler_static='-Bstatic'
14861 ;;
14862
14863 *nto* | *qnx*)
14864 # QNX uses GNU C++, but need to define -shared option too, otherwise
14865 # it will coredump.
14866 lt_prog_compiler_pic='-fPIC -shared'
14867 ;;
14868
14869 osf3* | osf4* | osf5*)
14870 lt_prog_compiler_wl='-Wl,'
14871 # All OSF/1 code is PIC.
14872 lt_prog_compiler_static='-non_shared'
14873 ;;
14874
14875 rdos*)
14876 lt_prog_compiler_static='-non_shared'
14877 ;;
14878
14879 solaris*)
14880 lt_prog_compiler_pic='-KPIC'
14881 lt_prog_compiler_static='-Bstatic'
14882 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014883 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014884 lt_prog_compiler_wl='-Qoption ld ';;
14885 *)
14886 lt_prog_compiler_wl='-Wl,';;
14887 esac
14888 ;;
14889
14890 sunos4*)
14891 lt_prog_compiler_wl='-Qoption ld '
14892 lt_prog_compiler_pic='-PIC'
14893 lt_prog_compiler_static='-Bstatic'
14894 ;;
14895
14896 sysv4 | sysv4.2uw2* | sysv4.3*)
14897 lt_prog_compiler_wl='-Wl,'
14898 lt_prog_compiler_pic='-KPIC'
14899 lt_prog_compiler_static='-Bstatic'
14900 ;;
14901
14902 sysv4*MP*)
14903 if test -d /usr/nec ;then
14904 lt_prog_compiler_pic='-Kconform_pic'
14905 lt_prog_compiler_static='-Bstatic'
14906 fi
14907 ;;
14908
14909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14910 lt_prog_compiler_wl='-Wl,'
14911 lt_prog_compiler_pic='-KPIC'
14912 lt_prog_compiler_static='-Bstatic'
14913 ;;
14914
14915 unicos*)
14916 lt_prog_compiler_wl='-Wl,'
14917 lt_prog_compiler_can_build_shared=no
14918 ;;
14919
14920 uts4*)
14921 lt_prog_compiler_pic='-pic'
14922 lt_prog_compiler_static='-Bstatic'
14923 ;;
14924
14925 *)
14926 lt_prog_compiler_can_build_shared=no
14927 ;;
14928 esac
14929 fi
14930
14931case $host_os in
14932 # For platforms which do not support PIC, -DPIC is meaningless:
14933 *djgpp*)
14934 lt_prog_compiler_pic=
14935 ;;
14936 *)
14937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14938 ;;
14939esac
cristy73bd4a52010-10-05 11:24:23 +000014940
cristyda16f162011-02-19 23:52:17 +000014941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14942$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14943if ${lt_cv_prog_compiler_pic+:} false; then :
14944 $as_echo_n "(cached) " >&6
14945else
14946 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14947fi
14948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14949$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14950lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014951
14952#
14953# Check to make sure the PIC flag actually works.
14954#
14955if test -n "$lt_prog_compiler_pic"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14957$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014958if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014959 $as_echo_n "(cached) " >&6
14960else
14961 lt_cv_prog_compiler_pic_works=no
14962 ac_outfile=conftest.$ac_objext
14963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14965 # Insert the option either (1) after the last *FLAGS variable, or
14966 # (2) before a word containing "conftest.", or (3) at the end.
14967 # Note that $ac_compile itself does not contain backslashes and begins
14968 # with a dollar sign (not a hyphen), so the echo should work correctly.
14969 # The option is referenced via a variable to avoid confusing sed.
14970 lt_compile=`echo "$ac_compile" | $SED \
14971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014975 (eval "$lt_compile" 2>conftest.err)
14976 ac_status=$?
14977 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014979 if (exit $ac_status) && test -s "$ac_outfile"; then
14980 # The compiler can only warn and ignore the option if not recognized
14981 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14985 lt_cv_prog_compiler_pic_works=yes
14986 fi
14987 fi
14988 $RM conftest*
14989
14990fi
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14992$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14993
14994if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14995 case $lt_prog_compiler_pic in
14996 "" | " "*) ;;
14997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14998 esac
14999else
15000 lt_prog_compiler_pic=
15001 lt_prog_compiler_can_build_shared=no
15002fi
15003
15004fi
15005
15006
15007
15008
15009
15010
cristyda16f162011-02-19 23:52:17 +000015011
15012
15013
15014
15015
cristy73bd4a52010-10-05 11:24:23 +000015016#
15017# Check to make sure the static flag actually works.
15018#
15019wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15021$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015022if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015023 $as_echo_n "(cached) " >&6
15024else
15025 lt_cv_prog_compiler_static_works=no
15026 save_LDFLAGS="$LDFLAGS"
15027 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15028 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15029 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15030 # The linker can only warn and ignore the option if not recognized
15031 # So say no if there are warnings
15032 if test -s conftest.err; then
15033 # Append any errors to the config.log.
15034 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015035 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15037 if diff conftest.exp conftest.er2 >/dev/null; then
15038 lt_cv_prog_compiler_static_works=yes
15039 fi
15040 else
15041 lt_cv_prog_compiler_static_works=yes
15042 fi
15043 fi
15044 $RM -r conftest*
15045 LDFLAGS="$save_LDFLAGS"
15046
15047fi
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15049$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15050
15051if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15052 :
15053else
15054 lt_prog_compiler_static=
15055fi
15056
15057
15058
15059
15060
15061
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015065if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015066 $as_echo_n "(cached) " >&6
15067else
15068 lt_cv_prog_compiler_c_o=no
15069 $RM -r conftest 2>/dev/null
15070 mkdir conftest
15071 cd conftest
15072 mkdir out
15073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15074
15075 lt_compiler_flag="-o out/conftest2.$ac_objext"
15076 # Insert the option either (1) after the last *FLAGS variable, or
15077 # (2) before a word containing "conftest.", or (3) at the end.
15078 # Note that $ac_compile itself does not contain backslashes and begins
15079 # with a dollar sign (not a hyphen), so the echo should work correctly.
15080 lt_compile=`echo "$ac_compile" | $SED \
15081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15083 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015085 (eval "$lt_compile" 2>out/conftest.err)
15086 ac_status=$?
15087 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15090 then
15091 # The compiler can only warn and ignore the option if not recognized
15092 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15096 lt_cv_prog_compiler_c_o=yes
15097 fi
15098 fi
15099 chmod u+w . 2>&5
15100 $RM conftest*
15101 # SGI C++ compiler will create directory out/ii_files/ for
15102 # template instantiation
15103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15104 $RM out/* && rmdir out
15105 cd ..
15106 $RM -r conftest
15107 $RM conftest*
15108
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15111$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15112
15113
15114
15115
15116
15117
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15119$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015120if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015121 $as_echo_n "(cached) " >&6
15122else
15123 lt_cv_prog_compiler_c_o=no
15124 $RM -r conftest 2>/dev/null
15125 mkdir conftest
15126 cd conftest
15127 mkdir out
15128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130 lt_compiler_flag="-o out/conftest2.$ac_objext"
15131 # Insert the option either (1) after the last *FLAGS variable, or
15132 # (2) before a word containing "conftest.", or (3) at the end.
15133 # Note that $ac_compile itself does not contain backslashes and begins
15134 # with a dollar sign (not a hyphen), so the echo should work correctly.
15135 lt_compile=`echo "$ac_compile" | $SED \
15136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015140 (eval "$lt_compile" 2>out/conftest.err)
15141 ac_status=$?
15142 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145 then
15146 # The compiler can only warn and ignore the option if not recognized
15147 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_c_o=yes
15152 fi
15153 fi
15154 chmod u+w . 2>&5
15155 $RM conftest*
15156 # SGI C++ compiler will create directory out/ii_files/ for
15157 # template instantiation
15158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15159 $RM out/* && rmdir out
15160 cd ..
15161 $RM -r conftest
15162 $RM conftest*
15163
15164fi
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15166$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15167
15168
15169
15170
15171hard_links="nottested"
15172if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15173 # do not overwrite the value of need_locks provided by the user
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15175$as_echo_n "checking if we can lock with hard links... " >&6; }
15176 hard_links=yes
15177 $RM conftest*
15178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15179 touch conftest.a
15180 ln conftest.a conftest.b 2>&5 || hard_links=no
15181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15183$as_echo "$hard_links" >&6; }
15184 if test "$hard_links" = no; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15186$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15187 need_locks=warn
15188 fi
15189else
15190 need_locks=no
15191fi
15192
15193
15194
15195
15196
15197
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15199$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15200
15201 runpath_var=
15202 allow_undefined_flag=
15203 always_export_symbols=no
15204 archive_cmds=
15205 archive_expsym_cmds=
15206 compiler_needs_object=no
15207 enable_shared_with_static_runtimes=no
15208 export_dynamic_flag_spec=
15209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15210 hardcode_automatic=no
15211 hardcode_direct=no
15212 hardcode_direct_absolute=no
15213 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015214 hardcode_libdir_separator=
15215 hardcode_minus_L=no
15216 hardcode_shlibpath_var=unsupported
15217 inherit_rpath=no
15218 link_all_deplibs=unknown
15219 module_cmds=
15220 module_expsym_cmds=
15221 old_archive_from_new_cmds=
15222 old_archive_from_expsyms_cmds=
15223 thread_safe_flag_spec=
15224 whole_archive_flag_spec=
15225 # include_expsyms should be a list of space-separated symbols to be *always*
15226 # included in the symbol list
15227 include_expsyms=
15228 # exclude_expsyms can be an extended regexp of symbols to exclude
15229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15231 # as well as any symbol that contains `d'.
15232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15234 # platforms (ab)use it in PIC code, but their linkers get confused if
15235 # the symbol is explicitly referenced. Since portable code cannot
15236 # rely on this symbol name, it's probably fine to never include it in
15237 # preloaded symbol tables.
15238 # Exclude shared library initialization/finalization symbols.
15239 extract_expsyms_cmds=
15240
15241 case $host_os in
15242 cygwin* | mingw* | pw32* | cegcc*)
15243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15244 # When not using gcc, we currently assume that we are using
15245 # Microsoft Visual C++.
15246 if test "$GCC" != yes; then
15247 with_gnu_ld=no
15248 fi
15249 ;;
15250 interix*)
15251 # we just hope/assume this is gcc and not c89 (= MSVC++)
15252 with_gnu_ld=yes
15253 ;;
15254 openbsd*)
15255 with_gnu_ld=no
15256 ;;
15257 esac
15258
15259 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015260
15261 # On some targets, GNU ld is compatible enough with the native linker
15262 # that we're better off using the native interface for both.
15263 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015264 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015265 case $host_os in
15266 aix*)
15267 # The AIX port of GNU ld has always aspired to compatibility
15268 # with the native linker. However, as the warning in the GNU ld
15269 # block says, versions before 2.19.5* couldn't really create working
15270 # shared libraries, regardless of the interface used.
15271 case `$LD -v 2>&1` in
15272 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15273 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15274 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15275 *)
15276 lt_use_gnu_ld_interface=yes
15277 ;;
15278 esac
15279 ;;
15280 *)
15281 lt_use_gnu_ld_interface=yes
15282 ;;
15283 esac
15284 fi
15285
15286 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015287 # If archive_cmds runs LD, not CC, wlarc should be empty
15288 wlarc='${wl}'
15289
15290 # Set some defaults for GNU ld with shared library support. These
15291 # are reset later if shared libraries are not supported. Putting them
15292 # here allows them to be overridden if necessary.
15293 runpath_var=LD_RUN_PATH
15294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15295 export_dynamic_flag_spec='${wl}--export-dynamic'
15296 # ancient GNU ld didn't support --whole-archive et. al.
15297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15299 else
15300 whole_archive_flag_spec=
15301 fi
15302 supports_anon_versioning=no
15303 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015304 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308 *\ 2.11.*) ;; # other 2.11 versions
15309 *) supports_anon_versioning=yes ;;
15310 esac
15311
15312 # See if GNU ld supports shared libraries.
15313 case $host_os in
15314 aix[3-9]*)
15315 # On AIX/PPC, the GNU linker is very broken
15316 if test "$host_cpu" != ia64; then
15317 ld_shlibs=no
15318 cat <<_LT_EOF 1>&2
15319
cristy0c60a692010-11-04 01:09:47 +000015320*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015321*** to be unable to reliably create shared libraries on AIX.
15322*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015323*** really care for shared libraries, you may want to install binutils
15324*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15325*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015326
15327_LT_EOF
15328 fi
15329 ;;
15330
15331 amigaos*)
15332 case $host_cpu in
15333 powerpc)
15334 # see comment about AmigaOS4 .so support
15335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15336 archive_expsym_cmds=''
15337 ;;
15338 m68k)
15339 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)'
15340 hardcode_libdir_flag_spec='-L$libdir'
15341 hardcode_minus_L=yes
15342 ;;
15343 esac
15344 ;;
15345
15346 beos*)
15347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15348 allow_undefined_flag=unsupported
15349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15350 # support --undefined. This deserves some investigation. FIXME
15351 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15352 else
15353 ld_shlibs=no
15354 fi
15355 ;;
15356
15357 cygwin* | mingw* | pw32* | cegcc*)
15358 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15359 # as there is no search path for DLLs.
15360 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015361 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015362 allow_undefined_flag=unsupported
15363 always_export_symbols=no
15364 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015365 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'
15366 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 +000015367
15368 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15370 # If the export-symbols file already is a .def file (1st line
15371 # is EXPORTS), use it as is; otherwise, prepend...
15372 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15373 cp $export_symbols $output_objdir/$soname.def;
15374 else
15375 echo EXPORTS > $output_objdir/$soname.def;
15376 cat $export_symbols >> $output_objdir/$soname.def;
15377 fi~
15378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15379 else
15380 ld_shlibs=no
15381 fi
15382 ;;
15383
cristy0c60a692010-11-04 01:09:47 +000015384 haiku*)
15385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15386 link_all_deplibs=yes
15387 ;;
15388
cristy73bd4a52010-10-05 11:24:23 +000015389 interix[3-9]*)
15390 hardcode_direct=no
15391 hardcode_shlibpath_var=no
15392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15393 export_dynamic_flag_spec='${wl}-E'
15394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15395 # Instead, shared libraries are loaded at an image base (0x10000000 by
15396 # default) and relocated if they conflict, which is a slow very memory
15397 # consuming and fragmenting process. To avoid this, we pick a random,
15398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15401 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'
15402 ;;
15403
cristy0c60a692010-11-04 01:09:47 +000015404 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015405 tmp_diet=no
15406 if test "$host_os" = linux-dietlibc; then
15407 case $cc_basename in
15408 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15409 esac
15410 fi
15411 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15412 && test "$tmp_diet" = no
15413 then
cristyda16f162011-02-19 23:52:17 +000015414 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015415 tmp_sharedflag='-shared'
15416 case $cc_basename,$host_cpu in
15417 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015418 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 +000015419 tmp_addflag=' $pic_flag'
15420 ;;
cristy0c60a692010-11-04 01:09:47 +000015421 pgf77* | pgf90* | pgf95* | pgfortran*)
15422 # Portland Group f77 and f90 compilers
15423 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 +000015424 tmp_addflag=' $pic_flag -Mnomain' ;;
15425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15426 tmp_addflag=' -i_dynamic' ;;
15427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15428 tmp_addflag=' -i_dynamic -nofor_main' ;;
15429 ifc* | ifort*) # Intel Fortran compiler
15430 tmp_addflag=' -nofor_main' ;;
15431 lf95*) # Lahey Fortran 8.1
15432 whole_archive_flag_spec=
15433 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015434 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015435 tmp_sharedflag='-qmkshrobj'
15436 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015437 nvcc*) # Cuda Compiler Driver 2.2
15438 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'
15439 compiler_needs_object=yes
15440 ;;
cristy73bd4a52010-10-05 11:24:23 +000015441 esac
15442 case `$CC -V 2>&1 | sed 5q` in
15443 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015444 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 +000015445 compiler_needs_object=yes
15446 tmp_sharedflag='-G' ;;
15447 *Sun\ F*) # Sun Fortran 8.3
15448 tmp_sharedflag='-G' ;;
15449 esac
15450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451
15452 if test "x$supports_anon_versioning" = xyes; then
15453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15455 echo "local: *; };" >> $output_objdir/$libname.ver~
15456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15457 fi
15458
15459 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015460 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015464 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015465 if test "x$supports_anon_versioning" = xyes; then
15466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15468 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015469 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015470 fi
15471 ;;
15472 esac
15473 else
15474 ld_shlibs=no
15475 fi
15476 ;;
15477
15478 netbsd*)
15479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15481 wlarc=
15482 else
cristyda16f162011-02-19 23:52:17 +000015483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15484 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 +000015485 fi
15486 ;;
15487
15488 solaris*)
15489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15490 ld_shlibs=no
15491 cat <<_LT_EOF 1>&2
15492
15493*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15494*** create shared libraries on Solaris systems. Therefore, libtool
15495*** is disabling shared libraries support. We urge you to upgrade GNU
15496*** binutils to release 2.9.1 or newer. Another option is to modify
15497*** your PATH or compiler configuration so that the native linker is
15498*** used, and then restart.
15499
15500_LT_EOF
15501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15503 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 +000015504 else
15505 ld_shlibs=no
15506 fi
15507 ;;
15508
15509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15510 case `$LD -v 2>&1` in
15511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15512 ld_shlibs=no
15513 cat <<_LT_EOF 1>&2
15514
15515*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15516*** reliably create shared libraries on SCO systems. Therefore, libtool
15517*** is disabling shared libraries support. We urge you to upgrade GNU
15518*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15519*** your PATH or compiler configuration so that the native linker is
15520*** used, and then restart.
15521
15522_LT_EOF
15523 ;;
15524 *)
15525 # For security reasons, it is highly recommended that you always
15526 # use absolute paths for naming shared libraries, and exclude the
15527 # DT_RUNPATH tag from executables and libraries. But doing so
15528 # requires that you compile everything twice, which is a pain.
15529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15533 else
15534 ld_shlibs=no
15535 fi
15536 ;;
15537 esac
15538 ;;
15539
15540 sunos4*)
15541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15542 wlarc=
15543 hardcode_direct=yes
15544 hardcode_shlibpath_var=no
15545 ;;
15546
15547 *)
15548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015549 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 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 +000015551 else
15552 ld_shlibs=no
15553 fi
15554 ;;
15555 esac
15556
15557 if test "$ld_shlibs" = no; then
15558 runpath_var=
15559 hardcode_libdir_flag_spec=
15560 export_dynamic_flag_spec=
15561 whole_archive_flag_spec=
15562 fi
15563 else
15564 # PORTME fill in a description of your system's linker (not GNU ld)
15565 case $host_os in
15566 aix3*)
15567 allow_undefined_flag=unsupported
15568 always_export_symbols=yes
15569 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'
15570 # Note: this linker hardcodes the directories in LIBPATH if there
15571 # are no directories specified by -L.
15572 hardcode_minus_L=yes
15573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15574 # Neither direct hardcoding nor static linking is supported with a
15575 # broken collect2.
15576 hardcode_direct=unsupported
15577 fi
15578 ;;
15579
15580 aix[4-9]*)
15581 if test "$host_cpu" = ia64; then
15582 # On IA64, the linker does run time linking by default, so we don't
15583 # have to do anything special.
15584 aix_use_runtimelinking=no
15585 exp_sym_flag='-Bexport'
15586 no_entry_flag=""
15587 else
15588 # If we're using GNU nm, then we don't want the "-C" option.
15589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015590 # Also, AIX nm treats weak defined symbols like other global
15591 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015593 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 +000015594 else
15595 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'
15596 fi
15597 aix_use_runtimelinking=no
15598
15599 # Test if we are trying to use run time linking or normal
15600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15601 # need to do runtime linking.
15602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15603 for ld_flag in $LDFLAGS; do
15604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15605 aix_use_runtimelinking=yes
15606 break
15607 fi
15608 done
15609 ;;
15610 esac
15611
15612 exp_sym_flag='-bexport'
15613 no_entry_flag='-bnoentry'
15614 fi
15615
15616 # When large executables or shared objects are built, AIX ld can
15617 # have problems creating the table of contents. If linking a library
15618 # or program results in "error TOC overflow" add -mminimal-toc to
15619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15621
15622 archive_cmds=''
15623 hardcode_direct=yes
15624 hardcode_direct_absolute=yes
15625 hardcode_libdir_separator=':'
15626 link_all_deplibs=yes
15627 file_list_spec='${wl}-f,'
15628
15629 if test "$GCC" = yes; then
15630 case $host_os in aix4.[012]|aix4.[012].*)
15631 # We only want to do this on AIX 4.2 and lower, the check
15632 # below for broken collect2 doesn't work under 4.3+
15633 collect2name=`${CC} -print-prog-name=collect2`
15634 if test -f "$collect2name" &&
15635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15636 then
15637 # We have reworked collect2
15638 :
15639 else
15640 # We have old collect2
15641 hardcode_direct=unsupported
15642 # It fails to find uninstalled libraries when the uninstalled
15643 # path is not listed in the libpath. Setting hardcode_minus_L
15644 # to unsupported forces relinking
15645 hardcode_minus_L=yes
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_libdir_separator=
15648 fi
15649 ;;
15650 esac
15651 shared_flag='-shared'
15652 if test "$aix_use_runtimelinking" = yes; then
15653 shared_flag="$shared_flag "'${wl}-G'
15654 fi
15655 else
15656 # not using gcc
15657 if test "$host_cpu" = ia64; then
15658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15659 # chokes on -Wl,-G. The following line is correct:
15660 shared_flag='-G'
15661 else
15662 if test "$aix_use_runtimelinking" = yes; then
15663 shared_flag='${wl}-G'
15664 else
15665 shared_flag='${wl}-bM:SRE'
15666 fi
15667 fi
15668 fi
15669
15670 export_dynamic_flag_spec='${wl}-bexpall'
15671 # It seems that -bexpall does not export symbols beginning with
15672 # underscore (_), so it is better to generate a list of symbols to export.
15673 always_export_symbols=yes
15674 if test "$aix_use_runtimelinking" = yes; then
15675 # Warning - without using the other runtime loading flags (-brtl),
15676 # -berok will link without error, but may produce a broken library.
15677 allow_undefined_flag='-berok'
15678 # Determine the default libpath from the value encoded in an
15679 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015680 if test "${lt_cv_aix_libpath+set}" = set; then
15681 aix_libpath=$lt_cv_aix_libpath
15682else
15683 if ${lt_cv_aix_libpath_+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685else
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015687/* end confdefs.h. */
15688
15689int
15690main ()
15691{
15692
15693 ;
15694 return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_link "$LINENO"; then :
15698
cristyda16f162011-02-19 23:52:17 +000015699 lt_aix_libpath_sed='
15700 /Import File Strings/,/^$/ {
15701 /^0/ {
15702 s/^0 *\([^ ]*\) *$/\1/
15703 p
15704 }
15705 }'
15706 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15707 # Check for a 64-bit object if we didn't find anything.
15708 if test -z "$lt_cv_aix_libpath_"; then
15709 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15710 fi
cristy73bd4a52010-10-05 11:24:23 +000015711fi
15712rm -f core conftest.err conftest.$ac_objext \
15713 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015714 if test -z "$lt_cv_aix_libpath_"; then
15715 lt_cv_aix_libpath_="/usr/lib:/lib"
15716 fi
15717
15718fi
15719
15720 aix_libpath=$lt_cv_aix_libpath_
15721fi
cristy73bd4a52010-10-05 11:24:23 +000015722
15723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015724 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 +000015725 else
15726 if test "$host_cpu" = ia64; then
15727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15728 allow_undefined_flag="-z nodefs"
15729 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"
15730 else
15731 # Determine the default libpath from the value encoded in an
15732 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015733 if test "${lt_cv_aix_libpath+set}" = set; then
15734 aix_libpath=$lt_cv_aix_libpath
15735else
15736 if ${lt_cv_aix_libpath_+:} false; then :
15737 $as_echo_n "(cached) " >&6
15738else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015740/* end confdefs.h. */
15741
15742int
15743main ()
15744{
15745
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750if ac_fn_c_try_link "$LINENO"; then :
15751
cristyda16f162011-02-19 23:52:17 +000015752 lt_aix_libpath_sed='
15753 /Import File Strings/,/^$/ {
15754 /^0/ {
15755 s/^0 *\([^ ]*\) *$/\1/
15756 p
15757 }
15758 }'
15759 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15760 # Check for a 64-bit object if we didn't find anything.
15761 if test -z "$lt_cv_aix_libpath_"; then
15762 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15763 fi
cristy73bd4a52010-10-05 11:24:23 +000015764fi
15765rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015767 if test -z "$lt_cv_aix_libpath_"; then
15768 lt_cv_aix_libpath_="/usr/lib:/lib"
15769 fi
15770
15771fi
15772
15773 aix_libpath=$lt_cv_aix_libpath_
15774fi
cristy73bd4a52010-10-05 11:24:23 +000015775
15776 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15777 # Warning - without using the other run time loading flags,
15778 # -berok will link without error, but may produce a broken library.
15779 no_undefined_flag=' ${wl}-bernotok'
15780 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015781 if test "$with_gnu_ld" = yes; then
15782 # We only use this code for GNU lds that support --whole-archive.
15783 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15784 else
15785 # Exported symbols can be pulled into shared objects from archives
15786 whole_archive_flag_spec='$convenience'
15787 fi
cristy73bd4a52010-10-05 11:24:23 +000015788 archive_cmds_need_lc=yes
15789 # This is similar to how AIX traditionally builds its shared libraries.
15790 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'
15791 fi
15792 fi
15793 ;;
15794
15795 amigaos*)
15796 case $host_cpu in
15797 powerpc)
15798 # see comment about AmigaOS4 .so support
15799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800 archive_expsym_cmds=''
15801 ;;
15802 m68k)
15803 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)'
15804 hardcode_libdir_flag_spec='-L$libdir'
15805 hardcode_minus_L=yes
15806 ;;
15807 esac
15808 ;;
15809
15810 bsdi[45]*)
15811 export_dynamic_flag_spec=-rdynamic
15812 ;;
15813
15814 cygwin* | mingw* | pw32* | cegcc*)
15815 # When not using gcc, we currently assume that we are using
15816 # Microsoft Visual C++.
15817 # hardcode_libdir_flag_spec is actually meaningless, as there is
15818 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015819 case $cc_basename in
15820 cl*)
15821 # Native MSVC
15822 hardcode_libdir_flag_spec=' '
15823 allow_undefined_flag=unsupported
15824 always_export_symbols=yes
15825 file_list_spec='@'
15826 # Tell ltmain to make .lib files, not .a files.
15827 libext=lib
15828 # Tell ltmain to make .dll files, not .so files.
15829 shrext_cmds=".dll"
15830 # FIXME: Setting linknames here is a bad hack.
15831 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15833 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15834 else
15835 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15836 fi~
15837 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15838 linknames='
15839 # The linker will not automatically build a static lib if we build a DLL.
15840 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15841 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015842 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15844 # Don't use ranlib
15845 old_postinstall_cmds='chmod 644 $oldlib'
15846 postlink_cmds='lt_outputfile="@OUTPUT@"~
15847 lt_tool_outputfile="@TOOL_OUTPUT@"~
15848 case $lt_outputfile in
15849 *.exe|*.EXE) ;;
15850 *)
15851 lt_outputfile="$lt_outputfile.exe"
15852 lt_tool_outputfile="$lt_tool_outputfile.exe"
15853 ;;
15854 esac~
15855 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15856 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15857 $RM "$lt_outputfile.manifest";
15858 fi'
15859 ;;
15860 *)
15861 # Assume MSVC wrapper
15862 hardcode_libdir_flag_spec=' '
15863 allow_undefined_flag=unsupported
15864 # Tell ltmain to make .lib files, not .a files.
15865 libext=lib
15866 # Tell ltmain to make .dll files, not .so files.
15867 shrext_cmds=".dll"
15868 # FIXME: Setting linknames here is a bad hack.
15869 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15870 # The linker will automatically build a .lib file if we build a DLL.
15871 old_archive_from_new_cmds='true'
15872 # FIXME: Should let the user specify the lib program.
15873 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15874 enable_shared_with_static_runtimes=yes
15875 ;;
15876 esac
cristy73bd4a52010-10-05 11:24:23 +000015877 ;;
15878
15879 darwin* | rhapsody*)
15880
15881
15882 archive_cmds_need_lc=no
15883 hardcode_direct=no
15884 hardcode_automatic=yes
15885 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015886 if test "$lt_cv_ld_force_load" = "yes"; then
15887 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 +000015888
cristy0c60a692010-11-04 01:09:47 +000015889 else
15890 whole_archive_flag_spec=''
15891 fi
cristy73bd4a52010-10-05 11:24:23 +000015892 link_all_deplibs=yes
15893 allow_undefined_flag="$_lt_dar_allow_undefined"
15894 case $cc_basename in
15895 ifort*) _lt_dar_can_shared=yes ;;
15896 *) _lt_dar_can_shared=$GCC ;;
15897 esac
15898 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015899 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015900 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15901 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15902 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}"
15903 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}"
15904
15905 else
15906 ld_shlibs=no
15907 fi
15908
15909 ;;
15910
15911 dgux*)
15912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913 hardcode_libdir_flag_spec='-L$libdir'
15914 hardcode_shlibpath_var=no
15915 ;;
15916
cristy73bd4a52010-10-05 11:24:23 +000015917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15918 # support. Future versions do this automatically, but an explicit c++rt0.o
15919 # does not break anything, and helps significantly (at the cost of a little
15920 # extra space).
15921 freebsd2.2*)
15922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15923 hardcode_libdir_flag_spec='-R$libdir'
15924 hardcode_direct=yes
15925 hardcode_shlibpath_var=no
15926 ;;
15927
15928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015929 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15931 hardcode_direct=yes
15932 hardcode_minus_L=yes
15933 hardcode_shlibpath_var=no
15934 ;;
15935
15936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15937 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015939 hardcode_libdir_flag_spec='-R$libdir'
15940 hardcode_direct=yes
15941 hardcode_shlibpath_var=no
15942 ;;
15943
15944 hpux9*)
15945 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015946 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 +000015947 else
15948 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'
15949 fi
15950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15951 hardcode_libdir_separator=:
15952 hardcode_direct=yes
15953
15954 # hardcode_minus_L: Not really in the search PATH,
15955 # but as the default location of the library.
15956 hardcode_minus_L=yes
15957 export_dynamic_flag_spec='${wl}-E'
15958 ;;
15959
15960 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015961 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015962 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 +000015963 else
15964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15965 fi
15966 if test "$with_gnu_ld" = no; then
15967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015968 hardcode_libdir_separator=:
15969 hardcode_direct=yes
15970 hardcode_direct_absolute=yes
15971 export_dynamic_flag_spec='${wl}-E'
15972 # hardcode_minus_L: Not really in the search PATH,
15973 # but as the default location of the library.
15974 hardcode_minus_L=yes
15975 fi
15976 ;;
15977
15978 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015979 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015980 case $host_cpu in
15981 hppa*64*)
15982 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15983 ;;
15984 ia64*)
cristyda16f162011-02-19 23:52:17 +000015985 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015986 ;;
15987 *)
cristyda16f162011-02-19 23:52:17 +000015988 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 +000015989 ;;
15990 esac
15991 else
15992 case $host_cpu in
15993 hppa*64*)
15994 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15995 ;;
15996 ia64*)
15997 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
15999 *)
cristy0c60a692010-11-04 01:09:47 +000016000
16001 # Older versions of the 11.00 compiler do not understand -b yet
16002 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16004$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016005if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016006 $as_echo_n "(cached) " >&6
16007else
16008 lt_cv_prog_compiler__b=no
16009 save_LDFLAGS="$LDFLAGS"
16010 LDFLAGS="$LDFLAGS -b"
16011 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16013 # The linker can only warn and ignore the option if not recognized
16014 # So say no if there are warnings
16015 if test -s conftest.err; then
16016 # Append any errors to the config.log.
16017 cat conftest.err 1>&5
16018 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16020 if diff conftest.exp conftest.er2 >/dev/null; then
16021 lt_cv_prog_compiler__b=yes
16022 fi
16023 else
16024 lt_cv_prog_compiler__b=yes
16025 fi
16026 fi
16027 $RM -r conftest*
16028 LDFLAGS="$save_LDFLAGS"
16029
16030fi
16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16032$as_echo "$lt_cv_prog_compiler__b" >&6; }
16033
16034if test x"$lt_cv_prog_compiler__b" = xyes; then
16035 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16036else
16037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16038fi
16039
cristy73bd4a52010-10-05 11:24:23 +000016040 ;;
16041 esac
16042 fi
16043 if test "$with_gnu_ld" = no; then
16044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16045 hardcode_libdir_separator=:
16046
16047 case $host_cpu in
16048 hppa*64*|ia64*)
16049 hardcode_direct=no
16050 hardcode_shlibpath_var=no
16051 ;;
16052 *)
16053 hardcode_direct=yes
16054 hardcode_direct_absolute=yes
16055 export_dynamic_flag_spec='${wl}-E'
16056
16057 # hardcode_minus_L: Not really in the search PATH,
16058 # but as the default location of the library.
16059 hardcode_minus_L=yes
16060 ;;
16061 esac
16062 fi
16063 ;;
16064
16065 irix5* | irix6* | nonstopux*)
16066 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016067 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 +000016068 # Try to use the -exported_symbol ld option, if it does not
16069 # work, assume that -exports_file does not work either and
16070 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016071 # This should be the same for all languages, so no per-tag cache variable.
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16073$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16074if ${lt_cv_irix_exported_symbol+:} false; then :
16075 $as_echo_n "(cached) " >&6
16076else
16077 save_LDFLAGS="$LDFLAGS"
16078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016080/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016081int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016082_ACEOF
16083if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016084 lt_cv_irix_exported_symbol=yes
16085else
16086 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016087fi
16088rm -f core conftest.err conftest.$ac_objext \
16089 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016090 LDFLAGS="$save_LDFLAGS"
16091fi
16092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16093$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16094 if test "$lt_cv_irix_exported_symbol" = yes; then
16095 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'
16096 fi
cristy73bd4a52010-10-05 11:24:23 +000016097 else
cristy0c60a692010-11-04 01:09:47 +000016098 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'
16099 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 +000016100 fi
16101 archive_cmds_need_lc='no'
16102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16103 hardcode_libdir_separator=:
16104 inherit_rpath=yes
16105 link_all_deplibs=yes
16106 ;;
16107
16108 netbsd*)
16109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16111 else
16112 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16113 fi
16114 hardcode_libdir_flag_spec='-R$libdir'
16115 hardcode_direct=yes
16116 hardcode_shlibpath_var=no
16117 ;;
16118
16119 newsos6)
16120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct=yes
16122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16123 hardcode_libdir_separator=:
16124 hardcode_shlibpath_var=no
16125 ;;
16126
16127 *nto* | *qnx*)
16128 ;;
16129
16130 openbsd*)
16131 if test -f /usr/libexec/ld.so; then
16132 hardcode_direct=yes
16133 hardcode_shlibpath_var=no
16134 hardcode_direct_absolute=yes
16135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16139 export_dynamic_flag_spec='${wl}-E'
16140 else
16141 case $host_os in
16142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 ;;
16146 *)
16147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16149 ;;
16150 esac
16151 fi
16152 else
16153 ld_shlibs=no
16154 fi
16155 ;;
16156
16157 os2*)
16158 hardcode_libdir_flag_spec='-L$libdir'
16159 hardcode_minus_L=yes
16160 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016161 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 +000016162 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16163 ;;
16164
16165 osf3*)
16166 if test "$GCC" = yes; then
16167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016168 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 +000016169 else
16170 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016171 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 +000016172 fi
16173 archive_cmds_need_lc='no'
16174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16175 hardcode_libdir_separator=:
16176 ;;
16177
16178 osf4* | osf5*) # as osf3* with the addition of -msym flag
16179 if test "$GCC" = yes; then
16180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016181 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 +000016182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16183 else
16184 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016185 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 +000016186 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 +000016187 $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 +000016188
16189 # Both c and cxx compiler support -rpath directly
16190 hardcode_libdir_flag_spec='-rpath $libdir'
16191 fi
16192 archive_cmds_need_lc='no'
16193 hardcode_libdir_separator=:
16194 ;;
16195
16196 solaris*)
16197 no_undefined_flag=' -z defs'
16198 if test "$GCC" = yes; then
16199 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016200 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 +000016201 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 +000016202 $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 +000016203 else
16204 case `$CC -V 2>&1` in
16205 *"Compilers 5.0"*)
16206 wlarc=''
16207 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16209 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16210 ;;
16211 *)
16212 wlarc='${wl}'
16213 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16215 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16216 ;;
16217 esac
16218 fi
16219 hardcode_libdir_flag_spec='-R$libdir'
16220 hardcode_shlibpath_var=no
16221 case $host_os in
16222 solaris2.[0-5] | solaris2.[0-5].*) ;;
16223 *)
16224 # The compiler driver will combine and reorder linker options,
16225 # but understands `-z linker_flag'. GCC discards it without `$wl',
16226 # but is careful enough not to reorder.
16227 # Supported since Solaris 2.6 (maybe 2.5.1?)
16228 if test "$GCC" = yes; then
16229 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16230 else
16231 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16232 fi
16233 ;;
16234 esac
16235 link_all_deplibs=yes
16236 ;;
16237
16238 sunos4*)
16239 if test "x$host_vendor" = xsequent; then
16240 # Use $CC to link under sequent, because it throws in some extra .o
16241 # files that make .init and .fini sections work.
16242 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16245 fi
16246 hardcode_libdir_flag_spec='-L$libdir'
16247 hardcode_direct=yes
16248 hardcode_minus_L=yes
16249 hardcode_shlibpath_var=no
16250 ;;
16251
16252 sysv4)
16253 case $host_vendor in
16254 sni)
16255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct=yes # is this really true???
16257 ;;
16258 siemens)
16259 ## LD is ld it makes a PLAMLIB
16260 ## CC just makes a GrossModule.
16261 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16262 reload_cmds='$CC -r -o $output$reload_objs'
16263 hardcode_direct=no
16264 ;;
16265 motorola)
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16268 ;;
16269 esac
16270 runpath_var='LD_RUN_PATH'
16271 hardcode_shlibpath_var=no
16272 ;;
16273
16274 sysv4.3*)
16275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16276 hardcode_shlibpath_var=no
16277 export_dynamic_flag_spec='-Bexport'
16278 ;;
16279
16280 sysv4*MP*)
16281 if test -d /usr/nec; then
16282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16283 hardcode_shlibpath_var=no
16284 runpath_var=LD_RUN_PATH
16285 hardcode_runpath_var=yes
16286 ld_shlibs=yes
16287 fi
16288 ;;
16289
16290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16291 no_undefined_flag='${wl}-z,text'
16292 archive_cmds_need_lc=no
16293 hardcode_shlibpath_var=no
16294 runpath_var='LD_RUN_PATH'
16295
16296 if test "$GCC" = yes; then
16297 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16298 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16299 else
16300 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16301 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16302 fi
16303 ;;
16304
16305 sysv5* | sco3.2v5* | sco5v6*)
16306 # Note: We can NOT use -z defs as we might desire, because we do not
16307 # link with -lc, and that would cause any symbols used from libc to
16308 # always be unresolved, which means just about no library would
16309 # ever link correctly. If we're not using GNU ld we use -z text
16310 # though, which does catch some bad symbols but isn't as heavy-handed
16311 # as -z defs.
16312 no_undefined_flag='${wl}-z,text'
16313 allow_undefined_flag='${wl}-z,nodefs'
16314 archive_cmds_need_lc=no
16315 hardcode_shlibpath_var=no
16316 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16317 hardcode_libdir_separator=':'
16318 link_all_deplibs=yes
16319 export_dynamic_flag_spec='${wl}-Bexport'
16320 runpath_var='LD_RUN_PATH'
16321
16322 if test "$GCC" = yes; then
16323 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16324 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16325 else
16326 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16327 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16328 fi
16329 ;;
16330
16331 uts4*)
16332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_libdir_flag_spec='-L$libdir'
16334 hardcode_shlibpath_var=no
16335 ;;
16336
16337 *)
16338 ld_shlibs=no
16339 ;;
16340 esac
16341
16342 if test x$host_vendor = xsni; then
16343 case $host in
16344 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16345 export_dynamic_flag_spec='${wl}-Blargedynsym'
16346 ;;
16347 esac
16348 fi
16349 fi
16350
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16352$as_echo "$ld_shlibs" >&6; }
16353test "$ld_shlibs" = no && can_build_shared=no
16354
16355with_gnu_ld=$with_gnu_ld
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371#
16372# Do we need to explicitly link libc?
16373#
16374case "x$archive_cmds_need_lc" in
16375x|xyes)
16376 # Assume -lc should be added
16377 archive_cmds_need_lc=yes
16378
16379 if test "$enable_shared" = yes && test "$GCC" = yes; then
16380 case $archive_cmds in
16381 *'~'*)
16382 # FIXME: we may have to deal with multi-command sequences.
16383 ;;
16384 '$CC '*)
16385 # Test whether the compiler implicitly links with -lc since on some
16386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16387 # to ld, don't add -lc before -lgcc.
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16389$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016390if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016391 $as_echo_n "(cached) " >&6
16392else
16393 $RM conftest*
16394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016395
cristy0c60a692010-11-04 01:09:47 +000016396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016397 (eval $ac_compile) 2>&5
16398 ac_status=$?
16399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16400 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016401 soname=conftest
16402 lib=conftest
16403 libobjs=conftest.$ac_objext
16404 deplibs=
16405 wl=$lt_prog_compiler_wl
16406 pic_flag=$lt_prog_compiler_pic
16407 compiler_flags=-v
16408 linker_flags=-v
16409 verstring=
16410 output_objdir=.
16411 libname=conftest
16412 lt_save_allow_undefined_flag=$allow_undefined_flag
16413 allow_undefined_flag=
16414 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 +000016415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16416 ac_status=$?
16417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16418 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016419 then
16420 lt_cv_archive_cmds_need_lc=no
16421 else
16422 lt_cv_archive_cmds_need_lc=yes
16423 fi
16424 allow_undefined_flag=$lt_save_allow_undefined_flag
16425 else
16426 cat conftest.err 1>&5
16427 fi
16428 $RM conftest*
16429
16430fi
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16432$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16433 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016434 ;;
16435 esac
16436 fi
16437 ;;
16438esac
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
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
cristy73bd4a52010-10-05 11:24:23 +000016591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16592$as_echo_n "checking dynamic linker characteristics... " >&6; }
16593
16594if test "$GCC" = yes; then
16595 case $host_os in
16596 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16597 *) lt_awk_arg="/^libraries:/" ;;
16598 esac
cristy0c60a692010-11-04 01:09:47 +000016599 case $host_os in
16600 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16601 *) lt_sed_strip_eq="s,=/,/,g" ;;
16602 esac
16603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16604 case $lt_search_path_spec in
16605 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016606 # if the path contains ";" then we assume it to be the separator
16607 # otherwise default to the standard path separator (i.e. ":") - it is
16608 # assumed that no part of a normal pathname contains ";" but that should
16609 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16611 ;;
16612 *)
16613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16614 ;;
16615 esac
cristy73bd4a52010-10-05 11:24:23 +000016616 # Ok, now we have the path, separated by spaces, we can step through it
16617 # and add multilib dir if necessary.
16618 lt_tmp_lt_search_path_spec=
16619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16620 for lt_sys_path in $lt_search_path_spec; do
16621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16623 else
16624 test -d "$lt_sys_path" && \
16625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16626 fi
16627 done
cristy0c60a692010-11-04 01:09:47 +000016628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016629BEGIN {RS=" "; FS="/|\n";} {
16630 lt_foo="";
16631 lt_count=0;
16632 for (lt_i = NF; lt_i > 0; lt_i--) {
16633 if ($lt_i != "" && $lt_i != ".") {
16634 if ($lt_i == "..") {
16635 lt_count++;
16636 } else {
16637 if (lt_count == 0) {
16638 lt_foo="/" $lt_i lt_foo;
16639 } else {
16640 lt_count--;
16641 }
16642 }
16643 }
16644 }
16645 if (lt_foo != "") { lt_freq[lt_foo]++; }
16646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16647}'`
cristy0c60a692010-11-04 01:09:47 +000016648 # AWK program above erroneously prepends '/' to C:/dos/paths
16649 # for these hosts.
16650 case $host_os in
16651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16652 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16653 esac
16654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016655else
16656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16657fi
16658library_names_spec=
16659libname_spec='lib$name'
16660soname_spec=
16661shrext_cmds=".so"
16662postinstall_cmds=
16663postuninstall_cmds=
16664finish_cmds=
16665finish_eval=
16666shlibpath_var=
16667shlibpath_overrides_runpath=unknown
16668version_type=none
16669dynamic_linker="$host_os ld.so"
16670sys_lib_dlsearch_path_spec="/lib /usr/lib"
16671need_lib_prefix=unknown
16672hardcode_into_libs=no
16673
16674# when you set need_version to no, make sure it does not cause -set_version
16675# flags to be left without arguments
16676need_version=unknown
16677
16678case $host_os in
16679aix3*)
cristy99bd5232011-12-07 14:38:20 +000016680 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16682 shlibpath_var=LIBPATH
16683
16684 # AIX 3 has no versioning support, so we append a major version to the name.
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 ;;
16687
16688aix[4-9]*)
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_lib_prefix=no
16691 need_version=no
16692 hardcode_into_libs=yes
16693 if test "$host_cpu" = ia64; then
16694 # AIX 5 supports IA64
16695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 else
16698 # With GCC up to 2.95.x, collect2 would create an import file
16699 # for dependence libraries. The import file would start with
16700 # the line `#! .'. This would cause the generated library to
16701 # depend on `.', always an invalid library. This was fixed in
16702 # development snapshots of GCC prior to 3.0.
16703 case $host_os in
16704 aix4 | aix4.[01] | aix4.[01].*)
16705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16706 echo ' yes '
16707 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16708 :
16709 else
16710 can_build_shared=no
16711 fi
16712 ;;
16713 esac
16714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16715 # soname into executable. Probably we can add versioning support to
16716 # collect2, so additional links can be useful in future.
16717 if test "$aix_use_runtimelinking" = yes; then
16718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16719 # instead of lib<name>.a to let people know that these are not
16720 # typical AIX shared libraries.
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722 else
16723 # We preserve .a as extension for shared libraries through AIX4.2
16724 # and later when we are not doing run time linking.
16725 library_names_spec='${libname}${release}.a $libname.a'
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 fi
16728 shlibpath_var=LIBPATH
16729 fi
16730 ;;
16731
16732amigaos*)
16733 case $host_cpu in
16734 powerpc)
16735 # Since July 2007 AmigaOS4 officially supports .so libraries.
16736 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738 ;;
16739 m68k)
16740 library_names_spec='$libname.ixlibrary $libname.a'
16741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016742 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 +000016743 ;;
16744 esac
16745 ;;
16746
16747beos*)
16748 library_names_spec='${libname}${shared_ext}'
16749 dynamic_linker="$host_os ld.so"
16750 shlibpath_var=LIBRARY_PATH
16751 ;;
16752
16753bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016754 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016755 need_version=no
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16762 # the default ld.so.conf also contains /usr/contrib/lib and
16763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16764 # libtool to hard-code these into programs
16765 ;;
16766
16767cygwin* | mingw* | pw32* | cegcc*)
16768 version_type=windows
16769 shrext_cmds=".dll"
16770 need_version=no
16771 need_lib_prefix=no
16772
cristyda16f162011-02-19 23:52:17 +000016773 case $GCC,$cc_basename in
16774 yes,*)
16775 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016776 library_names_spec='$libname.dll.a'
16777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16778 postinstall_cmds='base_file=`basename \${file}`~
16779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16780 dldir=$destdir/`dirname \$dlpath`~
16781 test -d \$dldir || mkdir -p \$dldir~
16782 $install_prog $dir/$dlname \$dldir/$dlname~
16783 chmod a+x \$dldir/$dlname~
16784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16786 fi'
16787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16788 dlpath=$dir/\$dldll~
16789 $RM \$dlpath'
16790 shlibpath_overrides_runpath=yes
16791
16792 case $host_os in
16793 cygwin*)
16794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016796
16797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016798 ;;
16799 mingw* | cegcc*)
16800 # MinGW DLLs use traditional 'lib' prefix
16801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016802 ;;
16803 pw32*)
16804 # pw32 DLLs use 'pw' prefix rather than 'lib'
16805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16806 ;;
16807 esac
cristyda16f162011-02-19 23:52:17 +000016808 dynamic_linker='Win32 ld.exe'
16809 ;;
16810
16811 *,cl*)
16812 # Native MSVC
16813 libname_spec='$name'
16814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16815 library_names_spec='${libname}.dll.lib'
16816
16817 case $build_os in
16818 mingw*)
16819 sys_lib_search_path_spec=
16820 lt_save_ifs=$IFS
16821 IFS=';'
16822 for lt_path in $LIB
16823 do
16824 IFS=$lt_save_ifs
16825 # Let DOS variable expansion print the short 8.3 style file name.
16826 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16827 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16828 done
16829 IFS=$lt_save_ifs
16830 # Convert to MSYS style.
16831 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16832 ;;
16833 cygwin*)
16834 # Convert to unix form, then to dos form, then back to unix form
16835 # but this time dos style (no spaces!) so that the unix form looks
16836 # like /cygdrive/c/PROGRA~1:/cygdr...
16837 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16838 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16839 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16840 ;;
16841 *)
16842 sys_lib_search_path_spec="$LIB"
16843 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16844 # It is most probably a Windows format PATH.
16845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16846 else
16847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16848 fi
16849 # FIXME: find the short name or the path components, as spaces are
16850 # common. (e.g. "Program Files" -> "PROGRA~1")
16851 ;;
16852 esac
16853
16854 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16855 postinstall_cmds='base_file=`basename \${file}`~
16856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16857 dldir=$destdir/`dirname \$dlpath`~
16858 test -d \$dldir || mkdir -p \$dldir~
16859 $install_prog $dir/$dlname \$dldir/$dlname'
16860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16861 dlpath=$dir/\$dldll~
16862 $RM \$dlpath'
16863 shlibpath_overrides_runpath=yes
16864 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016865 ;;
16866
16867 *)
cristyda16f162011-02-19 23:52:17 +000016868 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016870 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016871 ;;
16872 esac
cristy73bd4a52010-10-05 11:24:23 +000016873 # FIXME: first we should search . and the directory the executable is in
16874 shlibpath_var=PATH
16875 ;;
16876
16877darwin* | rhapsody*)
16878 dynamic_linker="$host_os dyld"
16879 version_type=darwin
16880 need_lib_prefix=no
16881 need_version=no
16882 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16883 soname_spec='${libname}${release}${major}$shared_ext'
16884 shlibpath_overrides_runpath=yes
16885 shlibpath_var=DYLD_LIBRARY_PATH
16886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16887
16888 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16889 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16890 ;;
16891
16892dgux*)
cristy99bd5232011-12-07 14:38:20 +000016893 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016894 need_lib_prefix=no
16895 need_version=no
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=LD_LIBRARY_PATH
16899 ;;
16900
cristy73bd4a52010-10-05 11:24:23 +000016901freebsd* | dragonfly*)
16902 # DragonFly does not have aout. When/if they implement a new
16903 # versioning mechanism, adjust this.
16904 if test -x /usr/bin/objformat; then
16905 objformat=`/usr/bin/objformat`
16906 else
16907 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016908 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016909 *) objformat=elf ;;
16910 esac
16911 fi
16912 version_type=freebsd-$objformat
16913 case $version_type in
16914 freebsd-elf*)
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16916 need_version=no
16917 need_lib_prefix=no
16918 ;;
16919 freebsd-*)
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16921 need_version=yes
16922 ;;
16923 esac
16924 shlibpath_var=LD_LIBRARY_PATH
16925 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016926 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016927 shlibpath_overrides_runpath=yes
16928 ;;
16929 freebsd3.[01]* | freebsdelf3.[01]*)
16930 shlibpath_overrides_runpath=yes
16931 hardcode_into_libs=yes
16932 ;;
16933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16935 shlibpath_overrides_runpath=no
16936 hardcode_into_libs=yes
16937 ;;
16938 *) # from 4.6 on, and DragonFly
16939 shlibpath_overrides_runpath=yes
16940 hardcode_into_libs=yes
16941 ;;
16942 esac
16943 ;;
16944
16945gnu*)
cristy99bd5232011-12-07 14:38:20 +000016946 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016947 need_lib_prefix=no
16948 need_version=no
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016952 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016953 hardcode_into_libs=yes
16954 ;;
16955
cristy0c60a692010-11-04 01:09:47 +000016956haiku*)
cristy99bd5232011-12-07 14:38:20 +000016957 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016958 need_lib_prefix=no
16959 need_version=no
16960 dynamic_linker="$host_os runtime_loader"
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LIBRARY_PATH
16964 shlibpath_overrides_runpath=yes
16965 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16966 hardcode_into_libs=yes
16967 ;;
16968
cristy73bd4a52010-10-05 11:24:23 +000016969hpux9* | hpux10* | hpux11*)
16970 # Give a soname corresponding to the major version so that dld.sl refuses to
16971 # link against other versions.
16972 version_type=sunos
16973 need_lib_prefix=no
16974 need_version=no
16975 case $host_cpu in
16976 ia64*)
16977 shrext_cmds='.so'
16978 hardcode_into_libs=yes
16979 dynamic_linker="$host_os dld.so"
16980 shlibpath_var=LD_LIBRARY_PATH
16981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 if test "X$HPUX_IA64_MODE" = X32; then
16985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16986 else
16987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16988 fi
16989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16990 ;;
16991 hppa*64*)
16992 shrext_cmds='.sl'
16993 hardcode_into_libs=yes
16994 dynamic_linker="$host_os dld.sl"
16995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 soname_spec='${libname}${release}${shared_ext}$major'
16999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17001 ;;
17002 *)
17003 shrext_cmds='.sl'
17004 dynamic_linker="$host_os dld.sl"
17005 shlibpath_var=SHLIB_PATH
17006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 ;;
17010 esac
cristy0c60a692010-11-04 01:09:47 +000017011 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017012 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017013 # or fails outright, so override atomically:
17014 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017015 ;;
17016
17017interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017018 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017019 need_lib_prefix=no
17020 need_version=no
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17024 shlibpath_var=LD_LIBRARY_PATH
17025 shlibpath_overrides_runpath=no
17026 hardcode_into_libs=yes
17027 ;;
17028
17029irix5* | irix6* | nonstopux*)
17030 case $host_os in
17031 nonstopux*) version_type=nonstopux ;;
17032 *)
17033 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017034 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017035 else
17036 version_type=irix
17037 fi ;;
17038 esac
17039 need_lib_prefix=no
17040 need_version=no
17041 soname_spec='${libname}${release}${shared_ext}$major'
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17043 case $host_os in
17044 irix5* | nonstopux*)
17045 libsuff= shlibsuff=
17046 ;;
17047 *)
17048 case $LD in # libtool.m4 will add one of these switches to LD
17049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17050 libsuff= shlibsuff= libmagic=32-bit;;
17051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17052 libsuff=32 shlibsuff=N32 libmagic=N32;;
17053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17055 *) libsuff= shlibsuff= libmagic=never-match;;
17056 esac
17057 ;;
17058 esac
17059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17060 shlibpath_overrides_runpath=no
17061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17063 hardcode_into_libs=yes
17064 ;;
17065
17066# No shared lib support for Linux oldld, aout, or coff.
17067linux*oldld* | linux*aout* | linux*coff*)
17068 dynamic_linker=no
17069 ;;
17070
cristy99bd5232011-12-07 14:38:20 +000017071# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017072linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017073 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017074 need_lib_prefix=no
17075 need_version=no
17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017081
cristy73bd4a52010-10-05 11:24:23 +000017082 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017083 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017084 $as_echo_n "(cached) " >&6
17085else
17086 lt_cv_shlibpath_overrides_runpath=no
17087 save_LDFLAGS=$LDFLAGS
17088 save_libdir=$libdir
17089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017092/* end confdefs.h. */
17093
17094int
17095main ()
17096{
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102if ac_fn_c_try_link "$LINENO"; then :
17103 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017104 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017105fi
17106fi
17107rm -f core conftest.err conftest.$ac_objext \
17108 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017109 LDFLAGS=$save_LDFLAGS
17110 libdir=$save_libdir
17111
17112fi
17113
17114 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017115
17116 # This implies no fast_install, which is unacceptable.
17117 # Some rework will be needed to allow for fast_install
17118 # before this can be enabled.
17119 hardcode_into_libs=yes
17120
17121 # Add ABI-specific directories to the system library path.
17122 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17123
17124 # Append ld.so.conf contents to the search path
17125 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017126 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 +000017127 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017128
cristy73bd4a52010-10-05 11:24:23 +000017129 fi
17130
17131 # We used to test for /lib/ld.so.1 and disable shared libraries on
17132 # powerpc, because MkLinux only supported shared libraries with the
17133 # GNU dynamic linker. Since this was broken with cross compilers,
17134 # most powerpc-linux boxes support dynamic linking these days and
17135 # people can always --disable-shared, the test was removed, and we
17136 # assume the GNU/Linux dynamic linker is in use.
17137 dynamic_linker='GNU/Linux ld.so'
17138 ;;
17139
17140netbsd*)
17141 version_type=sunos
17142 need_lib_prefix=no
17143 need_version=no
17144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17147 dynamic_linker='NetBSD (a.out) ld.so'
17148 else
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 dynamic_linker='NetBSD ld.elf_so'
17152 fi
17153 shlibpath_var=LD_LIBRARY_PATH
17154 shlibpath_overrides_runpath=yes
17155 hardcode_into_libs=yes
17156 ;;
17157
17158newsos6)
cristy99bd5232011-12-07 14:38:20 +000017159 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 shlibpath_var=LD_LIBRARY_PATH
17162 shlibpath_overrides_runpath=yes
17163 ;;
17164
17165*nto* | *qnx*)
17166 version_type=qnx
17167 need_lib_prefix=no
17168 need_version=no
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170 soname_spec='${libname}${release}${shared_ext}$major'
17171 shlibpath_var=LD_LIBRARY_PATH
17172 shlibpath_overrides_runpath=no
17173 hardcode_into_libs=yes
17174 dynamic_linker='ldqnx.so'
17175 ;;
17176
17177openbsd*)
17178 version_type=sunos
17179 sys_lib_dlsearch_path_spec="/usr/lib"
17180 need_lib_prefix=no
17181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17182 case $host_os in
17183 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17184 *) need_version=no ;;
17185 esac
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17188 shlibpath_var=LD_LIBRARY_PATH
17189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17190 case $host_os in
17191 openbsd2.[89] | openbsd2.[89].*)
17192 shlibpath_overrides_runpath=no
17193 ;;
17194 *)
17195 shlibpath_overrides_runpath=yes
17196 ;;
17197 esac
17198 else
17199 shlibpath_overrides_runpath=yes
17200 fi
17201 ;;
17202
17203os2*)
17204 libname_spec='$name'
17205 shrext_cmds=".dll"
17206 need_lib_prefix=no
17207 library_names_spec='$libname${shared_ext} $libname.a'
17208 dynamic_linker='OS/2 ld.exe'
17209 shlibpath_var=LIBPATH
17210 ;;
17211
17212osf3* | osf4* | osf5*)
17213 version_type=osf
17214 need_lib_prefix=no
17215 need_version=no
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17221 ;;
17222
17223rdos*)
17224 dynamic_linker=no
17225 ;;
17226
17227solaris*)
cristy99bd5232011-12-07 14:38:20 +000017228 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17235 hardcode_into_libs=yes
17236 # ldd complains unless libraries are executable
17237 postinstall_cmds='chmod +x $lib'
17238 ;;
17239
17240sunos4*)
17241 version_type=sunos
17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=yes
17246 if test "$with_gnu_ld" = yes; then
17247 need_lib_prefix=no
17248 fi
17249 need_version=yes
17250 ;;
17251
17252sysv4 | sysv4.3*)
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 case $host_vendor in
17258 sni)
17259 shlibpath_overrides_runpath=no
17260 need_lib_prefix=no
17261 runpath_var=LD_RUN_PATH
17262 ;;
17263 siemens)
17264 need_lib_prefix=no
17265 ;;
17266 motorola)
17267 need_lib_prefix=no
17268 need_version=no
17269 shlibpath_overrides_runpath=no
17270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17271 ;;
17272 esac
17273 ;;
17274
17275sysv4*MP*)
17276 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017277 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17279 soname_spec='$libname${shared_ext}.$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 fi
17282 ;;
17283
17284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17285 version_type=freebsd-elf
17286 need_lib_prefix=no
17287 need_version=no
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 hardcode_into_libs=yes
17293 if test "$with_gnu_ld" = yes; then
17294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17295 else
17296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17297 case $host_os in
17298 sco3.2v5*)
17299 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17300 ;;
17301 esac
17302 fi
17303 sys_lib_dlsearch_path_spec='/usr/lib'
17304 ;;
17305
17306tpf*)
17307 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017308 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017309 need_lib_prefix=no
17310 need_version=no
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17315 ;;
17316
17317uts4*)
cristy99bd5232011-12-07 14:38:20 +000017318 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 ;;
17323
17324*)
17325 dynamic_linker=no
17326 ;;
17327esac
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17329$as_echo "$dynamic_linker" >&6; }
17330test "$dynamic_linker" = no && can_build_shared=no
17331
17332variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17333if test "$GCC" = yes; then
17334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17335fi
17336
17337if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17338 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17339fi
17340if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17341 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17342fi
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
cristy0c60a692010-11-04 01:09:47 +000017430
17431
17432
17433
17434
cristy73bd4a52010-10-05 11:24:23 +000017435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17436$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17437hardcode_action=
17438if test -n "$hardcode_libdir_flag_spec" ||
17439 test -n "$runpath_var" ||
17440 test "X$hardcode_automatic" = "Xyes" ; then
17441
17442 # We can hardcode non-existent directories.
17443 if test "$hardcode_direct" != no &&
17444 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17445 # have to relink, otherwise we might link with an installed library
17446 # when we should be linking with a yet-to-be-installed one
17447 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17448 test "$hardcode_minus_L" != no; then
17449 # Linking always hardcodes the temporary library directory.
17450 hardcode_action=relink
17451 else
17452 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17453 hardcode_action=immediate
17454 fi
17455else
17456 # We cannot hardcode anything, or else we can only hardcode existing
17457 # directories.
17458 hardcode_action=unsupported
17459fi
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17461$as_echo "$hardcode_action" >&6; }
17462
17463if test "$hardcode_action" = relink ||
17464 test "$inherit_rpath" = yes; then
17465 # Fast installation is not supported
17466 enable_fast_install=no
17467elif test "$shlibpath_overrides_runpath" = yes ||
17468 test "$enable_shared" = no; then
17469 # Fast installation is not necessary
17470 enable_fast_install=needless
17471fi
17472
17473
17474
17475
17476
17477
17478 if test "x$enable_dlopen" != xyes; then
17479 enable_dlopen=unknown
17480 enable_dlopen_self=unknown
17481 enable_dlopen_self_static=unknown
17482else
17483 lt_cv_dlopen=no
17484 lt_cv_dlopen_libs=
17485
17486 case $host_os in
17487 beos*)
17488 lt_cv_dlopen="load_add_on"
17489 lt_cv_dlopen_libs=
17490 lt_cv_dlopen_self=yes
17491 ;;
17492
17493 mingw* | pw32* | cegcc*)
17494 lt_cv_dlopen="LoadLibrary"
17495 lt_cv_dlopen_libs=
17496 ;;
17497
17498 cygwin*)
17499 lt_cv_dlopen="dlopen"
17500 lt_cv_dlopen_libs=
17501 ;;
17502
17503 darwin*)
17504 # if libdl is installed we need to link against it
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17506$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017507if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017508 $as_echo_n "(cached) " >&6
17509else
17510 ac_check_lib_save_LIBS=$LIBS
17511LIBS="-ldl $LIBS"
17512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h. */
17514
17515/* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17518#ifdef __cplusplus
17519extern "C"
17520#endif
17521char dlopen ();
17522int
17523main ()
17524{
17525return dlopen ();
17526 ;
17527 return 0;
17528}
17529_ACEOF
17530if ac_fn_c_try_link "$LINENO"; then :
17531 ac_cv_lib_dl_dlopen=yes
17532else
17533 ac_cv_lib_dl_dlopen=no
17534fi
17535rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537LIBS=$ac_check_lib_save_LIBS
17538fi
17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17540$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017541if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17543else
17544
17545 lt_cv_dlopen="dyld"
17546 lt_cv_dlopen_libs=
17547 lt_cv_dlopen_self=yes
17548
17549fi
17550
17551 ;;
17552
17553 *)
17554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017555if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017556 lt_cv_dlopen="shl_load"
17557else
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17559$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017560if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017561 $as_echo_n "(cached) " >&6
17562else
17563 ac_check_lib_save_LIBS=$LIBS
17564LIBS="-ldld $LIBS"
17565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566/* end confdefs.h. */
17567
17568/* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574char shl_load ();
17575int
17576main ()
17577{
17578return shl_load ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_link "$LINENO"; then :
17584 ac_cv_lib_dld_shl_load=yes
17585else
17586 ac_cv_lib_dld_shl_load=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590LIBS=$ac_check_lib_save_LIBS
17591fi
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17593$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017594if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017595 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17596else
17597 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017598if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017599 lt_cv_dlopen="dlopen"
17600else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17602$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017603if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017604 $as_echo_n "(cached) " >&6
17605else
17606 ac_check_lib_save_LIBS=$LIBS
17607LIBS="-ldl $LIBS"
17608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609/* end confdefs.h. */
17610
17611/* Override any GCC internal prototype to avoid an error.
17612 Use char because int might match the return type of a GCC
17613 builtin and then its argument prototype would still apply. */
17614#ifdef __cplusplus
17615extern "C"
17616#endif
17617char dlopen ();
17618int
17619main ()
17620{
17621return dlopen ();
17622 ;
17623 return 0;
17624}
17625_ACEOF
17626if ac_fn_c_try_link "$LINENO"; then :
17627 ac_cv_lib_dl_dlopen=yes
17628else
17629 ac_cv_lib_dl_dlopen=no
17630fi
17631rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17633LIBS=$ac_check_lib_save_LIBS
17634fi
17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17636$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017637if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17639else
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17641$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017642if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017643 $as_echo_n "(cached) " >&6
17644else
17645 ac_check_lib_save_LIBS=$LIBS
17646LIBS="-lsvld $LIBS"
17647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648/* end confdefs.h. */
17649
17650/* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17653#ifdef __cplusplus
17654extern "C"
17655#endif
17656char dlopen ();
17657int
17658main ()
17659{
17660return dlopen ();
17661 ;
17662 return 0;
17663}
17664_ACEOF
17665if ac_fn_c_try_link "$LINENO"; then :
17666 ac_cv_lib_svld_dlopen=yes
17667else
17668 ac_cv_lib_svld_dlopen=no
17669fi
17670rm -f core conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
17672LIBS=$ac_check_lib_save_LIBS
17673fi
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17675$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017676if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17678else
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17680$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017681if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017682 $as_echo_n "(cached) " >&6
17683else
17684 ac_check_lib_save_LIBS=$LIBS
17685LIBS="-ldld $LIBS"
17686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687/* end confdefs.h. */
17688
17689/* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17692#ifdef __cplusplus
17693extern "C"
17694#endif
17695char dld_link ();
17696int
17697main ()
17698{
17699return dld_link ();
17700 ;
17701 return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705 ac_cv_lib_dld_dld_link=yes
17706else
17707 ac_cv_lib_dld_dld_link=no
17708fi
17709rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17711LIBS=$ac_check_lib_save_LIBS
17712fi
17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17714$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017715if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017716 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17717fi
17718
17719
17720fi
17721
17722
17723fi
17724
17725
17726fi
17727
17728
17729fi
17730
17731
17732fi
17733
17734 ;;
17735 esac
17736
17737 if test "x$lt_cv_dlopen" != xno; then
17738 enable_dlopen=yes
17739 else
17740 enable_dlopen=no
17741 fi
17742
17743 case $lt_cv_dlopen in
17744 dlopen)
17745 save_CPPFLAGS="$CPPFLAGS"
17746 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17747
17748 save_LDFLAGS="$LDFLAGS"
17749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17750
17751 save_LIBS="$LIBS"
17752 LIBS="$lt_cv_dlopen_libs $LIBS"
17753
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17755$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017756if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017757 $as_echo_n "(cached) " >&6
17758else
17759 if test "$cross_compiling" = yes; then :
17760 lt_cv_dlopen_self=cross
17761else
17762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17763 lt_status=$lt_dlunknown
17764 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017765#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017766#include "confdefs.h"
17767
17768#if HAVE_DLFCN_H
17769#include <dlfcn.h>
17770#endif
17771
17772#include <stdio.h>
17773
17774#ifdef RTLD_GLOBAL
17775# define LT_DLGLOBAL RTLD_GLOBAL
17776#else
17777# ifdef DL_GLOBAL
17778# define LT_DLGLOBAL DL_GLOBAL
17779# else
17780# define LT_DLGLOBAL 0
17781# endif
17782#endif
17783
17784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17785 find out it does not work in some platform. */
17786#ifndef LT_DLLAZY_OR_NOW
17787# ifdef RTLD_LAZY
17788# define LT_DLLAZY_OR_NOW RTLD_LAZY
17789# else
17790# ifdef DL_LAZY
17791# define LT_DLLAZY_OR_NOW DL_LAZY
17792# else
17793# ifdef RTLD_NOW
17794# define LT_DLLAZY_OR_NOW RTLD_NOW
17795# else
17796# ifdef DL_NOW
17797# define LT_DLLAZY_OR_NOW DL_NOW
17798# else
17799# define LT_DLLAZY_OR_NOW 0
17800# endif
17801# endif
17802# endif
17803# endif
17804#endif
17805
cristy0c60a692010-11-04 01:09:47 +000017806/* When -fvisbility=hidden is used, assume the code has been annotated
17807 correspondingly for the symbols needed. */
17808#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017809int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017810#endif
17811
cristyda16f162011-02-19 23:52:17 +000017812int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017813int main ()
17814{
17815 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17816 int status = $lt_dlunknown;
17817
17818 if (self)
17819 {
17820 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017821 else
17822 {
17823 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17824 else puts (dlerror ());
17825 }
cristy73bd4a52010-10-05 11:24:23 +000017826 /* dlclose (self); */
17827 }
17828 else
17829 puts (dlerror ());
17830
17831 return status;
17832}
17833_LT_EOF
17834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17835 (eval $ac_link) 2>&5
17836 ac_status=$?
17837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17838 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17839 (./conftest; exit; ) >&5 2>/dev/null
17840 lt_status=$?
17841 case x$lt_status in
17842 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17843 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17844 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17845 esac
17846 else :
17847 # compilation failed
17848 lt_cv_dlopen_self=no
17849 fi
17850fi
17851rm -fr conftest*
17852
17853
17854fi
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17856$as_echo "$lt_cv_dlopen_self" >&6; }
17857
17858 if test "x$lt_cv_dlopen_self" = xyes; then
17859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17861$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017862if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017863 $as_echo_n "(cached) " >&6
17864else
17865 if test "$cross_compiling" = yes; then :
17866 lt_cv_dlopen_self_static=cross
17867else
17868 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17869 lt_status=$lt_dlunknown
17870 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017871#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017872#include "confdefs.h"
17873
17874#if HAVE_DLFCN_H
17875#include <dlfcn.h>
17876#endif
17877
17878#include <stdio.h>
17879
17880#ifdef RTLD_GLOBAL
17881# define LT_DLGLOBAL RTLD_GLOBAL
17882#else
17883# ifdef DL_GLOBAL
17884# define LT_DLGLOBAL DL_GLOBAL
17885# else
17886# define LT_DLGLOBAL 0
17887# endif
17888#endif
17889
17890/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17891 find out it does not work in some platform. */
17892#ifndef LT_DLLAZY_OR_NOW
17893# ifdef RTLD_LAZY
17894# define LT_DLLAZY_OR_NOW RTLD_LAZY
17895# else
17896# ifdef DL_LAZY
17897# define LT_DLLAZY_OR_NOW DL_LAZY
17898# else
17899# ifdef RTLD_NOW
17900# define LT_DLLAZY_OR_NOW RTLD_NOW
17901# else
17902# ifdef DL_NOW
17903# define LT_DLLAZY_OR_NOW DL_NOW
17904# else
17905# define LT_DLLAZY_OR_NOW 0
17906# endif
17907# endif
17908# endif
17909# endif
17910#endif
17911
cristy0c60a692010-11-04 01:09:47 +000017912/* When -fvisbility=hidden is used, assume the code has been annotated
17913 correspondingly for the symbols needed. */
17914#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017915int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017916#endif
17917
cristyda16f162011-02-19 23:52:17 +000017918int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017919int main ()
17920{
17921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17922 int status = $lt_dlunknown;
17923
17924 if (self)
17925 {
17926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017927 else
17928 {
17929 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17930 else puts (dlerror ());
17931 }
cristy73bd4a52010-10-05 11:24:23 +000017932 /* dlclose (self); */
17933 }
17934 else
17935 puts (dlerror ());
17936
17937 return status;
17938}
17939_LT_EOF
17940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17941 (eval $ac_link) 2>&5
17942 ac_status=$?
17943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17944 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17945 (./conftest; exit; ) >&5 2>/dev/null
17946 lt_status=$?
17947 case x$lt_status in
17948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17950 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17951 esac
17952 else :
17953 # compilation failed
17954 lt_cv_dlopen_self_static=no
17955 fi
17956fi
17957rm -fr conftest*
17958
17959
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17962$as_echo "$lt_cv_dlopen_self_static" >&6; }
17963 fi
17964
17965 CPPFLAGS="$save_CPPFLAGS"
17966 LDFLAGS="$save_LDFLAGS"
17967 LIBS="$save_LIBS"
17968 ;;
17969 esac
17970
17971 case $lt_cv_dlopen_self in
17972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17973 *) enable_dlopen_self=unknown ;;
17974 esac
17975
17976 case $lt_cv_dlopen_self_static in
17977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17978 *) enable_dlopen_self_static=unknown ;;
17979 esac
17980fi
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998striplib=
17999old_striplib=
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18001$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18002if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18003 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18004 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18006$as_echo "yes" >&6; }
18007else
18008# FIXME - insert some real tests, host_os isn't really good enough
18009 case $host_os in
18010 darwin*)
18011 if test -n "$STRIP" ; then
18012 striplib="$STRIP -x"
18013 old_striplib="$STRIP -S"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18015$as_echo "yes" >&6; }
18016 else
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018$as_echo "no" >&6; }
18019 fi
18020 ;;
18021 *)
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023$as_echo "no" >&6; }
18024 ;;
18025 esac
18026fi
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039 # Report which library types will actually be built
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18041$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18043$as_echo "$can_build_shared" >&6; }
18044
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18046$as_echo_n "checking whether to build shared libraries... " >&6; }
18047 test "$can_build_shared" = "no" && enable_shared=no
18048
18049 # On AIX, shared libraries and static libraries use the same namespace, and
18050 # are all built from PIC.
18051 case $host_os in
18052 aix3*)
18053 test "$enable_shared" = yes && enable_static=no
18054 if test -n "$RANLIB"; then
18055 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18056 postinstall_cmds='$RANLIB $lib'
18057 fi
18058 ;;
18059
18060 aix[4-9]*)
18061 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18062 test "$enable_shared" = yes && enable_static=no
18063 fi
18064 ;;
18065 esac
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18067$as_echo "$enable_shared" >&6; }
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18070$as_echo_n "checking whether to build static libraries... " >&6; }
18071 # Make sure either enable_shared or enable_static is yes.
18072 test "$enable_shared" = yes || enable_static=yes
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18074$as_echo "$enable_static" >&6; }
18075
18076
18077
18078
18079fi
18080ac_ext=c
18081ac_cpp='$CPP $CPPFLAGS'
18082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18084ac_compiler_gnu=$ac_cv_c_compiler_gnu
18085
18086CC="$lt_save_CC"
18087
cristy0c60a692010-11-04 01:09:47 +000018088 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18089 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18090 (test "X$CXX" != "Xg++"))) ; then
18091 ac_ext=cpp
18092ac_cpp='$CXXCPP $CPPFLAGS'
18093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18097$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18098if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018099 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018100 $as_echo_n "(cached) " >&6
18101else
18102 # Double quotes because CXXCPP needs to be expanded
18103 for CXXCPP in "$CXX -E" "/lib/cpp"
18104 do
18105 ac_preproc_ok=false
18106for ac_cxx_preproc_warn_flag in '' yes
18107do
18108 # Use a header file that comes with gcc, so configuring glibc
18109 # with a fresh cross-compiler works.
18110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18111 # <limits.h> exists even on freestanding compilers.
18112 # On the NeXT, cc -E runs the code through the compiler's parser,
18113 # not just through cpp. "Syntax error" is here to catch this case.
18114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115/* end confdefs.h. */
18116#ifdef __STDC__
18117# include <limits.h>
18118#else
18119# include <assert.h>
18120#endif
18121 Syntax error
18122_ACEOF
18123if ac_fn_cxx_try_cpp "$LINENO"; then :
18124
18125else
18126 # Broken: fails on valid input.
18127continue
18128fi
cristyda16f162011-02-19 23:52:17 +000018129rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018130
18131 # OK, works on sane cases. Now check whether nonexistent headers
18132 # can be detected and how.
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h. */
18135#include <ac_nonexistent.h>
18136_ACEOF
18137if ac_fn_cxx_try_cpp "$LINENO"; then :
18138 # Broken: success on invalid input.
18139continue
18140else
18141 # Passes both tests.
18142ac_preproc_ok=:
18143break
18144fi
cristyda16f162011-02-19 23:52:17 +000018145rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018146
18147done
18148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018149rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018150if $ac_preproc_ok; then :
18151 break
18152fi
18153
18154 done
18155 ac_cv_prog_CXXCPP=$CXXCPP
18156
18157fi
18158 CXXCPP=$ac_cv_prog_CXXCPP
18159else
18160 ac_cv_prog_CXXCPP=$CXXCPP
18161fi
18162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18163$as_echo "$CXXCPP" >&6; }
18164ac_preproc_ok=false
18165for ac_cxx_preproc_warn_flag in '' yes
18166do
18167 # Use a header file that comes with gcc, so configuring glibc
18168 # with a fresh cross-compiler works.
18169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18170 # <limits.h> exists even on freestanding compilers.
18171 # On the NeXT, cc -E runs the code through the compiler's parser,
18172 # not just through cpp. "Syntax error" is here to catch this case.
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174/* end confdefs.h. */
18175#ifdef __STDC__
18176# include <limits.h>
18177#else
18178# include <assert.h>
18179#endif
18180 Syntax error
18181_ACEOF
18182if ac_fn_cxx_try_cpp "$LINENO"; then :
18183
18184else
18185 # Broken: fails on valid input.
18186continue
18187fi
cristyda16f162011-02-19 23:52:17 +000018188rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018189
18190 # OK, works on sane cases. Now check whether nonexistent headers
18191 # can be detected and how.
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193/* end confdefs.h. */
18194#include <ac_nonexistent.h>
18195_ACEOF
18196if ac_fn_cxx_try_cpp "$LINENO"; then :
18197 # Broken: success on invalid input.
18198continue
18199else
18200 # Passes both tests.
18201ac_preproc_ok=:
18202break
18203fi
cristyda16f162011-02-19 23:52:17 +000018204rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018205
18206done
18207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018208rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018209if $ac_preproc_ok; then :
18210
18211else
18212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18214as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18215See \`config.log' for more details" "$LINENO" 5; }
18216fi
18217
18218ac_ext=c
18219ac_cpp='$CPP $CPPFLAGS'
18220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222ac_compiler_gnu=$ac_cv_c_compiler_gnu
18223
18224else
18225 _lt_caught_CXX_error=yes
18226fi
cristy73bd4a52010-10-05 11:24:23 +000018227
18228ac_ext=cpp
18229ac_cpp='$CXXCPP $CPPFLAGS'
18230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18233
18234archive_cmds_need_lc_CXX=no
18235allow_undefined_flag_CXX=
18236always_export_symbols_CXX=no
18237archive_expsym_cmds_CXX=
18238compiler_needs_object_CXX=no
18239export_dynamic_flag_spec_CXX=
18240hardcode_direct_CXX=no
18241hardcode_direct_absolute_CXX=no
18242hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018243hardcode_libdir_separator_CXX=
18244hardcode_minus_L_CXX=no
18245hardcode_shlibpath_var_CXX=unsupported
18246hardcode_automatic_CXX=no
18247inherit_rpath_CXX=no
18248module_cmds_CXX=
18249module_expsym_cmds_CXX=
18250link_all_deplibs_CXX=unknown
18251old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018252reload_flag_CXX=$reload_flag
18253reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018254no_undefined_flag_CXX=
18255whole_archive_flag_spec_CXX=
18256enable_shared_with_static_runtimes_CXX=no
18257
18258# Source file extension for C++ test sources.
18259ac_ext=cpp
18260
18261# Object file extension for compiled C++ test sources.
18262objext=o
18263objext_CXX=$objext
18264
18265# No sense in running all these tests if we already determined that
18266# the CXX compiler isn't working. Some variables (like enable_shared)
18267# are currently assumed to apply to all compilers on this platform,
18268# and will be corrupted by setting them based on a non-working compiler.
18269if test "$_lt_caught_CXX_error" != yes; then
18270 # Code to be used in simple compile tests
18271 lt_simple_compile_test_code="int some_variable = 0;"
18272
18273 # Code to be used in simple link tests
18274 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18275
18276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18277
18278
18279
18280
18281
18282
18283# If no C compiler was specified, use CC.
18284LTCC=${LTCC-"$CC"}
18285
18286# If no C compiler flags were specified, use CFLAGS.
18287LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18288
18289# Allow CC to be a program name with arguments.
18290compiler=$CC
18291
18292
18293 # save warnings/boilerplate of simple test code
18294 ac_outfile=conftest.$ac_objext
18295echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18297_lt_compiler_boilerplate=`cat conftest.err`
18298$RM conftest*
18299
18300 ac_outfile=conftest.$ac_objext
18301echo "$lt_simple_link_test_code" >conftest.$ac_ext
18302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18303_lt_linker_boilerplate=`cat conftest.err`
18304$RM -r conftest*
18305
18306
18307 # Allow CC to be a program name with arguments.
18308 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018309 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018310 lt_save_LD=$LD
18311 lt_save_GCC=$GCC
18312 GCC=$GXX
18313 lt_save_with_gnu_ld=$with_gnu_ld
18314 lt_save_path_LD=$lt_cv_path_LD
18315 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18316 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18317 else
18318 $as_unset lt_cv_prog_gnu_ld
18319 fi
18320 if test -n "${lt_cv_path_LDCXX+set}"; then
18321 lt_cv_path_LD=$lt_cv_path_LDCXX
18322 else
18323 $as_unset lt_cv_path_LD
18324 fi
18325 test -z "${LDCXX+set}" || LD=$LDCXX
18326 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018327 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018328 compiler=$CC
18329 compiler_CXX=$CC
18330 for cc_temp in $compiler""; do
18331 case $cc_temp in
18332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18334 \-*) ;;
18335 *) break;;
18336 esac
18337done
cristy0c60a692010-11-04 01:09:47 +000018338cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018339
18340
18341 if test -n "$compiler"; then
18342 # We don't want -fno-exception when compiling C++ code, so set the
18343 # no_builtin_flag separately
18344 if test "$GXX" = yes; then
18345 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18346 else
18347 lt_prog_compiler_no_builtin_flag_CXX=
18348 fi
18349
18350 if test "$GXX" = yes; then
18351 # Set up default GNU C++ configuration
18352
18353
18354
18355# Check whether --with-gnu-ld was given.
18356if test "${with_gnu_ld+set}" = set; then :
18357 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18358else
18359 with_gnu_ld=no
18360fi
18361
18362ac_prog=ld
18363if test "$GCC" = yes; then
18364 # Check if gcc -print-prog-name=ld gives a path.
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18366$as_echo_n "checking for ld used by $CC... " >&6; }
18367 case $host in
18368 *-*-mingw*)
18369 # gcc leaves a trailing carriage return which upsets mingw
18370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18371 *)
18372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18373 esac
18374 case $ac_prog in
18375 # Accept absolute paths.
18376 [\\/]* | ?:[\\/]*)
18377 re_direlt='/[^/][^/]*/\.\./'
18378 # Canonicalize the pathname of ld
18379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18382 done
18383 test -z "$LD" && LD="$ac_prog"
18384 ;;
18385 "")
18386 # If it fails, then pretend we aren't using GCC.
18387 ac_prog=ld
18388 ;;
18389 *)
18390 # If it is relative, then search for the first ld in PATH.
18391 with_gnu_ld=unknown
18392 ;;
18393 esac
18394elif test "$with_gnu_ld" = yes; then
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18396$as_echo_n "checking for GNU ld... " >&6; }
18397else
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18399$as_echo_n "checking for non-GNU ld... " >&6; }
18400fi
cristyda16f162011-02-19 23:52:17 +000018401if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018402 $as_echo_n "(cached) " >&6
18403else
18404 if test -z "$LD"; then
18405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18406 for ac_dir in $PATH; do
18407 IFS="$lt_save_ifs"
18408 test -z "$ac_dir" && ac_dir=.
18409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18410 lt_cv_path_LD="$ac_dir/$ac_prog"
18411 # Check to see if the program is GNU ld. I'd rather use --version,
18412 # but apparently some variants of GNU ld only accept -v.
18413 # Break only if it was the GNU/non-GNU ld that we prefer.
18414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18415 *GNU* | *'with BFD'*)
18416 test "$with_gnu_ld" != no && break
18417 ;;
18418 *)
18419 test "$with_gnu_ld" != yes && break
18420 ;;
18421 esac
18422 fi
18423 done
18424 IFS="$lt_save_ifs"
18425else
18426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18427fi
18428fi
18429
18430LD="$lt_cv_path_LD"
18431if test -n "$LD"; then
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18433$as_echo "$LD" >&6; }
18434else
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18436$as_echo "no" >&6; }
18437fi
cristy98dddb52010-11-04 00:30:15 +000018438test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018441if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018442 $as_echo_n "(cached) " >&6
18443else
18444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18445case `$LD -v 2>&1 </dev/null` in
18446*GNU* | *'with BFD'*)
18447 lt_cv_prog_gnu_ld=yes
18448 ;;
18449*)
18450 lt_cv_prog_gnu_ld=no
18451 ;;
18452esac
18453fi
18454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18456with_gnu_ld=$lt_cv_prog_gnu_ld
18457
18458
18459
18460
18461
18462
18463
18464 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18465 # archiving commands below assume that GNU ld is being used.
18466 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018467 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468 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 +000018469
18470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18472
18473 # If archive_cmds runs LD, not CC, wlarc should be empty
18474 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18475 # investigate it a little bit more. (MM)
18476 wlarc='${wl}'
18477
18478 # ancient GNU ld didn't support --whole-archive et. al.
18479 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18480 $GREP 'no-whole-archive' > /dev/null; then
18481 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18482 else
18483 whole_archive_flag_spec_CXX=
18484 fi
18485 else
18486 with_gnu_ld=no
18487 wlarc=
18488
18489 # A generic and very simple default shared library creation
18490 # command for GNU C++ for the case where it uses the native
18491 # linker, instead of GNU ld. If possible, this setting should
18492 # overridden to take advantage of the native linker features on
18493 # the platform it is being used on.
18494 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18495 fi
18496
18497 # Commands to make compiler produce verbose output that lists
18498 # what "hidden" libraries, object files and flags are used when
18499 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018501
18502 else
18503 GXX=no
18504 with_gnu_ld=no
18505 wlarc=
18506 fi
18507
18508 # PORTME: fill in a description of your system's C++ link characteristics
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18510$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18511 ld_shlibs_CXX=yes
18512 case $host_os in
18513 aix3*)
18514 # FIXME: insert proper C++ library support
18515 ld_shlibs_CXX=no
18516 ;;
18517 aix[4-9]*)
18518 if test "$host_cpu" = ia64; then
18519 # On IA64, the linker does run time linking by default, so we don't
18520 # have to do anything special.
18521 aix_use_runtimelinking=no
18522 exp_sym_flag='-Bexport'
18523 no_entry_flag=""
18524 else
18525 aix_use_runtimelinking=no
18526
18527 # Test if we are trying to use run time linking or normal
18528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18529 # need to do runtime linking.
18530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18531 for ld_flag in $LDFLAGS; do
18532 case $ld_flag in
18533 *-brtl*)
18534 aix_use_runtimelinking=yes
18535 break
18536 ;;
18537 esac
18538 done
18539 ;;
18540 esac
18541
18542 exp_sym_flag='-bexport'
18543 no_entry_flag='-bnoentry'
18544 fi
18545
18546 # When large executables or shared objects are built, AIX ld can
18547 # have problems creating the table of contents. If linking a library
18548 # or program results in "error TOC overflow" add -mminimal-toc to
18549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18551
18552 archive_cmds_CXX=''
18553 hardcode_direct_CXX=yes
18554 hardcode_direct_absolute_CXX=yes
18555 hardcode_libdir_separator_CXX=':'
18556 link_all_deplibs_CXX=yes
18557 file_list_spec_CXX='${wl}-f,'
18558
18559 if test "$GXX" = yes; then
18560 case $host_os in aix4.[012]|aix4.[012].*)
18561 # We only want to do this on AIX 4.2 and lower, the check
18562 # below for broken collect2 doesn't work under 4.3+
18563 collect2name=`${CC} -print-prog-name=collect2`
18564 if test -f "$collect2name" &&
18565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18566 then
18567 # We have reworked collect2
18568 :
18569 else
18570 # We have old collect2
18571 hardcode_direct_CXX=unsupported
18572 # It fails to find uninstalled libraries when the uninstalled
18573 # path is not listed in the libpath. Setting hardcode_minus_L
18574 # to unsupported forces relinking
18575 hardcode_minus_L_CXX=yes
18576 hardcode_libdir_flag_spec_CXX='-L$libdir'
18577 hardcode_libdir_separator_CXX=
18578 fi
18579 esac
18580 shared_flag='-shared'
18581 if test "$aix_use_runtimelinking" = yes; then
18582 shared_flag="$shared_flag "'${wl}-G'
18583 fi
18584 else
18585 # not using gcc
18586 if test "$host_cpu" = ia64; then
18587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18588 # chokes on -Wl,-G. The following line is correct:
18589 shared_flag='-G'
18590 else
18591 if test "$aix_use_runtimelinking" = yes; then
18592 shared_flag='${wl}-G'
18593 else
18594 shared_flag='${wl}-bM:SRE'
18595 fi
18596 fi
18597 fi
18598
18599 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18600 # It seems that -bexpall does not export symbols beginning with
18601 # underscore (_), so it is better to generate a list of symbols to
18602 # export.
18603 always_export_symbols_CXX=yes
18604 if test "$aix_use_runtimelinking" = yes; then
18605 # Warning - without using the other runtime loading flags (-brtl),
18606 # -berok will link without error, but may produce a broken library.
18607 allow_undefined_flag_CXX='-berok'
18608 # Determine the default libpath from the value encoded in an empty
18609 # executable.
cristyda16f162011-02-19 23:52:17 +000018610 if test "${lt_cv_aix_libpath+set}" = set; then
18611 aix_libpath=$lt_cv_aix_libpath
18612else
18613 if ${lt_cv_aix_libpath__CXX+:} false; then :
18614 $as_echo_n "(cached) " >&6
18615else
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018617/* end confdefs.h. */
18618
18619int
18620main ()
18621{
18622
18623 ;
18624 return 0;
18625}
18626_ACEOF
18627if ac_fn_cxx_try_link "$LINENO"; then :
18628
cristyda16f162011-02-19 23:52:17 +000018629 lt_aix_libpath_sed='
18630 /Import File Strings/,/^$/ {
18631 /^0/ {
18632 s/^0 *\([^ ]*\) *$/\1/
18633 p
18634 }
18635 }'
18636 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18637 # Check for a 64-bit object if we didn't find anything.
18638 if test -z "$lt_cv_aix_libpath__CXX"; then
18639 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18640 fi
cristy73bd4a52010-10-05 11:24:23 +000018641fi
18642rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018644 if test -z "$lt_cv_aix_libpath__CXX"; then
18645 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18646 fi
18647
18648fi
18649
18650 aix_libpath=$lt_cv_aix_libpath__CXX
18651fi
cristy73bd4a52010-10-05 11:24:23 +000018652
18653 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18654
cristy0c60a692010-11-04 01:09:47 +000018655 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 +000018656 else
18657 if test "$host_cpu" = ia64; then
18658 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18659 allow_undefined_flag_CXX="-z nodefs"
18660 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"
18661 else
18662 # Determine the default libpath from the value encoded in an
18663 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018664 if test "${lt_cv_aix_libpath+set}" = set; then
18665 aix_libpath=$lt_cv_aix_libpath
18666else
18667 if ${lt_cv_aix_libpath__CXX+:} false; then :
18668 $as_echo_n "(cached) " >&6
18669else
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018671/* end confdefs.h. */
18672
18673int
18674main ()
18675{
18676
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681if ac_fn_cxx_try_link "$LINENO"; then :
18682
cristyda16f162011-02-19 23:52:17 +000018683 lt_aix_libpath_sed='
18684 /Import File Strings/,/^$/ {
18685 /^0/ {
18686 s/^0 *\([^ ]*\) *$/\1/
18687 p
18688 }
18689 }'
18690 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18691 # Check for a 64-bit object if we didn't find anything.
18692 if test -z "$lt_cv_aix_libpath__CXX"; then
18693 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18694 fi
cristy73bd4a52010-10-05 11:24:23 +000018695fi
18696rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018698 if test -z "$lt_cv_aix_libpath__CXX"; then
18699 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18700 fi
18701
18702fi
18703
18704 aix_libpath=$lt_cv_aix_libpath__CXX
18705fi
cristy73bd4a52010-10-05 11:24:23 +000018706
18707 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18708 # Warning - without using the other run time loading flags,
18709 # -berok will link without error, but may produce a broken library.
18710 no_undefined_flag_CXX=' ${wl}-bernotok'
18711 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018712 if test "$with_gnu_ld" = yes; then
18713 # We only use this code for GNU lds that support --whole-archive.
18714 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18715 else
18716 # Exported symbols can be pulled into shared objects from archives
18717 whole_archive_flag_spec_CXX='$convenience'
18718 fi
cristy73bd4a52010-10-05 11:24:23 +000018719 archive_cmds_need_lc_CXX=yes
18720 # This is similar to how AIX traditionally builds its shared
18721 # libraries.
18722 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'
18723 fi
18724 fi
18725 ;;
18726
18727 beos*)
18728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18729 allow_undefined_flag_CXX=unsupported
18730 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18731 # support --undefined. This deserves some investigation. FIXME
18732 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18733 else
18734 ld_shlibs_CXX=no
18735 fi
18736 ;;
18737
18738 chorus*)
18739 case $cc_basename in
18740 *)
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 ;;
18744 esac
18745 ;;
18746
18747 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018748 case $GXX,$cc_basename in
18749 ,cl* | no,cl*)
18750 # Native MSVC
18751 # hardcode_libdir_flag_spec is actually meaningless, as there is
18752 # no search path for DLLs.
18753 hardcode_libdir_flag_spec_CXX=' '
18754 allow_undefined_flag_CXX=unsupported
18755 always_export_symbols_CXX=yes
18756 file_list_spec_CXX='@'
18757 # Tell ltmain to make .lib files, not .a files.
18758 libext=lib
18759 # Tell ltmain to make .dll files, not .so files.
18760 shrext_cmds=".dll"
18761 # FIXME: Setting linknames here is a bad hack.
18762 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18764 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18765 else
18766 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18767 fi~
18768 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18769 linknames='
18770 # The linker will not automatically build a static lib if we build a DLL.
18771 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18772 enable_shared_with_static_runtimes_CXX=yes
18773 # Don't use ranlib
18774 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18775 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18776 lt_tool_outputfile="@TOOL_OUTPUT@"~
18777 case $lt_outputfile in
18778 *.exe|*.EXE) ;;
18779 *)
18780 lt_outputfile="$lt_outputfile.exe"
18781 lt_tool_outputfile="$lt_tool_outputfile.exe"
18782 ;;
18783 esac~
18784 func_to_tool_file "$lt_outputfile"~
18785 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18786 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18787 $RM "$lt_outputfile.manifest";
18788 fi'
18789 ;;
18790 *)
18791 # g++
18792 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18793 # as there is no search path for DLLs.
18794 hardcode_libdir_flag_spec_CXX='-L$libdir'
18795 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18796 allow_undefined_flag_CXX=unsupported
18797 always_export_symbols_CXX=no
18798 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018799
cristyda16f162011-02-19 23:52:17 +000018800 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18801 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'
18802 # If the export-symbols file already is a .def file (1st line
18803 # is EXPORTS), use it as is; otherwise, prepend...
18804 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18805 cp $export_symbols $output_objdir/$soname.def;
18806 else
18807 echo EXPORTS > $output_objdir/$soname.def;
18808 cat $export_symbols >> $output_objdir/$soname.def;
18809 fi~
18810 $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'
18811 else
18812 ld_shlibs_CXX=no
18813 fi
18814 ;;
18815 esac
18816 ;;
cristy73bd4a52010-10-05 11:24:23 +000018817 darwin* | rhapsody*)
18818
18819
18820 archive_cmds_need_lc_CXX=no
18821 hardcode_direct_CXX=no
18822 hardcode_automatic_CXX=yes
18823 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018824 if test "$lt_cv_ld_force_load" = "yes"; then
18825 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 +000018826
cristy0c60a692010-11-04 01:09:47 +000018827 else
18828 whole_archive_flag_spec_CXX=''
18829 fi
cristy73bd4a52010-10-05 11:24:23 +000018830 link_all_deplibs_CXX=yes
18831 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18832 case $cc_basename in
18833 ifort*) _lt_dar_can_shared=yes ;;
18834 *) _lt_dar_can_shared=$GCC ;;
18835 esac
18836 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018837 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018838 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}"
18839 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18840 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}"
18841 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}"
18842 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18843 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}"
18844 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}"
18845 fi
18846
18847 else
18848 ld_shlibs_CXX=no
18849 fi
18850
18851 ;;
18852
18853 dgux*)
18854 case $cc_basename in
18855 ec++*)
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18858 ;;
18859 ghcx*)
18860 # Green Hills C++ Compiler
18861 # FIXME: insert proper C++ library support
18862 ld_shlibs_CXX=no
18863 ;;
18864 *)
18865 # FIXME: insert proper C++ library support
18866 ld_shlibs_CXX=no
18867 ;;
18868 esac
18869 ;;
18870
cristy99bd5232011-12-07 14:38:20 +000018871 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018872 # C++ shared libraries reported to be fairly broken before
18873 # switch to ELF
18874 ld_shlibs_CXX=no
18875 ;;
18876
18877 freebsd-elf*)
18878 archive_cmds_need_lc_CXX=no
18879 ;;
18880
18881 freebsd* | dragonfly*)
18882 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18883 # conventions
18884 ld_shlibs_CXX=yes
18885 ;;
18886
18887 gnu*)
18888 ;;
18889
cristy0c60a692010-11-04 01:09:47 +000018890 haiku*)
18891 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18892 link_all_deplibs_CXX=yes
18893 ;;
18894
cristy73bd4a52010-10-05 11:24:23 +000018895 hpux9*)
18896 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18897 hardcode_libdir_separator_CXX=:
18898 export_dynamic_flag_spec_CXX='${wl}-E'
18899 hardcode_direct_CXX=yes
18900 hardcode_minus_L_CXX=yes # Not in the search PATH,
18901 # but as the default
18902 # location of the library.
18903
18904 case $cc_basename in
18905 CC*)
18906 # FIXME: insert proper C++ library support
18907 ld_shlibs_CXX=no
18908 ;;
18909 aCC*)
18910 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'
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) | $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 +000018920 ;;
18921 *)
18922 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018923 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 +000018924 else
18925 # FIXME: insert proper C++ library support
18926 ld_shlibs_CXX=no
18927 fi
18928 ;;
18929 esac
18930 ;;
18931
18932 hpux10*|hpux11*)
18933 if test $with_gnu_ld = no; then
18934 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18935 hardcode_libdir_separator_CXX=:
18936
18937 case $host_cpu in
18938 hppa*64*|ia64*)
18939 ;;
18940 *)
18941 export_dynamic_flag_spec_CXX='${wl}-E'
18942 ;;
18943 esac
18944 fi
18945 case $host_cpu in
18946 hppa*64*|ia64*)
18947 hardcode_direct_CXX=no
18948 hardcode_shlibpath_var_CXX=no
18949 ;;
18950 *)
18951 hardcode_direct_CXX=yes
18952 hardcode_direct_absolute_CXX=yes
18953 hardcode_minus_L_CXX=yes # Not in the search PATH,
18954 # but as the default
18955 # location of the library.
18956 ;;
18957 esac
18958
18959 case $cc_basename in
18960 CC*)
18961 # FIXME: insert proper C++ library support
18962 ld_shlibs_CXX=no
18963 ;;
18964 aCC*)
18965 case $host_cpu in
18966 hppa*64*)
18967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18968 ;;
18969 ia64*)
18970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18971 ;;
18972 *)
18973 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18974 ;;
18975 esac
18976 # Commands to make compiler produce verbose output that lists
18977 # what "hidden" libraries, object files and flags are used when
18978 # linking a shared library.
18979 #
18980 # There doesn't appear to be a way to prevent this compiler from
18981 # explicitly linking system object files so we need to strip them
18982 # from the output so that they don't get included in the library
18983 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018984 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 +000018985 ;;
18986 *)
18987 if test "$GXX" = yes; then
18988 if test $with_gnu_ld = no; then
18989 case $host_cpu in
18990 hppa*64*)
18991 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18992 ;;
18993 ia64*)
cristyda16f162011-02-19 23:52:17 +000018994 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 +000018995 ;;
18996 *)
cristyda16f162011-02-19 23:52:17 +000018997 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 +000018998 ;;
18999 esac
19000 fi
19001 else
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 fi
19005 ;;
19006 esac
19007 ;;
19008
19009 interix[3-9]*)
19010 hardcode_direct_CXX=no
19011 hardcode_shlibpath_var_CXX=no
19012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19013 export_dynamic_flag_spec_CXX='${wl}-E'
19014 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19015 # Instead, shared libraries are loaded at an image base (0x10000000 by
19016 # default) and relocated if they conflict, which is a slow very memory
19017 # consuming and fragmenting process. To avoid this, we pick a random,
19018 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19019 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19020 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'
19021 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'
19022 ;;
19023 irix5* | irix6*)
19024 case $cc_basename in
19025 CC*)
19026 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019027 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 +000019028
19029 # Archives containing C++ object files must be created using
19030 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19031 # necessary to make sure instantiated templates are included
19032 # in the archive.
19033 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19034 ;;
19035 *)
19036 if test "$GXX" = yes; then
19037 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019038 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 +000019039 else
cristyda16f162011-02-19 23:52:17 +000019040 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 +000019041 fi
19042 fi
19043 link_all_deplibs_CXX=yes
19044 ;;
19045 esac
19046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19047 hardcode_libdir_separator_CXX=:
19048 inherit_rpath_CXX=yes
19049 ;;
19050
cristy0c60a692010-11-04 01:09:47 +000019051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019052 case $cc_basename in
19053 KCC*)
19054 # Kuck and Associates, Inc. (KAI) C++ Compiler
19055
19056 # KCC will only create a shared library if the output file
19057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19058 # to its proper name (with version) after linking.
19059 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'
19060 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'
19061 # Commands to make compiler produce verbose output that lists
19062 # what "hidden" libraries, object files and flags are used when
19063 # linking a shared library.
19064 #
19065 # There doesn't appear to be a way to prevent this compiler from
19066 # explicitly linking system object files so we need to strip them
19067 # from the output so that they don't get included in the library
19068 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019069 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 +000019070
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19073
19074 # Archives containing C++ object files must be created using
19075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19077 ;;
19078 icpc* | ecpc* )
19079 # Intel C++
19080 with_gnu_ld=yes
19081 # version 8.0 and above of icpc choke on multiply defined symbols
19082 # if we add $predep_objects and $postdep_objects, however 7.1 and
19083 # earlier do not add the objects themselves.
19084 case `$CC -V 2>&1` in
19085 *"Version 7."*)
19086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19087 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'
19088 ;;
19089 *) # Version 8.0 or newer
19090 tmp_idyn=
19091 case $host_cpu in
19092 ia64*) tmp_idyn=' -i_dynamic';;
19093 esac
19094 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095 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'
19096 ;;
19097 esac
19098 archive_cmds_need_lc_CXX=no
19099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19101 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19102 ;;
19103 pgCC* | pgcpp*)
19104 # Portland Group C++ compiler
19105 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019106 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019107 prelink_cmds_CXX='tpldir=Template.dir~
19108 rm -rf $tpldir~
19109 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019110 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019111 old_archive_cmds_CXX='tpldir=Template.dir~
19112 rm -rf $tpldir~
19113 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019114 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019115 $RANLIB $oldlib'
19116 archive_cmds_CXX='tpldir=Template.dir~
19117 rm -rf $tpldir~
19118 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019119 $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 +000019120 archive_expsym_cmds_CXX='tpldir=Template.dir~
19121 rm -rf $tpldir~
19122 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019123 $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 +000019124 ;;
cristy0c60a692010-11-04 01:09:47 +000019125 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019126 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19127 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'
19128 ;;
19129 esac
19130
19131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019133 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 +000019134 ;;
19135 cxx*)
19136 # Compaq C++
19137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 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'
19139
19140 runpath_var=LD_RUN_PATH
19141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142 hardcode_libdir_separator_CXX=:
19143
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19147 #
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19151 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019152 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 +000019153 ;;
cristy0c60a692010-11-04 01:09:47 +000019154 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019155 # IBM XL 8.0 on PPC, with GNU ld
19156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19158 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 if test "x$supports_anon_versioning" = xyes; then
19160 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19162 echo "local: *; };" >> $output_objdir/$libname.ver~
19163 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19164 fi
19165 ;;
19166 *)
19167 case `$CC -V 2>&1 | sed 5q` in
19168 *Sun\ C*)
19169 # Sun C++ 5.9
19170 no_undefined_flag_CXX=' -zdefs'
19171 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19172 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'
19173 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019174 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 +000019175 compiler_needs_object_CXX=yes
19176
19177 # Not sure whether something based on
19178 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19179 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019180 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019181
19182 # Archives containing C++ object files must be created using
19183 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19184 # necessary to make sure instantiated templates are included
19185 # in the archive.
19186 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19187 ;;
19188 esac
19189 ;;
19190 esac
19191 ;;
19192
19193 lynxos*)
19194 # FIXME: insert proper C++ library support
19195 ld_shlibs_CXX=no
19196 ;;
19197
19198 m88k*)
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202
19203 mvs*)
19204 case $cc_basename in
19205 cxx*)
19206 # FIXME: insert proper C++ library support
19207 ld_shlibs_CXX=no
19208 ;;
19209 *)
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19212 ;;
19213 esac
19214 ;;
19215
19216 netbsd*)
19217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19218 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19219 wlarc=
19220 hardcode_libdir_flag_spec_CXX='-R$libdir'
19221 hardcode_direct_CXX=yes
19222 hardcode_shlibpath_var_CXX=no
19223 fi
19224 # Workaround some broken pre-1.5 toolchains
19225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19226 ;;
19227
19228 *nto* | *qnx*)
19229 ld_shlibs_CXX=yes
19230 ;;
19231
19232 openbsd2*)
19233 # C++ shared libraries are fairly broken
19234 ld_shlibs_CXX=no
19235 ;;
19236
19237 openbsd*)
19238 if test -f /usr/libexec/ld.so; then
19239 hardcode_direct_CXX=yes
19240 hardcode_shlibpath_var_CXX=no
19241 hardcode_direct_absolute_CXX=yes
19242 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19245 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19246 export_dynamic_flag_spec_CXX='${wl}-E'
19247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19248 fi
cristy0c60a692010-11-04 01:09:47 +000019249 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019250 else
19251 ld_shlibs_CXX=no
19252 fi
19253 ;;
19254
19255 osf3* | osf4* | osf5*)
19256 case $cc_basename in
19257 KCC*)
19258 # Kuck and Associates, Inc. (KAI) C++ Compiler
19259
19260 # KCC will only create a shared library if the output file
19261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19262 # to its proper name (with version) after linking.
19263 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'
19264
19265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19266 hardcode_libdir_separator_CXX=:
19267
19268 # Archives containing C++ object files must be created using
19269 # the KAI C++ compiler.
19270 case $host in
19271 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19272 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19273 esac
19274 ;;
19275 RCC*)
19276 # Rational C++ 2.4.1
19277 # FIXME: insert proper C++ library support
19278 ld_shlibs_CXX=no
19279 ;;
19280 cxx*)
19281 case $host in
19282 osf3*)
19283 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019284 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 +000019285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19286 ;;
19287 *)
19288 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019289 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 +000019290 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19291 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019292 $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 +000019293 $RM $lib.exp'
19294 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19295 ;;
19296 esac
19297
19298 hardcode_libdir_separator_CXX=:
19299
19300 # Commands to make compiler produce verbose output that lists
19301 # what "hidden" libraries, object files and flags are used when
19302 # linking a shared library.
19303 #
19304 # There doesn't appear to be a way to prevent this compiler from
19305 # explicitly linking system object files so we need to strip them
19306 # from the output so that they don't get included in the library
19307 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019308 output_verbose_link_cmd='templist=`$CC -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 +000019309 ;;
19310 *)
19311 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19312 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19313 case $host in
19314 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019315 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 +000019316 ;;
19317 *)
cristyda16f162011-02-19 23:52:17 +000019318 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 +000019319 ;;
19320 esac
19321
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19323 hardcode_libdir_separator_CXX=:
19324
19325 # Commands to make compiler produce verbose output that lists
19326 # what "hidden" libraries, object files and flags are used when
19327 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019329
19330 else
19331 # FIXME: insert proper C++ library support
19332 ld_shlibs_CXX=no
19333 fi
19334 ;;
19335 esac
19336 ;;
19337
19338 psos*)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342
19343 sunos4*)
19344 case $cc_basename in
19345 CC*)
19346 # Sun C++ 4.x
19347 # FIXME: insert proper C++ library support
19348 ld_shlibs_CXX=no
19349 ;;
19350 lcc*)
19351 # Lucid
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355 *)
19356 # FIXME: insert proper C++ library support
19357 ld_shlibs_CXX=no
19358 ;;
19359 esac
19360 ;;
19361
19362 solaris*)
19363 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019364 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019365 # Sun C++ 4.2, 5.x and Centerline C++
19366 archive_cmds_need_lc_CXX=yes
19367 no_undefined_flag_CXX=' -zdefs'
19368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19369 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19370 $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'
19371
19372 hardcode_libdir_flag_spec_CXX='-R$libdir'
19373 hardcode_shlibpath_var_CXX=no
19374 case $host_os in
19375 solaris2.[0-5] | solaris2.[0-5].*) ;;
19376 *)
19377 # The compiler driver will combine and reorder linker options,
19378 # but understands `-z linker_flag'.
19379 # Supported since Solaris 2.6 (maybe 2.5.1?)
19380 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19381 ;;
19382 esac
19383 link_all_deplibs_CXX=yes
19384
cristy0c60a692010-11-04 01:09:47 +000019385 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019386
19387 # Archives containing C++ object files must be created using
19388 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19389 # necessary to make sure instantiated templates are included
19390 # in the archive.
19391 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19392 ;;
19393 gcx*)
19394 # Green Hills C++ Compiler
19395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19396
19397 # The C++ compiler must be used to create the archive.
19398 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19399 ;;
19400 *)
19401 # GNU C++ compiler with Solaris linker
19402 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19403 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19404 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019405 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 +000019406 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 +000019407 $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 +000019408
19409 # Commands to make compiler produce verbose output that lists
19410 # what "hidden" libraries, object files and flags are used when
19411 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019413 else
19414 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19415 # platform.
19416 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19417 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19418 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19419
19420 # Commands to make compiler produce verbose output that lists
19421 # what "hidden" libraries, object files and flags are used when
19422 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019423 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019424 fi
19425
19426 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19427 case $host_os in
19428 solaris2.[0-5] | solaris2.[0-5].*) ;;
19429 *)
19430 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19431 ;;
19432 esac
19433 fi
19434 ;;
19435 esac
19436 ;;
19437
19438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19439 no_undefined_flag_CXX='${wl}-z,text'
19440 archive_cmds_need_lc_CXX=no
19441 hardcode_shlibpath_var_CXX=no
19442 runpath_var='LD_RUN_PATH'
19443
19444 case $cc_basename in
19445 CC*)
19446 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19447 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19448 ;;
19449 *)
19450 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19451 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19452 ;;
19453 esac
19454 ;;
19455
19456 sysv5* | sco3.2v5* | sco5v6*)
19457 # Note: We can NOT use -z defs as we might desire, because we do not
19458 # link with -lc, and that would cause any symbols used from libc to
19459 # always be unresolved, which means just about no library would
19460 # ever link correctly. If we're not using GNU ld we use -z text
19461 # though, which does catch some bad symbols but isn't as heavy-handed
19462 # as -z defs.
19463 no_undefined_flag_CXX='${wl}-z,text'
19464 allow_undefined_flag_CXX='${wl}-z,nodefs'
19465 archive_cmds_need_lc_CXX=no
19466 hardcode_shlibpath_var_CXX=no
19467 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19468 hardcode_libdir_separator_CXX=':'
19469 link_all_deplibs_CXX=yes
19470 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19471 runpath_var='LD_RUN_PATH'
19472
19473 case $cc_basename in
19474 CC*)
19475 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 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 +000019477 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19478 '"$old_archive_cmds_CXX"
19479 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19480 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019481 ;;
19482 *)
19483 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19484 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 ;;
19486 esac
19487 ;;
19488
19489 tandem*)
19490 case $cc_basename in
19491 NCC*)
19492 # NonStop-UX NCC 3.20
19493 # FIXME: insert proper C++ library support
19494 ld_shlibs_CXX=no
19495 ;;
19496 *)
19497 # FIXME: insert proper C++ library support
19498 ld_shlibs_CXX=no
19499 ;;
19500 esac
19501 ;;
19502
19503 vxworks*)
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19506 ;;
19507
19508 *)
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19511 ;;
19512 esac
19513
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19515$as_echo "$ld_shlibs_CXX" >&6; }
19516 test "$ld_shlibs_CXX" = no && can_build_shared=no
19517
19518 GCC_CXX="$GXX"
19519 LD_CXX="$LD"
19520
19521 ## CAVEAT EMPTOR:
19522 ## There is no encapsulation within the following macros, do not change
19523 ## the running order or otherwise move them around unless you know exactly
19524 ## what you are doing...
19525 # Dependencies to place before and after the object being linked:
19526predep_objects_CXX=
19527postdep_objects_CXX=
19528predeps_CXX=
19529postdeps_CXX=
19530compiler_lib_search_path_CXX=
19531
19532cat > conftest.$ac_ext <<_LT_EOF
19533class Foo
19534{
19535public:
19536 Foo (void) { a = 0; }
19537private:
19538 int a;
19539};
19540_LT_EOF
19541
cristyda16f162011-02-19 23:52:17 +000019542
19543_lt_libdeps_save_CFLAGS=$CFLAGS
19544case "$CC $CFLAGS " in #(
19545*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19546*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019547*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019548esac
19549
cristy73bd4a52010-10-05 11:24:23 +000019550if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19551 (eval $ac_compile) 2>&5
19552 ac_status=$?
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; }; then
19555 # Parse the compiler output and extract the necessary
19556 # objects, libraries and library flags.
19557
19558 # Sentinel used to keep track of whether or not we are before
19559 # the conftest object file.
19560 pre_test_object_deps_done=no
19561
19562 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019563 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019564
19565 -L* | -R* | -l*)
19566 # Some compilers place space between "-{L,R}" and the path.
19567 # Remove the space.
19568 if test $p = "-L" ||
19569 test $p = "-R"; then
19570 prev=$p
19571 continue
cristy73bd4a52010-10-05 11:24:23 +000019572 fi
19573
cristyda16f162011-02-19 23:52:17 +000019574 # Expand the sysroot to ease extracting the directories later.
19575 if test -z "$prev"; then
19576 case $p in
19577 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19578 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19579 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19580 esac
19581 fi
19582 case $p in
19583 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19584 esac
cristy73bd4a52010-10-05 11:24:23 +000019585 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019586 case ${prev} in
19587 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019588 # Internal compiler library paths should come after those
19589 # provided the user. The postdeps already come after the
19590 # user supplied libs so there is no need to process them.
19591 if test -z "$compiler_lib_search_path_CXX"; then
19592 compiler_lib_search_path_CXX="${prev}${p}"
19593 else
19594 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19595 fi
19596 ;;
19597 # The "-l" case would never come before the object being
19598 # linked, so don't bother handling this case.
19599 esac
19600 else
19601 if test -z "$postdeps_CXX"; then
19602 postdeps_CXX="${prev}${p}"
19603 else
19604 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19605 fi
19606 fi
cristyda16f162011-02-19 23:52:17 +000019607 prev=
cristy73bd4a52010-10-05 11:24:23 +000019608 ;;
19609
cristyda16f162011-02-19 23:52:17 +000019610 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019611 *.$objext)
19612 # This assumes that the test object file only shows up
19613 # once in the compiler output.
19614 if test "$p" = "conftest.$objext"; then
19615 pre_test_object_deps_done=yes
19616 continue
19617 fi
19618
19619 if test "$pre_test_object_deps_done" = no; then
19620 if test -z "$predep_objects_CXX"; then
19621 predep_objects_CXX="$p"
19622 else
19623 predep_objects_CXX="$predep_objects_CXX $p"
19624 fi
19625 else
19626 if test -z "$postdep_objects_CXX"; then
19627 postdep_objects_CXX="$p"
19628 else
19629 postdep_objects_CXX="$postdep_objects_CXX $p"
19630 fi
19631 fi
19632 ;;
19633
19634 *) ;; # Ignore the rest.
19635
19636 esac
19637 done
19638
19639 # Clean up.
19640 rm -f a.out a.exe
19641else
19642 echo "libtool.m4: error: problem compiling CXX test program"
19643fi
19644
19645$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019646CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019647
19648# PORTME: override above test on systems where it is broken
19649case $host_os in
19650interix[3-9]*)
19651 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19652 # hack all around it, let's just trust "g++" to DTRT.
19653 predep_objects_CXX=
19654 postdep_objects_CXX=
19655 postdeps_CXX=
19656 ;;
19657
19658linux*)
19659 case `$CC -V 2>&1 | sed 5q` in
19660 *Sun\ C*)
19661 # Sun C++ 5.9
19662
19663 # The more standards-conforming stlport4 library is
19664 # incompatible with the Cstd library. Avoid specifying
19665 # it if it's in CXXFLAGS. Ignore libCrun as
19666 # -library=stlport4 depends on it.
19667 case " $CXX $CXXFLAGS " in
19668 *" -library=stlport4 "*)
19669 solaris_use_stlport4=yes
19670 ;;
19671 esac
19672
19673 if test "$solaris_use_stlport4" != yes; then
19674 postdeps_CXX='-library=Cstd -library=Crun'
19675 fi
19676 ;;
19677 esac
19678 ;;
19679
19680solaris*)
19681 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019682 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019683 # The more standards-conforming stlport4 library is
19684 # incompatible with the Cstd library. Avoid specifying
19685 # it if it's in CXXFLAGS. Ignore libCrun as
19686 # -library=stlport4 depends on it.
19687 case " $CXX $CXXFLAGS " in
19688 *" -library=stlport4 "*)
19689 solaris_use_stlport4=yes
19690 ;;
19691 esac
19692
19693 # Adding this requires a known-good setup of shared libraries for
19694 # Sun compiler versions before 5.6, else PIC objects from an old
19695 # archive will be linked into the output, leading to subtle bugs.
19696 if test "$solaris_use_stlport4" != yes; then
19697 postdeps_CXX='-library=Cstd -library=Crun'
19698 fi
19699 ;;
19700 esac
19701 ;;
19702esac
19703
19704
19705case " $postdeps_CXX " in
19706*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19707esac
19708 compiler_lib_search_dirs_CXX=
19709if test -n "${compiler_lib_search_path_CXX}"; then
19710 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19711fi
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743 lt_prog_compiler_wl_CXX=
19744lt_prog_compiler_pic_CXX=
19745lt_prog_compiler_static_CXX=
19746
cristy73bd4a52010-10-05 11:24:23 +000019747
19748 # C++ specific cases for pic, static, wl, etc.
19749 if test "$GXX" = yes; then
19750 lt_prog_compiler_wl_CXX='-Wl,'
19751 lt_prog_compiler_static_CXX='-static'
19752
19753 case $host_os in
19754 aix*)
19755 # All AIX code is PIC.
19756 if test "$host_cpu" = ia64; then
19757 # AIX 5 now supports IA64 processor
19758 lt_prog_compiler_static_CXX='-Bstatic'
19759 fi
19760 ;;
19761
19762 amigaos*)
19763 case $host_cpu in
19764 powerpc)
19765 # see comment about AmigaOS4 .so support
19766 lt_prog_compiler_pic_CXX='-fPIC'
19767 ;;
19768 m68k)
19769 # FIXME: we need at least 68020 code to build shared libraries, but
19770 # adding the `-m68020' flag to GCC prevents building anything better,
19771 # like `-m68040'.
19772 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19773 ;;
19774 esac
19775 ;;
19776
19777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19778 # PIC is the default for these OSes.
19779 ;;
19780 mingw* | cygwin* | os2* | pw32* | cegcc*)
19781 # This hack is so that the source file can tell whether it is being
19782 # built for inclusion in a dll (and should export symbols for example).
19783 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19784 # (--disable-auto-import) libraries
19785 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19786 ;;
19787 darwin* | rhapsody*)
19788 # PIC is the default on this platform
19789 # Common symbols not allowed in MH_DYLIB files
19790 lt_prog_compiler_pic_CXX='-fno-common'
19791 ;;
19792 *djgpp*)
19793 # DJGPP does not support shared libraries at all
19794 lt_prog_compiler_pic_CXX=
19795 ;;
cristy0c60a692010-11-04 01:09:47 +000019796 haiku*)
19797 # PIC is the default for Haiku.
19798 # The "-static" flag exists, but is broken.
19799 lt_prog_compiler_static_CXX=
19800 ;;
cristy73bd4a52010-10-05 11:24:23 +000019801 interix[3-9]*)
19802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19803 # Instead, we relocate shared libraries at runtime.
19804 ;;
19805 sysv4*MP*)
19806 if test -d /usr/nec; then
19807 lt_prog_compiler_pic_CXX=-Kconform_pic
19808 fi
19809 ;;
19810 hpux*)
19811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19813 # sets the default TLS model and affects inlining.
19814 case $host_cpu in
19815 hppa*64*)
19816 ;;
19817 *)
19818 lt_prog_compiler_pic_CXX='-fPIC'
19819 ;;
19820 esac
19821 ;;
19822 *qnx* | *nto*)
19823 # QNX uses GNU C++, but need to define -shared option too, otherwise
19824 # it will coredump.
19825 lt_prog_compiler_pic_CXX='-fPIC -shared'
19826 ;;
19827 *)
19828 lt_prog_compiler_pic_CXX='-fPIC'
19829 ;;
19830 esac
19831 else
19832 case $host_os in
19833 aix[4-9]*)
19834 # All AIX code is PIC.
19835 if test "$host_cpu" = ia64; then
19836 # AIX 5 now supports IA64 processor
19837 lt_prog_compiler_static_CXX='-Bstatic'
19838 else
19839 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19840 fi
19841 ;;
19842 chorus*)
19843 case $cc_basename in
19844 cxch68*)
19845 # Green Hills C++ Compiler
19846 # _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"
19847 ;;
19848 esac
19849 ;;
cristyda16f162011-02-19 23:52:17 +000019850 mingw* | cygwin* | os2* | pw32* | cegcc*)
19851 # This hack is so that the source file can tell whether it is being
19852 # built for inclusion in a dll (and should export symbols for example).
19853 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19854 ;;
cristy73bd4a52010-10-05 11:24:23 +000019855 dgux*)
19856 case $cc_basename in
19857 ec++*)
19858 lt_prog_compiler_pic_CXX='-KPIC'
19859 ;;
19860 ghcx*)
19861 # Green Hills C++ Compiler
19862 lt_prog_compiler_pic_CXX='-pic'
19863 ;;
19864 *)
19865 ;;
19866 esac
19867 ;;
19868 freebsd* | dragonfly*)
19869 # FreeBSD uses GNU C++
19870 ;;
19871 hpux9* | hpux10* | hpux11*)
19872 case $cc_basename in
19873 CC*)
19874 lt_prog_compiler_wl_CXX='-Wl,'
19875 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19876 if test "$host_cpu" != ia64; then
19877 lt_prog_compiler_pic_CXX='+Z'
19878 fi
19879 ;;
19880 aCC*)
19881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19883 case $host_cpu in
19884 hppa*64*|ia64*)
19885 # +Z the default
19886 ;;
19887 *)
19888 lt_prog_compiler_pic_CXX='+Z'
19889 ;;
19890 esac
19891 ;;
19892 *)
19893 ;;
19894 esac
19895 ;;
19896 interix*)
19897 # This is c89, which is MS Visual C++ (no shared libs)
19898 # Anyone wants to do a port?
19899 ;;
19900 irix5* | irix6* | nonstopux*)
19901 case $cc_basename in
19902 CC*)
19903 lt_prog_compiler_wl_CXX='-Wl,'
19904 lt_prog_compiler_static_CXX='-non_shared'
19905 # CC pic flag -KPIC is the default.
19906 ;;
19907 *)
19908 ;;
19909 esac
19910 ;;
cristy0c60a692010-11-04 01:09:47 +000019911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019912 case $cc_basename in
19913 KCC*)
19914 # KAI C++ Compiler
19915 lt_prog_compiler_wl_CXX='--backend -Wl,'
19916 lt_prog_compiler_pic_CXX='-fPIC'
19917 ;;
19918 ecpc* )
19919 # old Intel C++ for x86_64 which still supported -KPIC.
19920 lt_prog_compiler_wl_CXX='-Wl,'
19921 lt_prog_compiler_pic_CXX='-KPIC'
19922 lt_prog_compiler_static_CXX='-static'
19923 ;;
19924 icpc* )
19925 # Intel C++, used to be incompatible with GCC.
19926 # ICC 10 doesn't accept -KPIC any more.
19927 lt_prog_compiler_wl_CXX='-Wl,'
19928 lt_prog_compiler_pic_CXX='-fPIC'
19929 lt_prog_compiler_static_CXX='-static'
19930 ;;
19931 pgCC* | pgcpp*)
19932 # Portland Group C++ compiler
19933 lt_prog_compiler_wl_CXX='-Wl,'
19934 lt_prog_compiler_pic_CXX='-fpic'
19935 lt_prog_compiler_static_CXX='-Bstatic'
19936 ;;
19937 cxx*)
19938 # Compaq C++
19939 # Make sure the PIC flag is empty. It appears that all Alpha
19940 # Linux and Compaq Tru64 Unix objects are PIC.
19941 lt_prog_compiler_pic_CXX=
19942 lt_prog_compiler_static_CXX='-non_shared'
19943 ;;
cristy0c60a692010-11-04 01:09:47 +000019944 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19945 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019946 lt_prog_compiler_wl_CXX='-Wl,'
19947 lt_prog_compiler_pic_CXX='-qpic'
19948 lt_prog_compiler_static_CXX='-qstaticlink'
19949 ;;
19950 *)
19951 case `$CC -V 2>&1 | sed 5q` in
19952 *Sun\ C*)
19953 # Sun C++ 5.9
19954 lt_prog_compiler_pic_CXX='-KPIC'
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 lt_prog_compiler_wl_CXX='-Qoption ld '
19957 ;;
19958 esac
19959 ;;
19960 esac
19961 ;;
19962 lynxos*)
19963 ;;
19964 m88k*)
19965 ;;
19966 mvs*)
19967 case $cc_basename in
19968 cxx*)
19969 lt_prog_compiler_pic_CXX='-W c,exportall'
19970 ;;
19971 *)
19972 ;;
19973 esac
19974 ;;
19975 netbsd*)
19976 ;;
19977 *qnx* | *nto*)
19978 # QNX uses GNU C++, but need to define -shared option too, otherwise
19979 # it will coredump.
19980 lt_prog_compiler_pic_CXX='-fPIC -shared'
19981 ;;
19982 osf3* | osf4* | osf5*)
19983 case $cc_basename in
19984 KCC*)
19985 lt_prog_compiler_wl_CXX='--backend -Wl,'
19986 ;;
19987 RCC*)
19988 # Rational C++ 2.4.1
19989 lt_prog_compiler_pic_CXX='-pic'
19990 ;;
19991 cxx*)
19992 # Digital/Compaq C++
19993 lt_prog_compiler_wl_CXX='-Wl,'
19994 # Make sure the PIC flag is empty. It appears that all Alpha
19995 # Linux and Compaq Tru64 Unix objects are PIC.
19996 lt_prog_compiler_pic_CXX=
19997 lt_prog_compiler_static_CXX='-non_shared'
19998 ;;
19999 *)
20000 ;;
20001 esac
20002 ;;
20003 psos*)
20004 ;;
20005 solaris*)
20006 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020007 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020008 # Sun C++ 4.2, 5.x and Centerline C++
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-Bstatic'
20011 lt_prog_compiler_wl_CXX='-Qoption ld '
20012 ;;
20013 gcx*)
20014 # Green Hills C++ Compiler
20015 lt_prog_compiler_pic_CXX='-PIC'
20016 ;;
20017 *)
20018 ;;
20019 esac
20020 ;;
20021 sunos4*)
20022 case $cc_basename in
20023 CC*)
20024 # Sun C++ 4.x
20025 lt_prog_compiler_pic_CXX='-pic'
20026 lt_prog_compiler_static_CXX='-Bstatic'
20027 ;;
20028 lcc*)
20029 # Lucid
20030 lt_prog_compiler_pic_CXX='-pic'
20031 ;;
20032 *)
20033 ;;
20034 esac
20035 ;;
20036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20037 case $cc_basename in
20038 CC*)
20039 lt_prog_compiler_wl_CXX='-Wl,'
20040 lt_prog_compiler_pic_CXX='-KPIC'
20041 lt_prog_compiler_static_CXX='-Bstatic'
20042 ;;
20043 esac
20044 ;;
20045 tandem*)
20046 case $cc_basename in
20047 NCC*)
20048 # NonStop-UX NCC 3.20
20049 lt_prog_compiler_pic_CXX='-KPIC'
20050 ;;
20051 *)
20052 ;;
20053 esac
20054 ;;
20055 vxworks*)
20056 ;;
20057 *)
20058 lt_prog_compiler_can_build_shared_CXX=no
20059 ;;
20060 esac
20061 fi
20062
20063case $host_os in
20064 # For platforms which do not support PIC, -DPIC is meaningless:
20065 *djgpp*)
20066 lt_prog_compiler_pic_CXX=
20067 ;;
20068 *)
20069 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20070 ;;
20071esac
cristy73bd4a52010-10-05 11:24:23 +000020072
cristyda16f162011-02-19 23:52:17 +000020073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20074$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20075if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20076 $as_echo_n "(cached) " >&6
20077else
20078 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20079fi
20080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20081$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20082lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020083
20084#
20085# Check to make sure the PIC flag actually works.
20086#
20087if test -n "$lt_prog_compiler_pic_CXX"; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20089$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020090if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020091 $as_echo_n "(cached) " >&6
20092else
20093 lt_cv_prog_compiler_pic_works_CXX=no
20094 ac_outfile=conftest.$ac_objext
20095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20096 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20097 # Insert the option either (1) after the last *FLAGS variable, or
20098 # (2) before a word containing "conftest.", or (3) at the end.
20099 # Note that $ac_compile itself does not contain backslashes and begins
20100 # with a dollar sign (not a hyphen), so the echo should work correctly.
20101 # The option is referenced via a variable to avoid confusing sed.
20102 lt_compile=`echo "$ac_compile" | $SED \
20103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20105 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020107 (eval "$lt_compile" 2>conftest.err)
20108 ac_status=$?
20109 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020111 if (exit $ac_status) && test -s "$ac_outfile"; then
20112 # The compiler can only warn and ignore the option if not recognized
20113 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20117 lt_cv_prog_compiler_pic_works_CXX=yes
20118 fi
20119 fi
20120 $RM conftest*
20121
20122fi
20123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20124$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20125
20126if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20127 case $lt_prog_compiler_pic_CXX in
20128 "" | " "*) ;;
20129 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20130 esac
20131else
20132 lt_prog_compiler_pic_CXX=
20133 lt_prog_compiler_can_build_shared_CXX=no
20134fi
20135
20136fi
20137
20138
20139
cristyda16f162011-02-19 23:52:17 +000020140
20141
cristy73bd4a52010-10-05 11:24:23 +000020142#
20143# Check to make sure the static flag actually works.
20144#
20145wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20147$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020148if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020149 $as_echo_n "(cached) " >&6
20150else
20151 lt_cv_prog_compiler_static_works_CXX=no
20152 save_LDFLAGS="$LDFLAGS"
20153 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20154 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20156 # The linker can only warn and ignore the option if not recognized
20157 # So say no if there are warnings
20158 if test -s conftest.err; then
20159 # Append any errors to the config.log.
20160 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020161 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20163 if diff conftest.exp conftest.er2 >/dev/null; then
20164 lt_cv_prog_compiler_static_works_CXX=yes
20165 fi
20166 else
20167 lt_cv_prog_compiler_static_works_CXX=yes
20168 fi
20169 fi
20170 $RM -r conftest*
20171 LDFLAGS="$save_LDFLAGS"
20172
20173fi
20174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20175$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20176
20177if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20178 :
20179else
20180 lt_prog_compiler_static_CXX=
20181fi
20182
20183
20184
20185
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020188if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020189 $as_echo_n "(cached) " >&6
20190else
20191 lt_cv_prog_compiler_c_o_CXX=no
20192 $RM -r conftest 2>/dev/null
20193 mkdir conftest
20194 cd conftest
20195 mkdir out
20196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20197
20198 lt_compiler_flag="-o out/conftest2.$ac_objext"
20199 # Insert the option either (1) after the last *FLAGS variable, or
20200 # (2) before a word containing "conftest.", or (3) at the end.
20201 # Note that $ac_compile itself does not contain backslashes and begins
20202 # with a dollar sign (not a hyphen), so the echo should work correctly.
20203 lt_compile=`echo "$ac_compile" | $SED \
20204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20206 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020208 (eval "$lt_compile" 2>out/conftest.err)
20209 ac_status=$?
20210 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20213 then
20214 # The compiler can only warn and ignore the option if not recognized
20215 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20219 lt_cv_prog_compiler_c_o_CXX=yes
20220 fi
20221 fi
20222 chmod u+w . 2>&5
20223 $RM conftest*
20224 # SGI C++ compiler will create directory out/ii_files/ for
20225 # template instantiation
20226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20227 $RM out/* && rmdir out
20228 cd ..
20229 $RM -r conftest
20230 $RM conftest*
20231
20232fi
20233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20234$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20235
20236
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20239$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020240if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020241 $as_echo_n "(cached) " >&6
20242else
20243 lt_cv_prog_compiler_c_o_CXX=no
20244 $RM -r conftest 2>/dev/null
20245 mkdir conftest
20246 cd conftest
20247 mkdir out
20248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20249
20250 lt_compiler_flag="-o out/conftest2.$ac_objext"
20251 # Insert the option either (1) after the last *FLAGS variable, or
20252 # (2) before a word containing "conftest.", or (3) at the end.
20253 # Note that $ac_compile itself does not contain backslashes and begins
20254 # with a dollar sign (not a hyphen), so the echo should work correctly.
20255 lt_compile=`echo "$ac_compile" | $SED \
20256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20258 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020260 (eval "$lt_compile" 2>out/conftest.err)
20261 ac_status=$?
20262 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20265 then
20266 # The compiler can only warn and ignore the option if not recognized
20267 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20271 lt_cv_prog_compiler_c_o_CXX=yes
20272 fi
20273 fi
20274 chmod u+w . 2>&5
20275 $RM conftest*
20276 # SGI C++ compiler will create directory out/ii_files/ for
20277 # template instantiation
20278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20279 $RM out/* && rmdir out
20280 cd ..
20281 $RM -r conftest
20282 $RM conftest*
20283
20284fi
20285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20286$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20287
20288
20289
20290
20291hard_links="nottested"
20292if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20293 # do not overwrite the value of need_locks provided by the user
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20295$as_echo_n "checking if we can lock with hard links... " >&6; }
20296 hard_links=yes
20297 $RM conftest*
20298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20299 touch conftest.a
20300 ln conftest.a conftest.b 2>&5 || hard_links=no
20301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20303$as_echo "$hard_links" >&6; }
20304 if test "$hard_links" = no; then
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20306$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20307 need_locks=warn
20308 fi
20309else
20310 need_locks=no
20311fi
20312
20313
20314
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20316$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20317
20318 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020319 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020320 case $host_os in
20321 aix[4-9]*)
20322 # If we're using GNU nm, then we don't want the "-C" option.
20323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020324 # Also, AIX nm treats weak defined symbols like other global defined
20325 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020327 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 +000020328 else
20329 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'
20330 fi
20331 ;;
20332 pw32*)
20333 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020334 ;;
cristy73bd4a52010-10-05 11:24:23 +000020335 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020336 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020337 cl*)
20338 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20339 ;;
cristyda16f162011-02-19 23:52:17 +000020340 *)
20341 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'
20342 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20343 ;;
20344 esac
20345 ;;
cristy73bd4a52010-10-05 11:24:23 +000020346 *)
20347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020348 ;;
cristy73bd4a52010-10-05 11:24:23 +000020349 esac
cristy73bd4a52010-10-05 11:24:23 +000020350
20351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20352$as_echo "$ld_shlibs_CXX" >&6; }
20353test "$ld_shlibs_CXX" = no && can_build_shared=no
20354
20355with_gnu_ld_CXX=$with_gnu_ld
20356
20357
20358
20359
20360
20361
20362#
20363# Do we need to explicitly link libc?
20364#
20365case "x$archive_cmds_need_lc_CXX" in
20366x|xyes)
20367 # Assume -lc should be added
20368 archive_cmds_need_lc_CXX=yes
20369
20370 if test "$enable_shared" = yes && test "$GCC" = yes; then
20371 case $archive_cmds_CXX in
20372 *'~'*)
20373 # FIXME: we may have to deal with multi-command sequences.
20374 ;;
20375 '$CC '*)
20376 # Test whether the compiler implicitly links with -lc since on some
20377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20378 # to ld, don't add -lc before -lgcc.
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20380$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020381if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020382 $as_echo_n "(cached) " >&6
20383else
20384 $RM conftest*
20385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020386
cristy0c60a692010-11-04 01:09:47 +000020387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020388 (eval $ac_compile) 2>&5
20389 ac_status=$?
20390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20391 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020392 soname=conftest
20393 lib=conftest
20394 libobjs=conftest.$ac_objext
20395 deplibs=
20396 wl=$lt_prog_compiler_wl_CXX
20397 pic_flag=$lt_prog_compiler_pic_CXX
20398 compiler_flags=-v
20399 linker_flags=-v
20400 verstring=
20401 output_objdir=.
20402 libname=conftest
20403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20404 allow_undefined_flag_CXX=
20405 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 +000020406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20407 ac_status=$?
20408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20409 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020410 then
20411 lt_cv_archive_cmds_need_lc_CXX=no
20412 else
20413 lt_cv_archive_cmds_need_lc_CXX=yes
20414 fi
20415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20416 else
20417 cat conftest.err 1>&5
20418 fi
20419 $RM conftest*
20420
20421fi
20422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20423$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20424 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020425 ;;
20426 esac
20427 fi
20428 ;;
20429esac
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
cristy73bd4a52010-10-05 11:24:23 +000020492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20493$as_echo_n "checking dynamic linker characteristics... " >&6; }
20494
20495library_names_spec=
20496libname_spec='lib$name'
20497soname_spec=
20498shrext_cmds=".so"
20499postinstall_cmds=
20500postuninstall_cmds=
20501finish_cmds=
20502finish_eval=
20503shlibpath_var=
20504shlibpath_overrides_runpath=unknown
20505version_type=none
20506dynamic_linker="$host_os ld.so"
20507sys_lib_dlsearch_path_spec="/lib /usr/lib"
20508need_lib_prefix=unknown
20509hardcode_into_libs=no
20510
20511# when you set need_version to no, make sure it does not cause -set_version
20512# flags to be left without arguments
20513need_version=unknown
20514
20515case $host_os in
20516aix3*)
cristy99bd5232011-12-07 14:38:20 +000020517 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20519 shlibpath_var=LIBPATH
20520
20521 # AIX 3 has no versioning support, so we append a major version to the name.
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 ;;
20524
20525aix[4-9]*)
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_lib_prefix=no
20528 need_version=no
20529 hardcode_into_libs=yes
20530 if test "$host_cpu" = ia64; then
20531 # AIX 5 supports IA64
20532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20533 shlibpath_var=LD_LIBRARY_PATH
20534 else
20535 # With GCC up to 2.95.x, collect2 would create an import file
20536 # for dependence libraries. The import file would start with
20537 # the line `#! .'. This would cause the generated library to
20538 # depend on `.', always an invalid library. This was fixed in
20539 # development snapshots of GCC prior to 3.0.
20540 case $host_os in
20541 aix4 | aix4.[01] | aix4.[01].*)
20542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20543 echo ' yes '
20544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20545 :
20546 else
20547 can_build_shared=no
20548 fi
20549 ;;
20550 esac
20551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20552 # soname into executable. Probably we can add versioning support to
20553 # collect2, so additional links can be useful in future.
20554 if test "$aix_use_runtimelinking" = yes; then
20555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20556 # instead of lib<name>.a to let people know that these are not
20557 # typical AIX shared libraries.
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 else
20560 # We preserve .a as extension for shared libraries through AIX4.2
20561 # and later when we are not doing run time linking.
20562 library_names_spec='${libname}${release}.a $libname.a'
20563 soname_spec='${libname}${release}${shared_ext}$major'
20564 fi
20565 shlibpath_var=LIBPATH
20566 fi
20567 ;;
20568
20569amigaos*)
20570 case $host_cpu in
20571 powerpc)
20572 # Since July 2007 AmigaOS4 officially supports .so libraries.
20573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20575 ;;
20576 m68k)
20577 library_names_spec='$libname.ixlibrary $libname.a'
20578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020579 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 +000020580 ;;
20581 esac
20582 ;;
20583
20584beos*)
20585 library_names_spec='${libname}${shared_ext}'
20586 dynamic_linker="$host_os ld.so"
20587 shlibpath_var=LIBRARY_PATH
20588 ;;
20589
20590bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020591 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020592 need_version=no
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20599 # the default ld.so.conf also contains /usr/contrib/lib and
20600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20601 # libtool to hard-code these into programs
20602 ;;
20603
20604cygwin* | mingw* | pw32* | cegcc*)
20605 version_type=windows
20606 shrext_cmds=".dll"
20607 need_version=no
20608 need_lib_prefix=no
20609
cristyda16f162011-02-19 23:52:17 +000020610 case $GCC,$cc_basename in
20611 yes,*)
20612 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020613 library_names_spec='$libname.dll.a'
20614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20615 postinstall_cmds='base_file=`basename \${file}`~
20616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20617 dldir=$destdir/`dirname \$dlpath`~
20618 test -d \$dldir || mkdir -p \$dldir~
20619 $install_prog $dir/$dlname \$dldir/$dlname~
20620 chmod a+x \$dldir/$dlname~
20621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20623 fi'
20624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20625 dlpath=$dir/\$dldll~
20626 $RM \$dlpath'
20627 shlibpath_overrides_runpath=yes
20628
20629 case $host_os in
20630 cygwin*)
20631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020633
cristy73bd4a52010-10-05 11:24:23 +000020634 ;;
20635 mingw* | cegcc*)
20636 # MinGW DLLs use traditional 'lib' prefix
20637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020638 ;;
20639 pw32*)
20640 # pw32 DLLs use 'pw' prefix rather than 'lib'
20641 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20642 ;;
20643 esac
cristyda16f162011-02-19 23:52:17 +000020644 dynamic_linker='Win32 ld.exe'
20645 ;;
20646
20647 *,cl*)
20648 # Native MSVC
20649 libname_spec='$name'
20650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20651 library_names_spec='${libname}.dll.lib'
20652
20653 case $build_os in
20654 mingw*)
20655 sys_lib_search_path_spec=
20656 lt_save_ifs=$IFS
20657 IFS=';'
20658 for lt_path in $LIB
20659 do
20660 IFS=$lt_save_ifs
20661 # Let DOS variable expansion print the short 8.3 style file name.
20662 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20663 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20664 done
20665 IFS=$lt_save_ifs
20666 # Convert to MSYS style.
20667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20668 ;;
20669 cygwin*)
20670 # Convert to unix form, then to dos form, then back to unix form
20671 # but this time dos style (no spaces!) so that the unix form looks
20672 # like /cygdrive/c/PROGRA~1:/cygdr...
20673 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20674 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20675 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20676 ;;
20677 *)
20678 sys_lib_search_path_spec="$LIB"
20679 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20680 # It is most probably a Windows format PATH.
20681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20682 else
20683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20684 fi
20685 # FIXME: find the short name or the path components, as spaces are
20686 # common. (e.g. "Program Files" -> "PROGRA~1")
20687 ;;
20688 esac
20689
20690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20691 postinstall_cmds='base_file=`basename \${file}`~
20692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20693 dldir=$destdir/`dirname \$dlpath`~
20694 test -d \$dldir || mkdir -p \$dldir~
20695 $install_prog $dir/$dlname \$dldir/$dlname'
20696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20697 dlpath=$dir/\$dldll~
20698 $RM \$dlpath'
20699 shlibpath_overrides_runpath=yes
20700 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020701 ;;
20702
20703 *)
cristyda16f162011-02-19 23:52:17 +000020704 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020705 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020706 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020707 ;;
20708 esac
cristy73bd4a52010-10-05 11:24:23 +000020709 # FIXME: first we should search . and the directory the executable is in
20710 shlibpath_var=PATH
20711 ;;
20712
20713darwin* | rhapsody*)
20714 dynamic_linker="$host_os dyld"
20715 version_type=darwin
20716 need_lib_prefix=no
20717 need_version=no
20718 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20719 soname_spec='${libname}${release}${major}$shared_ext'
20720 shlibpath_overrides_runpath=yes
20721 shlibpath_var=DYLD_LIBRARY_PATH
20722 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20723
20724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20725 ;;
20726
20727dgux*)
cristy99bd5232011-12-07 14:38:20 +000020728 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020729 need_lib_prefix=no
20730 need_version=no
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=LD_LIBRARY_PATH
20734 ;;
20735
cristy73bd4a52010-10-05 11:24:23 +000020736freebsd* | dragonfly*)
20737 # DragonFly does not have aout. When/if they implement a new
20738 # versioning mechanism, adjust this.
20739 if test -x /usr/bin/objformat; then
20740 objformat=`/usr/bin/objformat`
20741 else
20742 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020743 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020744 *) objformat=elf ;;
20745 esac
20746 fi
20747 version_type=freebsd-$objformat
20748 case $version_type in
20749 freebsd-elf*)
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20751 need_version=no
20752 need_lib_prefix=no
20753 ;;
20754 freebsd-*)
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20756 need_version=yes
20757 ;;
20758 esac
20759 shlibpath_var=LD_LIBRARY_PATH
20760 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020761 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020762 shlibpath_overrides_runpath=yes
20763 ;;
20764 freebsd3.[01]* | freebsdelf3.[01]*)
20765 shlibpath_overrides_runpath=yes
20766 hardcode_into_libs=yes
20767 ;;
20768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20770 shlibpath_overrides_runpath=no
20771 hardcode_into_libs=yes
20772 ;;
20773 *) # from 4.6 on, and DragonFly
20774 shlibpath_overrides_runpath=yes
20775 hardcode_into_libs=yes
20776 ;;
20777 esac
20778 ;;
20779
20780gnu*)
cristy99bd5232011-12-07 14:38:20 +000020781 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020782 need_lib_prefix=no
20783 need_version=no
20784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020787 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020788 hardcode_into_libs=yes
20789 ;;
20790
cristy0c60a692010-11-04 01:09:47 +000020791haiku*)
cristy99bd5232011-12-07 14:38:20 +000020792 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020793 need_lib_prefix=no
20794 need_version=no
20795 dynamic_linker="$host_os runtime_loader"
20796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20797 soname_spec='${libname}${release}${shared_ext}$major'
20798 shlibpath_var=LIBRARY_PATH
20799 shlibpath_overrides_runpath=yes
20800 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20801 hardcode_into_libs=yes
20802 ;;
20803
cristy73bd4a52010-10-05 11:24:23 +000020804hpux9* | hpux10* | hpux11*)
20805 # Give a soname corresponding to the major version so that dld.sl refuses to
20806 # link against other versions.
20807 version_type=sunos
20808 need_lib_prefix=no
20809 need_version=no
20810 case $host_cpu in
20811 ia64*)
20812 shrext_cmds='.so'
20813 hardcode_into_libs=yes
20814 dynamic_linker="$host_os dld.so"
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20818 soname_spec='${libname}${release}${shared_ext}$major'
20819 if test "X$HPUX_IA64_MODE" = X32; then
20820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20821 else
20822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20823 fi
20824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20825 ;;
20826 hppa*64*)
20827 shrext_cmds='.sl'
20828 hardcode_into_libs=yes
20829 dynamic_linker="$host_os dld.sl"
20830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20836 ;;
20837 *)
20838 shrext_cmds='.sl'
20839 dynamic_linker="$host_os dld.sl"
20840 shlibpath_var=SHLIB_PATH
20841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20843 soname_spec='${libname}${release}${shared_ext}$major'
20844 ;;
20845 esac
cristy0c60a692010-11-04 01:09:47 +000020846 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020847 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020848 # or fails outright, so override atomically:
20849 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020850 ;;
20851
20852interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020853 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020854 need_lib_prefix=no
20855 need_version=no
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20857 soname_spec='${libname}${release}${shared_ext}$major'
20858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 shlibpath_overrides_runpath=no
20861 hardcode_into_libs=yes
20862 ;;
20863
20864irix5* | irix6* | nonstopux*)
20865 case $host_os in
20866 nonstopux*) version_type=nonstopux ;;
20867 *)
20868 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020869 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020870 else
20871 version_type=irix
20872 fi ;;
20873 esac
20874 need_lib_prefix=no
20875 need_version=no
20876 soname_spec='${libname}${release}${shared_ext}$major'
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20878 case $host_os in
20879 irix5* | nonstopux*)
20880 libsuff= shlibsuff=
20881 ;;
20882 *)
20883 case $LD in # libtool.m4 will add one of these switches to LD
20884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20885 libsuff= shlibsuff= libmagic=32-bit;;
20886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20887 libsuff=32 shlibsuff=N32 libmagic=N32;;
20888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20890 *) libsuff= shlibsuff= libmagic=never-match;;
20891 esac
20892 ;;
20893 esac
20894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20895 shlibpath_overrides_runpath=no
20896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20898 hardcode_into_libs=yes
20899 ;;
20900
20901# No shared lib support for Linux oldld, aout, or coff.
20902linux*oldld* | linux*aout* | linux*coff*)
20903 dynamic_linker=no
20904 ;;
20905
cristy99bd5232011-12-07 14:38:20 +000020906# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020907linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020908 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020909 need_lib_prefix=no
20910 need_version=no
20911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20912 soname_spec='${libname}${release}${shared_ext}$major'
20913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20914 shlibpath_var=LD_LIBRARY_PATH
20915 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020916
cristy73bd4a52010-10-05 11:24:23 +000020917 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020918 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020919 $as_echo_n "(cached) " >&6
20920else
20921 lt_cv_shlibpath_overrides_runpath=no
20922 save_LDFLAGS=$LDFLAGS
20923 save_libdir=$libdir
20924 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20925 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020927/* end confdefs.h. */
20928
20929int
20930main ()
20931{
20932
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937if ac_fn_cxx_try_link "$LINENO"; then :
20938 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020939 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020940fi
20941fi
20942rm -f core conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020944 LDFLAGS=$save_LDFLAGS
20945 libdir=$save_libdir
20946
20947fi
20948
20949 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020950
20951 # This implies no fast_install, which is unacceptable.
20952 # Some rework will be needed to allow for fast_install
20953 # before this can be enabled.
20954 hardcode_into_libs=yes
20955
20956 # Add ABI-specific directories to the system library path.
20957 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20958
20959 # Append ld.so.conf contents to the search path
20960 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020961 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 +000020962 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020963
cristy73bd4a52010-10-05 11:24:23 +000020964 fi
20965
20966 # We used to test for /lib/ld.so.1 and disable shared libraries on
20967 # powerpc, because MkLinux only supported shared libraries with the
20968 # GNU dynamic linker. Since this was broken with cross compilers,
20969 # most powerpc-linux boxes support dynamic linking these days and
20970 # people can always --disable-shared, the test was removed, and we
20971 # assume the GNU/Linux dynamic linker is in use.
20972 dynamic_linker='GNU/Linux ld.so'
20973 ;;
20974
20975netbsd*)
20976 version_type=sunos
20977 need_lib_prefix=no
20978 need_version=no
20979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20982 dynamic_linker='NetBSD (a.out) ld.so'
20983 else
20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 dynamic_linker='NetBSD ld.elf_so'
20987 fi
20988 shlibpath_var=LD_LIBRARY_PATH
20989 shlibpath_overrides_runpath=yes
20990 hardcode_into_libs=yes
20991 ;;
20992
20993newsos6)
cristy99bd5232011-12-07 14:38:20 +000020994 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20996 shlibpath_var=LD_LIBRARY_PATH
20997 shlibpath_overrides_runpath=yes
20998 ;;
20999
21000*nto* | *qnx*)
21001 version_type=qnx
21002 need_lib_prefix=no
21003 need_version=no
21004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 soname_spec='${libname}${release}${shared_ext}$major'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 shlibpath_overrides_runpath=no
21008 hardcode_into_libs=yes
21009 dynamic_linker='ldqnx.so'
21010 ;;
21011
21012openbsd*)
21013 version_type=sunos
21014 sys_lib_dlsearch_path_spec="/usr/lib"
21015 need_lib_prefix=no
21016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21017 case $host_os in
21018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21019 *) need_version=no ;;
21020 esac
21021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21023 shlibpath_var=LD_LIBRARY_PATH
21024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21025 case $host_os in
21026 openbsd2.[89] | openbsd2.[89].*)
21027 shlibpath_overrides_runpath=no
21028 ;;
21029 *)
21030 shlibpath_overrides_runpath=yes
21031 ;;
21032 esac
21033 else
21034 shlibpath_overrides_runpath=yes
21035 fi
21036 ;;
21037
21038os2*)
21039 libname_spec='$name'
21040 shrext_cmds=".dll"
21041 need_lib_prefix=no
21042 library_names_spec='$libname${shared_ext} $libname.a'
21043 dynamic_linker='OS/2 ld.exe'
21044 shlibpath_var=LIBPATH
21045 ;;
21046
21047osf3* | osf4* | osf5*)
21048 version_type=osf
21049 need_lib_prefix=no
21050 need_version=no
21051 soname_spec='${libname}${release}${shared_ext}$major'
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 shlibpath_var=LD_LIBRARY_PATH
21054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21056 ;;
21057
21058rdos*)
21059 dynamic_linker=no
21060 ;;
21061
21062solaris*)
cristy99bd5232011-12-07 14:38:20 +000021063 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021064 need_lib_prefix=no
21065 need_version=no
21066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21067 soname_spec='${libname}${release}${shared_ext}$major'
21068 shlibpath_var=LD_LIBRARY_PATH
21069 shlibpath_overrides_runpath=yes
21070 hardcode_into_libs=yes
21071 # ldd complains unless libraries are executable
21072 postinstall_cmds='chmod +x $lib'
21073 ;;
21074
21075sunos4*)
21076 version_type=sunos
21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 shlibpath_overrides_runpath=yes
21081 if test "$with_gnu_ld" = yes; then
21082 need_lib_prefix=no
21083 fi
21084 need_version=yes
21085 ;;
21086
21087sysv4 | sysv4.3*)
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 case $host_vendor in
21093 sni)
21094 shlibpath_overrides_runpath=no
21095 need_lib_prefix=no
21096 runpath_var=LD_RUN_PATH
21097 ;;
21098 siemens)
21099 need_lib_prefix=no
21100 ;;
21101 motorola)
21102 need_lib_prefix=no
21103 need_version=no
21104 shlibpath_overrides_runpath=no
21105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21106 ;;
21107 esac
21108 ;;
21109
21110sysv4*MP*)
21111 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021112 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021113 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21114 soname_spec='$libname${shared_ext}.$major'
21115 shlibpath_var=LD_LIBRARY_PATH
21116 fi
21117 ;;
21118
21119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21120 version_type=freebsd-elf
21121 need_lib_prefix=no
21122 need_version=no
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21124 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 shlibpath_overrides_runpath=yes
21127 hardcode_into_libs=yes
21128 if test "$with_gnu_ld" = yes; then
21129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21130 else
21131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21132 case $host_os in
21133 sco3.2v5*)
21134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21135 ;;
21136 esac
21137 fi
21138 sys_lib_dlsearch_path_spec='/usr/lib'
21139 ;;
21140
21141tpf*)
21142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021143 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021144 need_lib_prefix=no
21145 need_version=no
21146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21147 shlibpath_var=LD_LIBRARY_PATH
21148 shlibpath_overrides_runpath=no
21149 hardcode_into_libs=yes
21150 ;;
21151
21152uts4*)
cristy99bd5232011-12-07 14:38:20 +000021153 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21155 soname_spec='${libname}${release}${shared_ext}$major'
21156 shlibpath_var=LD_LIBRARY_PATH
21157 ;;
21158
21159*)
21160 dynamic_linker=no
21161 ;;
21162esac
21163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21164$as_echo "$dynamic_linker" >&6; }
21165test "$dynamic_linker" = no && can_build_shared=no
21166
21167variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21168if test "$GCC" = yes; then
21169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21170fi
21171
21172if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21173 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21174fi
21175if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21177fi
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
cristy0c60a692010-11-04 01:09:47 +000021214
21215
cristy73bd4a52010-10-05 11:24:23 +000021216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21217$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21218hardcode_action_CXX=
21219if test -n "$hardcode_libdir_flag_spec_CXX" ||
21220 test -n "$runpath_var_CXX" ||
21221 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21222
21223 # We can hardcode non-existent directories.
21224 if test "$hardcode_direct_CXX" != no &&
21225 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21226 # have to relink, otherwise we might link with an installed library
21227 # when we should be linking with a yet-to-be-installed one
21228 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21229 test "$hardcode_minus_L_CXX" != no; then
21230 # Linking always hardcodes the temporary library directory.
21231 hardcode_action_CXX=relink
21232 else
21233 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21234 hardcode_action_CXX=immediate
21235 fi
21236else
21237 # We cannot hardcode anything, or else we can only hardcode existing
21238 # directories.
21239 hardcode_action_CXX=unsupported
21240fi
21241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21242$as_echo "$hardcode_action_CXX" >&6; }
21243
21244if test "$hardcode_action_CXX" = relink ||
21245 test "$inherit_rpath_CXX" = yes; then
21246 # Fast installation is not supported
21247 enable_fast_install=no
21248elif test "$shlibpath_overrides_runpath" = yes ||
21249 test "$enable_shared" = no; then
21250 # Fast installation is not necessary
21251 enable_fast_install=needless
21252fi
21253
21254
21255
21256
21257
21258
21259
21260 fi # test -n "$compiler"
21261
21262 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021263 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021264 LDCXX=$LD
21265 LD=$lt_save_LD
21266 GCC=$lt_save_GCC
21267 with_gnu_ld=$lt_save_with_gnu_ld
21268 lt_cv_path_LDCXX=$lt_cv_path_LD
21269 lt_cv_path_LD=$lt_save_path_LD
21270 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21271 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21272fi # test "$_lt_caught_CXX_error" != yes
21273
21274ac_ext=c
21275ac_cpp='$CPP $CPPFLAGS'
21276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278ac_compiler_gnu=$ac_cv_c_compiler_gnu
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
cristy99bd5232011-12-07 14:38:20 +000021292
21293
cristy73bd4a52010-10-05 11:24:23 +000021294 ac_config_commands="$ac_config_commands libtool"
21295
21296
21297
21298
21299# Only expand once:
21300
21301
21302
cristy3ed852e2009-09-05 21:47:34 +000021303
21304
cristy3ed852e2009-09-05 21:47:34 +000021305# Check to see if building shared libraries
21306libtool_build_shared_libs='no'
21307if test "$enable_shared" = 'yes'; then
21308 libtool_build_shared_libs='yes'
21309fi
21310
21311# Check to see if building static libraries
21312libtool_build_static_libs='no'
21313if test "$enable_static" = 'yes'; then
21314 libtool_build_static_libs='yes'
21315fi
21316
cristy73bd4a52010-10-05 11:24:23 +000021317 if test "${libtool_build_shared_libs}" = 'yes'; then
21318 WITH_SHARED_LIBS_TRUE=
21319 WITH_SHARED_LIBS_FALSE='#'
21320else
21321 WITH_SHARED_LIBS_TRUE='#'
21322 WITH_SHARED_LIBS_FALSE=
21323fi
21324
cristy3ed852e2009-09-05 21:47:34 +000021325#
21326# Enable support for building loadable modules
21327#
cristyaf4cbf32012-10-16 23:47:41 +000021328build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021329
21330# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021331if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021332 withval=$with_modules; with_modules=$withval
21333else
cristy5a1cefd2010-01-06 20:42:35 +000021334 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021335fi
21336
21337
21338# Only allow building loadable modules if we are building shared libraries
21339if test "$with_modules" != 'no' ; then
21340 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021341 { $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 +000021342$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021343 build_modules='no'
21344 else
21345 build_modules='yes'
21346 fi
cristy3ed852e2009-09-05 21:47:34 +000021347fi
cristyc6722092012-10-14 00:19:31 +000021348if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021349
cristy8b350f62009-11-15 23:12:43 +000021350$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021351
cristyfa161182012-12-19 15:45:28 +000021352 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021353fi
cristyc6722092012-10-14 00:19:31 +000021354 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021355 WITH_MODULES_TRUE=
21356 WITH_MODULES_FALSE='#'
21357else
21358 WITH_MODULES_TRUE='#'
21359 WITH_MODULES_FALSE=
21360fi
21361
cristy3ed852e2009-09-05 21:47:34 +000021362
cristy3ed852e2009-09-05 21:47:34 +000021363# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021364# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021365# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021366if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021367 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21368else
21369 enable_delegate_build='no'
21370fi
21371
21372
21373# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021374if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021375 enableval=$enable_deprecated; enable_deprecated=$enableval
21376else
21377 enable_deprecated='no'
21378fi
21379
21380
21381if test "$enable_deprecated" = 'yes'; then
21382
cristy8b350f62009-11-15 23:12:43 +000021383$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021384
21385else
21386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21387fi
21388
21389# Build a version of ImageMagick which operates uninstalled.
21390# Used to build distributions located via MAGICK_HOME / executable path
21391# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021392if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 enableval=$enable_installed; enable_installed=$enableval
21394else
21395 enable_installed='yes'
21396fi
21397
21398
21399if test "$enable_installed" = 'yes'; then
21400
cristy8b350f62009-11-15 23:12:43 +000021401$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021402
21403else
21404 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21405fi
21406
21407# Permit enciphering and deciphering image pixels.
21408# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021409if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 enableval=$enable_cipher; enable_cipher=$enableval
21411else
21412 enable_cipher='yes'
21413fi
21414
21415
21416if test "$enable_cipher" = 'yes'; then
21417
cristy8b350f62009-11-15 23:12:43 +000021418$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021419
21420fi
21421
cristy6e3607c2011-09-13 13:59:17 +000021422# Build a zero-configuration version of ImageMagick.
21423# Check whether --enable-zero-configuration was given.
21424if test "${enable_zero_configuration+set}" = set; then :
21425 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021426else
cristy6e3607c2011-09-13 13:59:17 +000021427 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021428fi
21429
21430
cristy6e3607c2011-09-13 13:59:17 +000021431if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021432
cristy6e3607c2011-09-13 13:59:17 +000021433$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021434
cristy81af5702011-09-13 14:20:58 +000021435 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021436fi
21437
21438# Build a high dynamic range version of ImageMagick.
21439# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021440if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021441 enableval=$enable_hdri; enable_hdri=$enableval
21442else
cristy191c0b72012-08-12 16:29:52 +000021443 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021444fi
21445
21446
21447MAGICK_HDRI=""
21448if test "$enable_hdri" = 'yes'; then
21449 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021450 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021451 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021452else
21453 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021454fi
21455
cristye52f12f2012-12-31 15:32:36 +000021456cat >>confdefs.h <<_ACEOF
21457#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21458_ACEOF
21459
21460MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21461CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021462CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021463
cristy3ed852e2009-09-05 21:47:34 +000021464# Build a version of ImageMagick with assert statements.
21465# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021466if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021467 enableval=$enable_assert; enable_assert=$enableval
21468else
21469 enable_assert='yes'
21470fi
21471
21472
21473if test "$enable_assert" = 'no'; then
21474
cristy8b350f62009-11-15 23:12:43 +000021475$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021476
21477fi
21478
cristya448bd22011-10-14 12:38:13 +000021479# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021480
21481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21482$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21483 # Check whether --enable-maintainer-mode was given.
21484if test "${enable_maintainer_mode+set}" = set; then :
21485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21486else
21487 USE_MAINTAINER_MODE=no
21488fi
21489
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21491$as_echo "$USE_MAINTAINER_MODE" >&6; }
21492 if test $USE_MAINTAINER_MODE = yes; then
21493 MAINTAINER_MODE_TRUE=
21494 MAINTAINER_MODE_FALSE='#'
21495else
21496 MAINTAINER_MODE_TRUE='#'
21497 MAINTAINER_MODE_FALSE=
21498fi
21499
21500 MAINT=$MAINTAINER_MODE_TRUE
21501
21502
cristy3ed852e2009-09-05 21:47:34 +000021503
cristy944e51f2013-04-16 18:45:02 +000021504# Enable hugepages support
21505# Check whether --enable-hugepages was given.
21506if test "${enable_hugepages+set}" = set; then :
21507 enableval=$enable_hugepages; enable_hugepages=$enableval
21508else
21509 enable_hugepages='no'
21510fi
21511
21512
cristy3ed852e2009-09-05 21:47:34 +000021513# Enable ccmalloc memory debugging support
21514# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021515if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21517else
21518 enable_ccmalloc='no'
21519fi
21520
21521
21522# Enable Electric Fence memory debugging support
21523# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021524if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021525 enableval=$enable_efence; enable_efence=$enableval
21526else
21527 enable_efence='no'
21528fi
21529
21530
21531# Enable prof-based profiling support
21532# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021533if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 enableval=$enable_prof; enable_prof=$enableval
21535else
21536 enable_prof='no'
21537fi
21538
21539
21540# Enable gprof-based profiling support
21541# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021542if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 enableval=$enable_gprof; enable_gprof=$enableval
21544else
21545 enable_gprof='no'
21546fi
21547
21548
21549# Enable gcov-based profiling support
21550# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021551if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021552 enableval=$enable_gcov; enable_gcov=$enableval
21553else
21554 enable_gcov='no'
21555fi
21556
21557
21558enable_profiling='no'
21559if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21560 enable_profiling='yes'
21561 if test "$libtool_build_shared_libs" = 'yes'; then
21562 echo "Warning: Can not profile code using shared libraries"
21563 fi
21564fi
21565
21566# Magick API method prefix
21567
21568# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021569if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021570 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021571else
cristyfc3d0222012-02-07 15:05:57 +000021572 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021573fi
21574
21575
cristyfc3d0222012-02-07 15:05:57 +000021576if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021577
21578cat >>confdefs.h <<_ACEOF
21579#define NAMESPACE_PREFIX $with_method_prefix
21580_ACEOF
21581
cristyfc3d0222012-02-07 15:05:57 +000021582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021583fi
21584
cristy71d8c202012-03-20 17:05:01 +000021585# Enable legacy support (default no)
21586# Check whether --enable-legacy-support was given.
21587if test "${enable_legacy_support+set}" = set; then :
21588 enableval=$enable_legacy_support; with_legacy_support=$enableval
21589else
21590 with_legacy_support='no'
21591fi
21592
21593 if test "$with_legacy_support" != 'no'; then
21594 LEGACY_SUPPORT_TRUE=
21595 LEGACY_SUPPORT_FALSE='#'
21596else
21597 LEGACY_SUPPORT_TRUE='#'
21598 LEGACY_SUPPORT_FALSE=
21599fi
21600
21601
cristy3ed852e2009-09-05 21:47:34 +000021602# Number of bits in a Quantum
21603
21604# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021605if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 withval=$with_quantum_depth; with_quantum_depth=$withval
21607else
21608 with_quantum_depth=16
21609fi
21610
21611
21612if test "$with_quantum_depth" != '8'; then
21613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21614fi
21615
21616case "${with_quantum_depth}" in
21617 8 ) ;;
21618 16 ) ;;
21619 32 ) ;;
21620 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021621 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021622esac
21623QUANTUM_DEPTH="$with_quantum_depth"
21624
21625cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021626#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021627_ACEOF
21628
cristya371edf2013-02-06 13:42:17 +000021629MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021630CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021631CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021632
cristy01ff9f32012-12-01 18:15:29 +000021633# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021634MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021635if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021636 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021637fi
cristy01ff9f32012-12-01 18:15:29 +000021638
21639
cristy3ed852e2009-09-05 21:47:34 +000021640# Set pixel cache threshold
21641
21642# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021643if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 withval=$with_cache; with_cache=$withval
21645else
21646 with_cache=''
21647fi
21648
21649
21650if test "$with_cache" != ''; then
21651
21652cat >>confdefs.h <<_ACEOF
21653#define PixelCacheThreshold $with_cache
21654_ACEOF
21655
21656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21657fi
21658
21659# Disable/Enable support for full delegate paths
21660
21661# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021662if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 withval=$with_frozenpaths; with_frozenpaths=$withval
21664else
21665 with_frozenpaths='no'
21666fi
21667
21668
21669# Enable build/install of Magick++
21670
21671# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021672if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21674else
21675 with_magick_plus_plus='yes'
21676fi
21677
21678
cristy3a75f062012-09-08 23:29:40 +000021679# Encode the this name into the shared library.
21680
21681# Check whether --with-package-release-name was given.
21682if test "${with_package_release_name+set}" = set; then :
21683 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21684fi
21685
21686
21687
cristy3ed852e2009-09-05 21:47:34 +000021688# Disable build/install of PerlMagick.
21689
21690# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021691if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021692 withval=$with_perl; with_perl=$withval
21693else
cristyb5f4e2f2010-04-25 00:49:11 +000021694 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021695fi
21696
21697
21698# Options to pass when configuring PerlMagick
21699
21700# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021701if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021702 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021703fi
21704
21705
cristy3ed852e2009-09-05 21:47:34 +000021706
cristy3b0097d2014-11-04 15:34:47 +000021707# Enable jemalloc, object-caching memory allocation library.
21708
21709# Check whether --with-jemalloc was given.
21710if test "${with_jemalloc+set}" = set; then :
21711 withval=$with_jemalloc; with_jemalloc=$withval
21712else
21713 with_jemalloc='no'
21714fi
21715
21716if test "$with_jemalloc" != 'yes' ; then
21717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21718fi
21719
cristy3ed852e2009-09-05 21:47:34 +000021720# Enable umem, object-caching memory allocation library.
21721
21722# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021723if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021724 withval=$with_umem; with_umem=$withval
21725else
21726 with_umem='no'
21727fi
21728
21729if test "$with_umem" != 'yes' ; then
21730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21731fi
21732
21733#
21734# Specify path to shared libstdc++ if not in normal location
21735#
21736
21737# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021738if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 withval=$with_libstdc; with_libstdc=$withval
21740else
21741 with_libstdc=''
21742fi
21743
21744
21745if test "$with_libstdc" != ''; then
21746 if test -d "$with_libstdc"; then
21747 LIBSTDCLDFLAGS="-L$with_libstdc"
21748 fi
21749fi
21750
21751
21752# Does gcc required -traditional?
21753if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021755$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021756if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021757 $as_echo_n "(cached) " >&6
21758else
21759 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021761/* end confdefs.h. */
21762#include <sgtty.h>
21763Autoconf TIOCGETP
21764_ACEOF
21765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021766 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021767 ac_cv_prog_gcc_traditional=yes
21768else
21769 ac_cv_prog_gcc_traditional=no
21770fi
21771rm -f conftest*
21772
21773
21774 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021776/* end confdefs.h. */
21777#include <termio.h>
21778Autoconf TCGETA
21779_ACEOF
21780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021781 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021782 ac_cv_prog_gcc_traditional=yes
21783fi
21784rm -f conftest*
21785
21786 fi
21787fi
cristy8b350f62009-11-15 23:12:43 +000021788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021789$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21790 if test $ac_cv_prog_gcc_traditional = yes; then
21791 CC="$CC -traditional"
21792 fi
21793fi
21794
21795
21796########
21797#
21798# Set defines required to build DLLs and modules using MinGW
21799#
21800########
21801# These options are set for multi-thread DLL module build
21802# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21803# module: _DLL
21804# executable/Magick++: _DLL _MAGICKMOD_
21805MODULE_EXTRA_CPPFLAGS=''
21806LIBRARY_EXTRA_CPPFLAGS=''
21807if test "${native_win32_build}" = 'yes'; then
21808 if test "${libtool_build_shared_libs}" = 'yes'; then
21809 CPPFLAGS="$CPPFLAGS -D_DLL"
21810 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21811 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21812 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021813 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021814 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21815 else
21816 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21817 fi
21818 else
21819 CPPFLAGS="$CPPFLAGS -D_LIB"
21820 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21821 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21822 fi
21823 if test "$with_threads" = 'yes'; then
21824 CPPFLAGS="$CPPFLAGS -D_MT"
21825 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21826 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21827 fi
21828fi
21829
21830
21831
21832# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021834$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021835if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 $as_echo_n "(cached) " >&6
21837else
cristy8b350f62009-11-15 23:12:43 +000021838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021839/* end confdefs.h. */
21840#include <stdlib.h>
21841#include <stdarg.h>
21842#include <string.h>
21843#include <float.h>
21844
21845int
21846main ()
21847{
21848
21849 ;
21850 return 0;
21851}
21852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021853if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021854 ac_cv_header_stdc=yes
21855else
cristy8b350f62009-11-15 23:12:43 +000021856 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021857fi
cristy3ed852e2009-09-05 21:47:34 +000021858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859
21860if test $ac_cv_header_stdc = yes; then
21861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021863/* end confdefs.h. */
21864#include <string.h>
21865
21866_ACEOF
21867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021868 $EGREP "memchr" >/dev/null 2>&1; then :
21869
cristy3ed852e2009-09-05 21:47:34 +000021870else
21871 ac_cv_header_stdc=no
21872fi
21873rm -f conftest*
21874
21875fi
21876
21877if test $ac_cv_header_stdc = yes; then
21878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021880/* end confdefs.h. */
21881#include <stdlib.h>
21882
21883_ACEOF
21884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021885 $EGREP "free" >/dev/null 2>&1; then :
21886
cristy3ed852e2009-09-05 21:47:34 +000021887else
21888 ac_cv_header_stdc=no
21889fi
21890rm -f conftest*
21891
21892fi
21893
21894if test $ac_cv_header_stdc = yes; then
21895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021896 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 :
21898else
cristy8b350f62009-11-15 23:12:43 +000021899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021900/* end confdefs.h. */
21901#include <ctype.h>
21902#include <stdlib.h>
21903#if ((' ' & 0x0FF) == 0x020)
21904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21906#else
21907# define ISLOWER(c) \
21908 (('a' <= (c) && (c) <= 'i') \
21909 || ('j' <= (c) && (c) <= 'r') \
21910 || ('s' <= (c) && (c) <= 'z'))
21911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21912#endif
21913
21914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21915int
21916main ()
21917{
21918 int i;
21919 for (i = 0; i < 256; i++)
21920 if (XOR (islower (i), ISLOWER (i))
21921 || toupper (i) != TOUPPER (i))
21922 return 2;
21923 return 0;
21924}
21925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021926if ac_fn_c_try_run "$LINENO"; then :
21927
cristy3ed852e2009-09-05 21:47:34 +000021928else
cristy8b350f62009-11-15 23:12:43 +000021929 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy8b350f62009-11-15 23:12:43 +000021931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21932 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021933fi
21934
cristy3ed852e2009-09-05 21:47:34 +000021935fi
21936fi
cristy8b350f62009-11-15 23:12:43 +000021937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021938$as_echo "$ac_cv_header_stdc" >&6; }
21939if test $ac_cv_header_stdc = yes; then
21940
cristy8b350f62009-11-15 23:12:43 +000021941$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021942
21943fi
21944
21945if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021946 { $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 +000021947 header files. Compilation cannot proceed. Please install the ANSI C
21948 headers and rerun this script." >&5
21949$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21950 header files. Compilation cannot proceed. Please install the ANSI C
21951 headers and rerun this script." >&2;};
21952fi
cristya0b81c32010-01-22 02:54:33 +000021953
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21955$as_echo_n "checking whether to enable assertions... " >&6; }
21956 # Check whether --enable-assert was given.
21957if test "${enable_assert+set}" = set; then :
21958 enableval=$enable_assert; ac_enable_assert=$enableval
21959 if test "x$enableval" = xno; then :
21960
21961$as_echo "#define NDEBUG 1" >>confdefs.h
21962
21963elif test "x$enableval" != xyes; then :
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21965$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21966 ac_enable_assert=yes
21967fi
21968else
21969 ac_enable_assert=yes
21970fi
21971
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21973$as_echo "$ac_enable_assert" >&6; }
21974
cristy3ed852e2009-09-05 21:47:34 +000021975ac_header_dirent=no
21976for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21977 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021979$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021980if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021981 $as_echo_n "(cached) " >&6
21982else
cristy8b350f62009-11-15 23:12:43 +000021983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021984/* end confdefs.h. */
21985#include <sys/types.h>
21986#include <$ac_hdr>
21987
21988int
21989main ()
21990{
21991if ((DIR *) 0)
21992return 0;
21993 ;
21994 return 0;
21995}
21996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021997if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021998 eval "$as_ac_Header=yes"
21999else
cristy8b350f62009-11-15 23:12:43 +000022000 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022001fi
cristy3ed852e2009-09-05 21:47:34 +000022002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003fi
cristy8b350f62009-11-15 23:12:43 +000022004eval ac_res=\$$as_ac_Header
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 cat >>confdefs.h <<_ACEOF
22009#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22010_ACEOF
22011
22012ac_header_dirent=$ac_hdr; break
22013fi
22014
22015done
22016# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22017if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022019$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022020if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022021 $as_echo_n "(cached) " >&6
22022else
22023 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022025/* end confdefs.h. */
22026
22027/* Override any GCC internal prototype to avoid an error.
22028 Use char because int might match the return type of a GCC
22029 builtin and then its argument prototype would still apply. */
22030#ifdef __cplusplus
22031extern "C"
22032#endif
22033char opendir ();
22034int
22035main ()
22036{
22037return opendir ();
22038 ;
22039 return 0;
22040}
22041_ACEOF
22042for ac_lib in '' dir; do
22043 if test -z "$ac_lib"; then
22044 ac_res="none required"
22045 else
22046 ac_res=-l$ac_lib
22047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22048 fi
cristy8b350f62009-11-15 23:12:43 +000022049 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022051fi
cristy8b350f62009-11-15 23:12:43 +000022052rm -f core conftest.err conftest.$ac_objext \
22053 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022054 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022055 break
22056fi
22057done
cristyda16f162011-02-19 23:52:17 +000022058if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022059
cristy3ed852e2009-09-05 21:47:34 +000022060else
22061 ac_cv_search_opendir=no
22062fi
22063rm conftest.$ac_ext
22064LIBS=$ac_func_search_save_LIBS
22065fi
cristy8b350f62009-11-15 23:12:43 +000022066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022067$as_echo "$ac_cv_search_opendir" >&6; }
22068ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022069if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22071
22072fi
22073
22074else
cristy8b350f62009-11-15 23:12:43 +000022075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022077if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 $as_echo_n "(cached) " >&6
22079else
22080 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022082/* end confdefs.h. */
22083
22084/* Override any GCC internal prototype to avoid an error.
22085 Use char because int might match the return type of a GCC
22086 builtin and then its argument prototype would still apply. */
22087#ifdef __cplusplus
22088extern "C"
22089#endif
22090char opendir ();
22091int
22092main ()
22093{
22094return opendir ();
22095 ;
22096 return 0;
22097}
22098_ACEOF
22099for ac_lib in '' x; do
22100 if test -z "$ac_lib"; then
22101 ac_res="none required"
22102 else
22103 ac_res=-l$ac_lib
22104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22105 fi
cristy8b350f62009-11-15 23:12:43 +000022106 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022107 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022108fi
cristy8b350f62009-11-15 23:12:43 +000022109rm -f core conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022111 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022112 break
22113fi
22114done
cristyda16f162011-02-19 23:52:17 +000022115if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022116
cristy3ed852e2009-09-05 21:47:34 +000022117else
22118 ac_cv_search_opendir=no
22119fi
22120rm conftest.$ac_ext
22121LIBS=$ac_func_search_save_LIBS
22122fi
cristy8b350f62009-11-15 23:12:43 +000022123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo "$ac_cv_search_opendir" >&6; }
22125ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022126if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22128
22129fi
22130
22131fi
22132
22133
22134# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022135for 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 +000022136do :
22137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 cat >>confdefs.h <<_ACEOF
22141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22142_ACEOF
22143
22144fi
22145
22146done
22147
22148
22149########
22150#
22151# Checks for typedefs, structures, and compiler characteristics.
22152#
22153########
22154
cristy8b350f62009-11-15 23:12:43 +000022155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022157if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 $as_echo_n "(cached) " >&6
22159else
cristy8b350f62009-11-15 23:12:43 +000022160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161/* end confdefs.h. */
22162
cristy14fefe52012-05-21 00:59:18 +000022163 #include <stdbool.h>
22164 #ifndef bool
22165 "error: bool is not defined"
22166 #endif
22167 #ifndef false
22168 "error: false is not defined"
22169 #endif
22170 #if false
22171 "error: false is not 0"
22172 #endif
22173 #ifndef true
22174 "error: true is not defined"
22175 #endif
22176 #if true != 1
22177 "error: true is not 1"
22178 #endif
22179 #ifndef __bool_true_false_are_defined
22180 "error: __bool_true_false_are_defined is not defined"
22181 #endif
cristy3ed852e2009-09-05 21:47:34 +000022182
cristy14fefe52012-05-21 00:59:18 +000022183 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022184
cristy14fefe52012-05-21 00:59:18 +000022185 char a[true == 1 ? 1 : -1];
22186 char b[false == 0 ? 1 : -1];
22187 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22188 char d[(bool) 0.5 == true ? 1 : -1];
22189 /* See body of main program for 'e'. */
22190 char f[(_Bool) 0.0 == false ? 1 : -1];
22191 char g[true];
22192 char h[sizeof (_Bool)];
22193 char i[sizeof s.t];
22194 enum { j = false, k = true, l = false * true, m = true * 256 };
22195 /* The following fails for
22196 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22197 _Bool n[m];
22198 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22199 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22200 /* Catch a bug in an HP-UX C compiler. See
22201 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22202 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22203 */
22204 _Bool q = true;
22205 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022206
22207int
22208main ()
22209{
22210
cristy14fefe52012-05-21 00:59:18 +000022211 bool e = &s;
22212 *pq |= q;
22213 *pq |= ! q;
22214 /* Refer to every declared value, to avoid compiler optimizations. */
22215 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22216 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022217
22218 ;
22219 return 0;
22220}
22221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022222if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 ac_cv_header_stdbool_h=yes
22224else
cristy8b350f62009-11-15 23:12:43 +000022225 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022226fi
cristy3ed852e2009-09-05 21:47:34 +000022227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228fi
cristy8b350f62009-11-15 23:12:43 +000022229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022230$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022231 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022232if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022233
22234cat >>confdefs.h <<_ACEOF
22235#define HAVE__BOOL 1
22236_ACEOF
22237
22238
22239fi
22240
cristy14fefe52012-05-21 00:59:18 +000022241
cristy3ed852e2009-09-05 21:47:34 +000022242if test $ac_cv_header_stdbool_h = yes; then
22243
cristy8b350f62009-11-15 23:12:43 +000022244$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022245
22246fi
22247
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022250if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022251 $as_echo_n "(cached) " >&6
22252else
cristy8b350f62009-11-15 23:12:43 +000022253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022254/* end confdefs.h. */
22255
22256int
22257main ()
22258{
22259
22260volatile int x;
22261int * volatile y = (int *) 0;
22262return !x && !y;
22263 ;
22264 return 0;
22265}
22266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022268 ac_cv_c_volatile=yes
22269else
cristy8b350f62009-11-15 23:12:43 +000022270 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022271fi
cristy3ed852e2009-09-05 21:47:34 +000022272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273fi
cristy8b350f62009-11-15 23:12:43 +000022274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022275$as_echo "$ac_cv_c_volatile" >&6; }
22276if test $ac_cv_c_volatile = no; then
22277
cristy8b350f62009-11-15 23:12:43 +000022278$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022279
22280fi
22281
cristy8b350f62009-11-15 23:12:43 +000022282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022283$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022284if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022285 $as_echo_n "(cached) " >&6
22286else
cristy8b350f62009-11-15 23:12:43 +000022287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022288/* end confdefs.h. */
22289#define x(y) #y
22290
22291char *s = x(teststring);
22292_ACEOF
22293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022294 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 ac_cv_c_stringize=no
22296else
22297 ac_cv_c_stringize=yes
22298fi
22299rm -f conftest*
22300
22301fi
cristy8b350f62009-11-15 23:12:43 +000022302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022303$as_echo "$ac_cv_c_stringize" >&6; }
22304if test $ac_cv_c_stringize = yes; then
22305
cristy8b350f62009-11-15 23:12:43 +000022306$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022307
22308fi
22309
cristy8b350f62009-11-15 23:12:43 +000022310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022312if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022313 $as_echo_n "(cached) " >&6
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022316/* end confdefs.h. */
22317#include <sys/types.h>
22318#include <sys/stat.h>
22319
22320#if defined S_ISBLK && defined S_IFDIR
22321extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22322#endif
22323
22324#if defined S_ISBLK && defined S_IFCHR
22325extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22326#endif
22327
22328#if defined S_ISLNK && defined S_IFREG
22329extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22330#endif
22331
22332#if defined S_ISSOCK && defined S_IFREG
22333extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22334#endif
22335
22336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022337if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 ac_cv_header_stat_broken=no
22339else
cristy8b350f62009-11-15 23:12:43 +000022340 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022341fi
cristy3ed852e2009-09-05 21:47:34 +000022342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343fi
cristy8b350f62009-11-15 23:12:43 +000022344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022345$as_echo "$ac_cv_header_stat_broken" >&6; }
22346if test $ac_cv_header_stat_broken = yes; then
22347
cristy8b350f62009-11-15 23:12:43 +000022348$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022349
22350fi
22351
cristy8b350f62009-11-15 23:12:43 +000022352{ $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 +000022353$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022354if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 $as_echo_n "(cached) " >&6
22356else
cristy8b350f62009-11-15 23:12:43 +000022357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022358/* end confdefs.h. */
22359#include <sys/types.h>
22360#include <sys/time.h>
22361#include <time.h>
22362
22363int
22364main ()
22365{
22366if ((struct tm *) 0)
22367return 0;
22368 ;
22369 return 0;
22370}
22371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 ac_cv_header_time=yes
22374else
cristy8b350f62009-11-15 23:12:43 +000022375 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022376fi
cristy3ed852e2009-09-05 21:47:34 +000022377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378fi
cristy8b350f62009-11-15 23:12:43 +000022379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022380$as_echo "$ac_cv_header_time" >&6; }
22381if test $ac_cv_header_time = yes; then
22382
cristy8b350f62009-11-15 23:12:43 +000022383$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022384
22385fi
22386
cristy8b350f62009-11-15 23:12:43 +000022387{ $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 +000022388$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022389if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 $as_echo_n "(cached) " >&6
22391else
cristy8b350f62009-11-15 23:12:43 +000022392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393/* end confdefs.h. */
22394#include <sys/types.h>
22395#include <time.h>
22396
22397int
22398main ()
22399{
22400struct tm tm;
22401 int *p = &tm.tm_sec;
22402 return !p;
22403 ;
22404 return 0;
22405}
22406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022408 ac_cv_struct_tm=time.h
22409else
cristy8b350f62009-11-15 23:12:43 +000022410 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022411fi
cristy3ed852e2009-09-05 21:47:34 +000022412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413fi
cristy8b350f62009-11-15 23:12:43 +000022414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022415$as_echo "$ac_cv_struct_tm" >&6; }
22416if test $ac_cv_struct_tm = sys/time.h; then
22417
cristy8b350f62009-11-15 23:12:43 +000022418$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022419
22420fi
22421
cristy92703d82010-04-26 00:18:18 +000022422ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22423#include <$ac_cv_struct_tm>
22424
22425"
cristyda16f162011-02-19 23:52:17 +000022426if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022427
22428cat >>confdefs.h <<_ACEOF
22429#define HAVE_STRUCT_TM_TM_ZONE 1
22430_ACEOF
22431
22432
22433fi
22434
22435if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22436
22437$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22438
22439else
22440 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22441"
cristyda16f162011-02-19 23:52:17 +000022442if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022443 ac_have_decl=1
22444else
22445 ac_have_decl=0
22446fi
22447
22448cat >>confdefs.h <<_ACEOF
22449#define HAVE_DECL_TZNAME $ac_have_decl
22450_ACEOF
22451
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22453$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022454if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022455 $as_echo_n "(cached) " >&6
22456else
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458/* end confdefs.h. */
22459#include <time.h>
22460#if !HAVE_DECL_TZNAME
22461extern char *tzname[];
22462#endif
22463
22464int
22465main ()
22466{
22467return tzname[0][0];
22468 ;
22469 return 0;
22470}
22471_ACEOF
22472if ac_fn_c_try_link "$LINENO"; then :
22473 ac_cv_var_tzname=yes
22474else
22475 ac_cv_var_tzname=no
22476fi
22477rm -f core conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22479fi
22480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22481$as_echo "$ac_cv_var_tzname" >&6; }
22482 if test $ac_cv_var_tzname = yes; then
22483
22484$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22485
22486 fi
22487fi
22488
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022491if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022492 $as_echo_n "(cached) " >&6
22493else
22494 echo '#! /bin/cat
22495exit 69
22496' >conftest
22497chmod u+x conftest
22498(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22499if test $? -ne 69; then
22500 ac_cv_sys_interpreter=yes
22501else
22502 ac_cv_sys_interpreter=no
22503fi
22504rm -f conftest
22505fi
cristy8b350f62009-11-15 23:12:43 +000022506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022507$as_echo "$ac_cv_sys_interpreter" >&6; }
22508interpval=$ac_cv_sys_interpreter
22509
22510
cristye80f9cb2013-01-09 01:09:31 +000022511#
22512# Checks for language qualifiers and semantics.
22513#
22514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22515$as_echo_n "checking whether char is unsigned... " >&6; }
22516if ${ac_cv_c_char_unsigned+:} false; then :
22517 $as_echo_n "(cached) " >&6
22518else
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520/* end confdefs.h. */
22521$ac_includes_default
22522int
22523main ()
22524{
22525static int test_array [1 - 2 * !(((char) -1) < 0)];
22526test_array [0] = 0;
22527return test_array [0];
22528
22529 ;
22530 return 0;
22531}
22532_ACEOF
22533if ac_fn_c_try_compile "$LINENO"; then :
22534 ac_cv_c_char_unsigned=no
22535else
22536 ac_cv_c_char_unsigned=yes
22537fi
22538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539fi
22540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22541$as_echo "$ac_cv_c_char_unsigned" >&6; }
22542if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22543 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22544
22545fi
22546
22547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22548$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22549if ${ac_cv_c_const+:} false; then :
22550 $as_echo_n "(cached) " >&6
22551else
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h. */
22554
22555int
22556main ()
22557{
22558
22559#ifndef __cplusplus
22560 /* Ultrix mips cc rejects this sort of thing. */
22561 typedef int charset[2];
22562 const charset cs = { 0, 0 };
22563 /* SunOS 4.1.1 cc rejects this. */
22564 char const *const *pcpcc;
22565 char **ppc;
22566 /* NEC SVR4.0.2 mips cc rejects this. */
22567 struct point {int x, y;};
22568 static struct point const zero = {0,0};
22569 /* AIX XL C 1.02.0.0 rejects this.
22570 It does not let you subtract one const X* pointer from another in
22571 an arm of an if-expression whose if-part is not a constant
22572 expression */
22573 const char *g = "string";
22574 pcpcc = &g + (g ? g-g : 0);
22575 /* HPUX 7.0 cc rejects these. */
22576 ++pcpcc;
22577 ppc = (char**) pcpcc;
22578 pcpcc = (char const *const *) ppc;
22579 { /* SCO 3.2v4 cc rejects this sort of thing. */
22580 char tx;
22581 char *t = &tx;
22582 char const *s = 0 ? (char *) 0 : (char const *) 0;
22583
22584 *t++ = 0;
22585 if (s) return 0;
22586 }
22587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22588 int x[] = {25, 17};
22589 const int *foo = &x[0];
22590 ++foo;
22591 }
22592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22593 typedef const int *iptr;
22594 iptr p = 0;
22595 ++p;
22596 }
22597 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22599 struct s { int j; const int *ap[3]; } bx;
22600 struct s *b = &bx; b->j = 5;
22601 }
22602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22603 const int foo = 10;
22604 if (!foo) return 0;
22605 }
22606 return !cs[0] && !zero.x;
22607#endif
22608
22609 ;
22610 return 0;
22611}
22612_ACEOF
22613if ac_fn_c_try_compile "$LINENO"; then :
22614 ac_cv_c_const=yes
22615else
22616 ac_cv_c_const=no
22617fi
22618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619fi
22620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22621$as_echo "$ac_cv_c_const" >&6; }
22622if test $ac_cv_c_const = no; then
22623
22624$as_echo "#define const /**/" >>confdefs.h
22625
22626fi
22627
cristy8b350f62009-11-15 23:12:43 +000022628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022630if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 $as_echo_n "(cached) " >&6
22632else
22633 ac_cv_c_inline=no
22634for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022636/* end confdefs.h. */
22637#ifndef __cplusplus
22638typedef int foo_t;
22639static $ac_kw foo_t static_foo () {return 0; }
22640$ac_kw foo_t foo () {return 0; }
22641#endif
22642
22643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022645 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022646fi
cristy3ed852e2009-09-05 21:47:34 +000022647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22648 test "$ac_cv_c_inline" != no && break
22649done
22650
22651fi
cristy8b350f62009-11-15 23:12:43 +000022652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022653$as_echo "$ac_cv_c_inline" >&6; }
22654
cristy3ed852e2009-09-05 21:47:34 +000022655case $ac_cv_c_inline in
22656 inline | yes) ;;
22657 *)
22658 case $ac_cv_c_inline in
22659 no) ac_val=;;
22660 *) ac_val=$ac_cv_c_inline;;
22661 esac
22662 cat >>confdefs.h <<_ACEOF
22663#ifndef __cplusplus
22664#define inline $ac_val
22665#endif
22666_ACEOF
22667 ;;
22668esac
22669
cristy8b350f62009-11-15 23:12:43 +000022670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022671$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022672if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022673 $as_echo_n "(cached) " >&6
22674else
22675 ac_cv_c_restrict=no
22676 # The order here caters to the fact that C++ does not require restrict.
22677 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022679/* end confdefs.h. */
22680typedef int * int_ptr;
22681 int foo (int_ptr $ac_kw ip) {
22682 return ip[0];
22683 }
22684int
22685main ()
22686{
22687int s[1];
22688 int * $ac_kw t = s;
22689 t[0] = 0;
22690 return foo(t)
22691 ;
22692 return 0;
22693}
22694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022696 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022697fi
cristy3ed852e2009-09-05 21:47:34 +000022698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699 test "$ac_cv_c_restrict" != no && break
22700 done
22701
22702fi
cristy8b350f62009-11-15 23:12:43 +000022703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022704$as_echo "$ac_cv_c_restrict" >&6; }
22705
cristy3ed852e2009-09-05 21:47:34 +000022706 case $ac_cv_c_restrict in
22707 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022708 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022709 ;;
22710 *) cat >>confdefs.h <<_ACEOF
22711#define restrict $ac_cv_c_restrict
22712_ACEOF
22713 ;;
22714 esac
22715
cristye80f9cb2013-01-09 01:09:31 +000022716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22717$as_echo_n "checking for working volatile... " >&6; }
22718if ${ac_cv_c_volatile+:} false; then :
22719 $as_echo_n "(cached) " >&6
22720else
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722/* end confdefs.h. */
22723
22724int
22725main ()
22726{
22727
22728volatile int x;
22729int * volatile y = (int *) 0;
22730return !x && !y;
22731 ;
22732 return 0;
22733}
22734_ACEOF
22735if ac_fn_c_try_compile "$LINENO"; then :
22736 ac_cv_c_volatile=yes
22737else
22738 ac_cv_c_volatile=no
22739fi
22740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741fi
22742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22743$as_echo "$ac_cv_c_volatile" >&6; }
22744if test $ac_cv_c_volatile = no; then
22745
22746$as_echo "#define volatile /**/" >>confdefs.h
22747
22748fi
22749
cristy3ed852e2009-09-05 21:47:34 +000022750
22751# If words are stored with the most significant byte first (like
22752# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022754$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022755if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022756 $as_echo_n "(cached) " >&6
22757else
22758 ac_cv_c_bigendian=unknown
22759 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022761/* end confdefs.h. */
22762#ifndef __APPLE_CC__
22763 not a universal capable compiler
22764 #endif
22765 typedef int dummy;
22766
22767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022769
22770 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022771 # there are at least two -arch flags with different values.
22772 ac_arch=
22773 ac_prev=
22774 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22775 if test -n "$ac_prev"; then
22776 case $ac_word in
22777 i?86 | x86_64 | ppc | ppc64)
22778 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22779 ac_arch=$ac_word
22780 else
22781 ac_cv_c_bigendian=universal
22782 break
22783 fi
22784 ;;
22785 esac
22786 ac_prev=
22787 elif test "x$ac_word" = "x-arch"; then
22788 ac_prev=arch
22789 fi
22790 done
cristy3ed852e2009-09-05 21:47:34 +000022791fi
cristy3ed852e2009-09-05 21:47:34 +000022792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 if test $ac_cv_c_bigendian = unknown; then
22794 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022796/* end confdefs.h. */
22797#include <sys/types.h>
22798 #include <sys/param.h>
22799
22800int
22801main ()
22802{
22803#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22804 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22805 && LITTLE_ENDIAN)
22806 bogus endian macros
22807 #endif
22808
22809 ;
22810 return 0;
22811}
22812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022814 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022816/* end confdefs.h. */
22817#include <sys/types.h>
22818 #include <sys/param.h>
22819
22820int
22821main ()
22822{
22823#if BYTE_ORDER != BIG_ENDIAN
22824 not big endian
22825 #endif
22826
22827 ;
22828 return 0;
22829}
22830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022832 ac_cv_c_bigendian=yes
22833else
cristy8b350f62009-11-15 23:12:43 +000022834 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022835fi
cristy3ed852e2009-09-05 21:47:34 +000022836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022837fi
cristy3ed852e2009-09-05 21:47:34 +000022838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 fi
22840 if test $ac_cv_c_bigendian = unknown; then
22841 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022843/* end confdefs.h. */
22844#include <limits.h>
22845
22846int
22847main ()
22848{
22849#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22850 bogus endian macros
22851 #endif
22852
22853 ;
22854 return 0;
22855}
22856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022857if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022858 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022860/* end confdefs.h. */
22861#include <limits.h>
22862
22863int
22864main ()
22865{
22866#ifndef _BIG_ENDIAN
22867 not big endian
22868 #endif
22869
22870 ;
22871 return 0;
22872}
22873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022874if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022875 ac_cv_c_bigendian=yes
22876else
cristy8b350f62009-11-15 23:12:43 +000022877 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022878fi
cristy3ed852e2009-09-05 21:47:34 +000022879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022880fi
cristy3ed852e2009-09-05 21:47:34 +000022881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 fi
22883 if test $ac_cv_c_bigendian = unknown; then
22884 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022885 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022886 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888/* end confdefs.h. */
22889short int ascii_mm[] =
22890 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22891 short int ascii_ii[] =
22892 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22893 int use_ascii (int i) {
22894 return ascii_mm[i] + ascii_ii[i];
22895 }
22896 short int ebcdic_ii[] =
22897 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22898 short int ebcdic_mm[] =
22899 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22900 int use_ebcdic (int i) {
22901 return ebcdic_mm[i] + ebcdic_ii[i];
22902 }
22903 extern int foo;
22904
22905int
22906main ()
22907{
22908return use_ascii (foo) == use_ebcdic (foo);
22909 ;
22910 return 0;
22911}
22912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022914 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22915 ac_cv_c_bigendian=yes
22916 fi
22917 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22918 if test "$ac_cv_c_bigendian" = unknown; then
22919 ac_cv_c_bigendian=no
22920 else
22921 # finding both strings is unlikely to happen, but who knows?
22922 ac_cv_c_bigendian=unknown
22923 fi
22924 fi
cristy3ed852e2009-09-05 21:47:34 +000022925fi
cristy3ed852e2009-09-05 21:47:34 +000022926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927else
cristy8b350f62009-11-15 23:12:43 +000022928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022929/* end confdefs.h. */
22930$ac_includes_default
22931int
22932main ()
22933{
22934
22935 /* Are we little or big endian? From Harbison&Steele. */
22936 union
22937 {
22938 long int l;
22939 char c[sizeof (long int)];
22940 } u;
22941 u.l = 1;
22942 return u.c[sizeof (long int) - 1] == 1;
22943
22944 ;
22945 return 0;
22946}
22947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022948if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022949 ac_cv_c_bigendian=no
22950else
cristy8b350f62009-11-15 23:12:43 +000022951 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022952fi
cristy8b350f62009-11-15 23:12:43 +000022953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22954 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022955fi
22956
cristy3ed852e2009-09-05 21:47:34 +000022957 fi
22958fi
cristy8b350f62009-11-15 23:12:43 +000022959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo "$ac_cv_c_bigendian" >&6; }
22961 case $ac_cv_c_bigendian in #(
22962 yes)
cristy8b350f62009-11-15 23:12:43 +000022963 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022964;; #(
22965 no)
22966 ;; #(
22967 universal)
22968
cristy8b350f62009-11-15 23:12:43 +000022969$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022970
22971 ;; #(
22972 *)
cristy98dddb52010-11-04 00:30:15 +000022973 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022974 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022975 esac
22976
22977
cristy501c8042011-05-26 17:46:28 +000022978# Define to a suitable type, if standard headers do not define it.
22979ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22980case $ac_cv_c_int8_t in #(
22981 no|yes) ;; #(
22982 *)
cristy3ed852e2009-09-05 21:47:34 +000022983
22984cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022985#define int8_t $ac_cv_c_int8_t
22986_ACEOF
22987;;
22988esac
22989
22990ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22991case $ac_cv_c_int16_t in #(
22992 no|yes) ;; #(
22993 *)
22994
22995cat >>confdefs.h <<_ACEOF
22996#define int16_t $ac_cv_c_int16_t
22997_ACEOF
22998;;
22999esac
23000
23001ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23002case $ac_cv_c_int32_t in #(
23003 no|yes) ;; #(
23004 *)
23005
23006cat >>confdefs.h <<_ACEOF
23007#define int32_t $ac_cv_c_int32_t
23008_ACEOF
23009;;
23010esac
23011
23012ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23013case $ac_cv_c_int64_t in #(
23014 no|yes) ;; #(
23015 *)
23016
23017cat >>confdefs.h <<_ACEOF
23018#define int64_t $ac_cv_c_int64_t
23019_ACEOF
23020;;
23021esac
23022
23023
cristy045228a2013-06-23 11:00:16 +000023024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23025$as_echo_n "checking for unsigned long long int... " >&6; }
23026if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023027 $as_echo_n "(cached) " >&6
23028else
cristy045228a2013-06-23 11:00:16 +000023029 ac_cv_type_unsigned_long_long_int=yes
23030 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023032/* end confdefs.h. */
23033
23034 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023035 implementations with broken preprocessors. Perhaps this can
23036 be revisited in 2012. In the meantime, code should not expect
23037 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023038 /* Test literals. */
23039 long long int ll = 9223372036854775807ll;
23040 long long int nll = -9223372036854775807LL;
23041 unsigned long long int ull = 18446744073709551615ULL;
23042 /* Test constant expressions. */
23043 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023044 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023045 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023046 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023047 int i = 63;
23048int
23049main ()
23050{
23051/* Test availability of runtime routines for shift and division. */
23052 long long int llmax = 9223372036854775807ll;
23053 unsigned long long int ullmax = 18446744073709551615ull;
23054 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023055 | (llmax / ll) | (llmax % ll)
23056 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23057 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023058 ;
23059 return 0;
23060}
23061
23062_ACEOF
23063if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023064
23065else
23066 ac_cv_type_unsigned_long_long_int=no
23067fi
23068rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 fi
23071fi
23072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23073$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23074 if test $ac_cv_type_unsigned_long_long_int = yes; then
23075
23076$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23077
23078 fi
23079
23080
23081
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23083$as_echo_n "checking for long long int... " >&6; }
23084if ${ac_cv_type_long_long_int+:} false; then :
23085 $as_echo_n "(cached) " >&6
23086else
cristy501c8042011-05-26 17:46:28 +000023087 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023088 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023089 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23090 if test $ac_cv_type_long_long_int = yes; then
23091 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023092 :
cristy501c8042011-05-26 17:46:28 +000023093else
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095/* end confdefs.h. */
23096#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023097 #ifndef LLONG_MAX
23098 # define HALF \
23099 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23100 # define LLONG_MAX (HALF - 1 + HALF)
23101 #endif
cristy501c8042011-05-26 17:46:28 +000023102int
23103main ()
23104{
23105long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023106 int i;
23107 for (i = 0; ; i++)
23108 {
23109 long long int m = n << i;
23110 if (m >> i != n)
23111 return 1;
23112 if (LLONG_MAX / 2 < m)
23113 break;
23114 }
23115 return 0;
cristy501c8042011-05-26 17:46:28 +000023116 ;
23117 return 0;
23118}
23119_ACEOF
23120if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023121
cristy501c8042011-05-26 17:46:28 +000023122else
23123 ac_cv_type_long_long_int=no
23124fi
23125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23126 conftest.$ac_objext conftest.beam conftest.$ac_ext
23127fi
23128
cristy5ed9c6e2013-07-14 21:20:31 +000023129 fi
cristy045228a2013-06-23 11:00:16 +000023130 fi
cristy501c8042011-05-26 17:46:28 +000023131fi
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23133$as_echo "$ac_cv_type_long_long_int" >&6; }
23134 if test $ac_cv_type_long_long_int = yes; then
23135
23136$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23137
23138 fi
23139
23140
23141
23142 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23143if test "x$ac_cv_type_intmax_t" = xyes; then :
23144
23145$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23146
23147else
23148 test $ac_cv_type_long_long_int = yes \
23149 && ac_type='long long int' \
23150 || ac_type='long int'
23151
23152cat >>confdefs.h <<_ACEOF
23153#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023154_ACEOF
23155
23156fi
23157
23158
cristy501c8042011-05-26 17:46:28 +000023159
23160 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23161if test "x$ac_cv_type_intptr_t" = xyes; then :
23162
23163$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023164
cristy3ed852e2009-09-05 21:47:34 +000023165else
cristy501c8042011-05-26 17:46:28 +000023166 for ac_type in 'int' 'long int' 'long long int'; do
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168/* end confdefs.h. */
23169$ac_includes_default
23170int
23171main ()
23172{
23173static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023174test_array [0] = 0;
23175return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023176
23177 ;
23178 return 0;
23179}
23180_ACEOF
23181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023182
23183cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023184#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023185_ACEOF
23186
cristy501c8042011-05-26 17:46:28 +000023187 ac_type=
23188fi
23189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 test -z "$ac_type" && break
23191 done
cristy3ed852e2009-09-05 21:47:34 +000023192fi
23193
23194
cristy3ed852e2009-09-05 21:47:34 +000023195
cristy501c8042011-05-26 17:46:28 +000023196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23197$as_echo_n "checking for long double... " >&6; }
23198if ${ac_cv_type_long_double+:} false; then :
23199 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023200else
cristy501c8042011-05-26 17:46:28 +000023201 if test "$GCC" = yes; then
23202 ac_cv_type_long_double=yes
23203 else
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205/* end confdefs.h. */
23206/* The Stardent Vistra knows sizeof (long double), but does
23207 not support it. */
23208 long double foo = 0.0L;
23209int
23210main ()
23211{
23212static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23213 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023214test_array [0] = 0;
23215return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023216
cristy501c8042011-05-26 17:46:28 +000023217 ;
23218 return 0;
23219}
cristy3ed852e2009-09-05 21:47:34 +000023220_ACEOF
cristy501c8042011-05-26 17:46:28 +000023221if ac_fn_c_try_compile "$LINENO"; then :
23222 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023223else
cristy501c8042011-05-26 17:46:28 +000023224 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023225fi
cristy501c8042011-05-26 17:46:28 +000023226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
cristy3ed852e2009-09-05 21:47:34 +000023228fi
cristy501c8042011-05-26 17:46:28 +000023229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23230$as_echo "$ac_cv_type_long_double" >&6; }
23231 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023232
cristy501c8042011-05-26 17:46:28 +000023233$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023234
cristy501c8042011-05-26 17:46:28 +000023235 fi
23236
cristy3ed852e2009-09-05 21:47:34 +000023237
cristy8b350f62009-11-15 23:12:43 +000023238 { $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 +000023239$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023240if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023241 $as_echo_n "(cached) " >&6
23242else
cristy8b350f62009-11-15 23:12:43 +000023243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023244/* end confdefs.h. */
23245#include <float.h>
23246 long double const a[] =
23247 {
23248 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23249 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23250 };
23251 long double
23252 f (long double x)
23253 {
23254 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23255 + (x ? f (x) : 'c'));
23256 }
23257
23258int
23259main ()
23260{
23261static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23262 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23263 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23264 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23265 && (int) LDBL_EPSILON == 0
23266 )];
cristy14fefe52012-05-21 00:59:18 +000023267test_array [0] = 0;
23268return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023269
23270 ;
23271 return 0;
23272}
23273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023274if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023275 ac_cv_type_long_double_wider=yes
23276else
cristy8b350f62009-11-15 23:12:43 +000023277 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023278fi
cristy3ed852e2009-09-05 21:47:34 +000023279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280fi
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo "$ac_cv_type_long_double_wider" >&6; }
23283 if test $ac_cv_type_long_double_wider = yes; then
23284
cristy8b350f62009-11-15 23:12:43 +000023285$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023286
23287 fi
23288
23289
cristy045228a2013-06-23 11:00:16 +000023290
cristy501c8042011-05-26 17:46:28 +000023291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23292$as_echo_n "checking for long long int... " >&6; }
23293if ${ac_cv_type_long_long_int+:} false; then :
23294 $as_echo_n "(cached) " >&6
23295else
cristy501c8042011-05-26 17:46:28 +000023296 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023297 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023298 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23299 if test $ac_cv_type_long_long_int = yes; then
23300 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023301 :
cristy501c8042011-05-26 17:46:28 +000023302else
23303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23304/* end confdefs.h. */
23305#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023306 #ifndef LLONG_MAX
23307 # define HALF \
23308 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23309 # define LLONG_MAX (HALF - 1 + HALF)
23310 #endif
cristy501c8042011-05-26 17:46:28 +000023311int
23312main ()
23313{
23314long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023315 int i;
23316 for (i = 0; ; i++)
23317 {
23318 long long int m = n << i;
23319 if (m >> i != n)
23320 return 1;
23321 if (LLONG_MAX / 2 < m)
23322 break;
23323 }
23324 return 0;
cristy501c8042011-05-26 17:46:28 +000023325 ;
23326 return 0;
23327}
23328_ACEOF
23329if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023330
cristy501c8042011-05-26 17:46:28 +000023331else
23332 ac_cv_type_long_long_int=no
23333fi
23334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23335 conftest.$ac_objext conftest.beam conftest.$ac_ext
23336fi
23337
cristy5ed9c6e2013-07-14 21:20:31 +000023338 fi
cristy045228a2013-06-23 11:00:16 +000023339 fi
cristy501c8042011-05-26 17:46:28 +000023340fi
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23342$as_echo "$ac_cv_type_long_long_int" >&6; }
23343 if test $ac_cv_type_long_long_int = yes; then
23344
23345$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23346
23347 fi
23348
23349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23350$as_echo_n "checking for mbstate_t... " >&6; }
23351if ${ac_cv_type_mbstate_t+:} false; then :
23352 $as_echo_n "(cached) " >&6
23353else
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356$ac_includes_default
23357# include <wchar.h>
23358int
23359main ()
23360{
23361mbstate_t x; return sizeof x;
23362 ;
23363 return 0;
23364}
23365_ACEOF
23366if ac_fn_c_try_compile "$LINENO"; then :
23367 ac_cv_type_mbstate_t=yes
23368else
23369 ac_cv_type_mbstate_t=no
23370fi
23371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372fi
23373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23374$as_echo "$ac_cv_type_mbstate_t" >&6; }
23375 if test $ac_cv_type_mbstate_t = yes; then
23376
23377$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23378
23379 else
23380
23381$as_echo "#define mbstate_t int" >>confdefs.h
23382
23383 fi
23384ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23385if test "x$ac_cv_type_mode_t" = xyes; then :
23386
23387else
23388
23389cat >>confdefs.h <<_ACEOF
23390#define mode_t int
23391_ACEOF
23392
23393fi
23394
23395ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23396if test "x$ac_cv_type_off_t" = xyes; then :
23397
23398else
23399
23400cat >>confdefs.h <<_ACEOF
23401#define off_t long int
23402_ACEOF
23403
23404fi
23405
23406ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23407if test "x$ac_cv_type_pid_t" = xyes; then :
23408
23409else
23410
23411cat >>confdefs.h <<_ACEOF
23412#define pid_t int
23413_ACEOF
23414
23415fi
23416
23417ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23418if test "x$ac_cv_type_size_t" = xyes; then :
23419
23420else
23421
23422cat >>confdefs.h <<_ACEOF
23423#define size_t unsigned int
23424_ACEOF
23425
23426fi
23427
23428ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23429if test "x$ac_cv_type_ssize_t" = xyes; then :
23430
23431else
23432
23433cat >>confdefs.h <<_ACEOF
23434#define ssize_t int
23435_ACEOF
23436
23437fi
23438
23439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23440$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23441if ${ac_cv_type_uid_t+:} false; then :
23442 $as_echo_n "(cached) " >&6
23443else
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h. */
23446#include <sys/types.h>
23447
23448_ACEOF
23449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23450 $EGREP "uid_t" >/dev/null 2>&1; then :
23451 ac_cv_type_uid_t=yes
23452else
23453 ac_cv_type_uid_t=no
23454fi
23455rm -f conftest*
23456
23457fi
23458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23459$as_echo "$ac_cv_type_uid_t" >&6; }
23460if test $ac_cv_type_uid_t = no; then
23461
23462$as_echo "#define uid_t int" >>confdefs.h
23463
23464
23465$as_echo "#define gid_t int" >>confdefs.h
23466
23467fi
23468
23469ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23470case $ac_cv_c_uint8_t in #(
23471 no|yes) ;; #(
23472 *)
23473
23474$as_echo "#define _UINT8_T 1" >>confdefs.h
23475
23476
23477cat >>confdefs.h <<_ACEOF
23478#define uint8_t $ac_cv_c_uint8_t
23479_ACEOF
23480;;
23481 esac
23482
23483ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23484case $ac_cv_c_uint16_t in #(
23485 no|yes) ;; #(
23486 *)
23487
23488
23489cat >>confdefs.h <<_ACEOF
23490#define uint16_t $ac_cv_c_uint16_t
23491_ACEOF
23492;;
23493 esac
23494
23495ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23496case $ac_cv_c_uint32_t in #(
23497 no|yes) ;; #(
23498 *)
23499
23500$as_echo "#define _UINT32_T 1" >>confdefs.h
23501
23502
23503cat >>confdefs.h <<_ACEOF
23504#define uint32_t $ac_cv_c_uint32_t
23505_ACEOF
23506;;
23507 esac
23508
23509ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23510case $ac_cv_c_uint64_t in #(
23511 no|yes) ;; #(
23512 *)
23513
23514$as_echo "#define _UINT64_T 1" >>confdefs.h
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define uint64_t $ac_cv_c_uint64_t
23519_ACEOF
23520;;
23521 esac
23522
23523
cristy501c8042011-05-26 17:46:28 +000023524
23525 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23526if test "x$ac_cv_type_uintmax_t" = xyes; then :
23527
23528$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23529
23530else
23531 test $ac_cv_type_unsigned_long_long_int = yes \
23532 && ac_type='unsigned long long int' \
23533 || ac_type='unsigned long int'
23534
23535cat >>confdefs.h <<_ACEOF
23536#define uintmax_t $ac_type
23537_ACEOF
23538
23539fi
23540
23541
23542
23543 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23544if test "x$ac_cv_type_uintptr_t" = xyes; then :
23545
23546$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23547
23548else
23549 for ac_type in 'unsigned int' 'unsigned long int' \
23550 'unsigned long long int'; do
23551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552/* end confdefs.h. */
23553$ac_includes_default
23554int
23555main ()
23556{
23557static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023558test_array [0] = 0;
23559return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023560
23561 ;
23562 return 0;
23563}
23564_ACEOF
23565if ac_fn_c_try_compile "$LINENO"; then :
23566
23567cat >>confdefs.h <<_ACEOF
23568#define uintptr_t $ac_type
23569_ACEOF
23570
23571 ac_type=
23572fi
23573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 test -z "$ac_type" && break
23575 done
23576fi
23577
23578
23579
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23581$as_echo_n "checking for unsigned long long int... " >&6; }
23582if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23583 $as_echo_n "(cached) " >&6
23584else
cristy045228a2013-06-23 11:00:16 +000023585 ac_cv_type_unsigned_long_long_int=yes
23586 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023588/* end confdefs.h. */
23589
23590 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023591 implementations with broken preprocessors. Perhaps this can
23592 be revisited in 2012. In the meantime, code should not expect
23593 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023594 /* Test literals. */
23595 long long int ll = 9223372036854775807ll;
23596 long long int nll = -9223372036854775807LL;
23597 unsigned long long int ull = 18446744073709551615ULL;
23598 /* Test constant expressions. */
23599 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023600 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023601 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023602 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023603 int i = 63;
23604int
23605main ()
23606{
23607/* Test availability of runtime routines for shift and division. */
23608 long long int llmax = 9223372036854775807ll;
23609 unsigned long long int ullmax = 18446744073709551615ull;
23610 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023611 | (llmax / ll) | (llmax % ll)
23612 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23613 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023614 ;
23615 return 0;
23616}
23617
23618_ACEOF
23619if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023620
cristy501c8042011-05-26 17:46:28 +000023621else
23622 ac_cv_type_unsigned_long_long_int=no
23623fi
23624rm -f core conftest.err conftest.$ac_objext \
23625 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023626 fi
cristy501c8042011-05-26 17:46:28 +000023627fi
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23629$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23630 if test $ac_cv_type_unsigned_long_long_int = yes; then
23631
23632$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23633
23634 fi
23635
23636
cristyfec31822013-05-23 12:32:12 +000023637# Float_t and double_t are intended to be the the most efficient type.
23638ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23639"
23640if test "x$ac_cv_type_float_t" = xyes; then :
23641
23642cat >>confdefs.h <<_ACEOF
23643#define HAVE_FLOAT_T 1
23644_ACEOF
23645
23646
23647fi
23648
23649ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23650"
23651if test "x$ac_cv_type_double_t" = xyes; then :
23652
23653cat >>confdefs.h <<_ACEOF
23654#define HAVE_DOUBLE_T 1
23655_ACEOF
23656
23657
23658fi
23659
23660# The cast to long int works around a bug in the HP C Compiler
23661# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23662# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23663# This bug is HP SR number 8606223364.
23664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23665$as_echo_n "checking size of float_t... " >&6; }
23666if ${ac_cv_sizeof_float_t+:} false; then :
23667 $as_echo_n "(cached) " >&6
23668else
23669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23670"; then :
23671
23672else
23673 if test "$ac_cv_type_float_t" = yes; then
23674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23676as_fn_error 77 "cannot compute sizeof (float_t)
23677See \`config.log' for more details" "$LINENO" 5; }
23678 else
23679 ac_cv_sizeof_float_t=0
23680 fi
23681fi
23682
23683fi
23684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23685$as_echo "$ac_cv_sizeof_float_t" >&6; }
23686
23687
23688
23689cat >>confdefs.h <<_ACEOF
23690#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23691_ACEOF
23692
23693
23694# The cast to long int works around a bug in the HP C Compiler
23695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23697# This bug is HP SR number 8606223364.
23698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23699$as_echo_n "checking size of double_t... " >&6; }
23700if ${ac_cv_sizeof_double_t+:} false; then :
23701 $as_echo_n "(cached) " >&6
23702else
23703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23704"; then :
23705
23706else
23707 if test "$ac_cv_type_double_t" = yes; then
23708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23710as_fn_error 77 "cannot compute sizeof (double_t)
23711See \`config.log' for more details" "$LINENO" 5; }
23712 else
23713 ac_cv_sizeof_double_t=0
23714 fi
23715fi
23716
23717fi
23718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23719$as_echo "$ac_cv_sizeof_double_t" >&6; }
23720
23721
23722
23723cat >>confdefs.h <<_ACEOF
23724#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23725_ACEOF
23726
23727
23728
cristy9b86f202012-11-28 21:55:35 +000023729# Get size of float, double and long double for comparaison.
23730# The cast to long int works around a bug in the HP C Compiler
23731# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23732# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23733# This bug is HP SR number 8606223364.
23734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23735$as_echo_n "checking size of float... " >&6; }
23736if ${ac_cv_sizeof_float+:} false; then :
23737 $as_echo_n "(cached) " >&6
23738else
23739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23740
23741else
23742 if test "$ac_cv_type_float" = yes; then
23743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23745as_fn_error 77 "cannot compute sizeof (float)
23746See \`config.log' for more details" "$LINENO" 5; }
23747 else
23748 ac_cv_sizeof_float=0
23749 fi
23750fi
23751
23752fi
23753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23754$as_echo "$ac_cv_sizeof_float" >&6; }
23755
23756
23757
23758cat >>confdefs.h <<_ACEOF
23759#define SIZEOF_FLOAT $ac_cv_sizeof_float
23760_ACEOF
23761
23762
23763# The cast to long int works around a bug in the HP C Compiler
23764# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23765# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23766# This bug is HP SR number 8606223364.
23767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23768$as_echo_n "checking size of double... " >&6; }
23769if ${ac_cv_sizeof_double+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771else
23772 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23773
23774else
23775 if test "$ac_cv_type_double" = yes; then
23776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23778as_fn_error 77 "cannot compute sizeof (double)
23779See \`config.log' for more details" "$LINENO" 5; }
23780 else
23781 ac_cv_sizeof_double=0
23782 fi
23783fi
23784
23785fi
23786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23787$as_echo "$ac_cv_sizeof_double" >&6; }
23788
23789
23790
23791cat >>confdefs.h <<_ACEOF
23792#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23793_ACEOF
23794
23795
cristy9e2b6242014-03-25 11:49:41 +000023796# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023797# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23798# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23799# This bug is HP SR number 8606223364.
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23801$as_echo_n "checking size of long double... " >&6; }
23802if ${ac_cv_sizeof_long_double+:} false; then :
23803 $as_echo_n "(cached) " >&6
23804else
23805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23806
23807else
23808 if test "$ac_cv_type_long_double" = yes; then
23809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23811as_fn_error 77 "cannot compute sizeof (long double)
23812See \`config.log' for more details" "$LINENO" 5; }
23813 else
23814 ac_cv_sizeof_long_double=0
23815 fi
23816fi
23817
23818fi
23819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23820$as_echo "$ac_cv_sizeof_long_double" >&6; }
23821
23822
23823
23824cat >>confdefs.h <<_ACEOF
23825#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23826_ACEOF
23827
23828
cristyf0cf9a22012-10-24 12:05:01 +000023829
cristy3ed852e2009-09-05 21:47:34 +000023830# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23831# The cast to long int works around a bug in the HP C Compiler
23832# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23833# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23834# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023836$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023837if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023838 $as_echo_n "(cached) " >&6
23839else
cristy8b350f62009-11-15 23:12:43 +000023840 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 +000023841
cristy3ed852e2009-09-05 21:47:34 +000023842else
cristy8b350f62009-11-15 23:12:43 +000023843 if test "$ac_cv_type_signed_short" = yes; then
23844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023846as_fn_error 77 "cannot compute sizeof (signed short)
23847See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023848 else
23849 ac_cv_sizeof_signed_short=0
23850 fi
23851fi
cristy8b350f62009-11-15 23:12:43 +000023852
cristy3ed852e2009-09-05 21:47:34 +000023853fi
cristy8b350f62009-11-15 23:12:43 +000023854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23856
23857
23858
23859cat >>confdefs.h <<_ACEOF
23860#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23861_ACEOF
23862
23863
23864
23865# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23866# The cast to long int works around a bug in the HP C Compiler
23867# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23868# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23869# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023872if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023873 $as_echo_n "(cached) " >&6
23874else
cristy8b350f62009-11-15 23:12:43 +000023875 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 +000023876
cristy3ed852e2009-09-05 21:47:34 +000023877else
cristy8b350f62009-11-15 23:12:43 +000023878 if test "$ac_cv_type_unsigned_short" = yes; then
23879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023881as_fn_error 77 "cannot compute sizeof (unsigned short)
23882See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023883 else
23884 ac_cv_sizeof_unsigned_short=0
23885 fi
23886fi
cristy8b350f62009-11-15 23:12:43 +000023887
cristy3ed852e2009-09-05 21:47:34 +000023888fi
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23891
23892
23893
23894cat >>confdefs.h <<_ACEOF
23895#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23896_ACEOF
23897
23898
23899
23900# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23901# The cast to long int works around a bug in the HP C Compiler
23902# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23903# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23904# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023907if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 $as_echo_n "(cached) " >&6
23909else
cristy8b350f62009-11-15 23:12:43 +000023910 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 +000023911
cristy3ed852e2009-09-05 21:47:34 +000023912else
cristy8b350f62009-11-15 23:12:43 +000023913 if test "$ac_cv_type_signed_int" = yes; then
23914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023916as_fn_error 77 "cannot compute sizeof (signed int)
23917See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023918 else
23919 ac_cv_sizeof_signed_int=0
23920 fi
23921fi
cristy8b350f62009-11-15 23:12:43 +000023922
cristy3ed852e2009-09-05 21:47:34 +000023923fi
cristy8b350f62009-11-15 23:12:43 +000023924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23926
23927
23928
23929cat >>confdefs.h <<_ACEOF
23930#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23931_ACEOF
23932
23933
23934
23935# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23936# The cast to long int works around a bug in the HP C Compiler
23937# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23938# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23939# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023941$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023942if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023943 $as_echo_n "(cached) " >&6
23944else
cristy8b350f62009-11-15 23:12:43 +000023945 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 +000023946
cristy3ed852e2009-09-05 21:47:34 +000023947else
cristy8b350f62009-11-15 23:12:43 +000023948 if test "$ac_cv_type_unsigned_int" = yes; then
23949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023951as_fn_error 77 "cannot compute sizeof (unsigned int)
23952See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023953 else
23954 ac_cv_sizeof_unsigned_int=0
23955 fi
23956fi
cristy8b350f62009-11-15 23:12:43 +000023957
cristy3ed852e2009-09-05 21:47:34 +000023958fi
cristy8b350f62009-11-15 23:12:43 +000023959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023960$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23961
23962
23963
23964cat >>confdefs.h <<_ACEOF
23965#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23966_ACEOF
23967
23968
23969
23970# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23971# The cast to long int works around a bug in the HP C Compiler
23972# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23973# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23974# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023976$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023977if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023978 $as_echo_n "(cached) " >&6
23979else
cristy8b350f62009-11-15 23:12:43 +000023980 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 +000023981
cristy3ed852e2009-09-05 21:47:34 +000023982else
cristy8b350f62009-11-15 23:12:43 +000023983 if test "$ac_cv_type_signed_long" = yes; then
23984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023986as_fn_error 77 "cannot compute sizeof (signed long)
23987See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023988 else
23989 ac_cv_sizeof_signed_long=0
23990 fi
23991fi
cristy8b350f62009-11-15 23:12:43 +000023992
cristy3ed852e2009-09-05 21:47:34 +000023993fi
cristy8b350f62009-11-15 23:12:43 +000023994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23996
23997
23998
23999cat >>confdefs.h <<_ACEOF
24000#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24001_ACEOF
24002
24003
24004
24005# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24006# The cast to long int works around a bug in the HP C Compiler
24007# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24008# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24009# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024011$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024012if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024013 $as_echo_n "(cached) " >&6
24014else
cristy8b350f62009-11-15 23:12:43 +000024015 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 +000024016
cristy3ed852e2009-09-05 21:47:34 +000024017else
cristy8b350f62009-11-15 23:12:43 +000024018 if test "$ac_cv_type_unsigned_long" = yes; then
24019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024021as_fn_error 77 "cannot compute sizeof (unsigned long)
24022See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024023 else
24024 ac_cv_sizeof_unsigned_long=0
24025 fi
24026fi
cristy8b350f62009-11-15 23:12:43 +000024027
cristy3ed852e2009-09-05 21:47:34 +000024028fi
cristy8b350f62009-11-15 23:12:43 +000024029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024030$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24031
24032
24033
24034cat >>confdefs.h <<_ACEOF
24035#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24036_ACEOF
24037
24038
24039
24040# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24041# 'signed long long' is not supported then the value defined is zero.
24042# The cast to long int works around a bug in the HP C Compiler
24043# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24044# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24045# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024047$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024048if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024049 $as_echo_n "(cached) " >&6
24050else
cristy8b350f62009-11-15 23:12:43 +000024051 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 +000024052
cristy3ed852e2009-09-05 21:47:34 +000024053else
cristy8b350f62009-11-15 23:12:43 +000024054 if test "$ac_cv_type_signed_long_long" = yes; then
24055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024057as_fn_error 77 "cannot compute sizeof (signed long long)
24058See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024059 else
24060 ac_cv_sizeof_signed_long_long=0
24061 fi
24062fi
cristy8b350f62009-11-15 23:12:43 +000024063
cristy3ed852e2009-09-05 21:47:34 +000024064fi
cristy8b350f62009-11-15 23:12:43 +000024065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024066$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24067
24068
24069
24070cat >>confdefs.h <<_ACEOF
24071#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24072_ACEOF
24073
24074
24075
24076# Obtain size of a 'unsigned long long' and define as
24077# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24078# supported then the value defined is zero.
24079# The cast to long int works around a bug in the HP C Compiler
24080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24082# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024084$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024085if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 $as_echo_n "(cached) " >&6
24087else
cristy8b350f62009-11-15 23:12:43 +000024088 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 +000024089
cristy3ed852e2009-09-05 21:47:34 +000024090else
cristy8b350f62009-11-15 23:12:43 +000024091 if test "$ac_cv_type_unsigned_long_long" = yes; then
24092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024094as_fn_error 77 "cannot compute sizeof (unsigned long long)
24095See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024096 else
24097 ac_cv_sizeof_unsigned_long_long=0
24098 fi
24099fi
cristy8b350f62009-11-15 23:12:43 +000024100
cristy3ed852e2009-09-05 21:47:34 +000024101fi
cristy8b350f62009-11-15 23:12:43 +000024102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24104
24105
24106
24107cat >>confdefs.h <<_ACEOF
24108#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24109_ACEOF
24110
24111
24112
cristyfec31822013-05-23 12:32:12 +000024113# Obtain size of off_t and define as SIZEOF_OFF_T
24114# The cast to long int works around a bug in the HP C Compiler
24115# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24116# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24117# This bug is HP SR number 8606223364.
24118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24119$as_echo_n "checking size of off_t... " >&6; }
24120if ${ac_cv_sizeof_off_t+:} false; then :
24121 $as_echo_n "(cached) " >&6
24122else
24123 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24124
24125else
24126 if test "$ac_cv_type_off_t" = yes; then
24127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24129as_fn_error 77 "cannot compute sizeof (off_t)
24130See \`config.log' for more details" "$LINENO" 5; }
24131 else
24132 ac_cv_sizeof_off_t=0
24133 fi
24134fi
24135
24136fi
24137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24138$as_echo "$ac_cv_sizeof_off_t" >&6; }
24139
24140
24141
24142cat >>confdefs.h <<_ACEOF
24143#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24144_ACEOF
24145
24146
24147
24148# Obtain size of size_t and define as SIZEOF_SIZE_T
24149# The cast to long int works around a bug in the HP C Compiler
24150# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24151# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24152# This bug is HP SR number 8606223364.
24153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24154$as_echo_n "checking size of size_t... " >&6; }
24155if ${ac_cv_sizeof_size_t+:} false; then :
24156 $as_echo_n "(cached) " >&6
24157else
24158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24159
24160else
24161 if test "$ac_cv_type_size_t" = yes; then
24162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24164as_fn_error 77 "cannot compute sizeof (size_t)
24165See \`config.log' for more details" "$LINENO" 5; }
24166 else
24167 ac_cv_sizeof_size_t=0
24168 fi
24169fi
24170
24171fi
24172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24173$as_echo "$ac_cv_sizeof_size_t" >&6; }
24174
24175
24176
24177cat >>confdefs.h <<_ACEOF
24178#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24179_ACEOF
24180
24181
24182
24183# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24184# The cast to long int works around a bug in the HP C Compiler
24185# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24186# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24187# This bug is HP SR number 8606223364.
24188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24189$as_echo_n "checking size of ssize_t... " >&6; }
24190if ${ac_cv_sizeof_ssize_t+:} false; then :
24191 $as_echo_n "(cached) " >&6
24192else
24193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24194
24195else
24196 if test "$ac_cv_type_ssize_t" = yes; then
24197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24199as_fn_error 77 "cannot compute sizeof (ssize_t)
24200See \`config.log' for more details" "$LINENO" 5; }
24201 else
24202 ac_cv_sizeof_ssize_t=0
24203 fi
24204fi
24205
24206fi
24207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24208$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24209
24210
24211
24212cat >>confdefs.h <<_ACEOF
24213#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24214_ACEOF
24215
24216
24217
cristy3ed852e2009-09-05 21:47:34 +000024218# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24219# The cast to long int works around a bug in the HP C Compiler
24220# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24221# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24222# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024225if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 $as_echo_n "(cached) " >&6
24227else
cristy8b350f62009-11-15 23:12:43 +000024228 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 +000024229
cristy3ed852e2009-09-05 21:47:34 +000024230else
cristy8b350f62009-11-15 23:12:43 +000024231 if test "$ac_cv_type_unsigned_intp" = yes; then
24232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024234as_fn_error 77 "cannot compute sizeof (unsigned int*)
24235See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024236 else
24237 ac_cv_sizeof_unsigned_intp=0
24238 fi
24239fi
cristy8b350f62009-11-15 23:12:43 +000024240
cristy3ed852e2009-09-05 21:47:34 +000024241fi
cristy8b350f62009-11-15 23:12:43 +000024242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24244
24245
24246
24247cat >>confdefs.h <<_ACEOF
24248#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24249_ACEOF
24250
24251
24252
24253#
24254# Compute sized types for current CPU and compiler options.
24255#
24256
cristy8b350f62009-11-15 23:12:43 +000024257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024258$as_echo_n "checking for signed 8-bit type... " >&6; }
24259INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24261$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024262
24263
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24266UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24268$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024269
24270
cristy8b350f62009-11-15 23:12:43 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo_n "checking for signed 16-bit type... " >&6; }
24273INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24275$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024276
24277
cristy8b350f62009-11-15 23:12:43 +000024278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24280UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24282$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024283
24284
cristy8b350f62009-11-15 23:12:43 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024286$as_echo_n "checking for signed 32-bit type... " >&6; }
24287INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024288INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024289if test $ac_cv_sizeof_signed_int -eq 4; then
24290 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024291 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024292elif test $ac_cv_sizeof_signed_long -eq 4; then
24293 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024294 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024295fi
cristyad38abe2012-12-23 23:03:21 +000024296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24297$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024298
24299
cristy6d5e20f2011-04-25 13:48:54 +000024300
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24303UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024304UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024305if test $ac_cv_sizeof_unsigned_int -eq 4; then
24306 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024307 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024308elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24309 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024310 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024311fi
cristyad38abe2012-12-23 23:03:21 +000024312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24313$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024314
24315
cristy6d5e20f2011-04-25 13:48:54 +000024316
cristy8b350f62009-11-15 23:12:43 +000024317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024318$as_echo_n "checking for signed 64-bit type... " >&6; }
24319INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024320INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024321if test $ac_cv_sizeof_signed_long -eq 8; then
24322 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024323 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024324elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24325 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024326 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024327fi
cristy3a99dcf2011-12-17 01:29:40 +000024328case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024329 mingw* )
24330 INT64_F='"I64"'
24331 ;;
24332esac
cristyad38abe2012-12-23 23:03:21 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24334$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024335
24336
cristy6d5e20f2011-04-25 13:48:54 +000024337
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24340UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024341UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024342if test $ac_cv_sizeof_unsigned_long -eq 8; then
24343 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024344 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024345elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24346 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024347 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024348fi
cristy3a99dcf2011-12-17 01:29:40 +000024349case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024350 mingw* )
24351 UINT64_F='"I64"'
24352 ;;
24353esac
cristyad38abe2012-12-23 23:03:21 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24355$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024356
24357
cristy6d5e20f2011-04-25 13:48:54 +000024358
cristy8b350f62009-11-15 23:12:43 +000024359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024360$as_echo_n "checking for unsigned maximum type... " >&6; }
24361UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024362UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024363if test "$UINT64_T" != 'none'; then
24364 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024365 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024366elif test "$UINT32_T" != 'none'; then
24367 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024368 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024369fi
cristyad38abe2012-12-23 23:03:21 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24371$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024372
24373
cristy6d5e20f2011-04-25 13:48:54 +000024374
cristy8b350f62009-11-15 23:12:43 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking for pointer difference type... " >&6; }
24377UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024378UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024379if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24380 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024381 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024382elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24383 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024384 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristyad38abe2012-12-23 23:03:21 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24387$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024388
24389
cristy6d5e20f2011-04-25 13:48:54 +000024390
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024394/* end confdefs.h. */
24395
24396int
24397main ()
24398{
24399{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24400 ;
24401 return 0;
24402}
24403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024404if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24406$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024407else
cristyad38abe2012-12-23 23:03:21 +000024408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24409$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024411$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024413/* end confdefs.h. */
24414
24415int
24416main ()
24417{
24418{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24419 ;
24420 return 0;
24421}
24422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024423if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24425$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024426
cristy8b350f62009-11-15 23:12:43 +000024427$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024428
24429else
cristyad38abe2012-12-23 23:03:21 +000024430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24431$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024432
cristy8b350f62009-11-15 23:12:43 +000024433$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024434
24435fi
cristy3ed852e2009-09-05 21:47:34 +000024436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437fi
cristy3ed852e2009-09-05 21:47:34 +000024438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439
24440########
24441#
24442# Check for functions
24443#
24444########
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024447if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 $as_echo_n "(cached) " >&6
24449else
cristy8b350f62009-11-15 23:12:43 +000024450 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024451 ac_cv_func_closedir_void=yes
24452else
cristy8b350f62009-11-15 23:12:43 +000024453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454/* end confdefs.h. */
24455$ac_includes_default
24456#include <$ac_header_dirent>
24457#ifndef __cplusplus
24458int closedir ();
24459#endif
24460
24461int
24462main ()
24463{
24464return closedir (opendir (".")) != 0;
24465 ;
24466 return 0;
24467}
24468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024469if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024470 ac_cv_func_closedir_void=no
24471else
cristy8b350f62009-11-15 23:12:43 +000024472 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024473fi
cristy8b350f62009-11-15 23:12:43 +000024474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24475 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024476fi
24477
cristy3ed852e2009-09-05 21:47:34 +000024478fi
cristy8b350f62009-11-15 23:12:43 +000024479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo "$ac_cv_func_closedir_void" >&6; }
24481if test $ac_cv_func_closedir_void = yes; then
24482
cristy8b350f62009-11-15 23:12:43 +000024483$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024484
24485fi
24486
cristycd4c5312009-11-22 01:19:08 +000024487
24488
24489
24490 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024491do :
24492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024493ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24494"
cristy98dddb52010-11-04 00:30:15 +000024495if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024496 cat >>confdefs.h <<_ACEOF
24497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24498_ACEOF
24499
24500fi
24501
24502done
24503
cristycd4c5312009-11-22 01:19:08 +000024504
24505
24506
24507
24508
24509
24510
cristy3ed852e2009-09-05 21:47:34 +000024511for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024512do :
24513 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024514if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024515 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024516#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024517_ACEOF
24518
24519fi
24520done
24521
cristy8b350f62009-11-15 23:12:43 +000024522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024524if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024525 $as_echo_n "(cached) " >&6
24526else
cristy8b350f62009-11-15 23:12:43 +000024527 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024528 ac_cv_func_mmap_fixed_mapped=no
24529else
cristy8b350f62009-11-15 23:12:43 +000024530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024531/* end confdefs.h. */
24532$ac_includes_default
24533/* malloc might have been renamed as rpl_malloc. */
24534#undef malloc
24535
24536/* Thanks to Mike Haertel and Jim Avera for this test.
24537 Here is a matrix of mmap possibilities:
24538 mmap private not fixed
24539 mmap private fixed at somewhere currently unmapped
24540 mmap private fixed at somewhere already mapped
24541 mmap shared not fixed
24542 mmap shared fixed at somewhere currently unmapped
24543 mmap shared fixed at somewhere already mapped
24544 For private mappings, we should verify that changes cannot be read()
24545 back from the file, nor mmap's back from the file at a different
24546 address. (There have been systems where private was not correctly
24547 implemented like the infamous i386 svr4.0, and systems where the
24548 VM page cache was not coherent with the file system buffer cache
24549 like early versions of FreeBSD and possibly contemporary NetBSD.)
24550 For shared mappings, we should conversely verify that changes get
24551 propagated back to all the places they're supposed to be.
24552
24553 Grep wants private fixed already mapped.
24554 The main things grep needs to know about mmap are:
24555 * does it exist and is it safe to write into the mmap'd area
24556 * how to use it (BSD variants) */
24557
24558#include <fcntl.h>
24559#include <sys/mman.h>
24560
24561#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24562char *malloc ();
24563#endif
24564
24565/* This mess was copied from the GNU getpagesize.h. */
24566#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024567# ifdef _SC_PAGESIZE
24568# define getpagesize() sysconf(_SC_PAGESIZE)
24569# else /* no _SC_PAGESIZE */
24570# ifdef HAVE_SYS_PARAM_H
24571# include <sys/param.h>
24572# ifdef EXEC_PAGESIZE
24573# define getpagesize() EXEC_PAGESIZE
24574# else /* no EXEC_PAGESIZE */
24575# ifdef NBPG
24576# define getpagesize() NBPG * CLSIZE
24577# ifndef CLSIZE
24578# define CLSIZE 1
24579# endif /* no CLSIZE */
24580# else /* no NBPG */
24581# ifdef NBPC
24582# define getpagesize() NBPC
24583# else /* no NBPC */
24584# ifdef PAGESIZE
24585# define getpagesize() PAGESIZE
24586# endif /* PAGESIZE */
24587# endif /* no NBPC */
24588# endif /* no NBPG */
24589# endif /* no EXEC_PAGESIZE */
24590# else /* no HAVE_SYS_PARAM_H */
24591# define getpagesize() 8192 /* punt totally */
24592# endif /* no HAVE_SYS_PARAM_H */
24593# endif /* no _SC_PAGESIZE */
24594
24595#endif /* no HAVE_GETPAGESIZE */
24596
24597int
24598main ()
24599{
24600 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024601 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024602 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024603 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024604
24605 pagesize = getpagesize ();
24606
24607 /* First, make a file with some known garbage in it. */
24608 data = (char *) malloc (pagesize);
24609 if (!data)
24610 return 1;
24611 for (i = 0; i < pagesize; ++i)
24612 *(data + i) = rand ();
24613 umask (0);
24614 fd = creat ("conftest.mmap", 0600);
24615 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024616 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024617 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024618 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024619 close (fd);
24620
cristycd4c5312009-11-22 01:19:08 +000024621 /* Next, check that the tail of a page is zero-filled. File must have
24622 non-zero length, otherwise we risk SIGBUS for entire page. */
24623 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24624 if (fd2 < 0)
24625 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024626 cdata2 = "";
24627 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024628 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024629 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024630 if (data2 == MAP_FAILED)
24631 return 6;
24632 for (i = 0; i < pagesize; ++i)
24633 if (*(data2 + i))
24634 return 7;
24635 close (fd2);
24636 if (munmap (data2, pagesize))
24637 return 8;
24638
cristy3ed852e2009-09-05 21:47:34 +000024639 /* Next, try to mmap the file at a fixed address which already has
24640 something else allocated at it. If we can, also make sure that
24641 we see the same garbage. */
24642 fd = open ("conftest.mmap", O_RDWR);
24643 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024644 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024645 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24646 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024647 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024648 for (i = 0; i < pagesize; ++i)
24649 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024650 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024651
24652 /* Finally, make sure that changes to the mapped area do not
24653 percolate back to the file as seen by read(). (This is a bug on
24654 some variants of i386 svr4.0.) */
24655 for (i = 0; i < pagesize; ++i)
24656 *(data2 + i) = *(data2 + i) + 1;
24657 data3 = (char *) malloc (pagesize);
24658 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024659 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024660 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024661 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024662 for (i = 0; i < pagesize; ++i)
24663 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024664 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024665 close (fd);
24666 return 0;
24667}
24668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024669if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024670 ac_cv_func_mmap_fixed_mapped=yes
24671else
cristy8b350f62009-11-15 23:12:43 +000024672 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024673fi
cristy8b350f62009-11-15 23:12:43 +000024674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24675 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024676fi
24677
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristy8b350f62009-11-15 23:12:43 +000024679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024680$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24681if test $ac_cv_func_mmap_fixed_mapped = yes; then
24682
cristy8b350f62009-11-15 23:12:43 +000024683$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024684
24685fi
cristycd4c5312009-11-22 01:19:08 +000024686rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024687
cristy3ed852e2009-09-05 21:47:34 +000024688for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024689do :
24690 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024691if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024692 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024693#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024694_ACEOF
24695
24696fi
24697
24698done
24699
cristy3ed852e2009-09-05 21:47:34 +000024700for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024701do :
24702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24703ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024704if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 cat >>confdefs.h <<_ACEOF
24706#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24707_ACEOF
24708
24709fi
24710done
24711
24712if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024714$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024715if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024716 $as_echo_n "(cached) " >&6
24717else
cristy8b350f62009-11-15 23:12:43 +000024718 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024719 ac_cv_func_fork_works=cross
24720else
cristy8b350f62009-11-15 23:12:43 +000024721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024722/* end confdefs.h. */
24723$ac_includes_default
24724int
24725main ()
24726{
24727
24728 /* By Ruediger Kuhlmann. */
24729 return fork () < 0;
24730
24731 ;
24732 return 0;
24733}
24734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024735if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024736 ac_cv_func_fork_works=yes
24737else
cristy8b350f62009-11-15 23:12:43 +000024738 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024739fi
cristy8b350f62009-11-15 23:12:43 +000024740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24741 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024742fi
24743
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy8b350f62009-11-15 23:12:43 +000024745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024746$as_echo "$ac_cv_func_fork_works" >&6; }
24747
24748else
24749 ac_cv_func_fork_works=$ac_cv_func_fork
24750fi
24751if test "x$ac_cv_func_fork_works" = xcross; then
24752 case $host in
24753 *-*-amigaos* | *-*-msdosdjgpp*)
24754 # Override, as these systems have only a dummy fork() stub
24755 ac_cv_func_fork_works=no
24756 ;;
24757 *)
24758 ac_cv_func_fork_works=yes
24759 ;;
24760 esac
cristy8b350f62009-11-15 23:12:43 +000024761 { $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 +000024762$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24763fi
24764ac_cv_func_vfork_works=$ac_cv_func_vfork
24765if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024768if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 $as_echo_n "(cached) " >&6
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024772 ac_cv_func_vfork_works=cross
24773else
cristy8b350f62009-11-15 23:12:43 +000024774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024775/* end confdefs.h. */
24776/* Thanks to Paul Eggert for this test. */
24777$ac_includes_default
24778#include <sys/wait.h>
24779#ifdef HAVE_VFORK_H
24780# include <vfork.h>
24781#endif
24782/* On some sparc systems, changes by the child to local and incoming
24783 argument registers are propagated back to the parent. The compiler
24784 is told about this with #include <vfork.h>, but some compilers
24785 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24786 static variable whose address is put into a register that is
24787 clobbered by the vfork. */
24788static void
24789#ifdef __cplusplus
24790sparc_address_test (int arg)
24791# else
24792sparc_address_test (arg) int arg;
24793#endif
24794{
24795 static pid_t child;
24796 if (!child) {
24797 child = vfork ();
24798 if (child < 0) {
24799 perror ("vfork");
24800 _exit(2);
24801 }
24802 if (!child) {
24803 arg = getpid();
24804 write(-1, "", 0);
24805 _exit (arg);
24806 }
24807 }
24808}
24809
24810int
24811main ()
24812{
24813 pid_t parent = getpid ();
24814 pid_t child;
24815
24816 sparc_address_test (0);
24817
24818 child = vfork ();
24819
24820 if (child == 0) {
24821 /* Here is another test for sparc vfork register problems. This
24822 test uses lots of local variables, at least as many local
24823 variables as main has allocated so far including compiler
24824 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24825 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24826 reuse the register of parent for one of the local variables,
24827 since it will think that parent can't possibly be used any more
24828 in this routine. Assigning to the local variable will thus
24829 munge parent in the parent process. */
24830 pid_t
24831 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24832 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24833 /* Convince the compiler that p..p7 are live; otherwise, it might
24834 use the same hardware register for all 8 local variables. */
24835 if (p != p1 || p != p2 || p != p3 || p != p4
24836 || p != p5 || p != p6 || p != p7)
24837 _exit(1);
24838
24839 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24840 from child file descriptors. If the child closes a descriptor
24841 before it execs or exits, this munges the parent's descriptor
24842 as well. Test for this by closing stdout in the child. */
24843 _exit(close(fileno(stdout)) != 0);
24844 } else {
24845 int status;
24846 struct stat st;
24847
24848 while (wait(&status) != child)
24849 ;
24850 return (
24851 /* Was there some problem with vforking? */
24852 child < 0
24853
24854 /* Did the child fail? (This shouldn't happen.) */
24855 || status
24856
24857 /* Did the vfork/compiler bug occur? */
24858 || parent != getpid()
24859
24860 /* Did the file descriptor bug occur? */
24861 || fstat(fileno(stdout), &st) != 0
24862 );
24863 }
24864}
24865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024866if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 ac_cv_func_vfork_works=yes
24868else
cristy8b350f62009-11-15 23:12:43 +000024869 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024870fi
cristy8b350f62009-11-15 23:12:43 +000024871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24872 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024873fi
24874
cristy3ed852e2009-09-05 21:47:34 +000024875fi
cristy8b350f62009-11-15 23:12:43 +000024876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024877$as_echo "$ac_cv_func_vfork_works" >&6; }
24878
24879fi;
24880if test "x$ac_cv_func_fork_works" = xcross; then
24881 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024882 { $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 +000024883$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24884fi
24885
24886if test "x$ac_cv_func_vfork_works" = xyes; then
24887
cristy8b350f62009-11-15 23:12:43 +000024888$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024889
24890else
24891
cristy8b350f62009-11-15 23:12:43 +000024892$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024893
24894fi
24895if test "x$ac_cv_func_fork_works" = xyes; then
24896
cristy8b350f62009-11-15 23:12:43 +000024897$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024898
24899fi
24900
cristy8b350f62009-11-15 23:12:43 +000024901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024902$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024903if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024904 $as_echo_n "(cached) " >&6
24905else
cristy8b350f62009-11-15 23:12:43 +000024906 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024907 ac_cv_func_memcmp_working=no
24908else
cristy8b350f62009-11-15 23:12:43 +000024909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024910/* end confdefs.h. */
24911$ac_includes_default
24912int
24913main ()
24914{
24915
24916 /* Some versions of memcmp are not 8-bit clean. */
24917 char c0 = '\100', c1 = '\200', c2 = '\201';
24918 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24919 return 1;
24920
24921 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24922 or more and with at least one buffer not starting on a 4-byte boundary.
24923 William Lewis provided this test program. */
24924 {
24925 char foo[21];
24926 char bar[21];
24927 int i;
24928 for (i = 0; i < 4; i++)
24929 {
24930 char *a = foo + i;
24931 char *b = bar + i;
24932 strcpy (a, "--------01111111");
24933 strcpy (b, "--------10000000");
24934 if (memcmp (a, b, 16) >= 0)
24935 return 1;
24936 }
24937 return 0;
24938 }
24939
24940 ;
24941 return 0;
24942}
24943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024944if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 ac_cv_func_memcmp_working=yes
24946else
cristy8b350f62009-11-15 23:12:43 +000024947 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024948fi
cristy8b350f62009-11-15 23:12:43 +000024949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24950 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024951fi
24952
cristy3ed852e2009-09-05 21:47:34 +000024953fi
cristy8b350f62009-11-15 23:12:43 +000024954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024955$as_echo "$ac_cv_func_memcmp_working" >&6; }
24956test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24957 *" memcmp.$ac_objext "* ) ;;
24958 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24959 ;;
24960esac
24961
24962
cristy3ed852e2009-09-05 21:47:34 +000024963for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024964do :
24965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 cat >>confdefs.h <<_ACEOF
24969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24970_ACEOF
24971
24972fi
24973
24974done
24975
cristy8b350f62009-11-15 23:12:43 +000024976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024977$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024978if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024979 $as_echo_n "(cached) " >&6
24980else
24981 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24982 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24983 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024985/* end confdefs.h. */
24986$ac_includes_default
24987#ifdef HAVE_SYS_SELECT_H
24988# include <sys/select.h>
24989#endif
24990#ifdef HAVE_SYS_SOCKET_H
24991# include <sys/socket.h>
24992#endif
24993
24994int
24995main ()
24996{
24997extern int select ($ac_arg1,
24998 $ac_arg234, $ac_arg234, $ac_arg234,
24999 $ac_arg5);
25000 ;
25001 return 0;
25002}
25003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025004if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025006fi
cristy3ed852e2009-09-05 21:47:34 +000025007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25008 done
25009 done
25010done
25011# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025012: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025013
25014fi
cristy8b350f62009-11-15 23:12:43 +000025015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025016$as_echo "$ac_cv_func_select_args" >&6; }
25017ac_save_IFS=$IFS; IFS=','
25018set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25019IFS=$ac_save_IFS
25020shift
25021
25022cat >>confdefs.h <<_ACEOF
25023#define SELECT_TYPE_ARG1 $1
25024_ACEOF
25025
25026
25027cat >>confdefs.h <<_ACEOF
25028#define SELECT_TYPE_ARG234 ($2)
25029_ACEOF
25030
25031
25032cat >>confdefs.h <<_ACEOF
25033#define SELECT_TYPE_ARG5 ($3)
25034_ACEOF
25035
25036rm -f conftest*
25037
cristyda16f162011-02-19 23:52:17 +000025038if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025039 $as_echo_n "(cached) " >&6
25040else
25041 ac_cv_func_setvbuf_reversed=no
25042fi
25043
25044
cristy8b350f62009-11-15 23:12:43 +000025045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025046$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025047if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025048 $as_echo_n "(cached) " >&6
25049else
cristy8b350f62009-11-15 23:12:43 +000025050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025051/* end confdefs.h. */
25052#include <sys/types.h>
25053#include <signal.h>
25054
25055int
25056main ()
25057{
25058return *(signal (0, 0)) (0) == 1;
25059 ;
25060 return 0;
25061}
25062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025064 ac_cv_type_signal=int
25065else
cristy8b350f62009-11-15 23:12:43 +000025066 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025067fi
cristy3ed852e2009-09-05 21:47:34 +000025068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069fi
cristy8b350f62009-11-15 23:12:43 +000025070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo "$ac_cv_type_signal" >&6; }
25072
25073cat >>confdefs.h <<_ACEOF
25074#define RETSIGTYPE $ac_cv_type_signal
25075_ACEOF
25076
25077
cristy8b350f62009-11-15 23:12:43 +000025078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025079$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025080if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025081 $as_echo_n "(cached) " >&6
25082else
cristy8b350f62009-11-15 23:12:43 +000025083 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025084 ac_cv_func_strtod=no
25085else
cristy8b350f62009-11-15 23:12:43 +000025086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025087/* end confdefs.h. */
25088
25089$ac_includes_default
25090#ifndef strtod
25091double strtod ();
25092#endif
25093int
25094main()
25095{
25096 {
25097 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25098 char *string = " +69";
25099 char *term;
25100 double value;
25101 value = strtod (string, &term);
25102 if (value != 69 || term != (string + 4))
25103 return 1;
25104 }
25105
25106 {
25107 /* Under Solaris 2.4, strtod returns the wrong value for the
25108 terminating character under some conditions. */
25109 char *string = "NaN";
25110 char *term;
25111 strtod (string, &term);
25112 if (term != string && *(term - 1) == 0)
25113 return 1;
25114 }
25115 return 0;
25116}
25117
25118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025119if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025120 ac_cv_func_strtod=yes
25121else
cristy8b350f62009-11-15 23:12:43 +000025122 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025123fi
cristy8b350f62009-11-15 23:12:43 +000025124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25125 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025126fi
25127
cristy3ed852e2009-09-05 21:47:34 +000025128fi
cristy8b350f62009-11-15 23:12:43 +000025129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025130$as_echo "$ac_cv_func_strtod" >&6; }
25131if test $ac_cv_func_strtod = no; then
25132 case " $LIBOBJS " in
25133 *" strtod.$ac_objext "* ) ;;
25134 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25135 ;;
25136esac
25137
cristy8b350f62009-11-15 23:12:43 +000025138ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025139if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025140
cristy3ed852e2009-09-05 21:47:34 +000025141fi
25142
cristy3ed852e2009-09-05 21:47:34 +000025143if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025145$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025146if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025147 $as_echo_n "(cached) " >&6
25148else
25149 ac_check_lib_save_LIBS=$LIBS
25150LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025152/* end confdefs.h. */
25153
25154/* Override any GCC internal prototype to avoid an error.
25155 Use char because int might match the return type of a GCC
25156 builtin and then its argument prototype would still apply. */
25157#ifdef __cplusplus
25158extern "C"
25159#endif
25160char pow ();
25161int
25162main ()
25163{
25164return pow ();
25165 ;
25166 return 0;
25167}
25168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025170 ac_cv_lib_m_pow=yes
25171else
cristy8b350f62009-11-15 23:12:43 +000025172 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025173fi
cristy8b350f62009-11-15 23:12:43 +000025174rm -f core conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025176LIBS=$ac_check_lib_save_LIBS
25177fi
cristy8b350f62009-11-15 23:12:43 +000025178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025180if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 POW_LIB=-lm
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025184$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25185fi
25186
25187fi
25188
25189fi
25190
cristy7d4a1d62011-10-13 15:54:12 +000025191ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25192if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25193 ac_have_decl=1
25194else
25195 ac_have_decl=0
25196fi
25197
25198cat >>confdefs.h <<_ACEOF
25199#define HAVE_DECL_STRERROR_R $ac_have_decl
25200_ACEOF
25201
25202for ac_func in strerror_r
25203do :
25204 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25205if test "x$ac_cv_func_strerror_r" = xyes; then :
25206 cat >>confdefs.h <<_ACEOF
25207#define HAVE_STRERROR_R 1
25208_ACEOF
25209
25210fi
25211done
25212
25213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25214$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25215if ${ac_cv_func_strerror_r_char_p+:} false; then :
25216 $as_echo_n "(cached) " >&6
25217else
25218
25219 ac_cv_func_strerror_r_char_p=no
25220 if test $ac_cv_have_decl_strerror_r = yes; then
25221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25222/* end confdefs.h. */
25223$ac_includes_default
25224int
25225main ()
25226{
25227
25228 char buf[100];
25229 char x = *strerror_r (0, buf, sizeof buf);
25230 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025231 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025232
25233 ;
25234 return 0;
25235}
25236_ACEOF
25237if ac_fn_c_try_compile "$LINENO"; then :
25238 ac_cv_func_strerror_r_char_p=yes
25239fi
25240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25241 else
25242 # strerror_r is not declared. Choose between
25243 # systems that have relatively inaccessible declarations for the
25244 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25245 # former has a strerror_r that returns char*, while the latter
25246 # has a strerror_r that returns `int'.
25247 # This test should segfault on the DEC system.
25248 if test "$cross_compiling" = yes; then :
25249 :
25250else
25251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25252/* end confdefs.h. */
25253$ac_includes_default
25254 extern char *strerror_r ();
25255int
25256main ()
25257{
25258char buf[100];
25259 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025260 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025261 ;
25262 return 0;
25263}
25264_ACEOF
25265if ac_fn_c_try_run "$LINENO"; then :
25266 ac_cv_func_strerror_r_char_p=yes
25267fi
25268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25269 conftest.$ac_objext conftest.beam conftest.$ac_ext
25270fi
25271
25272 fi
25273
25274fi
25275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25276$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25277if test $ac_cv_func_strerror_r_char_p = yes; then
25278
25279$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25280
25281fi
25282
cristy3ed852e2009-09-05 21:47:34 +000025283for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025284do :
25285 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025286if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025288#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025289_ACEOF
25290
cristy8b350f62009-11-15 23:12:43 +000025291ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025292if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025293
cristy8b350f62009-11-15 23:12:43 +000025294$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025295
25296fi
25297
25298fi
25299done
25300
25301
25302
cristy161b9262010-03-20 19:34:32 +000025303#
25304# Find math library
25305#
25306MATH_LIBS=''
25307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25308$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025309if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025310 $as_echo_n "(cached) " >&6
25311else
25312 ac_check_lib_save_LIBS=$LIBS
25313LIBS="-lm $LIBS"
25314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315/* end confdefs.h. */
25316
25317/* Override any GCC internal prototype to avoid an error.
25318 Use char because int might match the return type of a GCC
25319 builtin and then its argument prototype would still apply. */
25320#ifdef __cplusplus
25321extern "C"
25322#endif
25323char sqrt ();
25324int
25325main ()
25326{
25327return sqrt ();
25328 ;
25329 return 0;
25330}
25331_ACEOF
25332if ac_fn_c_try_link "$LINENO"; then :
25333 ac_cv_lib_m_sqrt=yes
25334else
25335 ac_cv_lib_m_sqrt=no
25336fi
25337rm -f core conftest.err conftest.$ac_objext \
25338 conftest$ac_exeext conftest.$ac_ext
25339LIBS=$ac_check_lib_save_LIBS
25340fi
25341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25342$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025343if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025344 MATH_LIBS="-lm"
25345fi
25346
25347LIBS="$MATH_LIBS $LIBS"
25348
25349
cristy85572162013-01-04 19:19:32 +000025350#
25351# Find socket library
25352#
cristy8a5d7f42013-01-06 15:24:33 +000025353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25354$as_echo_n "checking for library containing gethostbyname... " >&6; }
25355if ${ac_cv_search_gethostbyname+:} false; then :
25356 $as_echo_n "(cached) " >&6
25357else
25358 ac_func_search_save_LIBS=$LIBS
25359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25360/* end confdefs.h. */
25361
25362/* Override any GCC internal prototype to avoid an error.
25363 Use char because int might match the return type of a GCC
25364 builtin and then its argument prototype would still apply. */
25365#ifdef __cplusplus
25366extern "C"
25367#endif
25368char gethostbyname ();
25369int
25370main ()
25371{
25372return gethostbyname ();
25373 ;
25374 return 0;
25375}
25376_ACEOF
25377for ac_lib in '' resolv nsl; do
25378 if test -z "$ac_lib"; then
25379 ac_res="none required"
25380 else
25381 ac_res=-l$ac_lib
25382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25383 fi
25384 if ac_fn_c_try_link "$LINENO"; then :
25385 ac_cv_search_gethostbyname=$ac_res
25386fi
25387rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext
25389 if ${ac_cv_search_gethostbyname+:} false; then :
25390 break
25391fi
25392done
25393if ${ac_cv_search_gethostbyname+:} false; then :
25394
25395else
25396 ac_cv_search_gethostbyname=no
25397fi
25398rm conftest.$ac_ext
25399LIBS=$ac_func_search_save_LIBS
25400fi
25401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25402$as_echo "$ac_cv_search_gethostbyname" >&6; }
25403ac_res=$ac_cv_search_gethostbyname
25404if test "$ac_res" != no; then :
25405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25406
25407fi
25408
cristy85572162013-01-04 19:19:32 +000025409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25410$as_echo_n "checking for library containing socket... " >&6; }
25411if ${ac_cv_search_socket+:} false; then :
25412 $as_echo_n "(cached) " >&6
25413else
25414 ac_func_search_save_LIBS=$LIBS
25415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416/* end confdefs.h. */
25417
25418/* Override any GCC internal prototype to avoid an error.
25419 Use char because int might match the return type of a GCC
25420 builtin and then its argument prototype would still apply. */
25421#ifdef __cplusplus
25422extern "C"
25423#endif
25424char socket ();
25425int
25426main ()
25427{
25428return socket ();
25429 ;
25430 return 0;
25431}
25432_ACEOF
25433for ac_lib in '' socket; do
25434 if test -z "$ac_lib"; then
25435 ac_res="none required"
25436 else
25437 ac_res=-l$ac_lib
25438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25439 fi
25440 if ac_fn_c_try_link "$LINENO"; then :
25441 ac_cv_search_socket=$ac_res
25442fi
25443rm -f core conftest.err conftest.$ac_objext \
25444 conftest$ac_exeext
25445 if ${ac_cv_search_socket+:} false; then :
25446 break
25447fi
25448done
25449if ${ac_cv_search_socket+:} false; then :
25450
25451else
25452 ac_cv_search_socket=no
25453fi
25454rm conftest.$ac_ext
25455LIBS=$ac_func_search_save_LIBS
25456fi
25457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25458$as_echo "$ac_cv_search_socket" >&6; }
25459ac_res=$ac_cv_search_socket
25460if test "$ac_res" != no; then :
25461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25462
cristy85572162013-01-04 19:19:32 +000025463
cristy8a5d7f42013-01-06 15:24:33 +000025464$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025465
cristy03f187e2013-01-24 00:22:19 +000025466 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025467
25468fi
25469
25470
25471for 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 +000025472do :
25473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025475if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025476 cat >>confdefs.h <<_ACEOF
25477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25478_ACEOF
25479
25480fi
25481done
25482
25483
cristye43a45e2009-09-28 14:49:00 +000025484#
25485# Check for clock_gettime().
25486#
cristy8b350f62009-11-15 23:12:43 +000025487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025488$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025489if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025490 $as_echo_n "(cached) " >&6
25491else
25492 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025494/* end confdefs.h. */
25495
25496/* Override any GCC internal prototype to avoid an error.
25497 Use char because int might match the return type of a GCC
25498 builtin and then its argument prototype would still apply. */
25499#ifdef __cplusplus
25500extern "C"
25501#endif
25502char clock_gettime ();
25503int
25504main ()
25505{
25506return clock_gettime ();
25507 ;
25508 return 0;
25509}
25510_ACEOF
25511for ac_lib in '' rt; do
25512 if test -z "$ac_lib"; then
25513 ac_res="none required"
25514 else
25515 ac_res=-l$ac_lib
25516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25517 fi
cristy8b350f62009-11-15 23:12:43 +000025518 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025519 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025520fi
cristy8b350f62009-11-15 23:12:43 +000025521rm -f core conftest.err conftest.$ac_objext \
25522 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025523 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025524 break
25525fi
25526done
cristyda16f162011-02-19 23:52:17 +000025527if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025528
cristye43a45e2009-09-28 14:49:00 +000025529else
25530 ac_cv_search_clock_gettime=no
25531fi
25532rm conftest.$ac_ext
25533LIBS=$ac_func_search_save_LIBS
25534fi
cristy8b350f62009-11-15 23:12:43 +000025535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025536$as_echo "$ac_cv_search_clock_gettime" >&6; }
25537ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025538if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25540
25541
cristy8b350f62009-11-15 23:12:43 +000025542$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025543
cristy8b350f62009-11-15 23:12:43 +000025544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025545$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025547/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025548
25549 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025550int
25551main ()
25552{
25553clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025554 ;
25555 return 0;
25556}
25557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025558if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025559
cristyad38abe2012-12-23 23:03:21 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25561$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025562
cristy8b350f62009-11-15 23:12:43 +000025563$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025564
25565
25566else
cristyad38abe2012-12-23 23:03:21 +000025567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25568$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025569
25570fi
cristye43a45e2009-09-28 14:49:00 +000025571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25572
25573else
25574
cristy8b350f62009-11-15 23:12:43 +000025575 for ac_func in gettimeofday ftime
25576do :
25577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25578ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025579if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025580 cat >>confdefs.h <<_ACEOF
25581#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25582_ACEOF
25583 break
25584fi
25585done
25586
25587
25588
25589fi
25590
25591
cristy3ed852e2009-09-05 21:47:34 +000025592########
25593#
25594# Check for function prototypes
25595#
25596########
25597
cristy8b350f62009-11-15 23:12:43 +000025598ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025599#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025600"
cristyda16f162011-02-19 23:52:17 +000025601if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025602 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025603else
cristy8b350f62009-11-15 23:12:43 +000025604 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025605fi
25606
cristy3ed852e2009-09-05 21:47:34 +000025607cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025608#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025610ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025611#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025612"
cristyda16f162011-02-19 23:52:17 +000025613if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025614 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025615else
cristy8b350f62009-11-15 23:12:43 +000025616 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025617fi
25618
cristy3ed852e2009-09-05 21:47:34 +000025619cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025620#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025621_ACEOF
25622
25623
cristy8b350f62009-11-15 23:12:43 +000025624ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025625#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025626"
cristyda16f162011-02-19 23:52:17 +000025627if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025628 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025629else
cristy8b350f62009-11-15 23:12:43 +000025630 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025631fi
25632
cristy3ed852e2009-09-05 21:47:34 +000025633cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025634#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025635_ACEOF
25636
25637
cristy8b350f62009-11-15 23:12:43 +000025638ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025639#include <stdio.h>
25640#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025641"
cristyda16f162011-02-19 23:52:17 +000025642if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025643 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025644else
cristy8b350f62009-11-15 23:12:43 +000025645 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025646fi
25647
cristy3ed852e2009-09-05 21:47:34 +000025648cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025649#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025650_ACEOF
25651
25652
cristy3ed852e2009-09-05 21:47:34 +000025653########
25654#
25655# C++ Support Tests (For Magick++)
25656#
25657########
25658have_magick_plus_plus='no'
25659if test "$with_magick_plus_plus" = 'yes'; then
25660 OLIBS="$LIBS"
25661 LIBS=''
25662 ac_ext=cpp
25663ac_cpp='$CXXCPP $CPPFLAGS'
25664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25667
25668
25669 # Full set of headers used...
25670 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25671 # functional iomanip iosfwd iostream iterator list string strstream utility
25672 ac_ext=cpp
25673ac_cpp='$CXXCPP $CPPFLAGS'
25674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25677
25678 ac_ext=cpp
25679ac_cpp='$CXXCPP $CPPFLAGS'
25680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25683if test -z "$CXX"; then
25684 if test -n "$CCC"; then
25685 CXX=$CCC
25686 else
25687 if test -n "$ac_tool_prefix"; then
25688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25689 do
25690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025694if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025695 $as_echo_n "(cached) " >&6
25696else
25697 if test -n "$CXX"; then
25698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25699else
25700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25701for as_dir in $PATH
25702do
25703 IFS=$as_save_IFS
25704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025709 break 2
25710 fi
25711done
cristy8b350f62009-11-15 23:12:43 +000025712 done
cristy3ed852e2009-09-05 21:47:34 +000025713IFS=$as_save_IFS
25714
25715fi
25716fi
25717CXX=$ac_cv_prog_CXX
25718if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025720$as_echo "$CXX" >&6; }
25721else
cristy8b350f62009-11-15 23:12:43 +000025722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo "no" >&6; }
25724fi
25725
25726
25727 test -n "$CXX" && break
25728 done
25729fi
25730if test -z "$CXX"; then
25731 ac_ct_CXX=$CXX
25732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25733do
25734 # Extract the first word of "$ac_prog", so it can be a program name with args.
25735set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025738if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025739 $as_echo_n "(cached) " >&6
25740else
25741 if test -n "$ac_ct_CXX"; then
25742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25743else
25744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25745for as_dir in $PATH
25746do
25747 IFS=$as_save_IFS
25748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025751 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753 break 2
25754 fi
25755done
cristy8b350f62009-11-15 23:12:43 +000025756 done
cristy3ed852e2009-09-05 21:47:34 +000025757IFS=$as_save_IFS
25758
25759fi
25760fi
25761ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25762if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025764$as_echo "$ac_ct_CXX" >&6; }
25765else
cristy8b350f62009-11-15 23:12:43 +000025766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025767$as_echo "no" >&6; }
25768fi
25769
25770
25771 test -n "$ac_ct_CXX" && break
25772done
25773
25774 if test "x$ac_ct_CXX" = x; then
25775 CXX="g++"
25776 else
25777 case $cross_compiling:$ac_tool_warned in
25778yes:)
cristy8b350f62009-11-15 23:12:43 +000025779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25781ac_tool_warned=yes ;;
25782esac
25783 CXX=$ac_ct_CXX
25784 fi
25785fi
25786
25787 fi
25788fi
25789# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025790$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025791set X $ac_compile
25792ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025793for ac_option in --version -v -V -qversion; do
25794 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025795case "(($ac_try" in
25796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25797 *) ac_try_echo=$ac_try;;
25798esac
cristy8b350f62009-11-15 23:12:43 +000025799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25800$as_echo "$ac_try_echo"; } >&5
25801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025802 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025803 if test -s conftest.err; then
25804 sed '10a\
25805... rest of stderr output deleted ...
25806 10q' conftest.err >conftest.er1
25807 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025808 fi
cristycd4c5312009-11-22 01:19:08 +000025809 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25811 test $ac_status = 0; }
25812done
cristy3ed852e2009-09-05 21:47:34 +000025813
cristy8b350f62009-11-15 23:12:43 +000025814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025815$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025816if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025817 $as_echo_n "(cached) " >&6
25818else
cristy8b350f62009-11-15 23:12:43 +000025819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025820/* end confdefs.h. */
25821
25822int
25823main ()
25824{
25825#ifndef __GNUC__
25826 choke me
25827#endif
25828
25829 ;
25830 return 0;
25831}
25832_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025833if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025834 ac_compiler_gnu=yes
25835else
cristy8b350f62009-11-15 23:12:43 +000025836 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025837fi
cristy3ed852e2009-09-05 21:47:34 +000025838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25840
25841fi
cristy8b350f62009-11-15 23:12:43 +000025842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025843$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25844if test $ac_compiler_gnu = yes; then
25845 GXX=yes
25846else
25847 GXX=
25848fi
25849ac_test_CXXFLAGS=${CXXFLAGS+set}
25850ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025853if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 $as_echo_n "(cached) " >&6
25855else
25856 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25857 ac_cxx_werror_flag=yes
25858 ac_cv_prog_cxx_g=no
25859 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025861/* end confdefs.h. */
25862
25863int
25864main ()
25865{
25866
25867 ;
25868 return 0;
25869}
25870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025871if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 ac_cv_prog_cxx_g=yes
25873else
cristy8b350f62009-11-15 23:12:43 +000025874 CXXFLAGS=""
25875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025876/* end confdefs.h. */
25877
25878int
25879main ()
25880{
25881
25882 ;
25883 return 0;
25884}
25885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025886if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025887
cristy8b350f62009-11-15 23:12:43 +000025888else
25889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025890 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025892/* end confdefs.h. */
25893
25894int
25895main ()
25896{
25897
25898 ;
25899 return 0;
25900}
25901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025902if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025903 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025904fi
cristy3ed852e2009-09-05 21:47:34 +000025905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25906fi
cristy3ed852e2009-09-05 21:47:34 +000025907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25908fi
cristy3ed852e2009-09-05 21:47:34 +000025909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25911fi
cristy8b350f62009-11-15 23:12:43 +000025912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo "$ac_cv_prog_cxx_g" >&6; }
25914if test "$ac_test_CXXFLAGS" = set; then
25915 CXXFLAGS=$ac_save_CXXFLAGS
25916elif test $ac_cv_prog_cxx_g = yes; then
25917 if test "$GXX" = yes; then
25918 CXXFLAGS="-g -O2"
25919 else
25920 CXXFLAGS="-g"
25921 fi
25922else
25923 if test "$GXX" = yes; then
25924 CXXFLAGS="-O2"
25925 else
25926 CXXFLAGS=
25927 fi
25928fi
25929ac_ext=cpp
25930ac_cpp='$CXXCPP $CPPFLAGS'
25931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25934
cristy73bd4a52010-10-05 11:24:23 +000025935depcc="$CXX" am_compiler_list=
25936
25937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25938$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025939if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025940 $as_echo_n "(cached) " >&6
25941else
25942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25943 # We make a subdir and do the tests there. Otherwise we can end up
25944 # making bogus files that we don't know about and never remove. For
25945 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025946 # making a dummy file named 'D' -- because '-MD' means "put the output
25947 # in D".
cristy7247bba2012-02-05 16:37:27 +000025948 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025949 mkdir conftest.dir
25950 # Copy depcomp to subdir because otherwise we won't find it if we're
25951 # using a relative directory.
25952 cp "$am_depcomp" conftest.dir
25953 cd conftest.dir
25954 # We will build objects and dependencies in a subdirectory because
25955 # it helps to detect inapplicable dependency modes. For instance
25956 # both Tru64's cc and ICC support -MD to output dependencies as a
25957 # side effect of compilation, but ICC will put the dependencies in
25958 # the current directory while Tru64 will put them in the object
25959 # directory.
25960 mkdir sub
25961
25962 am_cv_CXX_dependencies_compiler_type=none
25963 if test "$am_compiler_list" = ""; then
25964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25965 fi
25966 am__universal=false
25967 case " $depcc " in #(
25968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25969 esac
25970
25971 for depmode in $am_compiler_list; do
25972 # Setup a source with many dependencies, because some compilers
25973 # like to wrap large dependency lists on column 80 (with \), and
25974 # we should not choose a depcomp mode which is confused by this.
25975 #
25976 # We need to recreate these files for each test, as the compiler may
25977 # overwrite some of them when testing with obscure command lines.
25978 # This happens at least with the AIX C compiler.
25979 : > sub/conftest.c
25980 for i in 1 2 3 4 5 6; do
25981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25983 # Solaris 10 /bin/sh.
25984 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025985 done
25986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25987
cristyc0890a62012-07-19 00:18:20 +000025988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025989 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025990 # handle '-M -o', and we need to detect this. Also, some Intel
25991 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025992 am__obj=sub/conftest.${OBJEXT-o}
25993 am__minus_obj="-o $am__obj"
25994 case $depmode in
25995 gcc)
25996 # This depmode causes a compiler race in universal mode.
25997 test "$am__universal" = false || continue
25998 ;;
25999 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026000 # After this tag, mechanisms are not by side-effect, so they'll
26001 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026002 if test "x$enable_dependency_tracking" = xyes; then
26003 continue
26004 else
26005 break
26006 fi
26007 ;;
cristy7247bba2012-02-05 16:37:27 +000026008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026009 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026010 # not run yet. These depmodes are late enough in the game, and
26011 # so weak that their functioning should not be impacted.
26012 am__obj=conftest.${OBJEXT-o}
26013 am__minus_obj=
26014 ;;
26015 none) break ;;
26016 esac
26017 if depmode=$depmode \
26018 source=sub/conftest.c object=$am__obj \
26019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26021 >/dev/null 2>conftest.err &&
26022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26026 # icc doesn't choke on unknown options, it will just issue warnings
26027 # or remarks (even with -Werror). So we grep stderr for any message
26028 # that says an option was ignored or not supported.
26029 # When given -MP, icc 7.0 and 7.1 complain thusly:
26030 # icc: Command line warning: ignoring option '-M'; no argument required
26031 # The diagnosis changed in icc 8.0:
26032 # icc: Command line remark: option '-MP' not supported
26033 if (grep 'ignoring option' conftest.err ||
26034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26035 am_cv_CXX_dependencies_compiler_type=$depmode
26036 break
26037 fi
26038 fi
26039 done
26040
26041 cd ..
26042 rm -rf conftest.dir
26043else
26044 am_cv_CXX_dependencies_compiler_type=none
26045fi
26046
26047fi
26048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26049$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26050CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26051
26052 if
26053 test "x$enable_dependency_tracking" != xno \
26054 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26055 am__fastdepCXX_TRUE=
26056 am__fastdepCXX_FALSE='#'
26057else
26058 am__fastdepCXX_TRUE='#'
26059 am__fastdepCXX_FALSE=
26060fi
26061
26062
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26064$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026065if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026066 $as_echo_n "(cached) " >&6
26067else
26068
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076/* end confdefs.h. */
26077
26078int f(int x){return 1;}
26079int f(char x){return 1;}
26080int f(bool x){return 1;}
26081
26082int
26083main ()
26084{
26085bool b = true; return f(b);
26086 ;
26087 return 0;
26088}
26089_ACEOF
26090if ac_fn_cxx_try_compile "$LINENO"; then :
26091 ax_cv_cxx_bool=yes
26092else
26093 ax_cv_cxx_bool=no
26094fi
26095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096 ac_ext=cpp
26097ac_cpp='$CXXCPP $CPPFLAGS'
26098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26101
26102
26103fi
26104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26105$as_echo "$ax_cv_cxx_bool" >&6; }
26106if test "$ax_cv_cxx_bool" = yes; then
26107
26108$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26109
26110fi
26111
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26113$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026114if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026115 $as_echo_n "(cached) " >&6
26116else
cristy17491be2014-06-24 01:10:53 +000026117 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026118ac_cpp='$CXXCPP $CPPFLAGS'
26119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26122
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124/* end confdefs.h. */
26125namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026126 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026127_ACEOF
26128if ac_fn_cxx_try_compile "$LINENO"; then :
26129 ax_cv_cxx_namespaces=yes
26130else
26131 ax_cv_cxx_namespaces=no
26132fi
26133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26134 ac_ext=cpp
26135ac_cpp='$CXXCPP $CPPFLAGS'
26136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26139
26140
26141fi
26142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26143$as_echo "$ax_cv_cxx_namespaces" >&6; }
26144if test "$ax_cv_cxx_namespaces" = yes; then
26145
26146$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26147
26148fi
26149
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26152$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026153if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026154 $as_echo_n "(cached) " >&6
26155else
26156
26157 ac_ext=cpp
26158ac_cpp='$CXXCPP $CPPFLAGS'
26159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26162
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164/* end confdefs.h. */
26165#include <iostream>
26166 std::istream& is = std::cin;
26167int
26168main ()
26169{
26170
26171 ;
26172 return 0;
26173}
26174_ACEOF
26175if ac_fn_cxx_try_compile "$LINENO"; then :
26176 ax_cv_cxx_have_std_namespace=yes
26177else
26178 ax_cv_cxx_have_std_namespace=no
26179fi
26180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 ac_ext=cpp
26182ac_cpp='$CXXCPP $CPPFLAGS'
26183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26186
26187
26188fi
26189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26190$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26191 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26192
26193$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26194
26195 fi
26196
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26198$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026199if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026200 $as_echo_n "(cached) " >&6
26201else
26202
26203
26204 ac_ext=cpp
26205ac_cpp='$CXXCPP $CPPFLAGS'
26206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26209
26210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211/* end confdefs.h. */
26212#include <iostream>
26213#include <map>
26214#include <iomanip>
26215#include <cmath>
26216#ifdef HAVE_NAMESPACES
26217using namespace std;
26218#endif
26219int
26220main ()
26221{
26222return 0;
26223 ;
26224 return 0;
26225}
26226_ACEOF
26227if ac_fn_cxx_try_compile "$LINENO"; then :
26228 ac_cv_cxx_have_std_libs=yes
26229else
26230 ac_cv_cxx_have_std_libs=no
26231fi
26232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 ac_ext=cpp
26234ac_cpp='$CXXCPP $CPPFLAGS'
26235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26238
26239
26240fi
26241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26242$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26243if test "$ac_cv_cxx_have_std_libs" = yes; then
26244
26245$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26246
26247fi
26248
cristy3ed852e2009-09-05 21:47:34 +000026249
26250 OPENMP_CXXFLAGS=
26251 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026252if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 enableval=$enable_openmp;
26254fi
26255
26256 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26258$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026259if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026260 $as_echo_n "(cached) " >&6
26261else
cristy8b350f62009-11-15 23:12:43 +000026262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26263/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026264
26265#ifndef _OPENMP
26266 choke me
26267#endif
26268#include <omp.h>
26269int main () { return omp_get_num_threads (); }
26270
26271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026272if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026273 ac_cv_prog_cxx_openmp='none needed'
26274else
cristy8b350f62009-11-15 23:12:43 +000026275 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026276 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26277 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026278 ac_save_CXXFLAGS=$CXXFLAGS
26279 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26281/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026282
26283#ifndef _OPENMP
26284 choke me
26285#endif
26286#include <omp.h>
26287int main () { return omp_get_num_threads (); }
26288
26289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026290if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026291 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026292fi
cristy8b350f62009-11-15 23:12:43 +000026293rm -f core conftest.err conftest.$ac_objext \
26294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295 CXXFLAGS=$ac_save_CXXFLAGS
26296 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26297 break
26298 fi
26299 done
26300fi
cristy8b350f62009-11-15 23:12:43 +000026301rm -f core conftest.err conftest.$ac_objext \
26302 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026303fi
cristy8b350f62009-11-15 23:12:43 +000026304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026305$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26306 case $ac_cv_prog_cxx_openmp in #(
26307 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026308 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026309 *)
cristy8b350f62009-11-15 23:12:43 +000026310 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026311 esac
26312 fi
26313
26314
26315 ac_ext=c
26316ac_cpp='$CPP $CPPFLAGS'
26317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26319ac_compiler_gnu=$ac_cv_c_compiler_gnu
26320
26321
cristy8b350f62009-11-15 23:12:43 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26324 if \
cristy964cb7f2010-04-25 23:18:00 +000026325 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026326 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026327 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026328 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026329 have_magick_plus_plus='yes'
26330 else
26331 have_magick_plus_plus='no (failed tests)'
26332 fi
cristyad38abe2012-12-23 23:03:21 +000026333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26334$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026335 LIBS="$OLIBS"
26336fi
cristy73bd4a52010-10-05 11:24:23 +000026337 if test "$have_magick_plus_plus" = 'yes'; then
26338 WITH_MAGICK_PLUS_PLUS_TRUE=
26339 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26340else
26341 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26342 WITH_MAGICK_PLUS_PLUS_FALSE=
26343fi
26344
cristy3ed852e2009-09-05 21:47:34 +000026345
26346# Only check for delegate libraries in subdirectories if requested.
26347if test "$enable_delegate_build" != 'no'; then
26348 # Check for delegate sub-directories and add -I & -L options as required.
26349 # This presumes that delegates are installed as detailed in the ImageMagick
26350 # README. If delegates are installed in a standard location where the
26351 # compiler will automatically find them then these options should not be
26352 # required.
26353
26354 #
26355 # Most delegates have includes in the same directory as the library, but not all...
26356 #
26357 # Includes
cristy31269aa2014-04-06 13:07:35 +000026358 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 +000026359 if test -d "$builddir/$dir"; then
26360 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26361 else
26362 if test -d "$srcdirfull/$dir"; then
26363 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26364 fi
26365 fi
26366 done
26367
26368 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026369 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 +000026370 if test -d "$builddir/$dir/.libs"; then
26371 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26372 else
26373 if test -d "$srcdirfull/$dir/.libs"; then
26374 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26375 fi
26376 fi
26377 if test -d "$builddir/$dir"; then
26378 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26379 else
26380 if test -d "$srcdirfull/$dir"; then
26381 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26382 fi
26383 fi
26384 done
26385fi
26386
26387# Assume that delegate headers reside under same directory as ImageMagick
26388# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026389MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026390
26391#
26392# Find the X11 RGB database
26393#
cristy8b350f62009-11-15 23:12:43 +000026394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026396if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 $as_echo_n "(cached) " >&6
26398else
26399 # Look for the header file in a standard set of common directories.
26400# Check X11 before X11Rn because it is often a symlink to the current release.
26401 for ac_dir in \
26402 /lib/usr/lib/X11 \
26403 /usr/X11/lib \
26404 /usr/X11R4/lib \
26405 /usr/X11R5/lib \
26406 /usr/X11R6/lib \
26407 /usr/X11R7/lib \
26408 /usr/X386/lib \
26409 /usr/XFree86/lib/X11 \
26410 /usr/athena/lib \
26411 /usr/lib \
26412 /usr/lib/X11 \
26413 /usr/lib/X11R4 \
26414 /usr/lib/X11R5 \
26415 /usr/lib/X11R6 \
26416 /usr/lib/X11R7 \
26417 /usr/local/X11/lib \
26418 /usr/local/X11R4/lib \
26419 /usr/local/X11R5/lib \
26420 /usr/local/X11R6/lib \
26421 /usr/local/lib \
26422 /usr/local/lib/X11 \
26423 /usr/local/lib/X11R4 \
26424 /usr/local/lib/X11R5 \
26425 /usr/local/lib/X11R6 \
26426 /usr/local/lib/X11R7 \
26427 /usr/local/x11r5/lib \
26428 /usr/lpp/Xamples/lib \
26429 /usr/openwin/lib \
26430 /usr/openwin/share/lib \
26431 /usr/unsupported/lib \
26432 /usr/x386/lib \
26433 ; do
26434 if test -f "$ac_dir/X11/rgb.txt"; then
26435 im_cv_x_configure="$ac_dir/X11/"
26436 break
26437 elif test -f "$ac_dir/rgb.txt"; then
26438 im_cv_x_configure="$ac_dir/"
26439 break
26440 fi
26441
26442 done
26443fi
cristy8b350f62009-11-15 23:12:43 +000026444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo "$im_cv_x_configure" >&6; }
26446X11_CONFIGURE_PATH="$im_cv_x_configure"
26447case "${build_os}" in
26448 mingw* )
26449 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26450 ;;
26451esac
26452
26453cat >>confdefs.h <<_ACEOF
26454#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26455_ACEOF
26456
26457
26458#
26459# Find OpenMP library
26460#
26461GOMP_LIBS=''
26462if test "$enable_openmp" != 'no'; then
26463 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026464 # Open64 (passes for GCC but uses different OpenMP implementation)
26465 if test "x$GOMP_LIBS" = x ; then
26466 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26468$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26469if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26470 $as_echo_n "(cached) " >&6
26471else
26472 ac_check_lib_save_LIBS=$LIBS
26473LIBS="-lopenmp $LIBS"
26474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26475/* end confdefs.h. */
26476
26477/* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483char omp_get_num_procs ();
26484int
26485main ()
26486{
26487return omp_get_num_procs ();
26488 ;
26489 return 0;
26490}
26491_ACEOF
26492if ac_fn_c_try_link "$LINENO"; then :
26493 ac_cv_lib_openmp_omp_get_num_procs=yes
26494else
26495 ac_cv_lib_openmp_omp_get_num_procs=no
26496fi
26497rm -f core conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
26499LIBS=$ac_check_lib_save_LIBS
26500fi
26501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26502$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26503if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26504 GOMP_LIBS="-lopenmp"
26505fi
26506
26507 fi
26508 fi
26509 # GCC
26510 if test "x$GOMP_LIBS" = x ; then
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026512$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026513if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026514 $as_echo_n "(cached) " >&6
26515else
26516 ac_check_lib_save_LIBS=$LIBS
26517LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026519/* end confdefs.h. */
26520
26521/* Override any GCC internal prototype to avoid an error.
26522 Use char because int might match the return type of a GCC
26523 builtin and then its argument prototype would still apply. */
26524#ifdef __cplusplus
26525extern "C"
26526#endif
26527char GOMP_parallel_start ();
26528int
26529main ()
26530{
26531return GOMP_parallel_start ();
26532 ;
26533 return 0;
26534}
26535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026537 ac_cv_lib_gomp_GOMP_parallel_start=yes
26538else
cristy8b350f62009-11-15 23:12:43 +000026539 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026540fi
cristy8b350f62009-11-15 23:12:43 +000026541rm -f core conftest.err conftest.$ac_objext \
26542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026543LIBS=$ac_check_lib_save_LIBS
26544fi
cristy8b350f62009-11-15 23:12:43 +000026545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026546$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026547if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026548 GOMP_LIBS="-lgomp"
26549fi
cristy18307f12011-12-30 01:20:16 +000026550
26551 fi
cristy3ed852e2009-09-05 21:47:34 +000026552 else
cristy18307f12011-12-30 01:20:16 +000026553 # Sun CC
26554 if test "x$GOMP_LIBS" = x ; then
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026557if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026558 $as_echo_n "(cached) " >&6
26559else
26560 ac_check_lib_save_LIBS=$LIBS
26561LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026563/* end confdefs.h. */
26564
26565/* Override any GCC internal prototype to avoid an error.
26566 Use char because int might match the return type of a GCC
26567 builtin and then its argument prototype would still apply. */
26568#ifdef __cplusplus
26569extern "C"
26570#endif
26571char sunw_mp_register_warn ();
26572int
26573main ()
26574{
26575return sunw_mp_register_warn ();
26576 ;
26577 return 0;
26578}
26579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026581 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26582else
cristy8b350f62009-11-15 23:12:43 +000026583 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026584fi
cristy8b350f62009-11-15 23:12:43 +000026585rm -f core conftest.err conftest.$ac_objext \
26586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026587LIBS=$ac_check_lib_save_LIBS
26588fi
cristy8b350f62009-11-15 23:12:43 +000026589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026591if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026592 GOMP_LIBS="-lmtsk"
26593fi
cristy18307f12011-12-30 01:20:16 +000026594
26595 fi
26596 # AIX xlc
26597 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026599$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026600if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026601 $as_echo_n "(cached) " >&6
26602else
26603 ac_check_lib_save_LIBS=$LIBS
26604LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026606/* end confdefs.h. */
26607
26608/* Override any GCC internal prototype to avoid an error.
26609 Use char because int might match the return type of a GCC
26610 builtin and then its argument prototype would still apply. */
26611#ifdef __cplusplus
26612extern "C"
26613#endif
26614char _xlsmpFlush ();
26615int
26616main ()
26617{
26618return _xlsmpFlush ();
26619 ;
26620 return 0;
26621}
26622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026624 ac_cv_lib_xlsmp__xlsmpFlush=yes
26625else
cristy8b350f62009-11-15 23:12:43 +000026626 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026627fi
cristy8b350f62009-11-15 23:12:43 +000026628rm -f core conftest.err conftest.$ac_objext \
26629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026630LIBS=$ac_check_lib_save_LIBS
26631fi
cristy8b350f62009-11-15 23:12:43 +000026632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026633$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026634if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026635 GOMP_LIBS="-lxlsmp"
26636fi
cristy18307f12011-12-30 01:20:16 +000026637
26638 fi
26639 # SGI IRIX 6.5 MIPSpro C/C++
26640 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026642$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026643if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026644 $as_echo_n "(cached) " >&6
26645else
26646 ac_check_lib_save_LIBS=$LIBS
26647LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026649/* end confdefs.h. */
26650
26651/* Override any GCC internal prototype to avoid an error.
26652 Use char because int might match the return type of a GCC
26653 builtin and then its argument prototype would still apply. */
26654#ifdef __cplusplus
26655extern "C"
26656#endif
26657char mp_destroy ();
26658int
26659main ()
26660{
26661return mp_destroy ();
26662 ;
26663 return 0;
26664}
26665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026666if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026667 ac_cv_lib_mp_mp_destroy=yes
26668else
cristy8b350f62009-11-15 23:12:43 +000026669 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026670fi
cristy8b350f62009-11-15 23:12:43 +000026671rm -f core conftest.err conftest.$ac_objext \
26672 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026673LIBS=$ac_check_lib_save_LIBS
26674fi
cristy8b350f62009-11-15 23:12:43 +000026675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026676$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026677if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026678 GOMP_LIBS="-lmp"
26679fi
cristy18307f12011-12-30 01:20:16 +000026680
26681 fi
cristy3ed852e2009-09-05 21:47:34 +000026682 fi
26683 LIBS="$GOMP_LIBS $LIBS"
26684fi
26685
26686
cristy12ac8192014-11-04 13:59:13 +000026687#
cristy3b0097d2014-11-04 15:34:47 +000026688# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026689#
cristy3b0097d2014-11-04 15:34:47 +000026690have_jemalloc='no'
26691JEMALLOC_LIBS=''
26692if test "$with_jemalloc" != 'no'; then
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26694$as_echo_n "checking for JEMALLOC support ... " >&6; }
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26696$as_echo "" >&6; }
26697 failed=0
26698 passed=0
26699 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26700if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026701 passed=`expr $passed + 1`
26702else
26703 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026704fi
26705
26706
cristy3b0097d2014-11-04 15:34:47 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26708$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26709if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026710 $as_echo_n "(cached) " >&6
26711else
26712 ac_check_lib_save_LIBS=$LIBS
26713LIBS="-ljemalloc $LIBS"
26714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715/* end confdefs.h. */
26716
26717/* Override any GCC internal prototype to avoid an error.
26718 Use char because int might match the return type of a GCC
26719 builtin and then its argument prototype would still apply. */
26720#ifdef __cplusplus
26721extern "C"
26722#endif
cristy3b0097d2014-11-04 15:34:47 +000026723char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026724int
26725main ()
26726{
cristy3b0097d2014-11-04 15:34:47 +000026727return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026728 ;
26729 return 0;
26730}
26731_ACEOF
26732if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026733 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026734else
cristy3b0097d2014-11-04 15:34:47 +000026735 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026736fi
26737rm -f core conftest.err conftest.$ac_objext \
26738 conftest$ac_exeext conftest.$ac_ext
26739LIBS=$ac_check_lib_save_LIBS
26740fi
cristy3b0097d2014-11-04 15:34:47 +000026741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26742$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26743if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026744 passed=`expr $passed + 1`
26745else
26746 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026747fi
26748
cristy3b0097d2014-11-04 15:34:47 +000026749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26750$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26751 if test $passed -gt 0; then
26752 if test $failed -gt 0; then
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26754$as_echo "no -- some components failed test" >&6; }
26755 have_jemalloc='no (failed tests)'
26756 else
26757 JEMALLOC_LIBS='-ljemalloc'
26758 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026759
cristy3b0097d2014-11-04 15:34:47 +000026760$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026761
cristy3b0097d2014-11-04 15:34:47 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26763$as_echo "yes" >&6; }
26764 have_jemalloc='yes'
26765 fi
cristy12ac8192014-11-04 13:59:13 +000026766 else
cristy3b0097d2014-11-04 15:34:47 +000026767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26768$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026769 fi
26770fi
cristy3b0097d2014-11-04 15:34:47 +000026771 if test "$have_jemalloc" = 'yes'; then
26772 HasJEMALLOC_TRUE=
26773 HasJEMALLOC_FALSE='#'
26774else
26775 HasJEMALLOC_TRUE='#'
26776 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026777fi
26778
cristy3b0097d2014-11-04 15:34:47 +000026779
26780
cristy3ed852e2009-09-05 21:47:34 +000026781#
26782# Check for umem.
26783#
26784have_umem='no'
26785UMEM_LIBS=''
26786if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26790$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026791 failed=0
26792 passed=0
cristy8b350f62009-11-15 23:12:43 +000026793 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026794if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 passed=`expr $passed + 1`
26796else
26797 failed=`expr $failed + 1`
26798fi
26799
26800
cristy8b350f62009-11-15 23:12:43 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026802$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026803if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026804 $as_echo_n "(cached) " >&6
26805else
26806 ac_check_lib_save_LIBS=$LIBS
26807LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026809/* end confdefs.h. */
26810
26811/* Override any GCC internal prototype to avoid an error.
26812 Use char because int might match the return type of a GCC
26813 builtin and then its argument prototype would still apply. */
26814#ifdef __cplusplus
26815extern "C"
26816#endif
26817char umem_alloc ();
26818int
26819main ()
26820{
26821return umem_alloc ();
26822 ;
26823 return 0;
26824}
26825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 ac_cv_lib_umem_umem_alloc=yes
26828else
cristy8b350f62009-11-15 23:12:43 +000026829 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026830fi
cristy8b350f62009-11-15 23:12:43 +000026831rm -f core conftest.err conftest.$ac_objext \
26832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026833LIBS=$ac_check_lib_save_LIBS
26834fi
cristy8b350f62009-11-15 23:12:43 +000026835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026836$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026837if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026838 passed=`expr $passed + 1`
26839else
26840 failed=`expr $failed + 1`
26841fi
26842
cristy8b350f62009-11-15 23:12:43 +000026843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026844$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026845if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 $as_echo_n "(cached) " >&6
26847else
26848 ac_check_lib_save_LIBS=$LIBS
26849LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026851/* end confdefs.h. */
26852
26853/* Override any GCC internal prototype to avoid an error.
26854 Use char because int might match the return type of a GCC
26855 builtin and then its argument prototype would still apply. */
26856#ifdef __cplusplus
26857extern "C"
26858#endif
26859char umem_free ();
26860int
26861main ()
26862{
26863return umem_free ();
26864 ;
26865 return 0;
26866}
26867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026868if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026869 ac_cv_lib_umem_umem_free=yes
26870else
cristy8b350f62009-11-15 23:12:43 +000026871 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026872fi
cristy8b350f62009-11-15 23:12:43 +000026873rm -f core conftest.err conftest.$ac_objext \
26874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026875LIBS=$ac_check_lib_save_LIBS
26876fi
cristy8b350f62009-11-15 23:12:43 +000026877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026879if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026880 passed=`expr $passed + 1`
26881else
26882 failed=`expr $failed + 1`
26883fi
26884
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26887 if test $passed -gt 0; then
26888 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26890$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026891 have_umem='no (failed tests)'
26892 else
26893 UMEM_LIBS='-lumem'
26894 LIBS="$UMEM_LIBS $LIBS"
26895
cristy8b350f62009-11-15 23:12:43 +000026896$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026897
cristyad38abe2012-12-23 23:03:21 +000026898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26899$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026900 have_umem='yes'
26901 fi
26902 else
cristyad38abe2012-12-23 23:03:21 +000026903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26904$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026905 fi
26906fi
cristy73bd4a52010-10-05 11:24:23 +000026907 if test "$have_umem" = 'yes'; then
26908 HasUMEM_TRUE=
26909 HasUMEM_FALSE='#'
26910else
26911 HasUMEM_TRUE='#'
26912 HasUMEM_FALSE=
26913fi
26914
cristy3ed852e2009-09-05 21:47:34 +000026915
26916
26917#
26918# Add support for ccmalloc memory debugging library if requested
26919#
26920have_ccmalloc='no'
26921CCMALLOC_LIBS=''
26922if test "$enable_ccmalloc" = 'yes'; then
26923 # Extract the first word of "ccmalloc", so it can be a program name with args.
26924set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026927if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 $as_echo_n "(cached) " >&6
26929else
26930 case $CCMALLOCDelegate in
26931 [\\/]* | ?:[\\/]*)
26932 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26933 ;;
26934 *)
26935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936for as_dir in $PATH
26937do
26938 IFS=$as_save_IFS
26939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026942 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944 break 2
26945 fi
26946done
cristy8b350f62009-11-15 23:12:43 +000026947 done
cristy3ed852e2009-09-05 21:47:34 +000026948IFS=$as_save_IFS
26949
26950 ;;
26951esac
26952fi
26953CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26954if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo "$CCMALLOCDelegate" >&6; }
26957else
cristy8b350f62009-11-15 23:12:43 +000026958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026959$as_echo "no" >&6; }
26960fi
26961
26962
26963 if test -n "$CCMALLOCDelegate"; then
26964 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26965 OLIBS="$LIBS"
26966 # Assume that gcc is used with ccmalloc.
26967 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026969$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026970if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 $as_echo_n "(cached) " >&6
26972else
26973 ac_check_lib_save_LIBS=$LIBS
26974LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026976/* end confdefs.h. */
26977
26978/* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26981#ifdef __cplusplus
26982extern "C"
26983#endif
26984char ccmalloc_malloc ();
26985int
26986main ()
26987{
26988return ccmalloc_malloc ();
26989 ;
26990 return 0;
26991}
26992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26995else
cristy8b350f62009-11-15 23:12:43 +000026996 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026997fi
cristy8b350f62009-11-15 23:12:43 +000026998rm -f core conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027000LIBS=$ac_check_lib_save_LIBS
27001fi
cristy8b350f62009-11-15 23:12:43 +000027002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027004if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027005 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27006fi
27007
27008 if test -n "$CCMALLOC_LIBS"; then
27009 LIBS="$OLIBS"
27010 LIBS="$LIBS $CCMALLOC_LIBS"
27011 have_ccmalloc='yes'
27012 else
27013 LIBS="$OLIBS"
27014 fi
27015 fi
27016fi
27017
27018#
cristy944e51f2013-04-16 18:45:02 +000027019# Add support for 'huge pages' if requested
27020#
27021if test "x$enable_hugepages" != "xno"; then :
27022
27023
27024$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27025
27026
27027fi
27028
27029#
cristy3ed852e2009-09-05 21:47:34 +000027030# Add support for efence memory debugging library if requested
27031#
27032if test "$enable_efence" = 'yes'; then
27033 EFENCE_LIBS='-lefence'
27034 LIBS="$EFENCE_LIBS $LIBS"
27035fi
27036
cristy3ed852e2009-09-05 21:47:34 +000027037
27038#
27039# Check for BZLIB
27040#
27041
27042
27043# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027044if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 withval=$with_bzlib; with_bzlib=$withval
27046else
27047 with_bzlib='yes'
27048fi
27049
27050
27051if test "$with_bzlib" != 'yes'; then
27052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27053fi
27054
27055have_bzlib='no'
27056if test "$with_bzlib" != 'no'; then
27057 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27059$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27063$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027064 failed=0
27065 passed=0
27066 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027067 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027068if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027069 passed=`expr $passed + 1`
27070else
27071 failed=`expr $failed + 1`
27072fi
27073
27074
cristy8b350f62009-11-15 23:12:43 +000027075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027076$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027077if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 $as_echo_n "(cached) " >&6
27079else
27080 ac_check_lib_save_LIBS=$LIBS
27081LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027083/* end confdefs.h. */
27084
27085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27088#ifdef __cplusplus
27089extern "C"
27090#endif
27091char BZ2_bzDecompress ();
27092int
27093main ()
27094{
27095return BZ2_bzDecompress ();
27096 ;
27097 return 0;
27098}
27099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27102else
cristy8b350f62009-11-15 23:12:43 +000027103 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027104fi
cristy8b350f62009-11-15 23:12:43 +000027105rm -f core conftest.err conftest.$ac_objext \
27106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027107LIBS=$ac_check_lib_save_LIBS
27108fi
cristy8b350f62009-11-15 23:12:43 +000027109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027111if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027112 found_libbz=`expr $found_libbz + 1`
27113fi
27114
27115 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027118if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027119 $as_echo_n "(cached) " >&6
27120else
27121 ac_check_lib_save_LIBS=$LIBS
27122LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027124/* end confdefs.h. */
27125
27126/* Override any GCC internal prototype to avoid an error.
27127 Use char because int might match the return type of a GCC
27128 builtin and then its argument prototype would still apply. */
27129#ifdef __cplusplus
27130extern "C"
27131#endif
27132char _imp__BZ2_decompress ();
27133int
27134main ()
27135{
27136return _imp__BZ2_decompress ();
27137 ;
27138 return 0;
27139}
27140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27143else
cristy8b350f62009-11-15 23:12:43 +000027144 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027145fi
cristy8b350f62009-11-15 23:12:43 +000027146rm -f core conftest.err conftest.$ac_objext \
27147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027148LIBS=$ac_check_lib_save_LIBS
27149fi
cristy8b350f62009-11-15 23:12:43 +000027150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027151$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027152if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 found_libbz=`expr $found_libbz + 1`
27154fi
27155
27156 fi
27157 if test $found_libbz -gt 0; then
27158 passed=`expr $passed + 1`
27159 else
27160 failed=`expr $failed + 1`
27161 fi
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo_n "checking if BZLIB package is complete... " >&6; }
27164 if test $passed -gt 0; then
27165 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27167$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027168 have_bzlib='no (failed tests)'
27169 else
27170 BZLIB_LIBS='-lbz2'
27171 LIBS="$BZLIB_LIBS $LIBS"
27172
cristy8b350f62009-11-15 23:12:43 +000027173$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027174
cristyad38abe2012-12-23 23:03:21 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27176$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027177 have_bzlib='yes'
27178 fi
27179 else
cristyad38abe2012-12-23 23:03:21 +000027180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27181$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027182 fi
27183fi
cristy73bd4a52010-10-05 11:24:23 +000027184 if test "$have_bzlib" = 'yes'; then
27185 BZLIB_DELEGATE_TRUE=
27186 BZLIB_DELEGATE_FALSE='#'
27187else
27188 BZLIB_DELEGATE_TRUE='#'
27189 BZLIB_DELEGATE_FALSE=
27190fi
27191
cristy3ed852e2009-09-05 21:47:34 +000027192
27193
27194#
27195# Find the X11 include and library directories.
27196#
27197IPC_LIBS=''
27198X11_LIBS=''
27199XEXT_LIBS=''
27200XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027202$as_echo_n "checking for X... " >&6; }
27203
27204
27205# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027206if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027207 withval=$with_x;
27208fi
27209
27210# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27211if test "x$with_x" = xno; then
27212 # The user explicitly disabled X.
27213 have_x=disabled
27214else
27215 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027216 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027217 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027218 $as_echo_n "(cached) " >&6
27219else
27220 # One or both of the vars are not set, and there is no cached value.
27221ac_x_includes=no ac_x_libraries=no
27222rm -f -r conftest.dir
27223if mkdir conftest.dir; then
27224 cd conftest.dir
27225 cat >Imakefile <<'_ACEOF'
27226incroot:
27227 @echo incroot='${INCROOT}'
27228usrlibdir:
27229 @echo usrlibdir='${USRLIBDIR}'
27230libdir:
27231 @echo libdir='${LIBDIR}'
27232_ACEOF
27233 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027234 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027235 for ac_var in incroot usrlibdir libdir; do
27236 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27237 done
27238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27239 for ac_extension in a so sl dylib la dll; do
27240 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27241 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27242 ac_im_usrlibdir=$ac_im_libdir; break
27243 fi
27244 done
27245 # Screen out bogus values from the imake configuration. They are
27246 # bogus both because they are the default anyway, and because
27247 # using them would break gcc on systems where it needs fixed includes.
27248 case $ac_im_incroot in
27249 /usr/include) ac_x_includes= ;;
27250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27251 esac
27252 case $ac_im_usrlibdir in
27253 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27255 esac
27256 fi
27257 cd ..
27258 rm -f -r conftest.dir
27259fi
27260
27261# Standard set of common directories for X headers.
27262# Check X11 before X11Rn because it is often a symlink to the current release.
27263ac_x_header_dirs='
27264/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027265/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027266/usr/X11R6/include
27267/usr/X11R5/include
27268/usr/X11R4/include
27269
27270/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027271/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027272/usr/include/X11R6
27273/usr/include/X11R5
27274/usr/include/X11R4
27275
27276/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027277/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027278/usr/local/X11R6/include
27279/usr/local/X11R5/include
27280/usr/local/X11R4/include
27281
27282/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027283/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027284/usr/local/include/X11R6
27285/usr/local/include/X11R5
27286/usr/local/include/X11R4
27287
27288/usr/X386/include
27289/usr/x386/include
27290/usr/XFree86/include/X11
27291
27292/usr/include
27293/usr/local/include
27294/usr/unsupported/include
27295/usr/athena/include
27296/usr/local/x11r5/include
27297/usr/lpp/Xamples/include
27298
27299/usr/openwin/include
27300/usr/openwin/share/include'
27301
27302if test "$ac_x_includes" = no; then
27303 # Guess where to find include files, by looking for Xlib.h.
27304 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027306/* end confdefs.h. */
27307#include <X11/Xlib.h>
27308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027309if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027310 # We can compile using X headers with no special include directory.
27311ac_x_includes=
27312else
cristyc7083c12009-10-14 03:16:55 +000027313 for ac_dir in $ac_x_header_dirs; do
27314 if test -r "$ac_dir/X11/Xlib.h"; then
27315 ac_x_includes=$ac_dir
27316 break
27317 fi
27318done
27319fi
cristyda16f162011-02-19 23:52:17 +000027320rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027321fi # $ac_x_includes = no
27322
27323if test "$ac_x_libraries" = no; then
27324 # Check for the libraries.
27325 # See if we find them without any special options.
27326 # Don't add to $LIBS permanently.
27327 ac_save_LIBS=$LIBS
27328 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027330/* end confdefs.h. */
27331#include <X11/Xlib.h>
27332int
27333main ()
27334{
27335XrmInitialize ()
27336 ;
27337 return 0;
27338}
27339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027340if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027341 LIBS=$ac_save_LIBS
27342# We can link X programs with no special library path.
27343ac_x_libraries=
27344else
cristy8b350f62009-11-15 23:12:43 +000027345 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027346for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27347do
27348 # Don't even attempt the hair of trying to link an X program!
27349 for ac_extension in a so sl dylib la dll; do
27350 if test -r "$ac_dir/libX11.$ac_extension"; then
27351 ac_x_libraries=$ac_dir
27352 break 2
27353 fi
27354 done
27355done
27356fi
cristy8b350f62009-11-15 23:12:43 +000027357rm -f core conftest.err conftest.$ac_objext \
27358 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027359fi # $ac_x_libraries = no
27360
27361case $ac_x_includes,$ac_x_libraries in #(
27362 no,* | *,no | *\'*)
27363 # Didn't find X, or a directory has "'" in its name.
27364 ac_cv_have_x="have_x=no";; #(
27365 *)
27366 # Record where we found X for the cache.
27367 ac_cv_have_x="have_x=yes\
27368 ac_x_includes='$ac_x_includes'\
27369 ac_x_libraries='$ac_x_libraries'"
27370esac
27371fi
27372;; #(
27373 *) have_x=yes;;
27374 esac
27375 eval "$ac_cv_have_x"
27376fi # $with_x != no
27377
27378if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027380$as_echo "$have_x" >&6; }
27381 no_x=yes
27382else
27383 # If each of the values was on the command line, it overrides each guess.
27384 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27385 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27386 # Update the cache value to reflect the command line values.
27387 ac_cv_have_x="have_x=yes\
27388 ac_x_includes='$x_includes'\
27389 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027391$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27392fi
27393
cristy3ed852e2009-09-05 21:47:34 +000027394if test "$no_x" = yes; then
27395 # Not all programs may use this symbol, but it does not hurt to define it.
27396
cristy8b350f62009-11-15 23:12:43 +000027397$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027398
27399 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27400else
27401 if test -n "$x_includes"; then
27402 X_CFLAGS="$X_CFLAGS -I$x_includes"
27403 fi
27404
27405 # It would also be nice to do this for all -L options, not just this one.
27406 if test -n "$x_libraries"; then
27407 X_LIBS="$X_LIBS -L$x_libraries"
27408 # For Solaris; some versions of Sun CC require a space after -R and
27409 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27412 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27413 ac_xsave_c_werror_flag=$ac_c_werror_flag
27414 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027416/* end confdefs.h. */
27417
27418int
27419main ()
27420{
27421
27422 ;
27423 return 0;
27424}
27425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027426if ac_fn_c_try_link "$LINENO"; then :
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027428$as_echo "no" >&6; }
27429 X_LIBS="$X_LIBS -R$x_libraries"
27430else
cristy8b350f62009-11-15 23:12:43 +000027431 LIBS="$ac_xsave_LIBS -R $x_libraries"
27432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027433/* end confdefs.h. */
27434
27435int
27436main ()
27437{
27438
27439 ;
27440 return 0;
27441}
27442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027443if ac_fn_c_try_link "$LINENO"; then :
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo "yes" >&6; }
27446 X_LIBS="$X_LIBS -R $x_libraries"
27447else
cristy8b350f62009-11-15 23:12:43 +000027448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo "neither works" >&6; }
27450fi
cristy8b350f62009-11-15 23:12:43 +000027451rm -f core conftest.err conftest.$ac_objext \
27452 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027453fi
cristy8b350f62009-11-15 23:12:43 +000027454rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456 ac_c_werror_flag=$ac_xsave_c_werror_flag
27457 LIBS=$ac_xsave_LIBS
27458 fi
27459
27460 # Check for system-dependent libraries X programs must link with.
27461 # Do this before checking for the system-independent R6 libraries
27462 # (-lICE), since we may need -lsocket or whatever for X linking.
27463
27464 if test "$ISC" = yes; then
27465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27466 else
27467 # Martyn Johnson says this is needed for Ultrix, if the X
27468 # libraries were built with DECnet support. And Karl Berry says
27469 # the Alpha needs dnet_stub (dnet does not exist).
27470 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027472/* end confdefs.h. */
27473
27474/* Override any GCC internal prototype to avoid an error.
27475 Use char because int might match the return type of a GCC
27476 builtin and then its argument prototype would still apply. */
27477#ifdef __cplusplus
27478extern "C"
27479#endif
27480char XOpenDisplay ();
27481int
27482main ()
27483{
27484return XOpenDisplay ();
27485 ;
27486 return 0;
27487}
27488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027490
cristy8b350f62009-11-15 23:12:43 +000027491else
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027494if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027495 $as_echo_n "(cached) " >&6
27496else
27497 ac_check_lib_save_LIBS=$LIBS
27498LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027500/* end confdefs.h. */
27501
27502/* Override any GCC internal prototype to avoid an error.
27503 Use char because int might match the return type of a GCC
27504 builtin and then its argument prototype would still apply. */
27505#ifdef __cplusplus
27506extern "C"
27507#endif
27508char dnet_ntoa ();
27509int
27510main ()
27511{
27512return dnet_ntoa ();
27513 ;
27514 return 0;
27515}
27516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027518 ac_cv_lib_dnet_dnet_ntoa=yes
27519else
cristy8b350f62009-11-15 23:12:43 +000027520 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027521fi
cristy8b350f62009-11-15 23:12:43 +000027522rm -f core conftest.err conftest.$ac_objext \
27523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027524LIBS=$ac_check_lib_save_LIBS
27525fi
cristy8b350f62009-11-15 23:12:43 +000027526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027527$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027528if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27530fi
27531
27532 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027534$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027535if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027536 $as_echo_n "(cached) " >&6
27537else
27538 ac_check_lib_save_LIBS=$LIBS
27539LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027541/* end confdefs.h. */
27542
27543/* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27546#ifdef __cplusplus
27547extern "C"
27548#endif
27549char dnet_ntoa ();
27550int
27551main ()
27552{
27553return dnet_ntoa ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27560else
cristy8b350f62009-11-15 23:12:43 +000027561 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027562fi
cristy8b350f62009-11-15 23:12:43 +000027563rm -f core conftest.err conftest.$ac_objext \
27564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565LIBS=$ac_check_lib_save_LIBS
27566fi
cristy8b350f62009-11-15 23:12:43 +000027567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027569if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27571fi
27572
27573 fi
27574fi
cristy8b350f62009-11-15 23:12:43 +000027575rm -f core conftest.err conftest.$ac_objext \
27576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577 LIBS="$ac_xsave_LIBS"
27578
27579 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27580 # to get the SysV transport functions.
27581 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27582 # needs -lnsl.
27583 # The nsl library prevents programs from opening the X display
27584 # on Irix 5.2, according to T.E. Dickey.
27585 # The functions gethostbyname, getservbyname, and inet_addr are
27586 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027587 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027588if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589
cristy3ed852e2009-09-05 21:47:34 +000027590fi
27591
cristy3ed852e2009-09-05 21:47:34 +000027592 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027594$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027595if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027596 $as_echo_n "(cached) " >&6
27597else
27598 ac_check_lib_save_LIBS=$LIBS
27599LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601/* end confdefs.h. */
27602
27603/* Override any GCC internal prototype to avoid an error.
27604 Use char because int might match the return type of a GCC
27605 builtin and then its argument prototype would still apply. */
27606#ifdef __cplusplus
27607extern "C"
27608#endif
27609char gethostbyname ();
27610int
27611main ()
27612{
27613return gethostbyname ();
27614 ;
27615 return 0;
27616}
27617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027618if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027619 ac_cv_lib_nsl_gethostbyname=yes
27620else
cristy8b350f62009-11-15 23:12:43 +000027621 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027622fi
cristy8b350f62009-11-15 23:12:43 +000027623rm -f core conftest.err conftest.$ac_objext \
27624 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027625LIBS=$ac_check_lib_save_LIBS
27626fi
cristy8b350f62009-11-15 23:12:43 +000027627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027629if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27631fi
27632
27633 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027636if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 $as_echo_n "(cached) " >&6
27638else
27639 ac_check_lib_save_LIBS=$LIBS
27640LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char gethostbyname ();
27651int
27652main ()
27653{
27654return gethostbyname ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 ac_cv_lib_bsd_gethostbyname=yes
27661else
cristy8b350f62009-11-15 23:12:43 +000027662 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027663fi
cristy8b350f62009-11-15 23:12:43 +000027664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666LIBS=$ac_check_lib_save_LIBS
27667fi
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27672fi
27673
27674 fi
27675 fi
27676
27677 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27678 # socket/setsockopt and other routines are undefined under SCO ODT
27679 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27680 # on later versions), says Simon Leinen: it contains gethostby*
27681 # variants that don't use the name server (or something). -lsocket
27682 # must be given before -lnsl if both are needed. We assume that
27683 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027684 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027685if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686
cristy3ed852e2009-09-05 21:47:34 +000027687fi
27688
cristy3ed852e2009-09-05 21:47:34 +000027689 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char connect ();
27707int
27708main ()
27709{
27710return connect ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_socket_connect=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27728fi
27729
27730 fi
27731
27732 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027733 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027734if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027735
cristy3ed852e2009-09-05 21:47:34 +000027736fi
27737
cristy3ed852e2009-09-05 21:47:34 +000027738 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027741if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 $as_echo_n "(cached) " >&6
27743else
27744 ac_check_lib_save_LIBS=$LIBS
27745LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027747/* end confdefs.h. */
27748
27749/* Override any GCC internal prototype to avoid an error.
27750 Use char because int might match the return type of a GCC
27751 builtin and then its argument prototype would still apply. */
27752#ifdef __cplusplus
27753extern "C"
27754#endif
27755char remove ();
27756int
27757main ()
27758{
27759return remove ();
27760 ;
27761 return 0;
27762}
27763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 ac_cv_lib_posix_remove=yes
27766else
cristy8b350f62009-11-15 23:12:43 +000027767 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027768fi
cristy8b350f62009-11-15 23:12:43 +000027769rm -f core conftest.err conftest.$ac_objext \
27770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027771LIBS=$ac_check_lib_save_LIBS
27772fi
cristy8b350f62009-11-15 23:12:43 +000027773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27777fi
27778
27779 fi
27780
27781 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027782 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027783if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027784
cristy3ed852e2009-09-05 21:47:34 +000027785fi
27786
cristy3ed852e2009-09-05 21:47:34 +000027787 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027790if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 $as_echo_n "(cached) " >&6
27792else
27793 ac_check_lib_save_LIBS=$LIBS
27794LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027796/* end confdefs.h. */
27797
27798/* Override any GCC internal prototype to avoid an error.
27799 Use char because int might match the return type of a GCC
27800 builtin and then its argument prototype would still apply. */
27801#ifdef __cplusplus
27802extern "C"
27803#endif
27804char shmat ();
27805int
27806main ()
27807{
27808return shmat ();
27809 ;
27810 return 0;
27811}
27812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027814 ac_cv_lib_ipc_shmat=yes
27815else
cristy8b350f62009-11-15 23:12:43 +000027816 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027817fi
cristy8b350f62009-11-15 23:12:43 +000027818rm -f core conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027820LIBS=$ac_check_lib_save_LIBS
27821fi
cristy8b350f62009-11-15 23:12:43 +000027822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027824if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27826fi
27827
27828 fi
27829 fi
27830
27831 # Check for libraries that X11R6 Xt/Xaw programs need.
27832 ac_save_LDFLAGS=$LDFLAGS
27833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27835 # check for ICE first), but we must link in the order -lSM -lICE or
27836 # we get undefined symbols. So assume we have SM if we have ICE.
27837 # These have to be linked with before -lX11, unlike the other
27838 # libraries we check for below, so use a different variable.
27839 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027842if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 $as_echo_n "(cached) " >&6
27844else
27845 ac_check_lib_save_LIBS=$LIBS
27846LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027848/* end confdefs.h. */
27849
27850/* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853#ifdef __cplusplus
27854extern "C"
27855#endif
27856char IceConnectionNumber ();
27857int
27858main ()
27859{
27860return IceConnectionNumber ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 ac_cv_lib_ICE_IceConnectionNumber=yes
27867else
cristy8b350f62009-11-15 23:12:43 +000027868 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027869fi
cristy8b350f62009-11-15 23:12:43 +000027870rm -f core conftest.err conftest.$ac_objext \
27871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872LIBS=$ac_check_lib_save_LIBS
27873fi
cristy8b350f62009-11-15 23:12:43 +000027874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027875$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27878fi
27879
27880 LDFLAGS=$ac_save_LDFLAGS
27881
27882fi
27883
27884if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27886$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027888$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27890$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027891 LDFLAGS="$LDFLAGS $X_LIBS"
27892 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27893 LIBS="$X11_LIBS $LIBS"
27894 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27895
27896
cristy8b350f62009-11-15 23:12:43 +000027897$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027898
27899 #
27900 # Check for X11 shared memory extension
27901 #
27902 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027903 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027904if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 have_shmctl='yes'
27906fi
27907
27908 if test "$have_shmctl" != 'yes'; then
27909 PERSIST_LIBS=$LIBS
27910 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027912/* end confdefs.h. */
27913
27914/* Override any GCC internal prototype to avoid an error.
27915 Use char because int might match the return type of a GCC
27916 builtin and then its argument prototype would still apply. */
27917#ifdef __cplusplus
27918extern "C"
27919#endif
27920char shmctl ();
27921int
27922main ()
27923{
27924return shmctl ();
27925 ;
27926 return 0;
27927}
27928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027930 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027931fi
cristy8b350f62009-11-15 23:12:43 +000027932rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027934 LIBS=$PERSIST_LIBS
27935 fi
27936
27937 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027940if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 $as_echo_n "(cached) " >&6
27942else
27943 ac_check_lib_save_LIBS=$LIBS
27944LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946/* end confdefs.h. */
27947
27948/* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
27951#ifdef __cplusplus
27952extern "C"
27953#endif
27954char XShmAttach ();
27955int
27956main ()
27957{
27958return XShmAttach ();
27959 ;
27960 return 0;
27961}
27962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027964 ac_cv_lib_Xext_XShmAttach=yes
27965else
cristy8b350f62009-11-15 23:12:43 +000027966 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027967fi
cristy8b350f62009-11-15 23:12:43 +000027968rm -f core conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970LIBS=$ac_check_lib_save_LIBS
27971fi
cristy8b350f62009-11-15 23:12:43 +000027972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027974if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027976$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027977
27978fi
27979
27980 fi
27981
27982 #
27983 # Check for X11 shape extension
27984 #
cristy8b350f62009-11-15 23:12:43 +000027985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027986$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027987if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 $as_echo_n "(cached) " >&6
27989else
27990 ac_check_lib_save_LIBS=$LIBS
27991LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027993/* end confdefs.h. */
27994
27995/* Override any GCC internal prototype to avoid an error.
27996 Use char because int might match the return type of a GCC
27997 builtin and then its argument prototype would still apply. */
27998#ifdef __cplusplus
27999extern "C"
28000#endif
28001char XShapeCombineMask ();
28002int
28003main ()
28004{
28005return XShapeCombineMask ();
28006 ;
28007 return 0;
28008}
28009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 ac_cv_lib_Xext_XShapeCombineMask=yes
28012else
cristy8b350f62009-11-15 23:12:43 +000028013 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028014fi
cristy8b350f62009-11-15 23:12:43 +000028015rm -f core conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028017LIBS=$ac_check_lib_save_LIBS
28018fi
cristy8b350f62009-11-15 23:12:43 +000028019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028020$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028021if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028023$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028024
28025fi
28026
cristy8b350f62009-11-15 23:12:43 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028028$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028029if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028030 $as_echo_n "(cached) " >&6
28031else
28032 ac_check_lib_save_LIBS=$LIBS
28033LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028035/* end confdefs.h. */
28036
28037/* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28040#ifdef __cplusplus
28041extern "C"
28042#endif
28043char XtSetEventDispatcher ();
28044int
28045main ()
28046{
28047return XtSetEventDispatcher ();
28048 ;
28049 return 0;
28050}
28051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028052if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028053 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28054else
cristy8b350f62009-11-15 23:12:43 +000028055 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028056fi
cristy8b350f62009-11-15 23:12:43 +000028057rm -f core conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028059LIBS=$ac_check_lib_save_LIBS
28060fi
cristy8b350f62009-11-15 23:12:43 +000028061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028062$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028063if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 XT_LIBS='-lXt'
28065fi
28066
28067 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28068fi
28069if test "$no_x" != 'yes'; then
28070 have_x='yes'
28071else
28072 have_x='no'
28073fi
cristy73bd4a52010-10-05 11:24:23 +000028074 if test "$have_x" = 'yes'; then
28075 X11_DELEGATE_TRUE=
28076 X11_DELEGATE_FALSE='#'
28077else
28078 X11_DELEGATE_TRUE='#'
28079 X11_DELEGATE_FALSE=
28080fi
28081
cristy3ed852e2009-09-05 21:47:34 +000028082
28083
28084
28085
28086#
28087# Check for ZLIB
28088#
28089
28090# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028091if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028092 withval=$with_zlib; with_zlib=$withval
28093else
28094 with_zlib='yes'
28095fi
28096
28097
28098if test "$with_zlib" != 'yes'; then
28099 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28100fi
28101
28102have_zlib='no'
28103ZLIB_LIBS=''
28104if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28106$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028108$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28110$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028111 ZLIB_LIBS=''
28112 failed=0
28113 passed=0
cristy8b350f62009-11-15 23:12:43 +000028114 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028115if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 passed=`expr $passed + 1`
28117else
28118 failed=`expr $failed + 1`
28119fi
28120
28121
cristy8b350f62009-11-15 23:12:43 +000028122 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028123if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 passed=`expr $passed + 1`
28125else
28126 failed=`expr $failed + 1`
28127fi
28128
28129
cristy8b350f62009-11-15 23:12:43 +000028130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028131$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028132if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 $as_echo_n "(cached) " >&6
28134else
28135 ac_check_lib_save_LIBS=$LIBS
28136LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028138/* end confdefs.h. */
28139
28140/* Override any GCC internal prototype to avoid an error.
28141 Use char because int might match the return type of a GCC
28142 builtin and then its argument prototype would still apply. */
28143#ifdef __cplusplus
28144extern "C"
28145#endif
28146char compress ();
28147int
28148main ()
28149{
28150return compress ();
28151 ;
28152 return 0;
28153}
28154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 ac_cv_lib_z_compress=yes
28157else
cristy8b350f62009-11-15 23:12:43 +000028158 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028159fi
cristy8b350f62009-11-15 23:12:43 +000028160rm -f core conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162LIBS=$ac_check_lib_save_LIBS
28163fi
cristy8b350f62009-11-15 23:12:43 +000028164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028166if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 passed=`expr $passed + 1`
28168else
28169 failed=`expr $failed + 1`
28170fi
28171
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 $as_echo_n "(cached) " >&6
28176else
28177 ac_check_lib_save_LIBS=$LIBS
28178LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028180/* end confdefs.h. */
28181
28182/* Override any GCC internal prototype to avoid an error.
28183 Use char because int might match the return type of a GCC
28184 builtin and then its argument prototype would still apply. */
28185#ifdef __cplusplus
28186extern "C"
28187#endif
28188char uncompress ();
28189int
28190main ()
28191{
28192return uncompress ();
28193 ;
28194 return 0;
28195}
28196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 ac_cv_lib_z_uncompress=yes
28199else
cristy8b350f62009-11-15 23:12:43 +000028200 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028201fi
cristy8b350f62009-11-15 23:12:43 +000028202rm -f core conftest.err conftest.$ac_objext \
28203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204LIBS=$ac_check_lib_save_LIBS
28205fi
cristy8b350f62009-11-15 23:12:43 +000028206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 passed=`expr $passed + 1`
28210else
28211 failed=`expr $failed + 1`
28212fi
28213
cristy8b350f62009-11-15 23:12:43 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028215$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028216if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028217 $as_echo_n "(cached) " >&6
28218else
28219 ac_check_lib_save_LIBS=$LIBS
28220LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028222/* end confdefs.h. */
28223
28224/* Override any GCC internal prototype to avoid an error.
28225 Use char because int might match the return type of a GCC
28226 builtin and then its argument prototype would still apply. */
28227#ifdef __cplusplus
28228extern "C"
28229#endif
28230char deflate ();
28231int
28232main ()
28233{
28234return deflate ();
28235 ;
28236 return 0;
28237}
28238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028240 ac_cv_lib_z_deflate=yes
28241else
cristy8b350f62009-11-15 23:12:43 +000028242 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028243fi
cristy8b350f62009-11-15 23:12:43 +000028244rm -f core conftest.err conftest.$ac_objext \
28245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028246LIBS=$ac_check_lib_save_LIBS
28247fi
cristy8b350f62009-11-15 23:12:43 +000028248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028249$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028250if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 passed=`expr $passed + 1`
28252else
28253 failed=`expr $failed + 1`
28254fi
28255
cristy8b350f62009-11-15 23:12:43 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028258if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 $as_echo_n "(cached) " >&6
28260else
28261 ac_check_lib_save_LIBS=$LIBS
28262LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028264/* end confdefs.h. */
28265
28266/* Override any GCC internal prototype to avoid an error.
28267 Use char because int might match the return type of a GCC
28268 builtin and then its argument prototype would still apply. */
28269#ifdef __cplusplus
28270extern "C"
28271#endif
28272char inflate ();
28273int
28274main ()
28275{
28276return inflate ();
28277 ;
28278 return 0;
28279}
28280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 ac_cv_lib_z_inflate=yes
28283else
cristy8b350f62009-11-15 23:12:43 +000028284 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028285fi
cristy8b350f62009-11-15 23:12:43 +000028286rm -f core conftest.err conftest.$ac_objext \
28287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028288LIBS=$ac_check_lib_save_LIBS
28289fi
cristy8b350f62009-11-15 23:12:43 +000028290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028291$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028292if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028293 passed=`expr $passed + 1`
28294else
28295 failed=`expr $failed + 1`
28296fi
28297
cristy8b350f62009-11-15 23:12:43 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028300if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 $as_echo_n "(cached) " >&6
28302else
28303 ac_check_lib_save_LIBS=$LIBS
28304LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028306/* end confdefs.h. */
28307
28308/* Override any GCC internal prototype to avoid an error.
28309 Use char because int might match the return type of a GCC
28310 builtin and then its argument prototype would still apply. */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char gzseek ();
28315int
28316main ()
28317{
28318return gzseek ();
28319 ;
28320 return 0;
28321}
28322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 ac_cv_lib_z_gzseek=yes
28325else
cristy8b350f62009-11-15 23:12:43 +000028326 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028327fi
cristy8b350f62009-11-15 23:12:43 +000028328rm -f core conftest.err conftest.$ac_objext \
28329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028330LIBS=$ac_check_lib_save_LIBS
28331fi
cristy8b350f62009-11-15 23:12:43 +000028332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028333$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028334if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 passed=`expr $passed + 1`
28336else
28337 failed=`expr $failed + 1`
28338fi
28339
cristy8b350f62009-11-15 23:12:43 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028342if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 $as_echo_n "(cached) " >&6
28344else
28345 ac_check_lib_save_LIBS=$LIBS
28346LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028348/* end confdefs.h. */
28349
28350/* Override any GCC internal prototype to avoid an error.
28351 Use char because int might match the return type of a GCC
28352 builtin and then its argument prototype would still apply. */
28353#ifdef __cplusplus
28354extern "C"
28355#endif
28356char gztell ();
28357int
28358main ()
28359{
28360return gztell ();
28361 ;
28362 return 0;
28363}
28364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 ac_cv_lib_z_gztell=yes
28367else
cristy8b350f62009-11-15 23:12:43 +000028368 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028369fi
cristy8b350f62009-11-15 23:12:43 +000028370rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028372LIBS=$ac_check_lib_save_LIBS
28373fi
cristy8b350f62009-11-15 23:12:43 +000028374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028376if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 passed=`expr $passed + 1`
28378else
28379 failed=`expr $failed + 1`
28380fi
28381
cristy8b350f62009-11-15 23:12:43 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo_n "checking if ZLIB package is complete... " >&6; }
28384 if test $passed -gt 0; then
28385 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28387$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028388 have_zlib='no (failed tests)'
28389 else
28390 ZLIB_LIBS='-lz'
28391 LIBS="$ZLIB_LIBS $LIBS"
28392
cristy8b350f62009-11-15 23:12:43 +000028393$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028394
cristyad38abe2012-12-23 23:03:21 +000028395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28396$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028397 have_zlib='yes'
28398 fi
28399 else
cristyad38abe2012-12-23 23:03:21 +000028400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28401$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028402 fi
28403fi
cristy73bd4a52010-10-05 11:24:23 +000028404 if test "$have_zlib" = 'yes'; then
28405 ZLIB_DELEGATE_TRUE=
28406 ZLIB_DELEGATE_FALSE='#'
28407else
28408 ZLIB_DELEGATE_TRUE='#'
28409 ZLIB_DELEGATE_FALSE=
28410fi
28411
cristy3ed852e2009-09-05 21:47:34 +000028412
28413
cristy5eef09f2012-10-16 12:08:28 +000028414# whether modules are built or not.
28415with_ltdl='yes'
28416have_ltdl='no'
28417LTDL_LIBS=''
28418if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28420$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28422$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28424$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028425 failed=0
28426 passed=0
28427 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28428if test "x$ac_cv_header_ltdl_h" = xyes; then :
28429 passed=`expr $passed + 1`
28430else
28431 failed=`expr $failed + 1`
28432fi
28433
28434
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28436$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28437if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28438 $as_echo_n "(cached) " >&6
28439else
28440 ac_check_lib_save_LIBS=$LIBS
28441LIBS="-lltdl $LIBS"
28442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443/* end confdefs.h. */
28444
28445/* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28448#ifdef __cplusplus
28449extern "C"
28450#endif
28451char lt_dlinit ();
28452int
28453main ()
28454{
28455return lt_dlinit ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460if ac_fn_c_try_link "$LINENO"; then :
28461 ac_cv_lib_ltdl_lt_dlinit=yes
28462else
28463 ac_cv_lib_ltdl_lt_dlinit=no
28464fi
28465rm -f core conftest.err conftest.$ac_objext \
28466 conftest$ac_exeext conftest.$ac_ext
28467LIBS=$ac_check_lib_save_LIBS
28468fi
28469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28470$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28471if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28472 passed=`expr $passed + 1`
28473else
28474 failed=`expr $failed + 1`
28475fi
28476
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28478$as_echo_n "checking if libltdl package is complete... " >&6; }
28479 if test $passed -gt 0 ; then
28480 if test $failed -gt 0 ; then
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28482$as_echo "no -- some components failed test" >&6; }
28483 have_ltdl='no (failed tests)'
28484 else
28485 LTDL_LIBS='-lltdl'
28486 LIBS="$LTDL_LIBS $LIBS"
28487
28488$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28489
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28491$as_echo "yes" >&6; }
28492 have_ltdl='yes'
28493 fi
28494 else
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28496$as_echo "no" >&6; }
28497 fi
cristyaf4cbf32012-10-16 23:47:41 +000028498 if test "$have_ltdl" != 'yes' ; then
28499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28501as_fn_error 1 "libltdl is required for modules build
28502See \`config.log' for more details" "$LINENO" 5; }
28503 fi
cristy5eef09f2012-10-16 12:08:28 +000028504fi
28505 if test "$have_ltdl" != 'no'; then
28506 WITH_LTDL_TRUE=
28507 WITH_LTDL_FALSE='#'
28508else
28509 WITH_LTDL_TRUE='#'
28510 WITH_LTDL_FALSE=
28511fi
28512
28513
cristy3ed852e2009-09-05 21:47:34 +000028514#
28515# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28516#
28517LIB_DL=''
28518if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028520$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028521if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 $as_echo_n "(cached) " >&6
28523else
28524 ac_check_lib_save_LIBS=$LIBS
28525LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028527/* end confdefs.h. */
28528
28529/* Override any GCC internal prototype to avoid an error.
28530 Use char because int might match the return type of a GCC
28531 builtin and then its argument prototype would still apply. */
28532#ifdef __cplusplus
28533extern "C"
28534#endif
28535char dlopen ();
28536int
28537main ()
28538{
28539return dlopen ();
28540 ;
28541 return 0;
28542}
28543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028544if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028545 ac_cv_lib_dl_dlopen=yes
28546else
cristy8b350f62009-11-15 23:12:43 +000028547 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028548fi
cristy8b350f62009-11-15 23:12:43 +000028549rm -f core conftest.err conftest.$ac_objext \
28550 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028551LIBS=$ac_check_lib_save_LIBS
28552fi
cristy8b350f62009-11-15 23:12:43 +000028553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028555if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028556 LIB_DL='-ldl'
28557fi
28558
28559 LIBS="$LIB_DL $LIBS"
28560fi
28561
28562
28563
28564#
cristy5a3dc992014-12-05 19:50:04 +000028565# Set Apple font directory.
28566#
28567
28568# Check whether --with-apple-font-dir was given.
28569if test "${with_apple_font_dir+set}" = set; then :
28570 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28571else
28572 with_apple_font_dir='default'
28573fi
28574
28575
28576if test "$with_apple_font_dir" != 'default'; then
28577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28578fi
28579
28580
28581#
cristy3ed852e2009-09-05 21:47:34 +000028582# Check for Autotrace delegate library.
28583#
28584
28585# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028586if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028587 withval=$with_autotrace; with_autotrace=$withval
28588else
28589 with_autotrace='no'
28590fi
28591
28592
28593if test "$with_autotrace" != 'yes'; then
28594 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28595fi
28596
28597have_autotrace='no'
28598AUTOTRACE_CFLAGS=""
28599AUTOTRACE_LIBS=""
28600AUTOTRACE_PKG=""
28601if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28603$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028604
28605pkg_failed=no
28606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28607$as_echo_n "checking for AUTOTRACE... " >&6; }
28608
28609if test -n "$AUTOTRACE_CFLAGS"; then
28610 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28611 elif test -n "$PKG_CONFIG"; then
28612 if test -n "$PKG_CONFIG" && \
28613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28614 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28617 test $ac_status = 0; }; then
28618 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28619else
28620 pkg_failed=yes
28621fi
28622 else
28623 pkg_failed=untried
28624fi
28625if test -n "$AUTOTRACE_LIBS"; then
28626 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28627 elif test -n "$PKG_CONFIG"; then
28628 if test -n "$PKG_CONFIG" && \
28629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28630 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28631 ac_status=$?
28632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28633 test $ac_status = 0; }; then
28634 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28635else
28636 pkg_failed=yes
28637fi
28638 else
28639 pkg_failed=untried
28640fi
28641
28642
28643
28644if test $pkg_failed = yes; then
28645
28646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28647 _pkg_short_errors_supported=yes
28648else
28649 _pkg_short_errors_supported=no
28650fi
28651 if test $_pkg_short_errors_supported = yes; then
28652 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28653 else
28654 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28655 fi
28656 # Put the nasty error message in config.log where it belongs
28657 echo "$AUTOTRACE_PKG_ERRORS" >&5
28658
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28660$as_echo "no" >&6; }
28661 have_autotrace=no
28662elif test $pkg_failed = untried; then
28663 have_autotrace=no
28664else
28665 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28666 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28668$as_echo "yes" >&6; }
28669 have_autotrace=yes
28670fi
cristyad38abe2012-12-23 23:03:21 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28672$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028673fi
28674
28675if test "$have_autotrace" = 'yes'; then
28676 failed=0
28677
cristy8b350f62009-11-15 23:12:43 +000028678$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028679
cristyc6722092012-10-14 00:19:31 +000028680 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028681 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028682 fi
28683fi
28684
cristy73bd4a52010-10-05 11:24:23 +000028685 if test "$have_autotrace" = 'yes'; then
28686 AUTOTRACE_DELEGATE_TRUE=
28687 AUTOTRACE_DELEGATE_FALSE='#'
28688else
28689 AUTOTRACE_DELEGATE_TRUE='#'
28690 AUTOTRACE_DELEGATE_FALSE=
28691fi
28692
cristy3ed852e2009-09-05 21:47:34 +000028693
28694
28695
28696
28697#
28698# Check for Display Postscript delegate library.
28699#
28700
28701# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028702if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 withval=$with_dps; with_dps=$withval
28704else
28705 with_dps='yes'
28706fi
28707
28708
28709if test "$with_dps" != 'yes'; then
28710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28711fi
28712
28713have_dps='no'
28714DPS_LIBS=''
28715if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28717$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28721$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028722 failed=0
28723 passed=0
28724 PERSIST_CPPFLAGS="$CPPFLAGS"
28725 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028726 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 +000028727if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 passed=`expr $passed + 1`
28729else
28730 failed=`expr $failed + 1`
28731fi
28732
28733
28734 # DPS issues:
28735 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28736 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28737 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28738 # ImageMagick itself doesn't use -lXt.
28739 have_libdps='no'
28740 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028742$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028743if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028744 $as_echo_n "(cached) " >&6
28745else
28746 ac_check_lib_save_LIBS=$LIBS
28747LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028749/* end confdefs.h. */
28750
28751/* Override any GCC internal prototype to avoid an error.
28752 Use char because int might match the return type of a GCC
28753 builtin and then its argument prototype would still apply. */
28754#ifdef __cplusplus
28755extern "C"
28756#endif
28757char DPSInitialize ();
28758int
28759main ()
28760{
28761return DPSInitialize ();
28762 ;
28763 return 0;
28764}
28765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028767 ac_cv_lib_dps_DPSInitialize=yes
28768else
cristy8b350f62009-11-15 23:12:43 +000028769 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028770fi
cristy8b350f62009-11-15 23:12:43 +000028771rm -f core conftest.err conftest.$ac_objext \
28772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028773LIBS=$ac_check_lib_save_LIBS
28774fi
cristy8b350f62009-11-15 23:12:43 +000028775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028776$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028777if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028778 have_libdps='yes'
28779else
28780 have_libdps='no'
28781fi
28782
28783 if test "$have_libdps" != 'yes'; then
28784 # Unset cache variable so we can try again.
28785 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028787$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028788if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028789 $as_echo_n "(cached) " >&6
28790else
28791 ac_check_lib_save_LIBS=$LIBS
28792LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028794/* end confdefs.h. */
28795
28796/* Override any GCC internal prototype to avoid an error.
28797 Use char because int might match the return type of a GCC
28798 builtin and then its argument prototype would still apply. */
28799#ifdef __cplusplus
28800extern "C"
28801#endif
28802char DPSInitialize ();
28803int
28804main ()
28805{
28806return DPSInitialize ();
28807 ;
28808 return 0;
28809}
28810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028812 ac_cv_lib_dps_DPSInitialize=yes
28813else
cristy8b350f62009-11-15 23:12:43 +000028814 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028815fi
cristy8b350f62009-11-15 23:12:43 +000028816rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028818LIBS=$ac_check_lib_save_LIBS
28819fi
cristy8b350f62009-11-15 23:12:43 +000028820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028822if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 have_libdps='yes'
28824else
28825 have_libdps='no'
28826fi
28827
28828 if test "$have_libdps" = 'yes'; then
28829 LIBDPS_XT='-lXt'
28830 fi
28831 fi
28832 if test "$have_libdps" = 'yes'; then
28833 passed=`expr $passed + 1`
28834 else
28835 failed=`expr $failed + 1`
28836 fi
cristy8b350f62009-11-15 23:12:43 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028838$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028839if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028840 $as_echo_n "(cached) " >&6
28841else
28842 ac_check_lib_save_LIBS=$LIBS
28843LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028845/* end confdefs.h. */
28846
28847/* Override any GCC internal prototype to avoid an error.
28848 Use char because int might match the return type of a GCC
28849 builtin and then its argument prototype would still apply. */
28850#ifdef __cplusplus
28851extern "C"
28852#endif
28853char XDPSPixelsPerPoint ();
28854int
28855main ()
28856{
28857return XDPSPixelsPerPoint ();
28858 ;
28859 return 0;
28860}
28861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28864else
cristy8b350f62009-11-15 23:12:43 +000028865 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028866fi
cristy8b350f62009-11-15 23:12:43 +000028867rm -f core conftest.err conftest.$ac_objext \
28868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028869LIBS=$ac_check_lib_save_LIBS
28870fi
cristy8b350f62009-11-15 23:12:43 +000028871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028872$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028873if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028874 passed=`expr $passed + 1`
28875else
28876 failed=`expr $failed + 1`
28877fi
28878
cristy8b350f62009-11-15 23:12:43 +000028879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028880$as_echo_n "checking if DPS package is complete... " >&6; }
28881 if test $passed -gt 0; then
28882 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28884$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028885 have_dps='no (failed tests)'
28886 CPPFLAGS="$PERSIST_CPPFLAGS"
28887 else
28888 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28889 LIBS="$DPS_LIBS $LIBS"
28890
cristy8b350f62009-11-15 23:12:43 +000028891$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028892
cristyad38abe2012-12-23 23:03:21 +000028893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28894$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028895 have_dps='yes'
28896 fi
28897 else
cristyad38abe2012-12-23 23:03:21 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28899$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028900 CPPFLAGS=$PERSIST_CPPFLAGS
28901 fi
28902fi
cristy73bd4a52010-10-05 11:24:23 +000028903 if test "$have_dps" = 'yes'; then
28904 DPS_DELEGATE_TRUE=
28905 DPS_DELEGATE_FALSE='#'
28906else
28907 DPS_DELEGATE_TRUE='#'
28908 DPS_DELEGATE_FALSE=
28909fi
28910
cristy3ed852e2009-09-05 21:47:34 +000028911
28912
28913
28914#
cristy430a7312010-01-21 20:44:04 +000028915# Set DejaVu font directory.
28916#
28917
28918# Check whether --with-dejavu-font-dir was given.
28919if test "${with_dejavu_font_dir+set}" = set; then :
28920 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28921else
28922 with_dejavu_font_dir='default'
28923fi
28924
28925
28926if test "$with_dejavu_font_dir" != 'default'; then
28927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28928fi
28929
28930
28931#
cristy3ed852e2009-09-05 21:47:34 +000028932# Check for FFTW delegate library.
28933#
28934
28935# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028936if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 withval=$with_fftw; with_fftw=$withval
28938else
28939 with_fftw='yes'
28940fi
28941
28942
28943if test "$with_fftw" != 'yes'; then
28944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28945fi
28946
cristy81beccd2011-10-03 18:17:24 +000028947have_fftw='no'
28948FFTW_LIBS=''
28949if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28951$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28953$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28955$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028956 failed=0
28957 passed=0
28958 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28959if test "x$ac_cv_header_fftw3_h" = xyes; then :
28960 passed=`expr $passed + 1`
28961else
28962 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028963fi
28964
cristy81beccd2011-10-03 18:17:24 +000028965
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28967$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28968if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28969 $as_echo_n "(cached) " >&6
28970else
28971 ac_check_lib_save_LIBS=$LIBS
28972LIBS="-lfftw3 $LIBS"
28973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974/* end confdefs.h. */
28975
28976/* Override any GCC internal prototype to avoid an error.
28977 Use char because int might match the return type of a GCC
28978 builtin and then its argument prototype would still apply. */
28979#ifdef __cplusplus
28980extern "C"
28981#endif
28982char fftw_execute ();
28983int
28984main ()
28985{
28986return fftw_execute ();
28987 ;
28988 return 0;
28989}
28990_ACEOF
28991if ac_fn_c_try_link "$LINENO"; then :
28992 ac_cv_lib_fftw3_fftw_execute=yes
28993else
28994 ac_cv_lib_fftw3_fftw_execute=no
28995fi
28996rm -f core conftest.err conftest.$ac_objext \
28997 conftest$ac_exeext conftest.$ac_ext
28998LIBS=$ac_check_lib_save_LIBS
28999fi
29000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29001$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29002if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29003 passed=`expr $passed + 1`
29004else
29005 failed=`expr $failed + 1`
29006fi
29007
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29009$as_echo_n "checking if FFTW package is complete... " >&6; }
29010 if test $passed -gt 0; then
29011 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29013$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029014 have_fftw='no (failed tests)'
29015 else
29016 FFTW_LIBS='-lfftw3'
29017 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029018
cristy8b350f62009-11-15 23:12:43 +000029019$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029020
cristyad38abe2012-12-23 23:03:21 +000029021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29022$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029023 have_fftw='yes'
29024 fi
29025 else
cristyad38abe2012-12-23 23:03:21 +000029026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29027$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029028 fi
29029fi
cristy73bd4a52010-10-05 11:24:23 +000029030 if test "$have_fftw" = 'yes'; then
29031 FFTW_DELEGATE_TRUE=
29032 FFTW_DELEGATE_FALSE='#'
29033else
29034 FFTW_DELEGATE_TRUE='#'
29035 FFTW_DELEGATE_FALSE=
29036fi
29037
cristy3ed852e2009-09-05 21:47:34 +000029038
29039
29040
29041#
29042# Check for FlashPIX delegate library.
29043#
29044
29045# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029046if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029047 withval=$with_fpx; with_fpx=$withval
29048else
29049 with_fpx='yes'
29050fi
29051
29052
29053if test "$with_fpx" != 'yes'; then
29054 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29055fi
29056
29057have_fpx='no'
29058FPX_LIBS=''
29059if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29061$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029063$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29065$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029066 failed=0
29067 passed=0
29068 ac_ext=cpp
29069ac_cpp='$CXXCPP $CPPFLAGS'
29070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29073
29074
cristy8b350f62009-11-15 23:12:43 +000029075ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029076if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029077 passed=`expr $passed + 1`
29078else
29079 failed=`expr $failed + 1`
29080fi
29081
29082
cristy8b350f62009-11-15 23:12:43 +000029083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029084$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029085if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029086 $as_echo_n "(cached) " >&6
29087else
29088 ac_check_lib_save_LIBS=$LIBS
29089LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029091/* end confdefs.h. */
29092
29093/* Override any GCC internal prototype to avoid an error.
29094 Use char because int might match the return type of a GCC
29095 builtin and then its argument prototype would still apply. */
29096#ifdef __cplusplus
29097extern "C"
29098#endif
29099char FPX_OpenImageByFilename ();
29100int
29101main ()
29102{
29103return FPX_OpenImageByFilename ();
29104 ;
29105 return 0;
29106}
29107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029108if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029109 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29110else
cristy8b350f62009-11-15 23:12:43 +000029111 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029112fi
cristy8b350f62009-11-15 23:12:43 +000029113rm -f core conftest.err conftest.$ac_objext \
29114 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029115LIBS=$ac_check_lib_save_LIBS
29116fi
cristy8b350f62009-11-15 23:12:43 +000029117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029119if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029120 passed=`expr $passed + 1`
29121else
29122 failed=`expr $failed + 1`
29123fi
29124
29125 ac_ext=c
29126ac_cpp='$CPP $CPPFLAGS'
29127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129ac_compiler_gnu=$ac_cv_c_compiler_gnu
29130
cristy8b350f62009-11-15 23:12:43 +000029131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029132$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29133 if test $passed -gt 0; then
29134 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29136$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029137 have_fpx='no (failed tests)'
29138 else
29139 FPX_LIBS='-lfpx'
29140
cristy8b350f62009-11-15 23:12:43 +000029141$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029142
cristyad38abe2012-12-23 23:03:21 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29144$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029145 have_fpx='yes'
29146 PERLMAINCC="$CXX"
29147 fi
29148 else
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29150$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029151 fi
29152fi
cristy73bd4a52010-10-05 11:24:23 +000029153 if test "$have_fpx" = 'yes'; then
29154 FPX_DELEGATE_TRUE=
29155 FPX_DELEGATE_FALSE='#'
29156else
29157 FPX_DELEGATE_TRUE='#'
29158 FPX_DELEGATE_FALSE=
29159fi
29160
cristy3ed852e2009-09-05 21:47:34 +000029161
cristy853d9902014-08-21 18:50:43 +000029162
29163
29164#
29165# Check for DJVU delegate library.
29166#
29167
29168# Check whether --with-djvu was given.
29169if test "${with_djvu+set}" = set; then :
29170 withval=$with_djvu; with_djvu=$withval
29171else
29172 with_djvu='yes'
29173fi
29174
29175
29176if test "$with_djvu" != 'yes'; then
29177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29178fi
29179
29180have_djvu='no'
29181DJVU_LIBS=''
29182if test "$with_djvu" != 'no'; then
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29184$as_echo "-------------------------------------------------------------" >&6; }
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29186$as_echo_n "checking for DJVU... " >&6; }
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29188$as_echo "" >&6; }
29189 failed=0
29190 passed=0
29191 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29192if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29193 passed=`expr $passed + 1`
29194else
29195 failed=`expr $failed + 1`
29196fi
29197
29198
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29200$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29201if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29202 $as_echo_n "(cached) " >&6
29203else
29204 ac_check_lib_save_LIBS=$LIBS
29205LIBS="-ldjvulibre $LIBS"
29206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29207/* end confdefs.h. */
29208
29209/* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
29212#ifdef __cplusplus
29213extern "C"
29214#endif
29215char ddjvu_context_create ();
29216int
29217main ()
29218{
29219return ddjvu_context_create ();
29220 ;
29221 return 0;
29222}
29223_ACEOF
29224if ac_fn_c_try_link "$LINENO"; then :
29225 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29226else
29227 ac_cv_lib_djvulibre_ddjvu_context_create=no
29228fi
29229rm -f core conftest.err conftest.$ac_objext \
29230 conftest$ac_exeext conftest.$ac_ext
29231LIBS=$ac_check_lib_save_LIBS
29232fi
29233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29234$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29235if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29236 passed=`expr $passed + 1`
29237else
29238 failed=`expr $failed + 1`
29239fi
29240
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29242$as_echo_n "checking if DJVU package is complete... " >&6; }
29243 if test $passed -gt 0; then
29244 if test $failed -gt 0; then
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29246$as_echo "no -- some components failed test" >&6; }
29247 have_djvu='no (failed tests)'
29248 else
29249 DJVU_LIBS='-ldjvulibre'
29250 LIBS="$DJVU_LIBS $LIBS"
29251
29252$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29253
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29255$as_echo "yes" >&6; }
29256 have_djvu='yes'
29257 fi
29258 else
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29260$as_echo "no" >&6; }
29261 fi
29262fi
29263 if test "$have_djvu" = 'yes'; then
29264 DJVU_DELEGATE_TRUE=
29265 DJVU_DELEGATE_FALSE='#'
29266else
29267 DJVU_DELEGATE_TRUE='#'
29268 DJVU_DELEGATE_FALSE=
29269fi
29270
29271
cristy3ed852e2009-09-05 21:47:34 +000029272
29273
29274#
29275# Check for fontconfig delegate library.
29276#
29277
29278# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029279if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029280 withval=$with_fontconfig; with_fontconfig=$withval
29281else
cristyfc3d0222012-02-07 15:05:57 +000029282 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029283fi
29284
29285
29286if test "$with_fontconfig" != 'yes'; then
29287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29288fi
29289
29290have_fontconfig='no'
29291FONTCONFIG_CFLAGS=""
29292FONTCONFIG_LIBS=""
29293FONTCONFIG_PKG=""
29294if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29296$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029297
29298pkg_failed=no
29299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29300$as_echo_n "checking for FONTCONFIG... " >&6; }
29301
29302if test -n "$FONTCONFIG_CFLAGS"; then
29303 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29304 elif test -n "$PKG_CONFIG"; then
29305 if test -n "$PKG_CONFIG" && \
29306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29307 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29308 ac_status=$?
29309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29310 test $ac_status = 0; }; then
29311 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29312else
29313 pkg_failed=yes
29314fi
29315 else
29316 pkg_failed=untried
29317fi
29318if test -n "$FONTCONFIG_LIBS"; then
29319 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29320 elif test -n "$PKG_CONFIG"; then
29321 if test -n "$PKG_CONFIG" && \
29322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29323 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29324 ac_status=$?
29325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29326 test $ac_status = 0; }; then
29327 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29328else
29329 pkg_failed=yes
29330fi
29331 else
29332 pkg_failed=untried
29333fi
29334
29335
29336
29337if test $pkg_failed = yes; then
29338
29339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29340 _pkg_short_errors_supported=yes
29341else
29342 _pkg_short_errors_supported=no
29343fi
29344 if test $_pkg_short_errors_supported = yes; then
29345 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29346 else
29347 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29348 fi
29349 # Put the nasty error message in config.log where it belongs
29350 echo "$FONTCONFIG_PKG_ERRORS" >&5
29351
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29353$as_echo "no" >&6; }
29354 have_fontconfig=no
29355elif test $pkg_failed = untried; then
29356 have_fontconfig=no
29357else
29358 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29359 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29361$as_echo "yes" >&6; }
29362 have_fontconfig=yes
29363fi
cristyad38abe2012-12-23 23:03:21 +000029364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29365$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029366fi
29367
29368if test "$have_fontconfig" = 'yes'; then
29369
cristy8b350f62009-11-15 23:12:43 +000029370$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029371
cristyc6722092012-10-14 00:19:31 +000029372 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029373 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029374 fi
cristy3ed852e2009-09-05 21:47:34 +000029375fi
29376
cristy73bd4a52010-10-05 11:24:23 +000029377 if test "$have_fontconfig" = 'yes'; then
29378 FONTCONFIG_DELEGATE_TRUE=
29379 FONTCONFIG_DELEGATE_FALSE='#'
29380else
29381 FONTCONFIG_DELEGATE_TRUE='#'
29382 FONTCONFIG_DELEGATE_FALSE=
29383fi
29384
cristy3ed852e2009-09-05 21:47:34 +000029385
29386
29387
29388
29389#
cristy03f187e2013-01-24 00:22:19 +000029390# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029391#
29392
29393# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029394if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029395 withval=$with_freetype; with_freetype=$withval
29396else
29397 with_freetype='yes'
29398fi
29399
29400
cristy3ed852e2009-09-05 21:47:34 +000029401if test "$with_freetype" != 'yes'; then
29402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29403fi
29404
cristy81beccd2011-10-03 18:17:24 +000029405have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029406FREETYPE_CFLAGS=""
29407FREETYPE_LIBS=""
29408FREETYPE_PKG=""
29409if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29411$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029412
29413pkg_failed=no
29414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29415$as_echo_n "checking for FREETYPE... " >&6; }
29416
29417if test -n "$FREETYPE_CFLAGS"; then
29418 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29419 elif test -n "$PKG_CONFIG"; then
29420 if test -n "$PKG_CONFIG" && \
29421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29422 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29423 ac_status=$?
29424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29425 test $ac_status = 0; }; then
29426 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29427else
29428 pkg_failed=yes
29429fi
29430 else
29431 pkg_failed=untried
29432fi
29433if test -n "$FREETYPE_LIBS"; then
29434 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29435 elif test -n "$PKG_CONFIG"; then
29436 if test -n "$PKG_CONFIG" && \
29437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29438 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29439 ac_status=$?
29440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29441 test $ac_status = 0; }; then
29442 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29443else
29444 pkg_failed=yes
29445fi
29446 else
29447 pkg_failed=untried
29448fi
29449
29450
29451
29452if test $pkg_failed = yes; then
29453
29454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29455 _pkg_short_errors_supported=yes
29456else
29457 _pkg_short_errors_supported=no
29458fi
29459 if test $_pkg_short_errors_supported = yes; then
29460 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29461 else
29462 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29463 fi
29464 # Put the nasty error message in config.log where it belongs
29465 echo "$FREETYPE_PKG_ERRORS" >&5
29466
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29468$as_echo "no" >&6; }
29469 have_freetype=no
29470elif test $pkg_failed = untried; then
29471 have_freetype=no
29472else
29473 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29474 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29476$as_echo "yes" >&6; }
29477 have_freetype=yes
29478fi
cristyad38abe2012-12-23 23:03:21 +000029479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29480$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029481fi
29482
cristy03f187e2013-01-24 00:22:19 +000029483if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029484
cristy8b350f62009-11-15 23:12:43 +000029485$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029486
cristy03f187e2013-01-24 00:22:19 +000029487 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029488fi
cristy03f187e2013-01-24 00:22:19 +000029489
cristy73bd4a52010-10-05 11:24:23 +000029490 if test "$have_freetype" = 'yes'; then
29491 FREETYPE_DELEGATE_TRUE=
29492 FREETYPE_DELEGATE_FALSE='#'
29493else
29494 FREETYPE_DELEGATE_TRUE='#'
29495 FREETYPE_DELEGATE_FALSE=
29496fi
29497
cristy3ed852e2009-09-05 21:47:34 +000029498
29499
29500
cristy03f187e2013-01-24 00:22:19 +000029501
cristy3ed852e2009-09-05 21:47:34 +000029502#
29503# Check for Ghostscript library or framework.
29504#
29505# Test for iapi.h & test for gsapi_new_instance in -lgs
29506# or -framework Ghostscript
29507
29508
29509# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029510if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029511 withval=$with_gslib; with_gslib=$withval
29512else
29513 with_gslib='no'
29514fi
29515
29516
cristyb7931f12009-09-25 10:22:21 +000029517gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029518if test "$with_gslib" != 'yes'; then
29519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29520fi
29521
29522have_gslib='no'
29523GS_LIBS=''
29524if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29526$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029528$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29530$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029531 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029532 failed=0
29533 passed=0
cristy8b350f62009-11-15 23:12:43 +000029534 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 +000029535if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029536 passed=`expr $passed + 1`
29537else
29538 failed=`expr $failed + 1`
29539fi
29540
29541
cristy8b350f62009-11-15 23:12:43 +000029542 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 +000029543if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029544 passed=`expr $passed + 1`
29545else
29546 failed=`expr $failed + 1`
29547fi
29548
29549
cristy73bd4a52010-10-05 11:24:23 +000029550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29551$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029552if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029553 $as_echo_n "(cached) " >&6
29554else
29555 ac_check_framework_save_LIBS=$LIBS
29556LIBS="-framework Ghostscript $LIBS"
29557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29558/* end confdefs.h. */
29559
29560/* Override any GCC internal prototype to avoid an error.
29561 Use char because int might match the return type of a GCC
29562 builtin and then its argument prototype would still apply. */
29563#ifdef __cplusplus
29564extern "C"
29565#endif
29566char gsapi_new_instance ();
29567int
29568main ()
29569{
29570return gsapi_new_instance ();
29571 ;
29572 return 0;
29573}
29574_ACEOF
29575if ac_fn_c_try_link "$LINENO"; then :
29576 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29577else
29578 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29579fi
29580rm -f core conftest.err conftest.$ac_objext \
29581 conftest$ac_exeext conftest.$ac_ext
29582LIBS=$ac_check_framework_save_LIBS
29583fi
29584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29585$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29586if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29587 framework=`expr $framework + 1`
29588else
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029590$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029591if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029592 $as_echo_n "(cached) " >&6
29593else
29594 ac_check_lib_save_LIBS=$LIBS
29595LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029597/* end confdefs.h. */
29598
29599/* Override any GCC internal prototype to avoid an error.
29600 Use char because int might match the return type of a GCC
29601 builtin and then its argument prototype would still apply. */
29602#ifdef __cplusplus
29603extern "C"
29604#endif
29605char gsapi_new_instance ();
29606int
29607main ()
29608{
29609return gsapi_new_instance ();
29610 ;
29611 return 0;
29612}
29613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029615 ac_cv_lib_gs_gsapi_new_instance=yes
29616else
cristy8b350f62009-11-15 23:12:43 +000029617 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029618fi
cristy8b350f62009-11-15 23:12:43 +000029619rm -f core conftest.err conftest.$ac_objext \
29620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029621LIBS=$ac_check_lib_save_LIBS
29622fi
cristy8b350f62009-11-15 23:12:43 +000029623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029624$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029625if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029626 passed=`expr $passed + 1`
29627else
29628 failed=`expr $failed + 1`
29629fi
cristy73bd4a52010-10-05 11:24:23 +000029630
29631fi
cristy8b350f62009-11-15 23:12:43 +000029632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29634 if test $passed -gt 0; then
29635 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29637$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029638 have_gslib='no (failed tests)'
29639 else
29640 if test $framework -gt 0; then
29641 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029642 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29644$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029645 else
cristyad38abe2012-12-23 23:03:21 +000029646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29647$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029648 GS_LIBS='-lgs'
29649 fi
29650 LIBS="$GS_LIBS $LIBS"
29651
cristy8b350f62009-11-15 23:12:43 +000029652$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029653
29654 have_gslib='yes'
29655 fi
29656 else
cristyad38abe2012-12-23 23:03:21 +000029657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29658$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029659 fi
29660fi
cristy73bd4a52010-10-05 11:24:23 +000029661 if test "$have_gslib" = 'yes'; then
29662 GS_DELEGATE_TRUE=
29663 GS_DELEGATE_FALSE='#'
29664else
29665 GS_DELEGATE_TRUE='#'
29666 GS_DELEGATE_FALSE=
29667fi
29668
cristy3ed852e2009-09-05 21:47:34 +000029669
29670
29671# Set default font search path
29672
29673# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029674if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029675 withval=$with_fontpath; with_fontpath=$withval
29676else
29677 with_fontpath=''
29678fi
29679
29680
29681if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29682 with_fontpath=''
29683else
29684
29685cat >>confdefs.h <<_ACEOF
29686#define MAGICK_FONT_PATH "$with_fontpath"
29687_ACEOF
29688
29689fi
29690if test "$with_fontpath=" != ''; then
29691 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29692fi
29693
29694# Set Ghostscript font directory
29695
29696# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029697if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29699else
29700 with_gs_font_dir='default'
29701fi
29702
29703
29704if test "$with_gs_font_dir" != 'default'; then
29705 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29706fi
29707
29708
29709#
29710# Check for GVC delegate library.
29711#
29712
29713# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029714if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 withval=$with_gvc; with_gvc=$withval
29716else
cristy1b70dc82012-07-01 23:15:05 +000029717 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029718fi
29719
29720
29721if test "$with_gvc" != 'yes'; then
29722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29723fi
29724
29725GVC_PKG=""
29726if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29728$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029729
29730pkg_failed=no
29731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29732$as_echo_n "checking for GVC... " >&6; }
29733
29734if test -n "$GVC_CFLAGS"; then
29735 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29736 elif test -n "$PKG_CONFIG"; then
29737 if test -n "$PKG_CONFIG" && \
29738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29739 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29740 ac_status=$?
29741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29742 test $ac_status = 0; }; then
29743 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29744else
29745 pkg_failed=yes
29746fi
29747 else
29748 pkg_failed=untried
29749fi
29750if test -n "$GVC_LIBS"; then
29751 pkg_cv_GVC_LIBS="$GVC_LIBS"
29752 elif test -n "$PKG_CONFIG"; then
29753 if test -n "$PKG_CONFIG" && \
29754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29755 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29756 ac_status=$?
29757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29758 test $ac_status = 0; }; then
29759 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29760else
29761 pkg_failed=yes
29762fi
29763 else
29764 pkg_failed=untried
29765fi
29766
29767
29768
29769if test $pkg_failed = yes; then
29770
29771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29772 _pkg_short_errors_supported=yes
29773else
29774 _pkg_short_errors_supported=no
29775fi
29776 if test $_pkg_short_errors_supported = yes; then
29777 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29778 else
29779 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29780 fi
29781 # Put the nasty error message in config.log where it belongs
29782 echo "$GVC_PKG_ERRORS" >&5
29783
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785$as_echo "no" >&6; }
29786 have_gvc=no
29787elif test $pkg_failed = untried; then
29788 have_gvc=no
29789else
29790 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29791 GVC_LIBS=$pkg_cv_GVC_LIBS
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29793$as_echo "yes" >&6; }
29794 have_gvc=yes
29795fi
cristyad38abe2012-12-23 23:03:21 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29797$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029798fi
29799
29800if test "$have_gvc" = 'yes'; then
29801
cristy8b350f62009-11-15 23:12:43 +000029802$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029803
cristyc6722092012-10-14 00:19:31 +000029804 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029805 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29806 fi
29807fi
29808
cristy73bd4a52010-10-05 11:24:23 +000029809 if test "$have_gvc" = 'yes'; then
29810 GVC_DELEGATE_TRUE=
29811 GVC_DELEGATE_FALSE='#'
29812else
29813 GVC_DELEGATE_TRUE='#'
29814 GVC_DELEGATE_FALSE=
29815fi
29816
cristy3ed852e2009-09-05 21:47:34 +000029817
29818
29819
29820
29821#
29822# Check for JBIG delegate library.
29823#
29824
29825
29826# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029827if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 withval=$with_jbig; with_jbig=$withval
29829else
29830 with_jbig='yes'
29831fi
29832
29833
29834have_jbig='no'
29835JBIG_LIBS=''
29836if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29838$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29842$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029843 failed=0
29844 passed=0
cristy8b350f62009-11-15 23:12:43 +000029845 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029846if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029847 passed=`expr $passed + 1`
29848else
29849 failed=`expr $failed + 1`
29850fi
29851
29852
cristy8b350f62009-11-15 23:12:43 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029855if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029856 $as_echo_n "(cached) " >&6
29857else
29858 ac_check_lib_save_LIBS=$LIBS
29859LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029861/* end confdefs.h. */
29862
29863/* Override any GCC internal prototype to avoid an error.
29864 Use char because int might match the return type of a GCC
29865 builtin and then its argument prototype would still apply. */
29866#ifdef __cplusplus
29867extern "C"
29868#endif
29869char jbg_dec_init ();
29870int
29871main ()
29872{
29873return jbg_dec_init ();
29874 ;
29875 return 0;
29876}
29877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029879 ac_cv_lib_jbig_jbg_dec_init=yes
29880else
cristy8b350f62009-11-15 23:12:43 +000029881 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029882fi
cristy8b350f62009-11-15 23:12:43 +000029883rm -f core conftest.err conftest.$ac_objext \
29884 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029885LIBS=$ac_check_lib_save_LIBS
29886fi
cristy8b350f62009-11-15 23:12:43 +000029887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029888$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029889if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029890 passed=`expr $passed + 1`
29891else
29892 failed=`expr $failed + 1`
29893fi
29894
cristy8b350f62009-11-15 23:12:43 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029896$as_echo_n "checking if JBIG package is complete... " >&6; }
29897 if test $passed -gt 0; then
29898 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29900$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029901 have_jbig='no (failed tests)'
29902 else
29903 JBIG_LIBS='-ljbig'
29904 LIBS="$JBIG_LIBS $LIBS"
29905
cristy8b350f62009-11-15 23:12:43 +000029906$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029907
cristyad38abe2012-12-23 23:03:21 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29909$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029910 have_jbig='yes'
29911 fi
29912 else
cristyad38abe2012-12-23 23:03:21 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29914$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029915 fi
29916fi
cristy73bd4a52010-10-05 11:24:23 +000029917 if test "$have_jbig" = 'yes'; then
29918 JBIG_DELEGATE_TRUE=
29919 JBIG_DELEGATE_FALSE='#'
29920else
29921 JBIG_DELEGATE_TRUE='#'
29922 JBIG_DELEGATE_FALSE=
29923fi
29924
cristy3ed852e2009-09-05 21:47:34 +000029925
29926
29927
29928#
29929# Check for JPEG delegate library.
29930#
29931
29932# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029933if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 withval=$with_jpeg; with_jpeg=$withval
29935else
29936 with_jpeg='yes'
29937fi
29938
29939
29940if test "$with_jpeg" != 'yes'; then
29941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29942fi
29943
29944have_jpeg='no'
29945JPEG_LIBS=''
29946if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29948$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29952$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029953 failed=0
29954 passed=0
cristy8b350f62009-11-15 23:12:43 +000029955 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029956if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 passed=`expr $passed + 1`
29958else
29959 failed=`expr $failed + 1`
29960fi
29961
29962
cristy8b350f62009-11-15 23:12:43 +000029963 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029964if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029965 passed=`expr $passed + 1`
29966else
29967 failed=`expr $failed + 1`
29968fi
29969
29970
cristy8b350f62009-11-15 23:12:43 +000029971 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029972if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029973 passed=`expr $passed + 1`
29974else
29975 failed=`expr $failed + 1`
29976fi
29977
29978
cristy8b350f62009-11-15 23:12:43 +000029979 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029980if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 passed=`expr $passed + 1`
29982else
29983 failed=`expr $failed + 1`
29984fi
29985
29986
cristy8b350f62009-11-15 23:12:43 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029989if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029990 $as_echo_n "(cached) " >&6
29991else
29992 ac_check_lib_save_LIBS=$LIBS
29993LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029995/* end confdefs.h. */
29996
29997/* Override any GCC internal prototype to avoid an error.
29998 Use char because int might match the return type of a GCC
29999 builtin and then its argument prototype would still apply. */
30000#ifdef __cplusplus
30001extern "C"
30002#endif
30003char jpeg_read_header ();
30004int
30005main ()
30006{
30007return jpeg_read_header ();
30008 ;
30009 return 0;
30010}
30011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030012if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030013 ac_cv_lib_jpeg_jpeg_read_header=yes
30014else
cristy8b350f62009-11-15 23:12:43 +000030015 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030016fi
cristy8b350f62009-11-15 23:12:43 +000030017rm -f core conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030019LIBS=$ac_check_lib_save_LIBS
30020fi
cristy8b350f62009-11-15 23:12:43 +000030021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030022$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030023if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030024 passed=`expr $passed + 1`
30025else
30026 failed=`expr $failed + 1`
30027fi
30028
30029
30030# Test for compatible JPEG library
30031if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030033$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030034if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 $as_echo_n "(cached) " >&6
30036else
cristy8b350f62009-11-15 23:12:43 +000030037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030038/* end confdefs.h. */
30039#include <stdio.h>
30040#include <stdlib.h>
30041#include <jpeglib.h>
30042
30043int
30044main ()
30045{
30046
30047#if JPEG_LIB_VERSION < 62
30048#error IJG JPEG library must be version 6b or newer!
30049#endif
30050return 0;
30051
30052 ;
30053 return 0;
30054}
30055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030056if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030057 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30058else
cristy8b350f62009-11-15 23:12:43 +000030059 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030060fi
cristy3ed852e2009-09-05 21:47:34 +000030061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30062fi
cristy8b350f62009-11-15 23:12:43 +000030063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30065fi
cristy8b350f62009-11-15 23:12:43 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030067$as_echo_n "checking if JPEG package is complete... " >&6; }
30068 if test $passed -gt 0; then
30069 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30071$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030072 have_jpeg='no (failed tests)'
30073 else
30074 JPEG_LIBS='-ljpeg'
30075 LIBS="$JPEG_LIBS $LIBS"
30076
cristy8b350f62009-11-15 23:12:43 +000030077$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030078
cristyad38abe2012-12-23 23:03:21 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030081 have_jpeg='yes'
30082 fi
30083 else
cristyad38abe2012-12-23 23:03:21 +000030084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30085$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030086 fi
30087fi
cristy73bd4a52010-10-05 11:24:23 +000030088 if test "$have_jpeg" = 'yes'; then
30089 JPEG_DELEGATE_TRUE=
30090 JPEG_DELEGATE_FALSE='#'
30091else
30092 JPEG_DELEGATE_TRUE='#'
30093 JPEG_DELEGATE_FALSE=
30094fi
30095
cristy3ed852e2009-09-05 21:47:34 +000030096
30097
30098
30099#
cristy3ed852e2009-09-05 21:47:34 +000030100# Check for LCMS delegate library.
30101#
cristy71203402010-06-18 13:12:03 +000030102# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030103
30104# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030105if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030106 withval=$with_lcms; with_lcms=$withval
30107else
30108 with_lcms='yes'
30109fi
30110
cristy71203402010-06-18 13:12:03 +000030111if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30113fi
30114
cristy71203402010-06-18 13:12:03 +000030115# Disable LCMS2.
30116
30117# Check whether --with-lcms2 was given.
30118if test "${with_lcms2+set}" = set; then :
30119 withval=$with_lcms2; with_lcms2=$withval
30120else
30121 with_lcms2='yes'
30122fi
30123
30124if test "$with_lcms2" != 'yes' ; then
30125 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30126fi
30127
30128have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030129LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030130if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30132$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30134$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30136$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030137 failed=0
30138 passed=0
30139 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030140
30141 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030142 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030143if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030144 have_lcms_header='yes'
30145fi
30146
30147
30148 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030149
30150$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30151
cristy71203402010-06-18 13:12:03 +000030152 passed=`expr $passed + 1`
30153 fi
30154
30155 # Check for <lcms2/lcms2.h)
30156 if test "$have_lcms_header" != 'yes'; then
30157 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 +000030158if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030159 have_lcms_header='yes'
30160fi
30161
30162
cristy71203402010-06-18 13:12:03 +000030163 if test "$have_lcms_header" = 'yes'; then
30164 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030165
cristy71203402010-06-18 13:12:03 +000030166$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030167
cristy71203402010-06-18 13:12:03 +000030168 fi
cristyd09bcf92010-03-25 03:04:45 +000030169 fi
cristy71203402010-06-18 13:12:03 +000030170
30171 # Failed to find lcms header?
30172 if test "$have_lcms_header" != 'yes'; then
30173 failed=`expr $failed + 1`
30174 fi
30175
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30177$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030178if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030179 $as_echo_n "(cached) " >&6
30180else
30181 ac_check_lib_save_LIBS=$LIBS
30182LIBS="-llcms2 $LIBS"
30183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30184/* end confdefs.h. */
30185
30186/* Override any GCC internal prototype to avoid an error.
30187 Use char because int might match the return type of a GCC
30188 builtin and then its argument prototype would still apply. */
30189#ifdef __cplusplus
30190extern "C"
30191#endif
cristy71203402010-06-18 13:12:03 +000030192char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030193int
30194main ()
30195{
cristy71203402010-06-18 13:12:03 +000030196return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030197 ;
30198 return 0;
30199}
30200_ACEOF
30201if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030202 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030203else
cristy71203402010-06-18 13:12:03 +000030204 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030205fi
30206rm -f core conftest.err conftest.$ac_objext \
30207 conftest$ac_exeext conftest.$ac_ext
30208LIBS=$ac_check_lib_save_LIBS
30209fi
cristy71203402010-06-18 13:12:03 +000030210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30211$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030212if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030213 passed=`expr $passed + 1`
30214else
30215 failed=`expr $failed + 1`
30216fi
30217
cristy71203402010-06-18 13:12:03 +000030218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30219$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030220 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030221 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30223$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030224 have_lcms2='no (failed tests)'
30225 else
30226 LCMS_LIBS='-llcms2'
30227 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30229$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030230 have_lcms2='yes'
30231 fi
cristyd09bcf92010-03-25 03:04:45 +000030232 else
cristyad38abe2012-12-23 23:03:21 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030235 fi
30236fi
30237
cristy71203402010-06-18 13:12:03 +000030238#
30239# Check for LCMS v1 (1.11 or later)
30240#
30241if test $have_lcms2 = 'yes'; then
30242 with_lcms='no'
30243fi
30244
30245have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030246if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30248$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30250$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30252$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030253 failed=0
30254 passed=0
30255 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030256
30257 # Check for <lcms.h>
30258 if test "$have_lcms_header" != 'yes'; then
30259 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030260if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030261 have_lcms_header='yes'
30262fi
30263
30264
cristy71203402010-06-18 13:12:03 +000030265 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030266 passed=`expr $passed + 1`
30267
cristy8b350f62009-11-15 23:12:43 +000030268$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030269
cristy71203402010-06-18 13:12:03 +000030270 fi
30271 fi
30272
30273 # Check for <lcms/lcms.h>
30274 if test "$have_lcms_header" != 'yes'; then
30275 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 +000030276if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030277 have_lcms_header='yes'
30278fi
30279
30280
cristy71203402010-06-18 13:12:03 +000030281 if test "$have_lcms_header" = 'yes'; then
30282 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030283
cristy8b350f62009-11-15 23:12:43 +000030284$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030285
cristy71203402010-06-18 13:12:03 +000030286 fi
cristy3ed852e2009-09-05 21:47:34 +000030287 fi
cristy71203402010-06-18 13:12:03 +000030288
30289 # Failed to find lcms header?
30290 if test "$have_lcms_header" != 'yes'; then
30291 failed=`expr $failed + 1`
30292 fi
30293
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30295$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030296if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030297 $as_echo_n "(cached) " >&6
30298else
30299 ac_check_lib_save_LIBS=$LIBS
30300LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030302/* end confdefs.h. */
30303
30304/* Override any GCC internal prototype to avoid an error.
30305 Use char because int might match the return type of a GCC
30306 builtin and then its argument prototype would still apply. */
30307#ifdef __cplusplus
30308extern "C"
30309#endif
cristy71203402010-06-18 13:12:03 +000030310char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030311int
30312main ()
30313{
cristy71203402010-06-18 13:12:03 +000030314return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030315 ;
30316 return 0;
30317}
30318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030319if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030320 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030321else
cristy71203402010-06-18 13:12:03 +000030322 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030323fi
cristy8b350f62009-11-15 23:12:43 +000030324rm -f core conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030326LIBS=$ac_check_lib_save_LIBS
30327fi
cristy71203402010-06-18 13:12:03 +000030328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30329$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030330if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030331 passed=`expr $passed + 1`
30332else
30333 failed=`expr $failed + 1`
30334fi
30335
cristy8b350f62009-11-15 23:12:43 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo_n "checking if LCMS package is complete... " >&6; }
30338 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030339 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30341$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030342 have_lcms='no (failed tests)'
30343 else
30344 LCMS_LIBS='-llcms'
30345 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30347$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030348 have_lcms='yes'
30349 fi
cristy3ed852e2009-09-05 21:47:34 +000030350 else
cristyad38abe2012-12-23 23:03:21 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30352$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030353 fi
30354fi
cristy71203402010-06-18 13:12:03 +000030355
cristy73bd4a52010-10-05 11:24:23 +000030356 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30357 LCMS_DELEGATE_TRUE=
30358 LCMS_DELEGATE_FALSE='#'
30359else
30360 LCMS_DELEGATE_TRUE='#'
30361 LCMS_DELEGATE_FALSE=
30362fi
30363
cristy71203402010-06-18 13:12:03 +000030364if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30365
30366$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30367
30368fi
30369
cristy3ed852e2009-09-05 21:47:34 +000030370
30371
30372
30373#
cristy99db3872014-01-01 15:11:34 +000030374# Check for the OpenJP2 delegate library.
30375#
30376
30377# Check whether --with-openjp2 was given.
30378if test "${with_openjp2+set}" = set; then :
30379 withval=$with_openjp2; with_openjp2=$withval
30380else
30381 with_openjp2='yes'
30382fi
30383
30384
30385if test "$with_openjp2" != 'yes'; then
30386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30387fi
30388
30389have_openjp2='no'
30390LIBOPENJP2_CFLAGS=""
30391LIBOPENJP2_LIBS=""
30392LIBOPENJP2_PKG=""
30393if test "x$with_openjp2" = "xyes"; then
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30395$as_echo "-------------------------------------------------------------" >&6; }
30396
30397pkg_failed=no
30398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30399$as_echo_n "checking for LIBOPENJP2... " >&6; }
30400
30401if test -n "$LIBOPENJP2_CFLAGS"; then
30402 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30403 elif test -n "$PKG_CONFIG"; then
30404 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30406 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030407 ac_status=$?
30408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30409 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030410 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030411else
30412 pkg_failed=yes
30413fi
30414 else
30415 pkg_failed=untried
30416fi
30417if test -n "$LIBOPENJP2_LIBS"; then
30418 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30419 elif test -n "$PKG_CONFIG"; then
30420 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30422 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030423 ac_status=$?
30424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30425 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030426 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030427else
30428 pkg_failed=yes
30429fi
30430 else
30431 pkg_failed=untried
30432fi
30433
30434
30435
30436if test $pkg_failed = yes; then
30437
30438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30439 _pkg_short_errors_supported=yes
30440else
30441 _pkg_short_errors_supported=no
30442fi
30443 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030444 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030445 else
cristybc964932014-05-08 21:45:03 +000030446 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030447 fi
30448 # Put the nasty error message in config.log where it belongs
30449 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30450
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452$as_echo "no" >&6; }
30453 have_openjp2=no
30454elif test $pkg_failed = untried; then
30455 have_openjp2=no
30456else
30457 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30458 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30460$as_echo "yes" >&6; }
30461 have_openjp2=yes
30462fi
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30464$as_echo "" >&6; }
30465fi
30466
30467if test "$have_openjp2" = 'yes'; then
30468
30469$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30470
30471 if test "$build_modules" = 'no'; then
30472 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30473 fi
30474fi
30475
30476 if test "$have_openjp2" = 'yes'; then
30477 LIBOPENJP2_DELEGATE_TRUE=
30478 LIBOPENJP2_DELEGATE_FALSE='#'
30479else
30480 LIBOPENJP2_DELEGATE_TRUE='#'
30481 LIBOPENJP2_DELEGATE_FALSE=
30482fi
30483
30484
30485
30486
30487
30488
30489#
cristy3ed852e2009-09-05 21:47:34 +000030490# Check for the LQR (Liquid Rescale) delegate library.
30491#
30492
30493# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030494if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 withval=$with_lqr; with_lqr=$withval
30496else
30497 with_lqr='yes'
30498fi
30499
30500
30501if test "$with_lqr" != 'yes'; then
30502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30503fi
30504
30505have_lqr='no'
30506LQR_CFLAGS=""
30507LQR_LIBS=""
30508LQR_PKG=""
30509if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30511$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030512
30513pkg_failed=no
30514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30515$as_echo_n "checking for LQR... " >&6; }
30516
30517if test -n "$LQR_CFLAGS"; then
30518 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30519 elif test -n "$PKG_CONFIG"; then
30520 if test -n "$PKG_CONFIG" && \
30521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30522 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30523 ac_status=$?
30524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30525 test $ac_status = 0; }; then
30526 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30527else
30528 pkg_failed=yes
30529fi
30530 else
30531 pkg_failed=untried
30532fi
30533if test -n "$LQR_LIBS"; then
30534 pkg_cv_LQR_LIBS="$LQR_LIBS"
30535 elif test -n "$PKG_CONFIG"; then
30536 if test -n "$PKG_CONFIG" && \
30537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30538 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30539 ac_status=$?
30540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30541 test $ac_status = 0; }; then
30542 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30543else
30544 pkg_failed=yes
30545fi
30546 else
30547 pkg_failed=untried
30548fi
30549
30550
30551
30552if test $pkg_failed = yes; then
30553
30554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30555 _pkg_short_errors_supported=yes
30556else
30557 _pkg_short_errors_supported=no
30558fi
30559 if test $_pkg_short_errors_supported = yes; then
30560 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30561 else
30562 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30563 fi
30564 # Put the nasty error message in config.log where it belongs
30565 echo "$LQR_PKG_ERRORS" >&5
30566
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30568$as_echo "no" >&6; }
30569 have_lqr=no
30570elif test $pkg_failed = untried; then
30571 have_lqr=no
30572else
30573 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30574 LQR_LIBS=$pkg_cv_LQR_LIBS
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30576$as_echo "yes" >&6; }
30577 have_lqr=yes
30578fi
cristyad38abe2012-12-23 23:03:21 +000030579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30580$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030581fi
30582
30583if test "$have_lqr" = 'yes'; then
30584
cristy8b350f62009-11-15 23:12:43 +000030585$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030586
30587 CFLAGS="$LQR_CFLAGS $CFLAGS"
30588fi
30589
cristy73bd4a52010-10-05 11:24:23 +000030590 if test "$have_lqr" = 'yes'; then
30591 LQR_DELEGATE_TRUE=
30592 LQR_DELEGATE_FALSE='#'
30593else
30594 LQR_DELEGATE_TRUE='#'
30595 LQR_DELEGATE_FALSE=
30596fi
30597
cristy3ed852e2009-09-05 21:47:34 +000030598
30599
30600
30601
cristy81beccd2011-10-03 18:17:24 +000030602# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030603
30604# Check whether --with-lzma was given.
30605if test "${with_lzma+set}" = set; then :
30606 withval=$with_lzma; with_lzma=$withval
30607else
30608 with_lzma='yes'
30609fi
30610
cristy81beccd2011-10-03 18:17:24 +000030611if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030612 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30613fi
30614
cristyb94e5002011-11-14 13:20:10 +000030615LZMA_PKG=""
30616if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30618$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030619
30620pkg_failed=no
30621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030622$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030623
30624if test -n "$LZMA_CFLAGS"; then
30625 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30626 elif test -n "$PKG_CONFIG"; then
30627 if test -n "$PKG_CONFIG" && \
30628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30629 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30630 ac_status=$?
30631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30632 test $ac_status = 0; }; then
30633 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30634else
30635 pkg_failed=yes
30636fi
30637 else
30638 pkg_failed=untried
30639fi
30640if test -n "$LZMA_LIBS"; then
30641 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30642 elif test -n "$PKG_CONFIG"; then
30643 if test -n "$PKG_CONFIG" && \
30644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30645 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30646 ac_status=$?
30647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30648 test $ac_status = 0; }; then
30649 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30650else
30651 pkg_failed=yes
30652fi
30653 else
30654 pkg_failed=untried
30655fi
30656
30657
30658
30659if test $pkg_failed = yes; then
30660
30661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30662 _pkg_short_errors_supported=yes
30663else
30664 _pkg_short_errors_supported=no
30665fi
30666 if test $_pkg_short_errors_supported = yes; then
30667 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30668 else
30669 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30670 fi
30671 # Put the nasty error message in config.log where it belongs
30672 echo "$LZMA_PKG_ERRORS" >&5
30673
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675$as_echo "no" >&6; }
30676 have_lzma=no
30677elif test $pkg_failed = untried; then
30678 have_lzma=no
30679else
30680 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30681 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30683$as_echo "yes" >&6; }
30684 have_lzma=yes
30685fi
cristyad38abe2012-12-23 23:03:21 +000030686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30687$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030688fi
30689
cristyb94e5002011-11-14 13:20:10 +000030690if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030691
30692$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30693
cristyc6722092012-10-14 00:19:31 +000030694 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030695 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030696 fi
cristyfbb0ef02010-12-19 02:32:11 +000030697fi
cristyb94e5002011-11-14 13:20:10 +000030698
cristyfbb0ef02010-12-19 02:32:11 +000030699 if test "$have_lzma" = 'yes'; then
30700 LZMA_DELEGATE_TRUE=
30701 LZMA_DELEGATE_FALSE='#'
30702else
30703 LZMA_DELEGATE_TRUE='#'
30704 LZMA_DELEGATE_FALSE=
30705fi
30706
30707
30708
30709
cristyb94e5002011-11-14 13:20:10 +000030710
cristy3ed852e2009-09-05 21:47:34 +000030711#
30712# Check for the OpenEXR delegate library.
30713#
30714
30715# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030716if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030717 withval=$with_openexr; with_openexr=$withval
30718else
30719 with_openexr='yes'
30720fi
30721
30722
30723if test "$with_openexr" != 'yes'; then
30724 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30725fi
30726
30727have_openexr='no'
30728OPENEXR_CFLAGS=""
30729OPENEXR_LIBS=""
30730OPENEXR_PKG=""
30731if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30733$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030734
30735pkg_failed=no
30736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30737$as_echo_n "checking for OPENEXR... " >&6; }
30738
30739if test -n "$OPENEXR_CFLAGS"; then
30740 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30741 elif test -n "$PKG_CONFIG"; then
30742 if test -n "$PKG_CONFIG" && \
30743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30744 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30745 ac_status=$?
30746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30747 test $ac_status = 0; }; then
30748 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30749else
30750 pkg_failed=yes
30751fi
30752 else
30753 pkg_failed=untried
30754fi
30755if test -n "$OPENEXR_LIBS"; then
30756 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30757 elif test -n "$PKG_CONFIG"; then
30758 if test -n "$PKG_CONFIG" && \
30759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30760 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30761 ac_status=$?
30762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30763 test $ac_status = 0; }; then
30764 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30765else
30766 pkg_failed=yes
30767fi
30768 else
30769 pkg_failed=untried
30770fi
30771
30772
30773
30774if test $pkg_failed = yes; then
30775
30776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30777 _pkg_short_errors_supported=yes
30778else
30779 _pkg_short_errors_supported=no
30780fi
30781 if test $_pkg_short_errors_supported = yes; then
30782 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30783 else
30784 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30785 fi
30786 # Put the nasty error message in config.log where it belongs
30787 echo "$OPENEXR_PKG_ERRORS" >&5
30788
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790$as_echo "no" >&6; }
30791 have_openexr=no
30792elif test $pkg_failed = untried; then
30793 have_openexr=no
30794else
30795 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30796 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30798$as_echo "yes" >&6; }
30799 have_openexr=yes
30800fi
cristyad38abe2012-12-23 23:03:21 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30802$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030803fi
30804
30805if test "$have_openexr" = 'yes'; then
30806
cristy8b350f62009-11-15 23:12:43 +000030807$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030808
cristyc6722092012-10-14 00:19:31 +000030809 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030810 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30811 fi
30812fi
30813
cristy73bd4a52010-10-05 11:24:23 +000030814 if test "$have_openexr" = 'yes'; then
30815 OPENEXR_DELEGATE_TRUE=
30816 OPENEXR_DELEGATE_FALSE='#'
30817else
30818 OPENEXR_DELEGATE_TRUE='#'
30819 OPENEXR_DELEGATE_FALSE=
30820fi
30821
cristy3ed852e2009-09-05 21:47:34 +000030822
30823
30824
30825
30826#
cristy41cbe8a2011-10-27 01:35:18 +000030827# Check for PANGO delegate library.
30828#
30829
30830# Check whether --with-pango was given.
30831if test "${with_pango+set}" = set; then :
30832 withval=$with_pango; with_pango=$withval
30833else
cristyfc3d0222012-02-07 15:05:57 +000030834 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030835fi
30836
30837
30838if test "$with_pango" != 'yes'; then
30839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30840fi
30841
30842have_pango='no'
cristya054b762012-03-26 23:16:00 +000030843have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030844PANGO_CFLAGS=""
30845PANGO_LIBS=""
30846PANGO_PKG=""
30847if test "x$with_pango" = "xyes"; then
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30849$as_echo "-------------------------------------------------------------" >&6; }
30850
30851pkg_failed=no
30852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30853$as_echo_n "checking for PANGO... " >&6; }
30854
30855if test -n "$PANGO_CFLAGS"; then
30856 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30857 elif test -n "$PKG_CONFIG"; then
30858 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30860 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030861 ac_status=$?
30862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30863 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030864 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030865else
30866 pkg_failed=yes
30867fi
30868 else
30869 pkg_failed=untried
30870fi
30871if test -n "$PANGO_LIBS"; then
30872 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30873 elif test -n "$PKG_CONFIG"; then
30874 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30876 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030877 ac_status=$?
30878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30879 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030880 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030881else
30882 pkg_failed=yes
30883fi
30884 else
30885 pkg_failed=untried
30886fi
30887
30888
30889
30890if test $pkg_failed = yes; then
30891
30892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30893 _pkg_short_errors_supported=yes
30894else
30895 _pkg_short_errors_supported=no
30896fi
30897 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030898 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030899 else
cristya054b762012-03-26 23:16:00 +000030900 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030901 fi
30902 # Put the nasty error message in config.log where it belongs
30903 echo "$PANGO_PKG_ERRORS" >&5
30904
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30906$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030907 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030908elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030909 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030910else
30911 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30912 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30914$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030915 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030916fi
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30918$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030919
30920pkg_failed=no
30921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30922$as_echo_n "checking for PANGO... " >&6; }
30923
30924if test -n "$PANGO_CFLAGS"; then
30925 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30926 elif test -n "$PKG_CONFIG"; then
30927 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30929 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030930 ac_status=$?
30931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30932 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030933 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030934else
30935 pkg_failed=yes
30936fi
30937 else
30938 pkg_failed=untried
30939fi
30940if test -n "$PANGO_LIBS"; then
30941 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30942 elif test -n "$PKG_CONFIG"; then
30943 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30945 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030946 ac_status=$?
30947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30948 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030949 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030950else
30951 pkg_failed=yes
30952fi
30953 else
30954 pkg_failed=untried
30955fi
30956
30957
30958
30959if test $pkg_failed = yes; then
30960
30961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30962 _pkg_short_errors_supported=yes
30963else
30964 _pkg_short_errors_supported=no
30965fi
30966 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030967 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030968 else
cristy2542fc62011-12-06 17:50:25 +000030969 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030970 fi
30971 # Put the nasty error message in config.log where it belongs
30972 echo "$PANGO_PKG_ERRORS" >&5
30973
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30975$as_echo "no" >&6; }
30976 have_pango=no
30977elif test $pkg_failed = untried; then
30978 have_pango=no
30979else
30980 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30981 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30983$as_echo "yes" >&6; }
30984 have_pango=yes
30985fi
30986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30987$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030988fi
30989
30990if test "$have_pango" = 'yes'; then
30991
30992$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30993
cristyc6722092012-10-14 00:19:31 +000030994 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030995 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30996 fi
30997fi
30998
cristya054b762012-03-26 23:16:00 +000030999if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031000
cristya054b762012-03-26 23:16:00 +000031001$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031002
cristyc6722092012-10-14 00:19:31 +000031003 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031004 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031005 fi
31006fi
31007
31008 if test "$have_pango" = 'yes'; then
31009 PANGO_DELEGATE_TRUE=
31010 PANGO_DELEGATE_FALSE='#'
31011else
31012 PANGO_DELEGATE_TRUE='#'
31013 PANGO_DELEGATE_FALSE=
31014fi
31015
cristya054b762012-03-26 23:16:00 +000031016 if test "$have_pangocairo" = 'yes'; then
31017 PANGOCAIRO_DELEGATE_TRUE=
31018 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031019else
cristya054b762012-03-26 23:16:00 +000031020 PANGOCAIRO_DELEGATE_TRUE='#'
31021 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031022fi
31023
31024
31025
31026
31027
31028#
cristy3ed852e2009-09-05 21:47:34 +000031029# Check for PNG delegate library.
31030#
31031
31032# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031033if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031034 withval=$with_png; with_png=$withval
31035else
31036 with_png='yes'
31037fi
31038
31039
31040if test "$with_png" != 'yes'; then
31041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31042fi
31043
cristy81beccd2011-10-03 18:17:24 +000031044have_png='no'
31045PNG_LIBS=''
31046
31047if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31049$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31051$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31053$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031054 failed=0
31055 passed=0
31056 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31057if test "x$ac_cv_header_png_h" = xyes; then :
31058 passed=`expr $passed + 1`
31059else
31060 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031061fi
31062
cristy81beccd2011-10-03 18:17:24 +000031063
31064
31065 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031066 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031067 if test "$have_png" = 'no' ; then
31068 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031069 pnglib='png'
31070 else
31071 pnglib="png1${var}"
31072 fi
31073
31074# Test for compatible LIBPNG library
31075 failed=0
31076 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031077 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031078 if test "${pnglib}" != 'png' ; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31080$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082/* end confdefs.h. */
31083#include <stdio.h>
31084#include <stdlib.h>
31085#include <png.h>
31086
31087int
31088main ()
31089{
31090
31091#if PNG_LIBPNG_VER_MINOR != ${var}
31092#error LIBPNG library must be version 1${var}!
31093Kaboom, Kaboom
31094#endif
31095return 0;
31096
31097 ;
31098 return 0;
31099}
31100_ACEOF
31101if ac_fn_c_try_compile "$LINENO"; then :
31102 ac_cv_libpng_ok='yes'
31103else
31104 ac_cv_libpng_ok='no'
31105fi
31106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107 if test "$ac_cv_libpng_ok" = 'yes' ; then
31108 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31110$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031111 else
31112 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31114$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031115 fi
31116 else
31117 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31119$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031120 fi
31121 fi
31122
31123 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031124 if test "1${var}" = '17' ; then
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31126$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31127if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31128 $as_echo_n "(cached) " >&6
31129else
31130 ac_check_lib_save_LIBS=$LIBS
31131LIBS="-lpng17 $LIBS"
31132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31133/* end confdefs.h. */
31134
31135/* Override any GCC internal prototype to avoid an error.
31136 Use char because int might match the return type of a GCC
31137 builtin and then its argument prototype would still apply. */
31138#ifdef __cplusplus
31139extern "C"
31140#endif
31141char png_get_io_ptr ();
31142int
31143main ()
31144{
31145return png_get_io_ptr ();
31146 ;
31147 return 0;
31148}
31149_ACEOF
31150if ac_fn_c_try_link "$LINENO"; then :
31151 ac_cv_lib_png17_png_get_io_ptr=yes
31152else
31153 ac_cv_lib_png17_png_get_io_ptr=no
31154fi
31155rm -f core conftest.err conftest.$ac_objext \
31156 conftest$ac_exeext conftest.$ac_ext
31157LIBS=$ac_check_lib_save_LIBS
31158fi
31159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31160$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31161if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31162 passed=`expr $passed + 1`
31163else
31164 failed=`expr $failed + 1`
31165fi
31166
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31168$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31169if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31170 $as_echo_n "(cached) " >&6
31171else
31172 ac_check_lib_save_LIBS=$LIBS
31173LIBS="-lpng17 $LIBS"
31174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31175/* end confdefs.h. */
31176
31177/* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
31180#ifdef __cplusplus
31181extern "C"
31182#endif
31183char png_longjmp ();
31184int
31185main ()
31186{
31187return png_longjmp ();
31188 ;
31189 return 0;
31190}
31191_ACEOF
31192if ac_fn_c_try_link "$LINENO"; then :
31193 ac_cv_lib_png17_png_longjmp=yes
31194else
31195 ac_cv_lib_png17_png_longjmp=no
31196fi
31197rm -f core conftest.err conftest.$ac_objext \
31198 conftest$ac_exeext conftest.$ac_ext
31199LIBS=$ac_check_lib_save_LIBS
31200fi
31201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31202$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31203if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31204 passed=`expr $passed + 1`
31205else
31206 failed=`expr $failed + 1`
31207fi
31208
31209 fi
31210 if test "1${var}" = '16' ; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31212$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31213if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31214 $as_echo_n "(cached) " >&6
31215else
31216 ac_check_lib_save_LIBS=$LIBS
31217LIBS="-lpng16 $LIBS"
31218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31219/* end confdefs.h. */
31220
31221/* Override any GCC internal prototype to avoid an error.
31222 Use char because int might match the return type of a GCC
31223 builtin and then its argument prototype would still apply. */
31224#ifdef __cplusplus
31225extern "C"
31226#endif
31227char png_get_io_ptr ();
31228int
31229main ()
31230{
31231return png_get_io_ptr ();
31232 ;
31233 return 0;
31234}
31235_ACEOF
31236if ac_fn_c_try_link "$LINENO"; then :
31237 ac_cv_lib_png16_png_get_io_ptr=yes
31238else
31239 ac_cv_lib_png16_png_get_io_ptr=no
31240fi
31241rm -f core conftest.err conftest.$ac_objext \
31242 conftest$ac_exeext conftest.$ac_ext
31243LIBS=$ac_check_lib_save_LIBS
31244fi
31245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31246$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31247if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31248 passed=`expr $passed + 1`
31249else
31250 failed=`expr $failed + 1`
31251fi
31252
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31254$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31255if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31256 $as_echo_n "(cached) " >&6
31257else
31258 ac_check_lib_save_LIBS=$LIBS
31259LIBS="-lpng16 $LIBS"
31260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31261/* end confdefs.h. */
31262
31263/* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
31266#ifdef __cplusplus
31267extern "C"
31268#endif
31269char png_longjmp ();
31270int
31271main ()
31272{
31273return png_longjmp ();
31274 ;
31275 return 0;
31276}
31277_ACEOF
31278if ac_fn_c_try_link "$LINENO"; then :
31279 ac_cv_lib_png16_png_longjmp=yes
31280else
31281 ac_cv_lib_png16_png_longjmp=no
31282fi
31283rm -f core conftest.err conftest.$ac_objext \
31284 conftest$ac_exeext conftest.$ac_ext
31285LIBS=$ac_check_lib_save_LIBS
31286fi
31287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31288$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31289if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31290 passed=`expr $passed + 1`
31291else
31292 failed=`expr $failed + 1`
31293fi
31294
31295 fi
cristy81beccd2011-10-03 18:17:24 +000031296 if test "1${var}" = '15' ; then
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31298$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31299if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31300 $as_echo_n "(cached) " >&6
31301else
31302 ac_check_lib_save_LIBS=$LIBS
31303LIBS="-lpng15 $LIBS"
31304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31305/* end confdefs.h. */
31306
31307/* Override any GCC internal prototype to avoid an error.
31308 Use char because int might match the return type of a GCC
31309 builtin and then its argument prototype would still apply. */
31310#ifdef __cplusplus
31311extern "C"
31312#endif
31313char png_get_io_ptr ();
31314int
31315main ()
31316{
31317return png_get_io_ptr ();
31318 ;
31319 return 0;
31320}
31321_ACEOF
31322if ac_fn_c_try_link "$LINENO"; then :
31323 ac_cv_lib_png15_png_get_io_ptr=yes
31324else
31325 ac_cv_lib_png15_png_get_io_ptr=no
31326fi
31327rm -f core conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
31329LIBS=$ac_check_lib_save_LIBS
31330fi
31331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31332$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31333if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31334 passed=`expr $passed + 1`
31335else
31336 failed=`expr $failed + 1`
31337fi
31338
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31340$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31341if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31342 $as_echo_n "(cached) " >&6
31343else
31344 ac_check_lib_save_LIBS=$LIBS
31345LIBS="-lpng15 $LIBS"
31346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31347/* end confdefs.h. */
31348
31349/* Override any GCC internal prototype to avoid an error.
31350 Use char because int might match the return type of a GCC
31351 builtin and then its argument prototype would still apply. */
31352#ifdef __cplusplus
31353extern "C"
31354#endif
31355char png_longjmp ();
31356int
31357main ()
31358{
31359return png_longjmp ();
31360 ;
31361 return 0;
31362}
31363_ACEOF
31364if ac_fn_c_try_link "$LINENO"; then :
31365 ac_cv_lib_png15_png_longjmp=yes
31366else
31367 ac_cv_lib_png15_png_longjmp=no
31368fi
31369rm -f core conftest.err conftest.$ac_objext \
31370 conftest$ac_exeext conftest.$ac_ext
31371LIBS=$ac_check_lib_save_LIBS
31372fi
31373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31374$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31375if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31376 passed=`expr $passed + 1`
31377else
31378 failed=`expr $failed + 1`
31379fi
31380
31381 fi
31382 if test "1${var}" = '14' ; then
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31384$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31385if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31386 $as_echo_n "(cached) " >&6
31387else
31388 ac_check_lib_save_LIBS=$LIBS
31389LIBS="-lpng14 $LIBS"
31390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31391/* end confdefs.h. */
31392
31393/* Override any GCC internal prototype to avoid an error.
31394 Use char because int might match the return type of a GCC
31395 builtin and then its argument prototype would still apply. */
31396#ifdef __cplusplus
31397extern "C"
31398#endif
31399char png_get_io_ptr ();
31400int
31401main ()
31402{
31403return png_get_io_ptr ();
31404 ;
31405 return 0;
31406}
31407_ACEOF
31408if ac_fn_c_try_link "$LINENO"; then :
31409 ac_cv_lib_png14_png_get_io_ptr=yes
31410else
31411 ac_cv_lib_png14_png_get_io_ptr=no
31412fi
31413rm -f core conftest.err conftest.$ac_objext \
31414 conftest$ac_exeext conftest.$ac_ext
31415LIBS=$ac_check_lib_save_LIBS
31416fi
31417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31418$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31419if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31420 passed=`expr $passed + 1`
31421else
31422 failed=`expr $failed + 1`
31423fi
31424
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31426$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31427if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31428 $as_echo_n "(cached) " >&6
31429else
31430 ac_check_lib_save_LIBS=$LIBS
31431LIBS="-lpng14 $LIBS"
31432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433/* end confdefs.h. */
31434
31435/* Override any GCC internal prototype to avoid an error.
31436 Use char because int might match the return type of a GCC
31437 builtin and then its argument prototype would still apply. */
31438#ifdef __cplusplus
31439extern "C"
31440#endif
31441char png_get_io_state ();
31442int
31443main ()
31444{
31445return png_get_io_state ();
31446 ;
31447 return 0;
31448}
31449_ACEOF
31450if ac_fn_c_try_link "$LINENO"; then :
31451 ac_cv_lib_png14_png_get_io_state=yes
31452else
31453 ac_cv_lib_png14_png_get_io_state=no
31454fi
31455rm -f core conftest.err conftest.$ac_objext \
31456 conftest$ac_exeext conftest.$ac_ext
31457LIBS=$ac_check_lib_save_LIBS
31458fi
31459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31460$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31461if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31462 passed=`expr $passed + 1`
31463else
31464 failed=`expr $failed + 1`
31465fi
31466
31467 fi
31468 if test "1${var}" = '12' ; then
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31470$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31471if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31472 $as_echo_n "(cached) " >&6
31473else
31474 ac_check_lib_save_LIBS=$LIBS
31475LIBS="-lpng12 $LIBS"
31476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31477/* end confdefs.h. */
31478
31479/* Override any GCC internal prototype to avoid an error.
31480 Use char because int might match the return type of a GCC
31481 builtin and then its argument prototype would still apply. */
31482#ifdef __cplusplus
31483extern "C"
31484#endif
31485char png_get_io_ptr ();
31486int
31487main ()
31488{
31489return png_get_io_ptr ();
31490 ;
31491 return 0;
31492}
31493_ACEOF
31494if ac_fn_c_try_link "$LINENO"; then :
31495 ac_cv_lib_png12_png_get_io_ptr=yes
31496else
31497 ac_cv_lib_png12_png_get_io_ptr=no
31498fi
31499rm -f core conftest.err conftest.$ac_objext \
31500 conftest$ac_exeext conftest.$ac_ext
31501LIBS=$ac_check_lib_save_LIBS
31502fi
31503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31504$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31505if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31506 passed=`expr $passed + 1`
31507else
31508 failed=`expr $failed + 1`
31509fi
31510
31511 fi
31512 if test "1${var}" = '1' ; then
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31514$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31515if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31516 $as_echo_n "(cached) " >&6
31517else
31518 ac_check_lib_save_LIBS=$LIBS
31519LIBS="-lpng $LIBS"
31520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31521/* end confdefs.h. */
31522
31523/* Override any GCC internal prototype to avoid an error.
31524 Use char because int might match the return type of a GCC
31525 builtin and then its argument prototype would still apply. */
31526#ifdef __cplusplus
31527extern "C"
31528#endif
31529char png_get_io_ptr ();
31530int
31531main ()
31532{
31533return png_get_io_ptr ();
31534 ;
31535 return 0;
31536}
31537_ACEOF
31538if ac_fn_c_try_link "$LINENO"; then :
31539 ac_cv_lib_png_png_get_io_ptr=yes
31540else
31541 ac_cv_lib_png_png_get_io_ptr=no
31542fi
31543rm -f core conftest.err conftest.$ac_objext \
31544 conftest$ac_exeext conftest.$ac_ext
31545LIBS=$ac_check_lib_save_LIBS
31546fi
31547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31548$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31549if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31550 passed=`expr $passed + 1`
31551else
31552 failed=`expr $failed + 1`
31553fi
31554
31555 fi
31556 if test $passed -gt 0 -a $failed -le 0 ; then
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31558$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31559 if test $passed -gt 0 ; then
31560 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31562$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031563 have_png='no (failed tests)'
31564 else
31565 PNG_LIBS="-l${pnglib}"
31566 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031567
cristy8b350f62009-11-15 23:12:43 +000031568$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031569
cristyad38abe2012-12-23 23:03:21 +000031570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31571$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031572 have_png='yes'
31573 fi
31574 fi
31575 fi
31576 fi
31577 fi
31578 done
31579 fi
cristy3ed852e2009-09-05 21:47:34 +000031580fi
cristy64877302011-08-23 19:10:31 +000031581
cristy73bd4a52010-10-05 11:24:23 +000031582 if test "$have_png" = 'yes'; then
31583 PNG_DELEGATE_TRUE=
31584 PNG_DELEGATE_FALSE='#'
31585else
31586 PNG_DELEGATE_TRUE='#'
31587 PNG_DELEGATE_FALSE=
31588fi
31589
cristy3ed852e2009-09-05 21:47:34 +000031590
cristy50d3f5c2011-09-10 20:09:06 +000031591
cristy3ed852e2009-09-05 21:47:34 +000031592
31593
31594#
31595# Check for RSVG delegate library.
31596#
31597
31598# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031599if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031600 withval=$with_rsvg; with_rsvg=$withval
31601else
cristy1164d5f2012-08-15 00:58:25 +000031602 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031603fi
31604
31605
31606if test "$with_rsvg" != 'yes'; then
31607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31608fi
31609
31610have_rsvg='no'
31611have_cairo='no'
31612RSVG_CFLAGS=""
31613RSVG_LIBS=""
31614RSVG_PKG=""
31615if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31617$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031618
31619pkg_failed=no
31620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31621$as_echo_n "checking for RSVG... " >&6; }
31622
31623if test -n "$RSVG_CFLAGS"; then
31624 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31625 elif test -n "$PKG_CONFIG"; then
31626 if test -n "$PKG_CONFIG" && \
31627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31628 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31629 ac_status=$?
31630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31631 test $ac_status = 0; }; then
31632 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31633else
31634 pkg_failed=yes
31635fi
31636 else
31637 pkg_failed=untried
31638fi
31639if test -n "$RSVG_LIBS"; then
31640 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31641 elif test -n "$PKG_CONFIG"; then
31642 if test -n "$PKG_CONFIG" && \
31643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31644 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31645 ac_status=$?
31646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31647 test $ac_status = 0; }; then
31648 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31649else
31650 pkg_failed=yes
31651fi
31652 else
31653 pkg_failed=untried
31654fi
31655
31656
31657
31658if test $pkg_failed = yes; then
31659
31660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31661 _pkg_short_errors_supported=yes
31662else
31663 _pkg_short_errors_supported=no
31664fi
31665 if test $_pkg_short_errors_supported = yes; then
31666 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31667 else
31668 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31669 fi
31670 # Put the nasty error message in config.log where it belongs
31671 echo "$RSVG_PKG_ERRORS" >&5
31672
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31674$as_echo "no" >&6; }
31675 have_rsvg=no
31676elif test $pkg_failed = untried; then
31677 have_rsvg=no
31678else
31679 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31680 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31682$as_echo "yes" >&6; }
31683 have_rsvg=yes
31684fi
cristyad38abe2012-12-23 23:03:21 +000031685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31686$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031687
31688pkg_failed=no
31689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31690$as_echo_n "checking for CAIRO_SVG... " >&6; }
31691
31692if test -n "$CAIRO_SVG_CFLAGS"; then
31693 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31694 elif test -n "$PKG_CONFIG"; then
31695 if test -n "$PKG_CONFIG" && \
31696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31697 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31698 ac_status=$?
31699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31700 test $ac_status = 0; }; then
31701 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31702else
31703 pkg_failed=yes
31704fi
31705 else
31706 pkg_failed=untried
31707fi
31708if test -n "$CAIRO_SVG_LIBS"; then
31709 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31710 elif test -n "$PKG_CONFIG"; then
31711 if test -n "$PKG_CONFIG" && \
31712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31713 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31714 ac_status=$?
31715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31716 test $ac_status = 0; }; then
31717 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31718else
31719 pkg_failed=yes
31720fi
31721 else
31722 pkg_failed=untried
31723fi
31724
31725
31726
31727if test $pkg_failed = yes; then
31728
31729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31730 _pkg_short_errors_supported=yes
31731else
31732 _pkg_short_errors_supported=no
31733fi
31734 if test $_pkg_short_errors_supported = yes; then
31735 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31736 else
31737 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31738 fi
31739 # Put the nasty error message in config.log where it belongs
31740 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31741
31742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31743$as_echo "no" >&6; }
31744 have_cairo=no
31745elif test $pkg_failed = untried; then
31746 have_cairo=no
31747else
31748 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31749 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31751$as_echo "yes" >&6; }
31752 have_cairo=yes
31753fi
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 +000031756fi
31757
31758if test "$have_rsvg" = 'yes'; then
31759
cristy8b350f62009-11-15 23:12:43 +000031760$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031761
cristyc6722092012-10-14 00:19:31 +000031762 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031763 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31764 fi
31765fi
31766
31767if test "$have_cairo" = 'yes'; then
31768
cristy8b350f62009-11-15 23:12:43 +000031769$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031770
cristyc6722092012-10-14 00:19:31 +000031771 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031772 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31773 fi
31774fi
31775
cristy73bd4a52010-10-05 11:24:23 +000031776 if test "$have_rsvg" = 'yes'; then
31777 RSVG_DELEGATE_TRUE=
31778 RSVG_DELEGATE_FALSE='#'
31779else
31780 RSVG_DELEGATE_TRUE='#'
31781 RSVG_DELEGATE_FALSE=
31782fi
31783
31784 if test "$have_cairo" = 'yes'; then
31785 CAIRO_DELEGATE_TRUE=
31786 CAIRO_DELEGATE_FALSE='#'
31787else
31788 CAIRO_DELEGATE_TRUE='#'
31789 CAIRO_DELEGATE_FALSE=
31790fi
31791
cristy3ed852e2009-09-05 21:47:34 +000031792
31793
31794
31795
31796#
31797# Check for TIFF delegate library.
31798#
31799
31800# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031801if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031802 withval=$with_tiff; with_tiff=$withval
31803else
31804 with_tiff='yes'
31805fi
31806
31807
31808if test "$with_tiff" != 'yes'; then
31809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31810fi
31811
31812have_tiff='no'
31813TIFF_LIBS=''
31814if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31816$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031818$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31820$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031821 failed=0
31822 passed=0
cristy8b350f62009-11-15 23:12:43 +000031823 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031824if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031825 passed=`expr $passed + 1`
31826else
31827 failed=`expr $failed + 1`
31828fi
31829
31830
cristy8b350f62009-11-15 23:12:43 +000031831 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031832if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031833 passed=`expr $passed + 1`
31834else
31835 failed=`expr $failed + 1`
31836fi
31837
31838
cristy8b350f62009-11-15 23:12:43 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031841if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 $as_echo_n "(cached) " >&6
31843else
31844 ac_check_lib_save_LIBS=$LIBS
31845LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031847/* end confdefs.h. */
31848
31849/* Override any GCC internal prototype to avoid an error.
31850 Use char because int might match the return type of a GCC
31851 builtin and then its argument prototype would still apply. */
31852#ifdef __cplusplus
31853extern "C"
31854#endif
31855char TIFFOpen ();
31856int
31857main ()
31858{
31859return TIFFOpen ();
31860 ;
31861 return 0;
31862}
31863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 ac_cv_lib_tiff_TIFFOpen=yes
31866else
cristy8b350f62009-11-15 23:12:43 +000031867 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031868fi
cristy8b350f62009-11-15 23:12:43 +000031869rm -f core conftest.err conftest.$ac_objext \
31870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031871LIBS=$ac_check_lib_save_LIBS
31872fi
cristy8b350f62009-11-15 23:12:43 +000031873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031875if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031876 passed=`expr $passed + 1`
31877else
31878 failed=`expr $failed + 1`
31879fi
31880
cristy8b350f62009-11-15 23:12:43 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031883if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 $as_echo_n "(cached) " >&6
31885else
31886 ac_check_lib_save_LIBS=$LIBS
31887LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031889/* end confdefs.h. */
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
31897char TIFFClientOpen ();
31898int
31899main ()
31900{
31901return TIFFClientOpen ();
31902 ;
31903 return 0;
31904}
31905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 ac_cv_lib_tiff_TIFFClientOpen=yes
31908else
cristy8b350f62009-11-15 23:12:43 +000031909 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031910fi
cristy8b350f62009-11-15 23:12:43 +000031911rm -f core conftest.err conftest.$ac_objext \
31912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031913LIBS=$ac_check_lib_save_LIBS
31914fi
cristy8b350f62009-11-15 23:12:43 +000031915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031917if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031918 passed=`expr $passed + 1`
31919else
31920 failed=`expr $failed + 1`
31921fi
31922
cristy8b350f62009-11-15 23:12:43 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031925if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 $as_echo_n "(cached) " >&6
31927else
31928 ac_check_lib_save_LIBS=$LIBS
31929LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031931/* end confdefs.h. */
31932
31933/* Override any GCC internal prototype to avoid an error.
31934 Use char because int might match the return type of a GCC
31935 builtin and then its argument prototype would still apply. */
31936#ifdef __cplusplus
31937extern "C"
31938#endif
31939char TIFFIsByteSwapped ();
31940int
31941main ()
31942{
31943return TIFFIsByteSwapped ();
31944 ;
31945 return 0;
31946}
31947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031948if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31950else
cristy8b350f62009-11-15 23:12:43 +000031951 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031952fi
cristy8b350f62009-11-15 23:12:43 +000031953rm -f core conftest.err conftest.$ac_objext \
31954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031955LIBS=$ac_check_lib_save_LIBS
31956fi
cristy8b350f62009-11-15 23:12:43 +000031957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031959if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031960 passed=`expr $passed + 1`
31961else
31962 failed=`expr $failed + 1`
31963fi
31964
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031967if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 $as_echo_n "(cached) " >&6
31969else
31970 ac_check_lib_save_LIBS=$LIBS
31971LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031973/* end confdefs.h. */
31974
31975/* Override any GCC internal prototype to avoid an error.
31976 Use char because int might match the return type of a GCC
31977 builtin and then its argument prototype would still apply. */
31978#ifdef __cplusplus
31979extern "C"
31980#endif
31981char TIFFReadRGBATile ();
31982int
31983main ()
31984{
31985return TIFFReadRGBATile ();
31986 ;
31987 return 0;
31988}
31989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031991 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31992else
cristy8b350f62009-11-15 23:12:43 +000031993 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031994fi
cristy8b350f62009-11-15 23:12:43 +000031995rm -f core conftest.err conftest.$ac_objext \
31996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031997LIBS=$ac_check_lib_save_LIBS
31998fi
cristy8b350f62009-11-15 23:12:43 +000031999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032001if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032002 passed=`expr $passed + 1`
32003else
32004 failed=`expr $failed + 1`
32005fi
32006
cristy8b350f62009-11-15 23:12:43 +000032007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032008$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032009if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032010 $as_echo_n "(cached) " >&6
32011else
32012 ac_check_lib_save_LIBS=$LIBS
32013LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032015/* end confdefs.h. */
32016
32017/* Override any GCC internal prototype to avoid an error.
32018 Use char because int might match the return type of a GCC
32019 builtin and then its argument prototype would still apply. */
32020#ifdef __cplusplus
32021extern "C"
32022#endif
32023char TIFFReadRGBAStrip ();
32024int
32025main ()
32026{
32027return TIFFReadRGBAStrip ();
32028 ;
32029 return 0;
32030}
32031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032033 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32034else
cristy8b350f62009-11-15 23:12:43 +000032035 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032036fi
cristy8b350f62009-11-15 23:12:43 +000032037rm -f core conftest.err conftest.$ac_objext \
32038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032039LIBS=$ac_check_lib_save_LIBS
32040fi
cristy8b350f62009-11-15 23:12:43 +000032041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032042$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032043if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032044 passed=`expr $passed + 1`
32045else
32046 failed=`expr $failed + 1`
32047fi
32048
cristy8b350f62009-11-15 23:12:43 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032050$as_echo_n "checking if TIFF package is complete... " >&6; }
32051 if test $passed -gt 0; then
32052 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32054$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032055 have_tiff='no (failed tests)'
32056 else
32057 TIFF_LIBS='-ltiff'
32058 LIBS="$TIFF_LIBS $LIBS"
32059
cristy8b350f62009-11-15 23:12:43 +000032060$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032061
cristyad38abe2012-12-23 23:03:21 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32063$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032064 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032065 for ac_header in tiffconf.h
32066do :
32067 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032068if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032069 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032070#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032071_ACEOF
32072
32073fi
32074
32075done
32076
cristy8b350f62009-11-15 23:12:43 +000032077 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032078 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32079 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32080 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032081do :
32082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32083ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032084if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032085 cat >>confdefs.h <<_ACEOF
32086#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32087_ACEOF
32088
32089fi
32090done
32091
32092 fi
32093 else
cristyad38abe2012-12-23 23:03:21 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32095$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032096 fi
32097fi
cristy73bd4a52010-10-05 11:24:23 +000032098 if test "$have_tiff" = 'yes'; then
32099 TIFF_DELEGATE_TRUE=
32100 TIFF_DELEGATE_FALSE='#'
32101else
32102 TIFF_DELEGATE_TRUE='#'
32103 TIFF_DELEGATE_FALSE=
32104fi
32105
cristy3ed852e2009-09-05 21:47:34 +000032106
32107
32108
32109#
cristyb1860752011-03-14 00:27:46 +000032110# Check for WEBP delegate library.
32111#
32112
32113# Check whether --with-webp was given.
32114if test "${with_webp+set}" = set; then :
32115 withval=$with_webp; with_webp=$withval
32116else
32117 with_webp='yes'
32118fi
32119
32120
32121if test "$with_webp" != 'yes'; then
32122 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32123fi
32124
32125have_webp='no'
32126WEBP_LIBS=''
32127if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32129$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32131$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32133$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032134 failed=0
32135 passed=0
32136 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32137if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32138 passed=`expr $passed + 1`
32139else
32140 failed=`expr $failed + 1`
32141fi
32142
32143
cristy6d670312013-03-22 23:23:01 +000032144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32145$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32146if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032147 $as_echo_n "(cached) " >&6
32148else
32149 ac_check_lib_save_LIBS=$LIBS
32150LIBS="-lwebp $LIBS"
32151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32152/* end confdefs.h. */
32153
32154/* Override any GCC internal prototype to avoid an error.
32155 Use char because int might match the return type of a GCC
32156 builtin and then its argument prototype would still apply. */
32157#ifdef __cplusplus
32158extern "C"
32159#endif
cristy6d670312013-03-22 23:23:01 +000032160char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032161int
32162main ()
32163{
cristy6d670312013-03-22 23:23:01 +000032164return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032165 ;
32166 return 0;
32167}
32168_ACEOF
32169if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032170 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032171else
cristy6d670312013-03-22 23:23:01 +000032172 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032173fi
32174rm -f core conftest.err conftest.$ac_objext \
32175 conftest$ac_exeext conftest.$ac_ext
32176LIBS=$ac_check_lib_save_LIBS
32177fi
cristy6d670312013-03-22 23:23:01 +000032178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32179$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32180if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032181 passed=`expr $passed + 1`
32182else
32183 failed=`expr $failed + 1`
32184fi
32185
32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32187$as_echo_n "checking if WEBP package is complete... " >&6; }
32188 if test $passed -gt 0; then
32189 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32191$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032192 have_webp='no (failed tests)'
32193 else
32194 WEBP_LIBS='-lwebp'
32195 LIBS="$WEBP_LIBS $LIBS"
32196
32197$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32198
cristyad38abe2012-12-23 23:03:21 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32200$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032201 have_webp='yes'
32202 fi
32203 else
cristyad38abe2012-12-23 23:03:21 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32205$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032206 fi
32207fi
32208 if test "$have_webp" = 'yes'; then
32209 WEBP_DELEGATE_TRUE=
32210 WEBP_DELEGATE_FALSE='#'
32211else
32212 WEBP_DELEGATE_TRUE='#'
32213 WEBP_DELEGATE_FALSE=
32214fi
32215
32216
32217
32218
32219#
cristy3ed852e2009-09-05 21:47:34 +000032220# Set Windows font directory.
32221#
32222
32223# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032224if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032225 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32226else
cristy5a3dc992014-12-05 19:50:04 +000032227 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032228fi
32229
cristy5a3dc992014-12-05 19:50:04 +000032230
32231if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32233fi
32234
32235
32236#
32237# Check for WMF delegate library.
32238#
32239
32240# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032241if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 withval=$with_wmf; with_wmf=$withval
32243else
cristyfc3d0222012-02-07 15:05:57 +000032244 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032245fi
32246
32247
32248if test "$with_wmf" != 'yes'; then
32249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32250fi
32251
32252have_wmf='no'
32253WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032254WMF_LIBS_DEPS=''
32255OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032256if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32258$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32262$as_echo "" >&6; }
32263 have_libwmf='no'
32264 have_libwmflite='no'
32265 have_libwmf_ipa_h='no'
32266
32267 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32268"
32269if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32270 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032271fi
32272
32273
cristy03f7cf92011-12-15 01:40:41 +000032274 if test "$have_libwmf_ipa_h" = 'yes'; then
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32276$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32277if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032278 $as_echo_n "(cached) " >&6
32279else
32280 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032281LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032283/* end confdefs.h. */
32284
32285/* Override any GCC internal prototype to avoid an error.
32286 Use char because int might match the return type of a GCC
32287 builtin and then its argument prototype would still apply. */
32288#ifdef __cplusplus
32289extern "C"
32290#endif
cristy03f7cf92011-12-15 01:40:41 +000032291char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032292int
32293main ()
32294{
cristy03f7cf92011-12-15 01:40:41 +000032295return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032296 ;
32297 return 0;
32298}
32299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032300if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032301 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032302else
cristy03f7cf92011-12-15 01:40:41 +000032303 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032304fi
cristy8b350f62009-11-15 23:12:43 +000032305rm -f core conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032307LIBS=$ac_check_lib_save_LIBS
32308fi
cristy03f7cf92011-12-15 01:40:41 +000032309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32310$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32311if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32312 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032313fi
32314
cristy03f7cf92011-12-15 01:40:41 +000032315 if test "$have_libwmflite" = 'yes'; then
32316
32317$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32318
32319 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032320 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032321 have_wmf='yes'
32322 else
32323 WMF_LIBS_DEPS=''
32324 WMF_CONFIG_LIBS=`libwmf-config --libs`
32325 for lib in xml2 expat freetype jpeg png z; do
32326 testlib="-l${lib}"
32327 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32328 done
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32330$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32331if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32332 $as_echo_n "(cached) " >&6
32333else
32334 ac_check_lib_save_LIBS=$LIBS
32335LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32337/* end confdefs.h. */
32338
32339/* Override any GCC internal prototype to avoid an error.
32340 Use char because int might match the return type of a GCC
32341 builtin and then its argument prototype would still apply. */
32342#ifdef __cplusplus
32343extern "C"
32344#endif
32345char wmf_api_create ();
32346int
32347main ()
32348{
32349return wmf_api_create ();
32350 ;
32351 return 0;
32352}
32353_ACEOF
32354if ac_fn_c_try_link "$LINENO"; then :
32355 ac_cv_lib_wmf_wmf_api_create=yes
32356else
32357 ac_cv_lib_wmf_wmf_api_create=no
32358fi
32359rm -f core conftest.err conftest.$ac_objext \
32360 conftest$ac_exeext conftest.$ac_ext
32361LIBS=$ac_check_lib_save_LIBS
32362fi
32363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32364$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32365if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32366 have_libwmf='yes'
32367fi
32368
32369 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032370
cristy8b350f62009-11-15 23:12:43 +000032371$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032372
cristy03f7cf92011-12-15 01:40:41 +000032373 WMF_LIBS='-lwmf'
32374 LIBS="$WMF_LIBS $LIBS"
32375 have_wmf='yes'
32376 else
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32378$as_echo "no -- some components failed test" >&6; }
32379 have_wmf='no (failed tests)'
32380 have_wmflite='no (failed tests)'
32381 LIBS="$OLIBS"
32382 WMF_LIBS=''
32383 fi
glennrp33e524b2011-08-24 17:41:57 +000032384 fi
cristy03f7cf92011-12-15 01:40:41 +000032385 fi
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32387$as_echo_n "checking if WMF package is complete... " >&6; }
32388 if test "$have_wmf" = 'yes'; then
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32390$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032391 else
cristy03f7cf92011-12-15 01:40:41 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32393$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032394 fi
cristy3ed852e2009-09-05 21:47:34 +000032395fi
cristy73bd4a52010-10-05 11:24:23 +000032396 if test "$have_wmf" = 'yes'; then
32397 WMF_DELEGATE_TRUE=
32398 WMF_DELEGATE_FALSE='#'
32399else
32400 WMF_DELEGATE_TRUE='#'
32401 WMF_DELEGATE_FALSE=
32402fi
32403
cristy3ed852e2009-09-05 21:47:34 +000032404
32405
32406
cristy81beccd2011-10-03 18:17:24 +000032407
32408
cristy3ed852e2009-09-05 21:47:34 +000032409#
32410# Check for XML delegate library.
32411#
32412
32413# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032414if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032415 withval=$with_xml; with_xml=$withval
32416else
cristyfc3d0222012-02-07 15:05:57 +000032417 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032418fi
32419
32420
cristy81beccd2011-10-03 18:17:24 +000032421if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032422 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32423fi
32424
cristy81beccd2011-10-03 18:17:24 +000032425have_xml='no'
32426XML_LIBS=''
32427if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32429$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32431$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32433$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032434 PERSIST_LDFLAGS=$LDFLAGS
32435 PERSIST_CPPFLAGS=$CPPFLAGS
32436 xml2_config=''
32437 # Extract the first word of "xml2-config", so it can be a program name with args.
32438set dummy xml2-config; ac_word=$2
32439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32440$as_echo_n "checking for $ac_word... " >&6; }
32441if ${ac_cv_path_xml2_config+:} false; then :
32442 $as_echo_n "(cached) " >&6
32443else
32444 case $xml2_config in
32445 [\\/]* | ?:[\\/]*)
32446 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32447 ;;
32448 *)
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450for as_dir in $PATH
32451do
32452 IFS=$as_save_IFS
32453 test -z "$as_dir" && as_dir=.
32454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032456 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32458 break 2
32459 fi
32460done
32461 done
32462IFS=$as_save_IFS
32463
32464 ;;
32465esac
32466fi
32467xml2_config=$ac_cv_path_xml2_config
32468if test -n "$xml2_config"; then
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32470$as_echo "$xml2_config" >&6; }
32471else
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32473$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032474fi
32475
cristy81beccd2011-10-03 18:17:24 +000032476 if test -n "$xml2_config"; then
32477 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32478 # the shared library installed under /usr/lib, whereas the package
32479 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032480 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032481 if test -d "${xml2_prefix}/include/libxml2"; then
32482 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32483 fi
32484 if test "${xml2_prefix}" != '/usr'; then
32485 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32486 fi
32487 fi
32488 failed=0
32489 passed=0
32490 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32491if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32492 passed=`expr $passed + 1`
32493else
32494 failed=`expr $failed + 1`
32495fi
32496
32497
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32499$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32500if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32501 $as_echo_n "(cached) " >&6
32502else
32503 ac_check_lib_save_LIBS=$LIBS
32504LIBS="-lxml2 $LIBS"
32505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32506/* end confdefs.h. */
32507
32508/* Override any GCC internal prototype to avoid an error.
32509 Use char because int might match the return type of a GCC
32510 builtin and then its argument prototype would still apply. */
32511#ifdef __cplusplus
32512extern "C"
32513#endif
32514char xmlSAXVersion ();
32515int
32516main ()
32517{
32518return xmlSAXVersion ();
32519 ;
32520 return 0;
32521}
32522_ACEOF
32523if ac_fn_c_try_link "$LINENO"; then :
32524 ac_cv_lib_xml2_xmlSAXVersion=yes
32525else
32526 ac_cv_lib_xml2_xmlSAXVersion=no
32527fi
32528rm -f core conftest.err conftest.$ac_objext \
32529 conftest$ac_exeext conftest.$ac_ext
32530LIBS=$ac_check_lib_save_LIBS
32531fi
32532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32533$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32534if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32535 passed=`expr $passed + 1`
32536else
32537 failed=`expr $failed + 1`
32538fi
32539
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32541$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32542if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32543 $as_echo_n "(cached) " >&6
32544else
32545 ac_check_lib_save_LIBS=$LIBS
32546LIBS="-lxml2 $LIBS"
32547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32548/* end confdefs.h. */
32549
32550/* Override any GCC internal prototype to avoid an error.
32551 Use char because int might match the return type of a GCC
32552 builtin and then its argument prototype would still apply. */
32553#ifdef __cplusplus
32554extern "C"
32555#endif
32556char xmlParseChunk ();
32557int
32558main ()
32559{
32560return xmlParseChunk ();
32561 ;
32562 return 0;
32563}
32564_ACEOF
32565if ac_fn_c_try_link "$LINENO"; then :
32566 ac_cv_lib_xml2_xmlParseChunk=yes
32567else
32568 ac_cv_lib_xml2_xmlParseChunk=no
32569fi
32570rm -f core conftest.err conftest.$ac_objext \
32571 conftest$ac_exeext conftest.$ac_ext
32572LIBS=$ac_check_lib_save_LIBS
32573fi
32574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32575$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32576if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32577 passed=`expr $passed + 1`
32578else
32579 failed=`expr $failed + 1`
32580fi
32581
32582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32583$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32584if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32585 $as_echo_n "(cached) " >&6
32586else
32587 ac_check_lib_save_LIBS=$LIBS
32588LIBS="-lxml2 $LIBS"
32589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32590/* end confdefs.h. */
32591
32592/* Override any GCC internal prototype to avoid an error.
32593 Use char because int might match the return type of a GCC
32594 builtin and then its argument prototype would still apply. */
32595#ifdef __cplusplus
32596extern "C"
32597#endif
32598char xmlCreatePushParserCtxt ();
32599int
32600main ()
32601{
32602return xmlCreatePushParserCtxt ();
32603 ;
32604 return 0;
32605}
32606_ACEOF
32607if ac_fn_c_try_link "$LINENO"; then :
32608 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32609else
32610 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32611fi
32612rm -f core conftest.err conftest.$ac_objext \
32613 conftest$ac_exeext conftest.$ac_ext
32614LIBS=$ac_check_lib_save_LIBS
32615fi
32616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32617$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32618if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32619 passed=`expr $passed + 1`
32620else
32621 failed=`expr $failed + 1`
32622fi
32623
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32625$as_echo_n "checking if XML package is complete... " >&6; }
32626 if test $passed -gt 0; then
32627 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32629$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032630 have_xml='no (failed tests)'
32631 LDFLAGS="$PERSIST_LDFLAGS"
32632 CPPFLAGS="$PERSIST_CPPFLAGS"
32633 else
32634 XML_LIBS='-lxml2'
32635 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032636
cristy8b350f62009-11-15 23:12:43 +000032637$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032638
cristyad38abe2012-12-23 23:03:21 +000032639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32640$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032641 have_xml='yes'
32642 fi
32643 else
cristyad38abe2012-12-23 23:03:21 +000032644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32645$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032646 fi
32647fi
cristy73bd4a52010-10-05 11:24:23 +000032648 if test "$have_xml" = 'yes'; then
32649 XML_DELEGATE_TRUE=
32650 XML_DELEGATE_FALSE='#'
32651else
32652 XML_DELEGATE_TRUE='#'
32653 XML_DELEGATE_FALSE=
32654fi
32655
cristy3ed852e2009-09-05 21:47:34 +000032656
32657
32658
32659# Substitute compiler name to build/link PerlMagick
32660#
32661
32662
32663#
32664# Configure install Paths
32665#
cristy7def36a2011-10-28 19:04:41 +000032666
cristy2a11bef2011-10-28 18:33:11 +000032667# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032668INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032669INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32670DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032671case "${build_os}" in
32672 mingw* )
32673 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32674 ;;
32675esac
32676
32677cat >>confdefs.h <<_ACEOF
32678#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32679_ACEOF
32680
32681
cristy3ed852e2009-09-05 21:47:34 +000032682
cristye52f12f2012-12-31 15:32:36 +000032683# Path to ImageMagick header files (arch part)
32684INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32685DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32686case "${build_os}" in
32687 mingw* )
32688 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32689 ;;
32690esac
32691
32692cat >>confdefs.h <<_ACEOF
32693#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32694_ACEOF
32695
32696
32697
cristy3ed852e2009-09-05 21:47:34 +000032698# Subdirectory under lib to place ImageMagick lib files
32699LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32700
32701cat >>confdefs.h <<_ACEOF
32702#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32703_ACEOF
32704
32705
32706# Path to ImageMagick bin directory
32707EXECUTABLE_PATH="${BIN_DIR}"
32708DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32709case "${build_os}" in
32710 mingw* )
32711 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32712 ;;
32713esac
32714
32715cat >>confdefs.h <<_ACEOF
32716#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32717_ACEOF
32718
32719
32720
32721# Path to ImageMagick lib
32722LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32723DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32724case "${build_os}" in
32725 mingw* )
32726 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32727 ;;
32728esac
32729
32730cat >>confdefs.h <<_ACEOF
32731#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32732_ACEOF
32733
32734
32735
cristy3ed852e2009-09-05 21:47:34 +000032736#
cristy8d0ff762013-03-10 20:33:28 +000032737# path to local binaries
32738if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32739 LIB_BIN_BASEDIRNAME="bin"
32740fi
32741
32742cat >>confdefs.h <<_ACEOF
32743#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32744_ACEOF
32745
32746
32747
32748if test "x$LIB_BIN_DIR" = "x"; then
32749 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32750fi
32751
32752
32753LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32754
32755LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32756
32757
32758#
cristy01ff9f32012-12-01 18:15:29 +000032759# path to modules lib
32760if test "x$MODULES_BASEDIRNAME" = "x"; then
32761 MODULES_BASEDIRNAME="modules"
32762fi
cristy3ed852e2009-09-05 21:47:34 +000032763
32764cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032765#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032766_ACEOF
32767
cristy01ff9f32012-12-01 18:15:29 +000032768
32769
32770if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032771 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32772else
cristy3ed852e2009-09-05 21:47:34 +000032773
32774cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032775#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032776_ACEOF
32777
cristycf4a3c22012-12-02 21:47:25 +000032778fi
cristy01ff9f32012-12-01 18:15:29 +000032779
32780
cristy371d4812012-12-01 19:48:10 +000032781MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032782
32783MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32784
32785
32786#
32787# path to coders lib
32788if test "x$CODER_DIRNAME" = "x"; then
32789 CODER_DIRNAME="coders"
32790fi
32791
32792cat >>confdefs.h <<_ACEOF
32793#define CODER_DIRNAME "$CODER_DIRNAME"
32794_ACEOF
32795
32796
32797
cristy371d4812012-12-01 19:48:10 +000032798CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032799CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032800
32801
32802#
32803# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032804#
32805# path to coders lib
32806if test "x$FILTER_DIRNAME" = "x"; then
32807 FILTER_DIRNAME="filters"
32808fi
cristy3ed852e2009-09-05 21:47:34 +000032809
32810cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032811#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032812_ACEOF
32813
cristy3ed852e2009-09-05 21:47:34 +000032814
cristy3ed852e2009-09-05 21:47:34 +000032815
cristy371d4812012-12-01 19:48:10 +000032816FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032817FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032818
32819
32820#
32821# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032822DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032823DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32824DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032825case "${build_os}" in
32826 mingw* )
32827 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32828 ;;
32829esac
32830
32831cat >>confdefs.h <<_ACEOF
32832#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32833_ACEOF
32834
32835
32836
cristydd17feb2014-03-05 02:06:32 +000032837#
32838# Enable/Disable documentation
32839# Check whether --enable-docs was given.
32840if test "${enable_docs+set}" = set; then :
32841 enableval=$enable_docs; wantdocs=$enableval
32842else
cristy02272312014-03-07 00:55:25 +000032843 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032844fi
32845
cristy02272312014-03-07 00:55:25 +000032846 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032847 INSTALL_DOC_TRUE=
32848 INSTALL_DOC_FALSE='#'
32849else
32850 INSTALL_DOC_TRUE='#'
32851 INSTALL_DOC_FALSE=
32852fi
32853
32854
cristy2a11bef2011-10-28 18:33:11 +000032855# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032856CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032857
32858cat >>confdefs.h <<_ACEOF
32859#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32860_ACEOF
32861
cristy7def36a2011-10-28 19:04:41 +000032862CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032863DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32864case "${build_os}" in
32865 mingw* )
32866 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32867 ;;
32868esac
32869
32870cat >>confdefs.h <<_ACEOF
32871#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32872_ACEOF
32873
32874
32875
cristy2a11bef2011-10-28 18:33:11 +000032876# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032877SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032878
32879cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032880#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032881_ACEOF
32882
cristy670aa3c2011-11-03 00:54:00 +000032883SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032884DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032885case "${build_os}" in
32886 mingw* )
cristy4f820712011-04-01 12:35:43 +000032887 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032888 ;;
32889esac
32890
32891cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032892#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032893_ACEOF
32894
32895
32896
cristy54378032012-12-04 15:52:20 +000032897#
32898# Subdirectory to place architecture-dependent configuration files.
32899if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32900 SHAREARCH_BASEDIRNAME="config"
32901fi
cristy670aa3c2011-11-03 00:54:00 +000032902
32903cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032904#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032905_ACEOF
32906
cristy54378032012-12-04 15:52:20 +000032907
32908
32909if test "x$SHAREARCH_DIRNAME" = "x"; then
32910 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32911else
cristy670aa3c2011-11-03 00:54:00 +000032912
32913cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032914#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032915_ACEOF
32916
cristy54378032012-12-04 15:52:20 +000032917fi
32918
32919
32920SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32921
32922SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032923
32924
cristy3ed852e2009-09-05 21:47:34 +000032925#
32926# program_transform_name is formed for use in a Makefile, so create a
32927# modified version for use in a shell script.
32928configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32929
32930# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32932$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32936$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032937AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032938BPGDecodeDelegateDefault='bpgdec'
32939BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032940BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032941BZIPDelegateDefault='bzip2'
32942BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032943CatDelegateDefault='cat'
32944DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032945DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032946GVCDecodeDelegateDefault='dot'
32947DVIDecodeDelegateDefault='dvips'
32948EchoDelegateDefault='echo'
32949EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032950ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32951DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32952MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32953GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032954HPGLDecodeDelegateDefault='hp2xx'
32955HTMLDecodeDelegateDefault='html2ps'
32956ILBMDecodeDelegateDefault='ilbmtoppm'
32957ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032958JXRDecodeDelegateDefault='JxrDecApp'
32959JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032960LPDelegateDefault='lp'
32961LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032962LaunchDelegateDefault='gimp'
32963MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032964MPEGDecodeDelegateDefault='avconv'
32965MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032966MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032967MVDelegateDefault='mv'
32968PCLDelegateDefault='pcl6'
32969PGPDecodeDelegateDefault='pgpv'
32970POVDelegateDefault='povray'
32971if test "$native_win32_build" = 'yes'; then
32972 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032973elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032974 PSDelegateDefault='gsc'
32975else
32976 PSDelegateDefault='gs'
32977fi
32978RLEEncodeDelegateDefault='rawtorle'
32979RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032980RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032981SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032982SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032983TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032984UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032985WebPDecodeDelegateDefault='dwebp'
32986WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032987WMFDecodeDelegateDefault='wmf2eps'
32988WWWDecodeDelegateDefault='curl'
32989XPSDelegateDefault='gxps'
32990ZipDelegateDefault='gzip'
32991
32992# Search for delegates
32993# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32994set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032997if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032998 $as_echo_n "(cached) " >&6
32999else
33000 case $AutotraceDecodeDelegate in
33001 [\\/]* | ?:[\\/]*)
33002 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33003 ;;
33004 *)
33005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006for as_dir in $PATH
33007do
33008 IFS=$as_save_IFS
33009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033012 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014 break 2
33015 fi
33016done
cristy8b350f62009-11-15 23:12:43 +000033017 done
cristy3ed852e2009-09-05 21:47:34 +000033018IFS=$as_save_IFS
33019
33020 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33021 ;;
33022esac
33023fi
33024AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33025if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "$AutotraceDecodeDelegate" >&6; }
33028else
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "no" >&6; }
33031fi
33032
33033
cristy16b412d2014-12-15 11:09:48 +000033034# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33035set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33037$as_echo_n "checking for $ac_word... " >&6; }
33038if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33039 $as_echo_n "(cached) " >&6
33040else
33041 case $BGPDecodeDelegate in
33042 [\\/]* | ?:[\\/]*)
33043 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33044 ;;
33045 *)
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047for as_dir in $PATH
33048do
33049 IFS=$as_save_IFS
33050 test -z "$as_dir" && as_dir=.
33051 for ac_exec_ext in '' $ac_executable_extensions; do
33052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33053 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33055 break 2
33056 fi
33057done
33058 done
33059IFS=$as_save_IFS
33060
33061 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33062 ;;
33063esac
33064fi
33065BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33066if test -n "$BGPDecodeDelegate"; then
33067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33068$as_echo "$BGPDecodeDelegate" >&6; }
33069else
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071$as_echo "no" >&6; }
33072fi
33073
33074
33075# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33076set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33078$as_echo_n "checking for $ac_word... " >&6; }
33079if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33080 $as_echo_n "(cached) " >&6
33081else
33082 case $BGPEncodeDelegate in
33083 [\\/]* | ?:[\\/]*)
33084 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33085 ;;
33086 *)
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088for as_dir in $PATH
33089do
33090 IFS=$as_save_IFS
33091 test -z "$as_dir" && as_dir=.
33092 for ac_exec_ext in '' $ac_executable_extensions; do
33093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33094 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33096 break 2
33097 fi
33098done
33099 done
33100IFS=$as_save_IFS
33101
33102 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33103 ;;
33104esac
33105fi
33106BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33107if test -n "$BGPEncodeDelegate"; then
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33109$as_echo "$BGPEncodeDelegate" >&6; }
33110else
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112$as_echo "no" >&6; }
33113fi
33114
33115
cristy3ed852e2009-09-05 21:47:34 +000033116# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33117set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033120if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033121 $as_echo_n "(cached) " >&6
33122else
33123 case $BlenderDecodeDelegate in
33124 [\\/]* | ?:[\\/]*)
33125 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33126 ;;
33127 *)
33128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33129for as_dir in $PATH
33130do
33131 IFS=$as_save_IFS
33132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033135 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137 break 2
33138 fi
33139done
cristy8b350f62009-11-15 23:12:43 +000033140 done
cristy3ed852e2009-09-05 21:47:34 +000033141IFS=$as_save_IFS
33142
33143 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33144 ;;
33145esac
33146fi
33147BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33148if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033150$as_echo "$BlenderDecodeDelegate" >&6; }
33151else
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "no" >&6; }
33154fi
33155
33156
33157# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33158set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033161if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033162 $as_echo_n "(cached) " >&6
33163else
33164 case $BZIPDelegate in
33165 [\\/]* | ?:[\\/]*)
33166 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33167 ;;
33168 *)
33169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33170for as_dir in $PATH
33171do
33172 IFS=$as_save_IFS
33173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033174 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033176 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178 break 2
33179 fi
33180done
cristy8b350f62009-11-15 23:12:43 +000033181 done
cristy3ed852e2009-09-05 21:47:34 +000033182IFS=$as_save_IFS
33183
33184 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33185 ;;
33186esac
33187fi
33188BZIPDelegate=$ac_cv_path_BZIPDelegate
33189if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191$as_echo "$BZIPDelegate" >&6; }
33192else
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "no" >&6; }
33195fi
33196
33197
cristyc59f0e72012-08-27 12:59:33 +000033198for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33199do
33200 # Extract the first word of "$ac_prog", so it can be a program name with args.
33201set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033204if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033205 $as_echo_n "(cached) " >&6
33206else
33207 case $BrowseDelegate in
33208 [\\/]* | ?:[\\/]*)
33209 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33210 ;;
33211 *)
33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33213for as_dir in $PATH
33214do
33215 IFS=$as_save_IFS
33216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033219 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221 break 2
33222 fi
33223done
cristy8b350f62009-11-15 23:12:43 +000033224 done
cristy3ed852e2009-09-05 21:47:34 +000033225IFS=$as_save_IFS
33226
cristy3ed852e2009-09-05 21:47:34 +000033227 ;;
33228esac
33229fi
33230BrowseDelegate=$ac_cv_path_BrowseDelegate
33231if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233$as_echo "$BrowseDelegate" >&6; }
33234else
cristy8b350f62009-11-15 23:12:43 +000033235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033236$as_echo "no" >&6; }
33237fi
33238
33239
cristyc59f0e72012-08-27 12:59:33 +000033240 test -n "$BrowseDelegate" && break
33241done
33242test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33243
cristy3ed852e2009-09-05 21:47:34 +000033244# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33245set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033248if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033249 $as_echo_n "(cached) " >&6
33250else
33251 case $CatDelegate in
33252 [\\/]* | ?:[\\/]*)
33253 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33254 ;;
33255 *)
33256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33257for as_dir in $PATH
33258do
33259 IFS=$as_save_IFS
33260 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033263 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265 break 2
33266 fi
33267done
cristy8b350f62009-11-15 23:12:43 +000033268 done
cristy3ed852e2009-09-05 21:47:34 +000033269IFS=$as_save_IFS
33270
33271 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33272 ;;
33273esac
33274fi
33275CatDelegate=$ac_cv_path_CatDelegate
33276if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "$CatDelegate" >&6; }
33279else
cristy8b350f62009-11-15 23:12:43 +000033280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281$as_echo "no" >&6; }
33282fi
33283
33284
33285# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33286set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033288$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033289if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033290 $as_echo_n "(cached) " >&6
33291else
33292 case $DNGDecodeDelegate in
33293 [\\/]* | ?:[\\/]*)
33294 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33295 ;;
33296 *)
33297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33298for as_dir in $PATH
33299do
33300 IFS=$as_save_IFS
33301 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033304 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033306 break 2
33307 fi
33308done
cristy8b350f62009-11-15 23:12:43 +000033309 done
cristy3ed852e2009-09-05 21:47:34 +000033310IFS=$as_save_IFS
33311
33312 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33313 ;;
33314esac
33315fi
33316DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33317if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo "$DNGDecodeDelegate" >&6; }
33320else
cristy8b350f62009-11-15 23:12:43 +000033321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322$as_echo "no" >&6; }
33323fi
33324
33325
cristy66f238e2014-05-16 12:21:48 +000033326# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33327set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033329$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033330if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033331 $as_echo_n "(cached) " >&6
33332else
cristy66f238e2014-05-16 12:21:48 +000033333 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033334 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033335 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033336 ;;
33337 *)
33338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33339for as_dir in $PATH
33340do
33341 IFS=$as_save_IFS
33342 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033343 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033345 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347 break 2
33348 fi
33349done
cristy8b350f62009-11-15 23:12:43 +000033350 done
cristy3ed852e2009-09-05 21:47:34 +000033351IFS=$as_save_IFS
33352
cristy66f238e2014-05-16 12:21:48 +000033353 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033354 ;;
33355esac
33356fi
cristy66f238e2014-05-16 12:21:48 +000033357DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33358if test -n "$DOCDecodeDelegate"; then
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33360$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033361else
cristy8b350f62009-11-15 23:12:43 +000033362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363$as_echo "no" >&6; }
33364fi
33365
33366
33367# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33368set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033371if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033372 $as_echo_n "(cached) " >&6
33373else
33374 case $DVIDecodeDelegate in
33375 [\\/]* | ?:[\\/]*)
33376 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33377 ;;
33378 *)
33379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33380for as_dir in $PATH
33381do
33382 IFS=$as_save_IFS
33383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033386 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033388 break 2
33389 fi
33390done
cristy8b350f62009-11-15 23:12:43 +000033391 done
cristy3ed852e2009-09-05 21:47:34 +000033392IFS=$as_save_IFS
33393
33394 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33395 ;;
33396esac
33397fi
33398DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33399if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo "$DVIDecodeDelegate" >&6; }
33402else
cristy8b350f62009-11-15 23:12:43 +000033403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404$as_echo "no" >&6; }
33405fi
33406
33407
cristy3ed852e2009-09-05 21:47:34 +000033408# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33409set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033412if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033413 $as_echo_n "(cached) " >&6
33414else
33415 case $ConvertDelegate in
33416 [\\/]* | ?:[\\/]*)
33417 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33418 ;;
33419 *)
33420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33421for as_dir in $PATH
33422do
33423 IFS=$as_save_IFS
33424 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033425 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033427 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033429 break 2
33430 fi
33431done
cristy8b350f62009-11-15 23:12:43 +000033432 done
cristy3ed852e2009-09-05 21:47:34 +000033433IFS=$as_save_IFS
33434
33435 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33436 ;;
33437esac
33438fi
33439ConvertDelegate=$ac_cv_path_ConvertDelegate
33440if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo "$ConvertDelegate" >&6; }
33443else
cristy8b350f62009-11-15 23:12:43 +000033444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445$as_echo "no" >&6; }
33446fi
33447
33448
33449# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33450set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033452$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033453if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033454 $as_echo_n "(cached) " >&6
33455else
33456 case $DisplayDelegate in
33457 [\\/]* | ?:[\\/]*)
33458 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33459 ;;
33460 *)
33461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33462for as_dir in $PATH
33463do
33464 IFS=$as_save_IFS
33465 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033468 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033470 break 2
33471 fi
33472done
cristy8b350f62009-11-15 23:12:43 +000033473 done
cristy3ed852e2009-09-05 21:47:34 +000033474IFS=$as_save_IFS
33475
33476 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33477 ;;
33478esac
33479fi
33480DisplayDelegate=$ac_cv_path_DisplayDelegate
33481if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo "$DisplayDelegate" >&6; }
33484else
cristy8b350f62009-11-15 23:12:43 +000033485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo "no" >&6; }
33487fi
33488
33489
cristy66f238e2014-05-16 12:21:48 +000033490# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33491set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033493$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033494if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033495 $as_echo_n "(cached) " >&6
33496else
cristy66f238e2014-05-16 12:21:48 +000033497 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033498 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033499 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033500 ;;
33501 *)
33502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33503for as_dir in $PATH
33504do
33505 IFS=$as_save_IFS
33506 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033509 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033511 break 2
33512 fi
33513done
cristy8b350f62009-11-15 23:12:43 +000033514 done
cristy3ed852e2009-09-05 21:47:34 +000033515IFS=$as_save_IFS
33516
cristy66f238e2014-05-16 12:21:48 +000033517 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033518 ;;
33519esac
33520fi
cristy66f238e2014-05-16 12:21:48 +000033521EchoDelegate=$ac_cv_path_EchoDelegate
33522if test -n "$EchoDelegate"; then
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33524$as_echo "$EchoDelegate" >&6; }
33525else
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33527$as_echo "no" >&6; }
33528fi
33529
33530
33531# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33532set dummy "$EditorDelegateDefault"; ac_word=$2
33533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33534$as_echo_n "checking for $ac_word... " >&6; }
33535if ${ac_cv_path_EditorDelegate+:} false; then :
33536 $as_echo_n "(cached) " >&6
33537else
33538 case $EditorDelegate in
33539 [\\/]* | ?:[\\/]*)
33540 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33541 ;;
33542 *)
33543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33544for as_dir in $PATH
33545do
33546 IFS=$as_save_IFS
33547 test -z "$as_dir" && as_dir=.
33548 for ac_exec_ext in '' $ac_executable_extensions; do
33549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33550 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33552 break 2
33553 fi
33554done
33555 done
33556IFS=$as_save_IFS
33557
33558 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33559 ;;
33560esac
33561fi
33562EditorDelegate=$ac_cv_path_EditorDelegate
33563if test -n "$EditorDelegate"; then
33564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33565$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033566else
cristy8b350f62009-11-15 23:12:43 +000033567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568$as_echo "no" >&6; }
33569fi
33570
33571
33572# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33573set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033576if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033577 $as_echo_n "(cached) " >&6
33578else
33579 case $GnuplotDecodeDelegate in
33580 [\\/]* | ?:[\\/]*)
33581 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33582 ;;
33583 *)
33584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33585for as_dir in $PATH
33586do
33587 IFS=$as_save_IFS
33588 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033591 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033593 break 2
33594 fi
33595done
cristy8b350f62009-11-15 23:12:43 +000033596 done
cristy3ed852e2009-09-05 21:47:34 +000033597IFS=$as_save_IFS
33598
33599 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33600 ;;
33601esac
33602fi
33603GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33604if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "$GnuplotDecodeDelegate" >&6; }
33607else
cristy8b350f62009-11-15 23:12:43 +000033608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609$as_echo "no" >&6; }
33610fi
33611
33612
cristy66f238e2014-05-16 12:21:48 +000033613# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33614set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33616$as_echo_n "checking for $ac_word... " >&6; }
33617if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33618 $as_echo_n "(cached) " >&6
33619else
33620 case $GVCDecodeDelegate in
33621 [\\/]* | ?:[\\/]*)
33622 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33623 ;;
33624 *)
33625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33626for as_dir in $PATH
33627do
33628 IFS=$as_save_IFS
33629 test -z "$as_dir" && as_dir=.
33630 for ac_exec_ext in '' $ac_executable_extensions; do
33631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33632 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33634 break 2
33635 fi
33636done
33637 done
33638IFS=$as_save_IFS
33639
33640 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33641 ;;
33642esac
33643fi
33644GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33645if test -n "$GVCDecodeDelegate"; then
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33647$as_echo "$GVCDecodeDelegate" >&6; }
33648else
33649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33650$as_echo "no" >&6; }
33651fi
33652
33653
cristy3ed852e2009-09-05 21:47:34 +000033654# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33655set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033658if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033659 $as_echo_n "(cached) " >&6
33660else
33661 case $HPGLDecodeDelegate in
33662 [\\/]* | ?:[\\/]*)
33663 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33664 ;;
33665 *)
33666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667for as_dir in $PATH
33668do
33669 IFS=$as_save_IFS
33670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033673 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675 break 2
33676 fi
33677done
cristy8b350f62009-11-15 23:12:43 +000033678 done
cristy3ed852e2009-09-05 21:47:34 +000033679IFS=$as_save_IFS
33680
33681 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33682 ;;
33683esac
33684fi
33685HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33686if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "$HPGLDecodeDelegate" >&6; }
33689else
cristy8b350f62009-11-15 23:12:43 +000033690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033691$as_echo "no" >&6; }
33692fi
33693
33694
33695# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33696set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033699if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033700 $as_echo_n "(cached) " >&6
33701else
33702 case $HTMLDecodeDelegate in
33703 [\\/]* | ?:[\\/]*)
33704 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33705 ;;
33706 *)
33707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33708for as_dir in $PATH
33709do
33710 IFS=$as_save_IFS
33711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033714 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033716 break 2
33717 fi
33718done
cristy8b350f62009-11-15 23:12:43 +000033719 done
cristy3ed852e2009-09-05 21:47:34 +000033720IFS=$as_save_IFS
33721
33722 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33723 ;;
33724esac
33725fi
33726HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33727if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo "$HTMLDecodeDelegate" >&6; }
33730else
cristy8b350f62009-11-15 23:12:43 +000033731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033732$as_echo "no" >&6; }
33733fi
33734
33735
33736# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33737set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033740if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033741 $as_echo_n "(cached) " >&6
33742else
33743 case $ILBMDecodeDelegate in
33744 [\\/]* | ?:[\\/]*)
33745 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33746 ;;
33747 *)
33748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33749for as_dir in $PATH
33750do
33751 IFS=$as_save_IFS
33752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033755 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033757 break 2
33758 fi
33759done
cristy8b350f62009-11-15 23:12:43 +000033760 done
cristy3ed852e2009-09-05 21:47:34 +000033761IFS=$as_save_IFS
33762
33763 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33764 ;;
33765esac
33766fi
33767ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33768if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "$ILBMDecodeDelegate" >&6; }
33771else
cristy8b350f62009-11-15 23:12:43 +000033772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033773$as_echo "no" >&6; }
33774fi
33775
33776
33777# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33778set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033781if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033782 $as_echo_n "(cached) " >&6
33783else
33784 case $ILBMEncodeDelegate in
33785 [\\/]* | ?:[\\/]*)
33786 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33787 ;;
33788 *)
33789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33790for as_dir in $PATH
33791do
33792 IFS=$as_save_IFS
33793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033796 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033798 break 2
33799 fi
33800done
cristy8b350f62009-11-15 23:12:43 +000033801 done
cristy3ed852e2009-09-05 21:47:34 +000033802IFS=$as_save_IFS
33803
33804 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33805 ;;
33806esac
33807fi
33808ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33809if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "$ILBMEncodeDelegate" >&6; }
33812else
cristy8b350f62009-11-15 23:12:43 +000033813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033814$as_echo "no" >&6; }
33815fi
33816
33817
cristy71f53d52013-04-27 13:33:59 +000033818# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33819set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33821$as_echo_n "checking for $ac_word... " >&6; }
33822if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33823 $as_echo_n "(cached) " >&6
33824else
33825 case $JXRDecodeDelegate in
33826 [\\/]* | ?:[\\/]*)
33827 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33828 ;;
33829 *)
33830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33831for as_dir in $PATH
33832do
33833 IFS=$as_save_IFS
33834 test -z "$as_dir" && as_dir=.
33835 for ac_exec_ext in '' $ac_executable_extensions; do
33836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33837 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33839 break 2
33840 fi
33841done
33842 done
33843IFS=$as_save_IFS
33844
33845 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33846 ;;
33847esac
33848fi
33849JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33850if test -n "$JXRDecodeDelegate"; then
33851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33852$as_echo "$JXRDecodeDelegate" >&6; }
33853else
33854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33855$as_echo "no" >&6; }
33856fi
33857
33858
33859# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33860set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33862$as_echo_n "checking for $ac_word... " >&6; }
33863if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33864 $as_echo_n "(cached) " >&6
33865else
33866 case $JXREncodeDelegate in
33867 [\\/]* | ?:[\\/]*)
33868 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33869 ;;
33870 *)
33871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33872for as_dir in $PATH
33873do
33874 IFS=$as_save_IFS
33875 test -z "$as_dir" && as_dir=.
33876 for ac_exec_ext in '' $ac_executable_extensions; do
33877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33878 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33880 break 2
33881 fi
33882done
33883 done
33884IFS=$as_save_IFS
33885
33886 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33887 ;;
33888esac
33889fi
33890JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33891if test -n "$JXREncodeDelegate"; then
33892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33893$as_echo "$JXREncodeDelegate" >&6; }
33894else
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33896$as_echo "no" >&6; }
33897fi
33898
33899
cristy3ed852e2009-09-05 21:47:34 +000033900# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33901set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033904if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033905 $as_echo_n "(cached) " >&6
33906else
33907 case $LPDelegate in
33908 [\\/]* | ?:[\\/]*)
33909 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33910 ;;
33911 *)
33912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33913for as_dir in $PATH
33914do
33915 IFS=$as_save_IFS
33916 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033919 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921 break 2
33922 fi
33923done
cristy8b350f62009-11-15 23:12:43 +000033924 done
cristy3ed852e2009-09-05 21:47:34 +000033925IFS=$as_save_IFS
33926
33927 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33928 ;;
33929esac
33930fi
33931LPDelegate=$ac_cv_path_LPDelegate
33932if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "$LPDelegate" >&6; }
33935else
cristy8b350f62009-11-15 23:12:43 +000033936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033937$as_echo "no" >&6; }
33938fi
33939
33940
33941# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33942set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033945if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033946 $as_echo_n "(cached) " >&6
33947else
33948 case $LPRDelegate in
33949 [\\/]* | ?:[\\/]*)
33950 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33951 ;;
33952 *)
33953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33954for as_dir in $PATH
33955do
33956 IFS=$as_save_IFS
33957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033958 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033960 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033962 break 2
33963 fi
33964done
cristy8b350f62009-11-15 23:12:43 +000033965 done
cristy3ed852e2009-09-05 21:47:34 +000033966IFS=$as_save_IFS
33967
33968 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33969 ;;
33970esac
33971fi
33972LPRDelegate=$ac_cv_path_LPRDelegate
33973if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033975$as_echo "$LPRDelegate" >&6; }
33976else
cristy8b350f62009-11-15 23:12:43 +000033977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo "no" >&6; }
33979fi
33980
33981
cristy3ed852e2009-09-05 21:47:34 +000033982# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33983set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033986if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033987 $as_echo_n "(cached) " >&6
33988else
33989 case $LaunchDelegate in
33990 [\\/]* | ?:[\\/]*)
33991 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33992 ;;
33993 *)
33994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33995for as_dir in $PATH
33996do
33997 IFS=$as_save_IFS
33998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034001 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034003 break 2
34004 fi
34005done
cristy8b350f62009-11-15 23:12:43 +000034006 done
cristy3ed852e2009-09-05 21:47:34 +000034007IFS=$as_save_IFS
34008
34009 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34010 ;;
34011esac
34012fi
34013LaunchDelegate=$ac_cv_path_LaunchDelegate
34014if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo "$LaunchDelegate" >&6; }
34017else
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "no" >&6; }
34020fi
34021
34022
34023# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34024set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034027if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034028 $as_echo_n "(cached) " >&6
34029else
34030 case $MANDelegate in
34031 [\\/]* | ?:[\\/]*)
34032 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34033 ;;
34034 *)
34035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34036for as_dir in $PATH
34037do
34038 IFS=$as_save_IFS
34039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034042 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034044 break 2
34045 fi
34046done
cristy8b350f62009-11-15 23:12:43 +000034047 done
cristy3ed852e2009-09-05 21:47:34 +000034048IFS=$as_save_IFS
34049
34050 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34051 ;;
34052esac
34053fi
34054MANDelegate=$ac_cv_path_MANDelegate
34055if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057$as_echo "$MANDelegate" >&6; }
34058else
cristy8b350f62009-11-15 23:12:43 +000034059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034060$as_echo "no" >&6; }
34061fi
34062
34063
cristy66f238e2014-05-16 12:21:48 +000034064# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34065set dummy "$MogrifyDelegateDefault"; ac_word=$2
34066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34067$as_echo_n "checking for $ac_word... " >&6; }
34068if ${ac_cv_path_MogrifyDelegate+:} false; then :
34069 $as_echo_n "(cached) " >&6
34070else
34071 case $MogrifyDelegate in
34072 [\\/]* | ?:[\\/]*)
34073 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34074 ;;
34075 *)
34076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34077for as_dir in $PATH
34078do
34079 IFS=$as_save_IFS
34080 test -z "$as_dir" && as_dir=.
34081 for ac_exec_ext in '' $ac_executable_extensions; do
34082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34083 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34085 break 2
34086 fi
34087done
34088 done
34089IFS=$as_save_IFS
34090
34091 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34092 ;;
34093esac
34094fi
34095MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34096if test -n "$MogrifyDelegate"; then
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34098$as_echo "$MogrifyDelegate" >&6; }
34099else
34100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34101$as_echo "no" >&6; }
34102fi
34103
34104
cristy3ed852e2009-09-05 21:47:34 +000034105# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34106set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034109if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034110 $as_echo_n "(cached) " >&6
34111else
34112 case $MPEGDecodeDelegate in
34113 [\\/]* | ?:[\\/]*)
34114 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34115 ;;
34116 *)
34117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34118for as_dir in $PATH
34119do
34120 IFS=$as_save_IFS
34121 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034122 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034124 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126 break 2
34127 fi
34128done
cristy8b350f62009-11-15 23:12:43 +000034129 done
cristy3ed852e2009-09-05 21:47:34 +000034130IFS=$as_save_IFS
34131
34132 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34133 ;;
34134esac
34135fi
34136MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34137if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139$as_echo "$MPEGDecodeDelegate" >&6; }
34140else
cristy8b350f62009-11-15 23:12:43 +000034141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo "no" >&6; }
34143fi
34144
34145
cristy058d15f2014-08-21 18:53:03 +000034146if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034147 MPEGDecodeDelegateDefault='ffmpeg'
34148 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34149set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34151$as_echo_n "checking for $ac_word... " >&6; }
34152if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34153 $as_echo_n "(cached) " >&6
34154else
34155 case $MPEGDecodeDelegate in
34156 [\\/]* | ?:[\\/]*)
34157 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34158 ;;
34159 *)
34160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161for as_dir in $PATH
34162do
34163 IFS=$as_save_IFS
34164 test -z "$as_dir" && as_dir=.
34165 for ac_exec_ext in '' $ac_executable_extensions; do
34166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34167 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34169 break 2
34170 fi
34171done
34172 done
34173IFS=$as_save_IFS
34174
34175 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34176 ;;
34177esac
34178fi
34179MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34180if test -n "$MPEGDecodeDelegate"; then
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34182$as_echo "$MPEGDecodeDelegate" >&6; }
34183else
34184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34185$as_echo "no" >&6; }
34186fi
34187
34188
34189fi;
cristy3ed852e2009-09-05 21:47:34 +000034190# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34191set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034194if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034195 $as_echo_n "(cached) " >&6
34196else
34197 case $MPEGEncodeDelegate in
34198 [\\/]* | ?:[\\/]*)
34199 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34200 ;;
34201 *)
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034209 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34218 ;;
34219esac
34220fi
34221MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34222if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$MPEGEncodeDelegate" >&6; }
34225else
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "no" >&6; }
34228fi
34229
34230
cristy058d15f2014-08-21 18:53:03 +000034231if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034232 MPEGEncodeDelegateDefault='ffmpeg'
34233 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34234set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34236$as_echo_n "checking for $ac_word... " >&6; }
34237if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34238 $as_echo_n "(cached) " >&6
34239else
34240 case $MPEGEncodeDelegate in
34241 [\\/]* | ?:[\\/]*)
34242 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34243 ;;
34244 *)
34245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34246for as_dir in $PATH
34247do
34248 IFS=$as_save_IFS
34249 test -z "$as_dir" && as_dir=.
34250 for ac_exec_ext in '' $ac_executable_extensions; do
34251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34252 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34254 break 2
34255 fi
34256done
34257 done
34258IFS=$as_save_IFS
34259
34260 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34261 ;;
34262esac
34263fi
34264MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34265if test -n "$MPEGEncodeDelegate"; then
34266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34267$as_echo "$MPEGEncodeDelegate" >&6; }
34268else
34269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34270$as_echo "no" >&6; }
34271fi
34272
34273
34274fi;
cristy935c86e2010-06-05 23:50:07 +000034275# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34276set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034279if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034280 $as_echo_n "(cached) " >&6
34281else
34282 case $MrSIDDecodeDelegate in
34283 [\\/]* | ?:[\\/]*)
34284 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34285 ;;
34286 *)
34287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34288for as_dir in $PATH
34289do
34290 IFS=$as_save_IFS
34291 test -z "$as_dir" && as_dir=.
34292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034294 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34296 break 2
34297 fi
34298done
34299 done
34300IFS=$as_save_IFS
34301
34302 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34303 ;;
34304esac
34305fi
34306MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34307if test -n "$MrSIDDecodeDelegate"; then
34308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34309$as_echo "$MrSIDDecodeDelegate" >&6; }
34310else
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34312$as_echo "no" >&6; }
34313fi
34314
34315
cristy3ed852e2009-09-05 21:47:34 +000034316# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34317set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034320if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034321 $as_echo_n "(cached) " >&6
34322else
34323 case $MVDelegate in
34324 [\\/]* | ?:[\\/]*)
34325 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34326 ;;
34327 *)
34328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34329for as_dir in $PATH
34330do
34331 IFS=$as_save_IFS
34332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034335 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337 break 2
34338 fi
34339done
cristy8b350f62009-11-15 23:12:43 +000034340 done
cristy3ed852e2009-09-05 21:47:34 +000034341IFS=$as_save_IFS
34342
34343 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34344 ;;
34345esac
34346fi
34347MVDelegate=$ac_cv_path_MVDelegate
34348if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo "$MVDelegate" >&6; }
34351else
cristy8b350f62009-11-15 23:12:43 +000034352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353$as_echo "no" >&6; }
34354fi
34355
34356
34357# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34358set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034361if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034362 $as_echo_n "(cached) " >&6
34363else
34364 case $PCLDelegate in
34365 [\\/]* | ?:[\\/]*)
34366 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34367 ;;
34368 *)
34369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34370for as_dir in $PATH
34371do
34372 IFS=$as_save_IFS
34373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034376 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034378 break 2
34379 fi
34380done
cristy8b350f62009-11-15 23:12:43 +000034381 done
cristy3ed852e2009-09-05 21:47:34 +000034382IFS=$as_save_IFS
34383
34384 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34385 ;;
34386esac
34387fi
34388PCLDelegate=$ac_cv_path_PCLDelegate
34389if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo "$PCLDelegate" >&6; }
34392else
cristy8b350f62009-11-15 23:12:43 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo "no" >&6; }
34395fi
34396
34397
34398# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34399set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034401$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034402if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034403 $as_echo_n "(cached) " >&6
34404else
34405 case $PGPDecodeDelegate in
34406 [\\/]* | ?:[\\/]*)
34407 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34408 ;;
34409 *)
34410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34411for as_dir in $PATH
34412do
34413 IFS=$as_save_IFS
34414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034417 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419 break 2
34420 fi
34421done
cristy8b350f62009-11-15 23:12:43 +000034422 done
cristy3ed852e2009-09-05 21:47:34 +000034423IFS=$as_save_IFS
34424
34425 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34426 ;;
34427esac
34428fi
34429PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34430if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034432$as_echo "$PGPDecodeDelegate" >&6; }
34433else
cristy8b350f62009-11-15 23:12:43 +000034434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo "no" >&6; }
34436fi
34437
34438
34439# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34440set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034443if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034444 $as_echo_n "(cached) " >&6
34445else
34446 case $POVDelegate in
34447 [\\/]* | ?:[\\/]*)
34448 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34449 ;;
34450 *)
34451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34452for as_dir in $PATH
34453do
34454 IFS=$as_save_IFS
34455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034458 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034460 break 2
34461 fi
34462done
cristy8b350f62009-11-15 23:12:43 +000034463 done
cristy3ed852e2009-09-05 21:47:34 +000034464IFS=$as_save_IFS
34465
34466 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34467 ;;
34468esac
34469fi
34470POVDelegate=$ac_cv_path_POVDelegate
34471if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo "$POVDelegate" >&6; }
34474else
cristy8b350f62009-11-15 23:12:43 +000034475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo "no" >&6; }
34477fi
34478
34479
34480for ac_prog in gsx gsc "$PSDelegateDefault"
34481do
34482 # Extract the first word of "$ac_prog", so it can be a program name with args.
34483set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034486if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034487 $as_echo_n "(cached) " >&6
34488else
34489 case $PSDelegate in
34490 [\\/]* | ?:[\\/]*)
34491 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34492 ;;
34493 *)
34494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34495for as_dir in $PATH
34496do
34497 IFS=$as_save_IFS
34498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034501 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503 break 2
34504 fi
34505done
cristy8b350f62009-11-15 23:12:43 +000034506 done
cristy3ed852e2009-09-05 21:47:34 +000034507IFS=$as_save_IFS
34508
34509 ;;
34510esac
34511fi
34512PSDelegate=$ac_cv_path_PSDelegate
34513if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034515$as_echo "$PSDelegate" >&6; }
34516else
cristy8b350f62009-11-15 23:12:43 +000034517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034518$as_echo "no" >&6; }
34519fi
34520
34521
34522 test -n "$PSDelegate" && break
34523done
34524test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34525
34526# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34527set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034530if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034531 $as_echo_n "(cached) " >&6
34532else
34533 case $RLEEncodeDelegate in
34534 [\\/]* | ?:[\\/]*)
34535 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34536 ;;
34537 *)
34538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34539for as_dir in $PATH
34540do
34541 IFS=$as_save_IFS
34542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034545 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547 break 2
34548 fi
34549done
cristy8b350f62009-11-15 23:12:43 +000034550 done
cristy3ed852e2009-09-05 21:47:34 +000034551IFS=$as_save_IFS
34552
34553 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34554 ;;
34555esac
34556fi
34557RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34558if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560$as_echo "$RLEEncodeDelegate" >&6; }
34561else
cristy8b350f62009-11-15 23:12:43 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034563$as_echo "no" >&6; }
34564fi
34565
34566
34567# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34568set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034571if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034572 $as_echo_n "(cached) " >&6
34573else
34574 case $RMDelegate in
34575 [\\/]* | ?:[\\/]*)
34576 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34577 ;;
34578 *)
34579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34580for as_dir in $PATH
34581do
34582 IFS=$as_save_IFS
34583 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034584 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034586 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588 break 2
34589 fi
34590done
cristy8b350f62009-11-15 23:12:43 +000034591 done
cristy3ed852e2009-09-05 21:47:34 +000034592IFS=$as_save_IFS
34593
34594 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34595 ;;
34596esac
34597fi
34598RMDelegate=$ac_cv_path_RMDelegate
34599if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034601$as_echo "$RMDelegate" >&6; }
34602else
cristy8b350f62009-11-15 23:12:43 +000034603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034604$as_echo "no" >&6; }
34605fi
34606
34607
cristy4689cf02010-02-17 21:15:45 +000034608# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34609set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034612if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034613 $as_echo_n "(cached) " >&6
34614else
34615 case $RSVGDecodeDelegate in
34616 [\\/]* | ?:[\\/]*)
34617 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34618 ;;
34619 *)
34620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34621for as_dir in $PATH
34622do
34623 IFS=$as_save_IFS
34624 test -z "$as_dir" && as_dir=.
34625 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034627 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34629 break 2
34630 fi
34631done
34632 done
34633IFS=$as_save_IFS
34634
34635 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34636 ;;
34637esac
34638fi
34639RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34640if test -n "$RSVGDecodeDelegate"; then
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34642$as_echo "$RSVGDecodeDelegate" >&6; }
34643else
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34645$as_echo "no" >&6; }
34646fi
34647
34648
cristy3ed852e2009-09-05 21:47:34 +000034649# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34650set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034653if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034654 $as_echo_n "(cached) " >&6
34655else
34656 case $SCANDecodeDelegate in
34657 [\\/]* | ?:[\\/]*)
34658 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34659 ;;
34660 *)
34661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34662for as_dir in $PATH
34663do
34664 IFS=$as_save_IFS
34665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034668 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034670 break 2
34671 fi
34672done
cristy8b350f62009-11-15 23:12:43 +000034673 done
cristy3ed852e2009-09-05 21:47:34 +000034674IFS=$as_save_IFS
34675
34676 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34677 ;;
34678esac
34679fi
34680SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34681if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034683$as_echo "$SCANDecodeDelegate" >&6; }
34684else
cristy8b350f62009-11-15 23:12:43 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686$as_echo "no" >&6; }
34687fi
34688
34689
cristyec6934f2012-08-14 18:38:40 +000034690# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34691set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34693$as_echo_n "checking for $ac_word... " >&6; }
34694if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34695 $as_echo_n "(cached) " >&6
34696else
34697 case $SVGDecodeDelegate in
34698 [\\/]* | ?:[\\/]*)
34699 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34700 ;;
34701 *)
34702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34703for as_dir in $PATH
34704do
34705 IFS=$as_save_IFS
34706 test -z "$as_dir" && as_dir=.
34707 for ac_exec_ext in '' $ac_executable_extensions; do
34708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34709 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34711 break 2
34712 fi
34713done
34714 done
34715IFS=$as_save_IFS
34716
34717 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34718 ;;
34719esac
34720fi
34721SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34722if test -n "$SVGDecodeDelegate"; then
34723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34724$as_echo "$SVGDecodeDelegate" >&6; }
34725else
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34727$as_echo "no" >&6; }
34728fi
34729
34730
cristy3ed852e2009-09-05 21:47:34 +000034731# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34732set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034735if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034736 $as_echo_n "(cached) " >&6
34737else
34738 case $TXTDelegate in
34739 [\\/]* | ?:[\\/]*)
34740 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34741 ;;
34742 *)
34743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34744for as_dir in $PATH
34745do
34746 IFS=$as_save_IFS
34747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034750 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034752 break 2
34753 fi
34754done
cristy8b350f62009-11-15 23:12:43 +000034755 done
cristy3ed852e2009-09-05 21:47:34 +000034756IFS=$as_save_IFS
34757
34758 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34759 ;;
34760esac
34761fi
34762TXTDelegate=$ac_cv_path_TXTDelegate
34763if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034765$as_echo "$TXTDelegate" >&6; }
34766else
cristy8b350f62009-11-15 23:12:43 +000034767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034768$as_echo "no" >&6; }
34769fi
34770
34771
cristy5ac9ac82010-07-29 13:24:24 +000034772# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34773set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034776if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034777 $as_echo_n "(cached) " >&6
34778else
34779 case $UniconvertorDelegate in
34780 [\\/]* | ?:[\\/]*)
34781 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34782 ;;
34783 *)
34784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34785for as_dir in $PATH
34786do
34787 IFS=$as_save_IFS
34788 test -z "$as_dir" && as_dir=.
34789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034791 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34793 break 2
34794 fi
34795done
34796 done
34797IFS=$as_save_IFS
34798
34799 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34800 ;;
34801esac
34802fi
34803UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34804if test -n "$UniconvertorDelegate"; then
34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34806$as_echo "$UniconvertorDelegate" >&6; }
34807else
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809$as_echo "no" >&6; }
34810fi
34811
34812
cristy86e86092013-08-04 17:43:57 +000034813# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34814set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34816$as_echo_n "checking for $ac_word... " >&6; }
34817if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34818 $as_echo_n "(cached) " >&6
34819else
34820 case $WebPDecodeDelegate in
34821 [\\/]* | ?:[\\/]*)
34822 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34823 ;;
34824 *)
34825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34826for as_dir in $PATH
34827do
34828 IFS=$as_save_IFS
34829 test -z "$as_dir" && as_dir=.
34830 for ac_exec_ext in '' $ac_executable_extensions; do
34831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34832 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34834 break 2
34835 fi
34836done
34837 done
34838IFS=$as_save_IFS
34839
34840 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34841 ;;
34842esac
34843fi
34844WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34845if test -n "$WebPDecodeDelegate"; then
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34847$as_echo "$WebPDecodeDelegate" >&6; }
34848else
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34850$as_echo "no" >&6; }
34851fi
34852
34853
34854# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34855set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34857$as_echo_n "checking for $ac_word... " >&6; }
34858if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34859 $as_echo_n "(cached) " >&6
34860else
34861 case $WebPEncodeDelegate in
34862 [\\/]* | ?:[\\/]*)
34863 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34864 ;;
34865 *)
34866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34867for as_dir in $PATH
34868do
34869 IFS=$as_save_IFS
34870 test -z "$as_dir" && as_dir=.
34871 for ac_exec_ext in '' $ac_executable_extensions; do
34872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34873 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34875 break 2
34876 fi
34877done
34878 done
34879IFS=$as_save_IFS
34880
34881 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34882 ;;
34883esac
34884fi
34885WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34886if test -n "$WebPEncodeDelegate"; then
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34888$as_echo "$WebPEncodeDelegate" >&6; }
34889else
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34891$as_echo "no" >&6; }
34892fi
34893
34894
cristy3ed852e2009-09-05 21:47:34 +000034895# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34896set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034899if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034900 $as_echo_n "(cached) " >&6
34901else
34902 case $WMFDecodeDelegate in
34903 [\\/]* | ?:[\\/]*)
34904 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34905 ;;
34906 *)
34907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34908for as_dir in $PATH
34909do
34910 IFS=$as_save_IFS
34911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034914 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916 break 2
34917 fi
34918done
cristy8b350f62009-11-15 23:12:43 +000034919 done
cristy3ed852e2009-09-05 21:47:34 +000034920IFS=$as_save_IFS
34921
34922 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34923 ;;
34924esac
34925fi
34926WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34927if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo "$WMFDecodeDelegate" >&6; }
34930else
cristy8b350f62009-11-15 23:12:43 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo "no" >&6; }
34933fi
34934
34935
34936# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34937set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034940if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034941 $as_echo_n "(cached) " >&6
34942else
34943 case $WWWDecodeDelegate in
34944 [\\/]* | ?:[\\/]*)
34945 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34946 ;;
34947 *)
34948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34949for as_dir in $PATH
34950do
34951 IFS=$as_save_IFS
34952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034955 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957 break 2
34958 fi
34959done
cristy8b350f62009-11-15 23:12:43 +000034960 done
cristy3ed852e2009-09-05 21:47:34 +000034961IFS=$as_save_IFS
34962
34963 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34964 ;;
34965esac
34966fi
34967WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34968if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034970$as_echo "$WWWDecodeDelegate" >&6; }
34971else
cristy8b350f62009-11-15 23:12:43 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973$as_echo "no" >&6; }
34974fi
34975
34976
34977# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34978set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034981if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034982 $as_echo_n "(cached) " >&6
34983else
34984 case $XPSDelegate in
34985 [\\/]* | ?:[\\/]*)
34986 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34987 ;;
34988 *)
34989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34990for as_dir in $PATH
34991do
34992 IFS=$as_save_IFS
34993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034996 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998 break 2
34999 fi
35000done
cristy8b350f62009-11-15 23:12:43 +000035001 done
cristy3ed852e2009-09-05 21:47:34 +000035002IFS=$as_save_IFS
35003
35004 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35005 ;;
35006esac
35007fi
35008XPSDelegate=$ac_cv_path_XPSDelegate
35009if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035011$as_echo "$XPSDelegate" >&6; }
35012else
cristy8b350f62009-11-15 23:12:43 +000035013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035014$as_echo "no" >&6; }
35015fi
35016
35017
35018# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35019set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035022if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035023 $as_echo_n "(cached) " >&6
35024else
35025 case $ZipDelegate in
35026 [\\/]* | ?:[\\/]*)
35027 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35028 ;;
35029 *)
35030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35031for as_dir in $PATH
35032do
35033 IFS=$as_save_IFS
35034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035037 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039 break 2
35040 fi
35041done
cristy8b350f62009-11-15 23:12:43 +000035042 done
cristy3ed852e2009-09-05 21:47:34 +000035043IFS=$as_save_IFS
35044
35045 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35046 ;;
35047esac
35048fi
35049ZipDelegate=$ac_cv_path_ZipDelegate
35050if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035052$as_echo "$ZipDelegate" >&6; }
35053else
cristy8b350f62009-11-15 23:12:43 +000035054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035055$as_echo "no" >&6; }
35056fi
35057
35058
35059
35060# Prefer lpr to lp; lp needs options tacked on.
35061if test "$LPRDelegate" != no; then
35062 PrintDelegate="$LPRDelegate"
35063else
35064 PrintDelegate="$LPDelegate -c -s"
35065fi
35066
35067
35068# Installed ImageMagick utiltity paths
35069ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35070DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35071MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35072
35073# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035074have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035075have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35076have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35077have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035078have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035079have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35080have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035081have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35082
35083#
35084# Test for font directories
35085#
35086type_include_files=''
35087
cristy5a3dc992014-12-05 19:50:04 +000035088 Apple fonts.
35089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35090$as_echo_n "checking for Apple fonts directory... " >&6; }
35091apple_font_dir=''
35092if test "${with_apple_font_dir}" != 'default'; then
35093 apple_font_dir="${with_apple_font_dir}/"
35094else
35095 for font_dir in '/Library/Fonts/'; do
35096 if test -f "${font_dir}Arial.ttf"; then
35097 apple_font_dir="${font_dir}"
35098 break 1
35099 fi
35100 done
35101fi
35102if test "${apple_font_dir}x" != 'x'; then
35103 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35105$as_echo "$apple_font_dir" >&6; }
35106else
35107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35108$as_echo "not found!" >&6; };
35109fi
35110
35111
cristy430a7312010-01-21 20:44:04 +000035112# Dejavu fonts.
35113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35114$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35115dejavu_font_dir=''
35116if test "${with_dejavu_font_dir}" != 'default'; then
35117 dejavu_font_dir="${with_dejavu_font_dir}/"
35118else
35119 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35120 if test -f "${font_dir}DejaVuSerif.ttf"; then
35121 dejavu_font_dir="${font_dir}"
35122 break 1
35123 fi
35124 done
35125fi
35126if test "${dejavu_font_dir}x" != 'x'; then
35127 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35129$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035130else
cristyad38abe2012-12-23 23:03:21 +000035131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35132$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035133fi
35134
35135
cristy3ed852e2009-09-05 21:47:34 +000035136# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035138$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35139ghostscript_font_dir=''
35140if test "${with_gs_font_dir}" != 'default'; then
35141 ghostscript_font_dir="${with_gs_font_dir}/"
35142else
35143 if test "${native_win32_build}" = 'yes'; then
35144 # Native Windows Build
35145 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35146 if test -f "${font_dir}a010013l.pfb"; then
35147 ghostscript_font_dir="$font_dir"
35148 break 1
35149 fi
35150 done
35151 if test "${PSDelegate}" != 'gswin32c'; then
35152 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35153 fi
35154 else
35155 # Linux / Mac OS X / Unix Build
35156 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
35157 if test -f "${font_dir}a010013l.pfb"; then
35158 ghostscript_font_dir="${font_dir}"
35159 break 1
35160 fi
35161 done
35162 if test "${ghostscript_font_dir}x" = 'x'; then
35163 if test "$PSDelegate" != 'gs'; then
35164 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35165 fi
35166 fi
35167 fi
35168fi
35169if test "${ghostscript_font_dir}x" != 'x'; then
35170 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35172$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035173else
cristyad38abe2012-12-23 23:03:21 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35175$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035176fi
35177
35178case "${build_os}" in
35179 mingw* )
35180 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35181 ;;
35182esac
35183
cristy5a3dc992014-12-05 19:50:04 +000035184# Windows fonts.
35185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35186$as_echo_n "checking for Windows fonts directory... " >&6; }
35187windows_font_dir=''
35188if test "${with_windows_font_dir}" != 'default'; then
35189 windows_font_dir="${with_windows_font_dir}/"
35190else
35191 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35192 if test -f "${font_dir}arial.ttf"; then
35193 windows_font_dir="${font_dir}"
35194 break 1
35195 fi
35196 done
35197fi
35198if test "${windows_font_dir}x" != 'x'; then
35199 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35201$as_echo "$windows_font_dir" >&6; }
35202else
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35204$as_echo "not found!" >&6; };
35205fi
35206
35207
cristy3ed852e2009-09-05 21:47:34 +000035208
35209
35210#
35211# Handle case where user doesn't want frozen paths
35212#
35213if test "$with_frozenpaths" != 'yes'; then
35214 # Re-set delegate definitions to default (no paths)
35215 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035216 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35217 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035218 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35219 BZIPDelegate="$BZIPDelegateDefault"
35220 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035221 CatDelegate="$CatDelegateDefault"
35222 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035223 DisplayDelegate="$DisplayDelegateDefault"
35224 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035225 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035226 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35227 EchoDelegate="$EchoDelegateDefault"
35228 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035229 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035230 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035231 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35232 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35233 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35234 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035235 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35236 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035237 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035238 LaunchDelegate="$LaunchDelegateDefault"
35239 MANDelegate="$MANDelegateDefault"
35240 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35241 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035242 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035243 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35244 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035245 PCLDelegate="$PCLDelegateDefault"
35246 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35247 POVDelegate="$POVDelegateDefault"
35248 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035249 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35250 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035251 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035252 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035253 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035254 ShowImageDelegate="$ShowImageDelegateDefault"
35255 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035256 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035257 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35258 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035259 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35260 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35261 XPSDelegate="$XPSDelegateDefault"
35262 ZipDelegate="$ZipDelegateDefault"
35263fi
35264
35265# Delegate substitutions
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
cristy71f53d52013-04-27 13:33:59 +000035306
35307
cristy16b412d2014-12-15 11:09:48 +000035308
35309
cristy3ed852e2009-09-05 21:47:34 +000035310#
35311# RPM support.
35312#
35313RPM=''
35314for ac_prog in gnutar gtar tar
35315do
35316 # Extract the first word of "$ac_prog", so it can be a program name with args.
35317set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035320if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035321 $as_echo_n "(cached) " >&6
35322else
35323 if test -n "$TAR"; then
35324 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35325else
35326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35327for as_dir in $PATH
35328do
35329 IFS=$as_save_IFS
35330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035333 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335 break 2
35336 fi
35337done
cristy8b350f62009-11-15 23:12:43 +000035338 done
cristy3ed852e2009-09-05 21:47:34 +000035339IFS=$as_save_IFS
35340
35341fi
35342fi
35343TAR=$ac_cv_prog_TAR
35344if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035346$as_echo "$TAR" >&6; }
35347else
cristy8b350f62009-11-15 23:12:43 +000035348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035349$as_echo "no" >&6; }
35350fi
35351
35352
35353 test -n "$TAR" && break
35354done
35355
35356for ac_prog in perl
35357do
35358 # Extract the first word of "$ac_prog", so it can be a program name with args.
35359set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035362if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035363 $as_echo_n "(cached) " >&6
35364else
35365 if test -n "$PERL"; then
35366 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35367else
35368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35369for as_dir in $PATH
35370do
35371 IFS=$as_save_IFS
35372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035375 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035377 break 2
35378 fi
35379done
cristy8b350f62009-11-15 23:12:43 +000035380 done
cristy3ed852e2009-09-05 21:47:34 +000035381IFS=$as_save_IFS
35382
35383fi
35384fi
35385PERL=$ac_cv_prog_PERL
35386if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035388$as_echo "$PERL" >&6; }
35389else
cristy8b350f62009-11-15 23:12:43 +000035390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035391$as_echo "no" >&6; }
35392fi
35393
35394
35395 test -n "$PERL" && break
35396done
35397
35398for ac_prog in rpmbuild rpm
35399do
35400 # Extract the first word of "$ac_prog", so it can be a program name with args.
35401set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035404if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035405 $as_echo_n "(cached) " >&6
35406else
35407 if test -n "$RPM"; then
35408 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35409else
35410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35411for as_dir in $PATH
35412do
35413 IFS=$as_save_IFS
35414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035417 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035419 break 2
35420 fi
35421done
cristy8b350f62009-11-15 23:12:43 +000035422 done
cristy3ed852e2009-09-05 21:47:34 +000035423IFS=$as_save_IFS
35424
35425fi
35426fi
35427RPM=$ac_cv_prog_RPM
35428if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035430$as_echo "$RPM" >&6; }
35431else
cristy8b350f62009-11-15 23:12:43 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433$as_echo "no" >&6; }
35434fi
35435
35436
35437 test -n "$RPM" && break
35438done
35439
35440
cristy73bd4a52010-10-05 11:24:23 +000035441ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35442
35443
35444AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35445
35446
35447AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35448
35449
35450AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35451
35452
35453 if test "x$RPM" != "x" ; then
35454 RPM_DELEGATE_TRUE=
35455 RPM_DELEGATE_FALSE='#'
35456else
35457 RPM_DELEGATE_TRUE='#'
35458 RPM_DELEGATE_FALSE=
35459fi
35460
cristy3ed852e2009-09-05 21:47:34 +000035461
35462#
35463# 7ZIP support (http://p7zip.sourceforge.net/)
35464#
35465P7ZIP=''
35466for ac_prog in 7za
35467do
35468 # Extract the first word of "$ac_prog", so it can be a program name with args.
35469set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035472if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035473 $as_echo_n "(cached) " >&6
35474else
35475 if test -n "$P7ZIP"; then
35476 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35477else
35478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35479for as_dir in $PATH
35480do
35481 IFS=$as_save_IFS
35482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035485 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035487 break 2
35488 fi
35489done
cristy8b350f62009-11-15 23:12:43 +000035490 done
cristy3ed852e2009-09-05 21:47:34 +000035491IFS=$as_save_IFS
35492
35493fi
35494fi
35495P7ZIP=$ac_cv_prog_P7ZIP
35496if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035498$as_echo "$P7ZIP" >&6; }
35499else
cristy8b350f62009-11-15 23:12:43 +000035500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035501$as_echo "no" >&6; }
35502fi
35503
35504
35505 test -n "$P7ZIP" && break
35506done
35507
35508
cristy73bd4a52010-10-05 11:24:23 +000035509 if test "x$P7ZIP" != "x" ; then
35510 P7ZIP_DELEGATE_TRUE=
35511 P7ZIP_DELEGATE_FALSE='#'
35512else
35513 P7ZIP_DELEGATE_TRUE='#'
35514 P7ZIP_DELEGATE_FALSE=
35515fi
35516
cristy3ed852e2009-09-05 21:47:34 +000035517
35518#
35519# ZIP support (http://www.info-zip.org/Zip.html)
35520#
35521ZIP=''
35522for ac_prog in zip
35523do
35524 # Extract the first word of "$ac_prog", so it can be a program name with args.
35525set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035528if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035529 $as_echo_n "(cached) " >&6
35530else
35531 if test -n "$ZIP"; then
35532 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35533else
35534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35535for as_dir in $PATH
35536do
35537 IFS=$as_save_IFS
35538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035541 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035543 break 2
35544 fi
35545done
cristy8b350f62009-11-15 23:12:43 +000035546 done
cristy3ed852e2009-09-05 21:47:34 +000035547IFS=$as_save_IFS
35548
35549fi
35550fi
35551ZIP=$ac_cv_prog_ZIP
35552if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035554$as_echo "$ZIP" >&6; }
35555else
cristy8b350f62009-11-15 23:12:43 +000035556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035557$as_echo "no" >&6; }
35558fi
35559
35560
35561 test -n "$ZIP" && break
35562done
35563
35564
cristy73bd4a52010-10-05 11:24:23 +000035565 if test "x$ZIP" != "x" ; then
35566 ZIP_DELEGATE_TRUE=
35567 ZIP_DELEGATE_FALSE='#'
35568else
35569 ZIP_DELEGATE_TRUE='#'
35570 ZIP_DELEGATE_FALSE=
35571fi
35572
cristy3ed852e2009-09-05 21:47:34 +000035573
35574#
35575# GhostPCL related configuration.
35576#
35577PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035578PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035579PCLMonoDevice=pbmraw
35580if test -z "$PCLVersion"; then
35581 PCLVersion='unknown'
35582fi
35583if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35585$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035587$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35589$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035590 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035592$as_echo_n "checking for pcl color device... " >&6; }
35593 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35594 :
35595 else
35596 PCLColorDevice=ppmraw
35597 fi
cristyad38abe2012-12-23 23:03:21 +000035598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35599$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035600
35601 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo_n "checking for pcl CMYK device... " >&6; }
35604 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35605 :
35606 else
35607 PCLCMYKDevice=$PCLColorDevice
35608 fi
cristyad38abe2012-12-23 23:03:21 +000035609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35610$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035611
35612 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035614$as_echo_n "checking for pcl mono device... " >&6; }
35615 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35616 :
35617 else
35618 PCLMonoDevice=$PCLColorDevice
35619 fi
cristyad38abe2012-12-23 23:03:21 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35621$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035622fi
35623
35624
35625
35626
35627
35628
35629#
35630# GhostXPS related configuration.
35631#
35632XPSColorDevice=ppmraw
35633XPSCMYKDevice=bmpsep8
35634XPSMonoDevice=pbmraw
35635if test -z "$XPSVersion"; then
35636 XPSVersion='unknown'
35637fi
35638if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35640$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035642$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35644$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035645 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035647$as_echo_n "checking for xps color device... " >&6; }
35648 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35649 :
35650 else
35651 XPSColorDevice=ppmraw
35652 fi
cristyad38abe2012-12-23 23:03:21 +000035653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35654$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035655
35656 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035658$as_echo_n "checking for xps CMYK device... " >&6; }
35659 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35660 :
35661 else
35662 XPSCMYKDevice=$XPSColorDevice
35663 fi
cristyad38abe2012-12-23 23:03:21 +000035664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35665$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035666
35667 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035669$as_echo_n "checking for xps mono device... " >&6; }
35670 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35671 :
35672 else
35673 XPSMonoDevice=$XPSColorDevice
35674 fi
cristyad38abe2012-12-23 23:03:21 +000035675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35676$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035677fi
35678
35679
35680
35681
35682
35683
35684#
35685# Ghostscript related configuration.
35686#
cristya97426c2011-02-04 01:41:27 +000035687GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035688GSColorDevice=pnmraw
35689GSCMYKDevice=pam
35690GSMonoDevice=pbmraw
35691GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035692GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035693GSEPSDevice=epswrite
35694GSVersion='unknown'
35695if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35697$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035699$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35701$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035703$as_echo_n "checking for Ghostscript version... " >&6; }
35704 if GSVersion=`$PSDelegate --version`; then
35705 :
35706 else
35707 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35708 fi
cristyad38abe2012-12-23 23:03:21 +000035709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35710$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035711
35712 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035714$as_echo_n "checking for gs alpha device... " >&6; }
35715 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35716 :
35717 else
35718 GSAlphaDevice=pnmraw
35719 fi
cristyad38abe2012-12-23 23:03:21 +000035720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35721$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035722
35723 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035725$as_echo_n "checking for gs color device... " >&6; }
35726 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35727 :
35728 else
35729 GSColorDevice=pnmraw
35730 fi
cristyad38abe2012-12-23 23:03:21 +000035731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35732$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035733
35734 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035736$as_echo_n "checking for gs CMYK device... " >&6; }
35737 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35738 :
35739 else
35740 GSCMYKDevice=bmpsep8
35741 fi
cristyad38abe2012-12-23 23:03:21 +000035742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35743$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035744
35745 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035747$as_echo_n "checking for gs mono device... " >&6; }
35748 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35749 :
35750 else
35751 GSMonoDevice=$GSColorDevice
35752 fi
cristyad38abe2012-12-23 23:03:21 +000035753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35754$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035755
35756 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035758$as_echo_n "checking for gs PDF writing device... " >&6; }
35759 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35760 :
35761 else
35762 GSPDFDevice=nodevice
35763 fi
cristyad38abe2012-12-23 23:03:21 +000035764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35765$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035766
35767 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035769$as_echo_n "checking for gs PS writing device... " >&6; }
35770 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35771 :
35772 else
35773 GSPSDevice=nodevice
35774 fi
cristyad38abe2012-12-23 23:03:21 +000035775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35776$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035777
35778 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035780$as_echo_n "checking for gs EPS writing device... " >&6; }
35781 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35782 :
35783 else
35784 GSEPSDevice=nodevice
35785 fi
cristyad38abe2012-12-23 23:03:21 +000035786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35787$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035788fi
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799#
35800# PerlMagick-related configuration
35801#
35802
35803# Look for PERL if PerlMagick requested
35804# If name/path of desired PERL interpreter is specified, look for that one first
35805have_perl='no'
35806if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35808$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035810$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35812$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035813 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035815$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035816if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035817 $as_echo_n "(cached) " >&6
35818else
35819 ac_cv_path_PERL="$with_perl"
35820fi
cristy8b350f62009-11-15 23:12:43 +000035821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035822$as_echo "$ac_cv_path_PERL" >&6; };
35823 PERL=$ac_cv_path_PERL
35824 have_perl="$ac_cv_path_PERL"
35825 else
35826 for ac_prog in perl perl5
35827do
35828 # Extract the first word of "$ac_prog", so it can be a program name with args.
35829set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035832if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035833 $as_echo_n "(cached) " >&6
35834else
35835 case $PERL in
35836 [\\/]* | ?:[\\/]*)
35837 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35838 ;;
35839 *)
35840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35841for as_dir in $PATH
35842do
35843 IFS=$as_save_IFS
35844 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035847 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035849 break 2
35850 fi
35851done
cristy8b350f62009-11-15 23:12:43 +000035852 done
cristy3ed852e2009-09-05 21:47:34 +000035853IFS=$as_save_IFS
35854
35855 ;;
35856esac
35857fi
35858PERL=$ac_cv_path_PERL
35859if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035861$as_echo "$PERL" >&6; }
35862else
cristy8b350f62009-11-15 23:12:43 +000035863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035864$as_echo "no" >&6; }
35865fi
35866
35867
35868 test -n "$PERL" && break
35869done
35870 if test "$ac_cv_path_PERL"; then
35871 have_perl="$ac_cv_path_PERL"
35872 fi
35873 fi
35874fi
35875
cristy949301e2010-01-06 01:38:40 +000035876if test "$with_perl" != 'yes' ; then
35877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35878fi
35879
35880PERL_SUPPORTS_DESTDIR='no'
35881
cristy3ed852e2009-09-05 21:47:34 +000035882with_perl_static='no'
35883with_perl_dynamic='no'
35884if test "$have_perl" != 'no'; then
35885 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35886 with_perl_static='yes'
35887 fi
35888 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35889 with_perl_dynamic='yes'
35890 fi
35891 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035892
35893
35894
35895
35896 if test -n "$PERL"; then :
35897
35898 ax_perl_version="5.8.1"
35899
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35901$as_echo_n "checking for perl version... " >&6; }
35902
cristy17491be2014-06-24 01:10:53 +000035903 perl_version=`$PERL --version 2>&1 \
35904 | $SED -n -e '/This is perl/b inspect
35905b
35906: inspect
35907s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035908
35909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35910$as_echo "$perl_version" >&6; }
35911
35912 PERL_VERSION=$perl_version
35913
35914
35915
35916
35917
35918 # Used to indicate true or false condition
35919 ax_compare_version=false
35920
35921 # Convert the two version strings to be compared into a format that
35922 # allows a simple string comparison. The end result is that a version
35923 # string of the form 1.12.5-r617 will be converted to the form
35924 # 0001001200050617. In other words, each number is zero padded to four
35925 # digits, and non digits are removed.
35926
35927 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35928 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35929 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35930 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35931 -e 's/[^0-9]//g'`
35932
35933
35934 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35935 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35936 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35937 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35938 -e 's/[^0-9]//g'`
35939
35940
35941 ax_compare_version=`echo "x$ax_compare_version_A
35942x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35943
35944
35945
35946 if test "$ax_compare_version" = "true" ; then
35947
35948 :
35949 PERL_SUPPORTS_DESTDIR='yes'
35950
35951 else
35952 :
35953 PERL_SUPPORTS_DESTDIR='no'
35954
35955 fi
35956
35957
35958else
35959
35960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35961$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35962 PERL_SUPPORTS_DESTDIR='no'
35963
cristy3ed852e2009-09-05 21:47:34 +000035964fi
cristy73bd4a52010-10-05 11:24:23 +000035965
35966fi
35967 if test "$have_perl" != 'no'; then
35968 WITH_PERL_TRUE=
35969 WITH_PERL_FALSE='#'
35970else
35971 WITH_PERL_TRUE='#'
35972 WITH_PERL_FALSE=
35973fi
35974
35975 if test $with_perl_static = 'yes'; then
35976 WITH_PERL_STATIC_TRUE=
35977 WITH_PERL_STATIC_FALSE='#'
35978else
35979 WITH_PERL_STATIC_TRUE='#'
35980 WITH_PERL_STATIC_FALSE=
35981fi
35982
35983 if test $with_perl_dynamic = 'yes'; then
35984 WITH_PERL_DYNAMIC_TRUE=
35985 WITH_PERL_DYNAMIC_FALSE='#'
35986else
35987 WITH_PERL_DYNAMIC_TRUE='#'
35988 WITH_PERL_DYNAMIC_FALSE=
35989fi
35990
cristy3ed852e2009-09-05 21:47:34 +000035991
35992
35993# Determine path to pick up MagickCore library from for use with building PerlMagick
35994MAGICKCORE_PATH="${LIB_DIR}"
35995if test $with_perl_static = 'yes'; then
35996 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35997 libtool_objdir=$objdir
35998
35999 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036000 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036001fi
36002
36003
cristy2a3eb392012-12-17 13:39:20 +000036004# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036005MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036006if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036007 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036008fi
cristy2a3eb392012-12-17 13:39:20 +000036009if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036010 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036011fi
36012if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036013 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036014fi
36015if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036016 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036017fi
cristy81ab5af2013-10-06 18:28:39 +000036018if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036019 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036020fi
36021if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036022 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036023fi
cristy2a3eb392012-12-17 13:39:20 +000036024if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036025 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036026fi
36027if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036028 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036029fi
36030if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036031 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036032fi
36033if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036034 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036035fi
36036if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036037 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036038fi
36039if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036040 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036041fi
36042if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036043 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036044fi
36045if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036046 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036047fi
36048if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036049 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036050fi
36051if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036052 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036053fi
36054if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036055 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036056fi
36057if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036058 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036059fi
cristy99db3872014-01-01 15:11:34 +000036060if test "$have_openjp2" = 'yes' ; then
36061 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036062fi
cristy2a3eb392012-12-17 13:39:20 +000036063if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036064 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036065fi
36066if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036067 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036068fi
36069have_ps='no'
36070if test "$have_dps" = 'yes' || \
36071 test "$have_gs" = 'yes' || \
36072 test "${native_win32_build}" = 'yes' ; then
36073 have_ps='yes'
36074fi
36075if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036076 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036077fi
cristy2a3eb392012-12-17 13:39:20 +000036078if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036079 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036080fi
36081if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036082 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036083fi
36084if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036085 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036086fi
36087if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036088 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036089fi
cristy3b640ed2013-07-29 00:27:59 +000036090if test "$have_webp" = 'yes' ; then
36091 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36092fi
cristy2a3eb392012-12-17 13:39:20 +000036093if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036094 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036095fi
36096if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036097 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036098fi
36099if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036100 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036101fi
36102if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036103 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036104fi
cristy2a3eb392012-12-17 13:39:20 +000036105# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036106MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036107MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036108
36109
cristyfa161182012-12-19 15:45:28 +000036110
cristy3ed852e2009-09-05 21:47:34 +000036111#
36112# Handle special compiler flags
36113#
36114
36115# Add '-p' if prof source profiling support enabled
36116if test "$enable_prof" = 'yes'; then
36117 CFLAGS="-p $CFLAGS"
36118 CXXFLAGS="-p $CXXFLAGS"
36119 LDFLAGS="-p $LDFLAGS"
36120fi
36121
36122# Add '-pg' if gprof source profiling support enabled
36123if test "$enable_gprof" = 'yes'; then
36124 CFLAGS="-pg $CFLAGS"
36125 CXXFLAGS="-pg $CXXFLAGS"
36126 LDFLAGS="-pg $LDFLAGS"
36127fi
36128
36129# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36130# This is a gcc-specific feature
36131if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036133$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036134if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036135 $as_echo_n "(cached) " >&6
36136else
36137 ac_check_lib_save_LIBS=$LIBS
36138LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036140/* end confdefs.h. */
36141
36142/* Override any GCC internal prototype to avoid an error.
36143 Use char because int might match the return type of a GCC
36144 builtin and then its argument prototype would still apply. */
36145#ifdef __cplusplus
36146extern "C"
36147#endif
36148char _gcov_init ();
36149int
36150main ()
36151{
36152return _gcov_init ();
36153 ;
36154 return 0;
36155}
36156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036157if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036158 ac_cv_lib_gcov__gcov_init=yes
36159else
cristy8b350f62009-11-15 23:12:43 +000036160 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036161fi
cristy8b350f62009-11-15 23:12:43 +000036162rm -f core conftest.err conftest.$ac_objext \
36163 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036164LIBS=$ac_check_lib_save_LIBS
36165fi
cristy8b350f62009-11-15 23:12:43 +000036166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036167$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036168if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036169 cat >>confdefs.h <<_ACEOF
36170#define HAVE_LIBGCOV 1
36171_ACEOF
36172
36173 LIBS="-lgcov $LIBS"
36174
36175fi
36176
cristy8b350f62009-11-15 23:12:43 +000036177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036178$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036179if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036180 $as_echo_n "(cached) " >&6
36181else
36182 ac_check_lib_save_LIBS=$LIBS
36183LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036185/* end confdefs.h. */
36186
36187/* Override any GCC internal prototype to avoid an error.
36188 Use char because int might match the return type of a GCC
36189 builtin and then its argument prototype would still apply. */
36190#ifdef __cplusplus
36191extern "C"
36192#endif
36193char __gcov_init ();
36194int
36195main ()
36196{
36197return __gcov_init ();
36198 ;
36199 return 0;
36200}
36201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036203 ac_cv_lib_gcov___gcov_init=yes
36204else
cristy8b350f62009-11-15 23:12:43 +000036205 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036206fi
cristy8b350f62009-11-15 23:12:43 +000036207rm -f core conftest.err conftest.$ac_objext \
36208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036209LIBS=$ac_check_lib_save_LIBS
36210fi
cristy8b350f62009-11-15 23:12:43 +000036211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036212$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036213if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036214 cat >>confdefs.h <<_ACEOF
36215#define HAVE_LIBGCOV 1
36216_ACEOF
36217
36218 LIBS="-lgcov $LIBS"
36219
36220fi
36221
36222 case "$target_os" in
36223 darwin*)
36224 OSX_GCOV_LDFLAG="-Wl,-single_module"
36225 ;;
36226 *)
36227 OSX_GCOV_LDFLAG=""
36228 ;;
36229 esac
36230
36231 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36232 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36233 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36234fi
36235
36236#
36237# Build library dependency list for libMagickCore
36238#
36239
cristyc6722092012-10-14 00:19:31 +000036240if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036241 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 +000036242else
cristy3b0097d2014-11-04 15:34:47 +000036243 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 +000036244fi
36245
36246
36247#
36248# Remove extraneous spaces from output variables (asthetic)
36249#
36250X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36251X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36252X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36253X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36254
36255CC=`echo $CC | sed -e 's/ */ /g'`
36256CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36257CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36258CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036259DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36260LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36261TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36262MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36263#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36264
36265# Pass only user-provided LIBS as "global" libraries
36266LIBS=$USER_LIBS
36267
36268#AC_SUBST(CPPFLAGS)
36269
36270#AC_SUBST(LDFLAGS)
36271#AC_SUBST(X_PRE_LIBS)
36272#AC_SUBST(X_LIBS)
36273#AC_SUBST(X_EXTRA_LIBS)
36274
36275MAGICK_CFLAGS=$CFLAGS
36276MAGICK_CXXFLAGS="$CXXFLAGS"
36277MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36278MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36279MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036280MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036281
36282
36283
36284
36285
36286
36287
36288
36289# Set configured scripts to executable.
36290ac_config_commands="$ac_config_commands default"
36291
cristy2bd4b6e2012-07-22 15:29:11 +000036292ac_config_commands="$ac_config_commands magick.sh.in"
36293
cristy3ed852e2009-09-05 21:47:34 +000036294ac_config_commands="$ac_config_commands MagickCore-config.in"
36295
cristy3ed852e2009-09-05 21:47:34 +000036296ac_config_commands="$ac_config_commands MagickWand-config.in"
36297
cristy3ed852e2009-09-05 21:47:34 +000036298ac_config_commands="$ac_config_commands Magick++-config.in"
36299
36300ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36301
36302
cristyad38abe2012-12-23 23:03:21 +000036303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36304$as_echo "-------------------------------------------------------------" >&6; }
36305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36306$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036307
36308rm -f magick-version
36309
36310result_dejavu_font_dir='none'
36311if test "${dejavu_font_dir}x" != 'x'; then
36312 result_dejavu_font_dir=$dejavu_font_dir
36313fi
36314
36315result_ghostscript_font_dir='none'
36316if test "${ghostscript_font_dir}x" != 'x'; then
36317 result_ghostscript_font_dir=$ghostscript_font_dir
36318fi
36319
36320result_windows_font_dir='none'
36321if test "${windows_font_dir}x" != 'x'; then
36322 result_windows_font_dir=${windows_font_dir}
36323fi
36324
36325# ==============================================================================
36326# Generate build environment
36327# ==============================================================================
36328ac_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"
36329
cristy3ed852e2009-09-05 21:47:34 +000036330cat >confcache <<\_ACEOF
36331# This file is a shell script that caches the results of configure
36332# tests run on this system so they can be shared between configure
36333# scripts and configure runs, see configure's option --config-cache.
36334# It is not useful on other systems. If it contains results you don't
36335# want to keep, you may remove or edit it.
36336#
36337# config.status only pays attention to the cache file if you give it
36338# the --recheck option to rerun configure.
36339#
36340# `ac_cv_env_foo' variables (set or unset) will be overridden when
36341# loading this file, other *unset* `ac_cv_foo' will be assigned the
36342# following values.
36343
36344_ACEOF
36345
36346# The following way of writing the cache mishandles newlines in values,
36347# but we know of no workaround that is simple, portable, and efficient.
36348# So, we kill variables containing newlines.
36349# Ultrix sh set writes to stderr and can't be redirected directly,
36350# and sets the high bit in the cache file unless we assign to the vars.
36351(
36352 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36353 eval ac_val=\$$ac_var
36354 case $ac_val in #(
36355 *${as_nl}*)
36356 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036357 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036358$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36359 esac
36360 case $ac_var in #(
36361 _ | IFS | as_nl) ;; #(
36362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036363 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036364 esac ;;
36365 esac
36366 done
36367
36368 (set) 2>&1 |
36369 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36370 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036371 # `set' does not quote correctly, so add quotes: double-quote
36372 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036373 sed -n \
36374 "s/'/'\\\\''/g;
36375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36376 ;; #(
36377 *)
36378 # `set' quotes correctly as required by POSIX, so do not add quotes.
36379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36380 ;;
36381 esac |
36382 sort
36383) |
36384 sed '
36385 /^ac_cv_env_/b end
36386 t clear
36387 :clear
36388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36389 t end
36390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36391 :end' >>confcache
36392if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36393 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036394 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036395 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036396$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036397 if test ! -f "$cache_file" || test -h "$cache_file"; then
36398 cat confcache >"$cache_file"
36399 else
36400 case $cache_file in #(
36401 */* | ?:*)
36402 mv -f confcache "$cache_file"$$ &&
36403 mv -f "$cache_file"$$ "$cache_file" ;; #(
36404 *)
36405 mv -f confcache "$cache_file" ;;
36406 esac
36407 fi
36408 fi
cristy3ed852e2009-09-05 21:47:34 +000036409 else
cristy8b350f62009-11-15 23:12:43 +000036410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036411$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36412 fi
36413fi
36414rm -f confcache
36415
36416test "x$prefix" = xNONE && prefix=$ac_default_prefix
36417# Let make expand exec_prefix.
36418test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36419
36420DEFS=-DHAVE_CONFIG_H
36421
36422ac_libobjs=
36423ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036424U=
cristy3ed852e2009-09-05 21:47:34 +000036425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36426 # 1. Remove the extension, and $U if already installed.
36427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36430 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036433done
36434LIBOBJS=$ac_libobjs
36435
36436LTLIBOBJS=$ac_ltlibobjs
36437
36438
cristyc0890a62012-07-19 00:18:20 +000036439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36440$as_echo_n "checking that generated files are newer than configure... " >&6; }
36441 if test -n "$am_sleep_pid"; then
36442 # Hide warnings about reused PIDs.
36443 wait $am_sleep_pid 2>/dev/null
36444 fi
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36446$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036447 if test -n "$EXEEXT"; then
36448 am__EXEEXT_TRUE=
36449 am__EXEEXT_FALSE='#'
36450else
36451 am__EXEEXT_TRUE='#'
36452 am__EXEEXT_FALSE=
36453fi
cristy3ed852e2009-09-05 21:47:34 +000036454
cristy9af1cbf2014-12-28 22:03:09 +000036455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36456$as_echo_n "checking that generated files are newer than configure... " >&6; }
36457 if test -n "$am_sleep_pid"; then
36458 # Hide warnings about reused PIDs.
36459 wait $am_sleep_pid 2>/dev/null
36460 fi
36461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36462$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036463if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036464 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036465Usually this means the macro was only invoked conditionally." "$LINENO" 5
36466fi
36467if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036468 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036469Usually this means the macro was only invoked conditionally." "$LINENO" 5
36470fi
36471if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036472 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036473Usually this means the macro was only invoked conditionally." "$LINENO" 5
36474fi
36475if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036476 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036477Usually this means the macro was only invoked conditionally." "$LINENO" 5
36478fi
cristy9b86f202012-11-28 21:55:35 +000036479if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36480 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36481Usually this means the macro was only invoked conditionally." "$LINENO" 5
36482fi
cristy73bd4a52010-10-05 11:24:23 +000036483if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036484 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036485Usually this means the macro was only invoked conditionally." "$LINENO" 5
36486fi
36487if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036488 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036489Usually this means the macro was only invoked conditionally." "$LINENO" 5
36490fi
36491if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036492 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036493Usually this means the macro was only invoked conditionally." "$LINENO" 5
36494fi
36495if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036496 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036497Usually this means the macro was only invoked conditionally." "$LINENO" 5
36498fi
cristy73bd4a52010-10-05 11:24:23 +000036499if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036500 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036501Usually this means the macro was only invoked conditionally." "$LINENO" 5
36502fi
36503if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036504 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036505Usually this means the macro was only invoked conditionally." "$LINENO" 5
36506fi
cristy73bd4a52010-10-05 11:24:23 +000036507if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036508 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036509Usually this means the macro was only invoked conditionally." "$LINENO" 5
36510fi
cristy71d8c202012-03-20 17:05:01 +000036511if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36512 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36513Usually this means the macro was only invoked conditionally." "$LINENO" 5
36514fi
cristy73bd4a52010-10-05 11:24:23 +000036515
36516if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036517 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036518Usually this means the macro was only invoked conditionally." "$LINENO" 5
36519fi
36520if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036521 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036522Usually this means the macro was only invoked conditionally." "$LINENO" 5
36523fi
cristy3b0097d2014-11-04 15:34:47 +000036524if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36525 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36526Usually this means the macro was only invoked conditionally." "$LINENO" 5
36527fi
cristy73bd4a52010-10-05 11:24:23 +000036528if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036529 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036530Usually this means the macro was only invoked conditionally." "$LINENO" 5
36531fi
36532if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036533 as_fn_error $? "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036537 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036538Usually this means the macro was only invoked conditionally." "$LINENO" 5
36539fi
36540if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036541 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036542Usually this means the macro was only invoked conditionally." "$LINENO" 5
36543fi
cristy5eef09f2012-10-16 12:08:28 +000036544if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36545 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36546Usually this means the macro was only invoked conditionally." "$LINENO" 5
36547fi
cristy73bd4a52010-10-05 11:24:23 +000036548if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036549 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036550Usually this means the macro was only invoked conditionally." "$LINENO" 5
36551fi
36552if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036553 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036554Usually this means the macro was only invoked conditionally." "$LINENO" 5
36555fi
cristy73bd4a52010-10-05 11:24:23 +000036556if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036557 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036561 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036562Usually this means the macro was only invoked conditionally." "$LINENO" 5
36563fi
cristy853d9902014-08-21 18:50:43 +000036564if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36565 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36566Usually this means the macro was only invoked conditionally." "$LINENO" 5
36567fi
cristy73bd4a52010-10-05 11:24:23 +000036568if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036569 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036570Usually this means the macro was only invoked conditionally." "$LINENO" 5
36571fi
36572if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036573 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036574Usually this means the macro was only invoked conditionally." "$LINENO" 5
36575fi
36576if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036577 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036578Usually this means the macro was only invoked conditionally." "$LINENO" 5
36579fi
36580if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036581 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036582Usually this means the macro was only invoked conditionally." "$LINENO" 5
36583fi
36584if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036585 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036586Usually this means the macro was only invoked conditionally." "$LINENO" 5
36587fi
36588if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036589 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036590Usually this means the macro was only invoked conditionally." "$LINENO" 5
36591fi
cristy73bd4a52010-10-05 11:24:23 +000036592if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036593 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036594Usually this means the macro was only invoked conditionally." "$LINENO" 5
36595fi
cristy99db3872014-01-01 15:11:34 +000036596if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36597 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36598Usually this means the macro was only invoked conditionally." "$LINENO" 5
36599fi
cristy73bd4a52010-10-05 11:24:23 +000036600if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036601 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036602Usually this means the macro was only invoked conditionally." "$LINENO" 5
36603fi
cristyfbb0ef02010-12-19 02:32:11 +000036604if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36605 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36606Usually this means the macro was only invoked conditionally." "$LINENO" 5
36607fi
cristy73bd4a52010-10-05 11:24:23 +000036608if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036609 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036610Usually this means the macro was only invoked conditionally." "$LINENO" 5
36611fi
cristy41cbe8a2011-10-27 01:35:18 +000036612if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36613 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36614Usually this means the macro was only invoked conditionally." "$LINENO" 5
36615fi
cristya054b762012-03-26 23:16:00 +000036616if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36617 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036618Usually this means the macro was only invoked conditionally." "$LINENO" 5
36619fi
cristy73bd4a52010-10-05 11:24:23 +000036620if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036621 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036622Usually this means the macro was only invoked conditionally." "$LINENO" 5
36623fi
36624if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036625 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036626Usually this means the macro was only invoked conditionally." "$LINENO" 5
36627fi
36628if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036629 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036630Usually this means the macro was only invoked conditionally." "$LINENO" 5
36631fi
36632if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036633 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036634Usually this means the macro was only invoked conditionally." "$LINENO" 5
36635fi
cristyb1860752011-03-14 00:27:46 +000036636if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36637 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36638Usually this means the macro was only invoked conditionally." "$LINENO" 5
36639fi
cristy73bd4a52010-10-05 11:24:23 +000036640if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036641 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036642Usually this means the macro was only invoked conditionally." "$LINENO" 5
36643fi
36644if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036645 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036646Usually this means the macro was only invoked conditionally." "$LINENO" 5
36647fi
cristydd17feb2014-03-05 02:06:32 +000036648if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36649 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36650Usually this means the macro was only invoked conditionally." "$LINENO" 5
36651fi
cristy73bd4a52010-10-05 11:24:23 +000036652if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036653 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036654Usually this means the macro was only invoked conditionally." "$LINENO" 5
36655fi
36656if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036657 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036658Usually this means the macro was only invoked conditionally." "$LINENO" 5
36659fi
36660if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036661 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036662Usually this means the macro was only invoked conditionally." "$LINENO" 5
36663fi
36664if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036665 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036666Usually this means the macro was only invoked conditionally." "$LINENO" 5
36667fi
36668if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036669 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036670Usually this means the macro was only invoked conditionally." "$LINENO" 5
36671fi
36672if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036673 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036674Usually this means the macro was only invoked conditionally." "$LINENO" 5
36675fi
cristy3ed852e2009-09-05 21:47:34 +000036676
cristyda16f162011-02-19 23:52:17 +000036677: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036678ac_write_fail=0
36679ac_clean_files_save=$ac_clean_files
36680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036681{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036683as_write_fail=0
36684cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036685#! $SHELL
36686# Generated by $as_me.
36687# Run this file to recreate the current configuration.
36688# Compiler output produced by configure, useful for debugging
36689# configure, is in config.log if it exists.
36690
36691debug=false
36692ac_cs_recheck=false
36693ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036694
cristy8b350f62009-11-15 23:12:43 +000036695SHELL=\${CONFIG_SHELL-$SHELL}
36696export SHELL
36697_ASEOF
36698cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36699## -------------------- ##
36700## M4sh Initialization. ##
36701## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036702
36703# Be more Bourne compatible
36704DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036706 emulate sh
36707 NULLCMD=:
36708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36709 # is contrary to our usage. Disable this feature.
36710 alias -g '${1+"$@"}'='"$@"'
36711 setopt NO_GLOB_SUBST
36712else
cristy8b350f62009-11-15 23:12:43 +000036713 case `(set -o) 2>/dev/null` in #(
36714 *posix*) :
36715 set -o posix ;; #(
36716 *) :
36717 ;;
cristy3ed852e2009-09-05 21:47:34 +000036718esac
cristy3ed852e2009-09-05 21:47:34 +000036719fi
36720
36721
cristy3ed852e2009-09-05 21:47:34 +000036722as_nl='
36723'
36724export as_nl
36725# Printing a long string crashes Solaris 7 /usr/bin/printf.
36726as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036729# Prefer a ksh shell builtin over an external printf program on Solaris,
36730# but without wasting forks for bash or zsh.
36731if test -z "$BASH_VERSION$ZSH_VERSION" \
36732 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36733 as_echo='print -r --'
36734 as_echo_n='print -rn --'
36735elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036736 as_echo='printf %s\n'
36737 as_echo_n='printf %s'
36738else
36739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36741 as_echo_n='/usr/ucb/echo -n'
36742 else
36743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36744 as_echo_n_body='eval
36745 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036746 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036747 *"$as_nl"*)
36748 expr "X$arg" : "X\\(.*\\)$as_nl";
36749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36750 esac;
36751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36752 '
36753 export as_echo_n_body
36754 as_echo_n='sh -c $as_echo_n_body as_echo'
36755 fi
36756 export as_echo_body
36757 as_echo='sh -c $as_echo_body as_echo'
36758fi
36759
36760# The user is always right.
36761if test "${PATH_SEPARATOR+set}" != set; then
36762 PATH_SEPARATOR=:
36763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36765 PATH_SEPARATOR=';'
36766 }
36767fi
36768
cristy3ed852e2009-09-05 21:47:34 +000036769
36770# IFS
36771# We need space, tab and new line, in precisely that order. Quoting is
36772# there to prevent editors from complaining about space-tab.
36773# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36774# splitting by setting IFS to empty value.)
36775IFS=" "" $as_nl"
36776
36777# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036778as_myself=
cristy8b350f62009-11-15 23:12:43 +000036779case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036780 *[\\/]* ) as_myself=$0 ;;
36781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36782for as_dir in $PATH
36783do
36784 IFS=$as_save_IFS
36785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36787 done
cristy3ed852e2009-09-05 21:47:34 +000036788IFS=$as_save_IFS
36789
36790 ;;
36791esac
36792# We did not find ourselves, most probably we were run as `sh COMMAND'
36793# in which case we are not to be found in the path.
36794if test "x$as_myself" = x; then
36795 as_myself=$0
36796fi
36797if test ! -f "$as_myself"; then
36798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036799 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036800fi
36801
cristy8b350f62009-11-15 23:12:43 +000036802# Unset variables that we do not need and which cause bugs (e.g. in
36803# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36804# suppresses any "Segmentation fault" message there. '((' could
36805# trigger a bug in pdksh 5.2.14.
36806for as_var in BASH_ENV ENV MAIL MAILPATH
36807do eval test x\${$as_var+set} = xset \
36808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036809done
36810PS1='$ '
36811PS2='> '
36812PS4='+ '
36813
36814# NLS nuisances.
36815LC_ALL=C
36816export LC_ALL
36817LANGUAGE=C
36818export LANGUAGE
36819
cristy8b350f62009-11-15 23:12:43 +000036820# CDPATH.
36821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36822
36823
cristy98dddb52010-11-04 00:30:15 +000036824# as_fn_error STATUS ERROR [LINENO LOG_FD]
36825# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036828# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036829as_fn_error ()
36830{
cristy98dddb52010-11-04 00:30:15 +000036831 as_status=$1; test $as_status -eq 0 && as_status=1
36832 if test "$4"; then
36833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036835 fi
cristy98dddb52010-11-04 00:30:15 +000036836 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036837 as_fn_exit $as_status
36838} # as_fn_error
36839
36840
36841# as_fn_set_status STATUS
36842# -----------------------
36843# Set $? to STATUS, without forking.
36844as_fn_set_status ()
36845{
36846 return $1
36847} # as_fn_set_status
36848
36849# as_fn_exit STATUS
36850# -----------------
36851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36852as_fn_exit ()
36853{
36854 set +e
36855 as_fn_set_status $1
36856 exit $1
36857} # as_fn_exit
36858
36859# as_fn_unset VAR
36860# ---------------
36861# Portably unset VAR.
36862as_fn_unset ()
36863{
36864 { eval $1=; unset $1;}
36865}
36866as_unset=as_fn_unset
36867# as_fn_append VAR VALUE
36868# ----------------------
36869# Append the text in VALUE to the end of the definition contained in VAR. Take
36870# advantage of any shell optimizations that allow amortized linear growth over
36871# repeated appends, instead of the typical quadratic growth present in naive
36872# implementations.
36873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36874 eval 'as_fn_append ()
36875 {
36876 eval $1+=\$2
36877 }'
36878else
36879 as_fn_append ()
36880 {
36881 eval $1=\$$1\$2
36882 }
36883fi # as_fn_append
36884
36885# as_fn_arith ARG...
36886# ------------------
36887# Perform arithmetic evaluation on the ARGs, and store the result in the
36888# global $as_val. Take advantage of shells that can avoid forks. The arguments
36889# must be portable across $(()) and expr.
36890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36891 eval 'as_fn_arith ()
36892 {
36893 as_val=$(( $* ))
36894 }'
36895else
36896 as_fn_arith ()
36897 {
36898 as_val=`expr "$@" || test $? -eq 1`
36899 }
36900fi # as_fn_arith
36901
36902
cristy3ed852e2009-09-05 21:47:34 +000036903if expr a : '\(a\)' >/dev/null 2>&1 &&
36904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36905 as_expr=expr
36906else
36907 as_expr=false
36908fi
36909
36910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36911 as_basename=basename
36912else
36913 as_basename=false
36914fi
36915
cristy8b350f62009-11-15 23:12:43 +000036916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36917 as_dirname=dirname
36918else
36919 as_dirname=false
36920fi
cristy3ed852e2009-09-05 21:47:34 +000036921
cristy3ed852e2009-09-05 21:47:34 +000036922as_me=`$as_basename -- "$0" ||
36923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36924 X"$0" : 'X\(//\)$' \| \
36925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36926$as_echo X/"$0" |
36927 sed '/^.*\/\([^/][^/]*\)\/*$/{
36928 s//\1/
36929 q
36930 }
36931 /^X\/\(\/\/\)$/{
36932 s//\1/
36933 q
36934 }
36935 /^X\/\(\/\).*/{
36936 s//\1/
36937 q
36938 }
36939 s/.*/./; q'`
36940
cristy8b350f62009-11-15 23:12:43 +000036941# Avoid depending upon Character Ranges.
36942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36945as_cr_digits='0123456789'
36946as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036947
36948ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036949case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036950-n*)
cristy8b350f62009-11-15 23:12:43 +000036951 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036953 xy) ECHO_C='\c';;
36954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36955 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036956 esac;;
36957*)
36958 ECHO_N='-n';;
36959esac
cristy3ed852e2009-09-05 21:47:34 +000036960
36961rm -f conf$$ conf$$.exe conf$$.file
36962if test -d conf$$.dir; then
36963 rm -f conf$$.dir/conf$$.file
36964else
36965 rm -f conf$$.dir
36966 mkdir conf$$.dir 2>/dev/null
36967fi
36968if (echo >conf$$.file) 2>/dev/null; then
36969 if ln -s conf$$.file conf$$ 2>/dev/null; then
36970 as_ln_s='ln -s'
36971 # ... but there are two gotchas:
36972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036974 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036976 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036977 elif ln conf$$.file conf$$ 2>/dev/null; then
36978 as_ln_s=ln
36979 else
cristy14fefe52012-05-21 00:59:18 +000036980 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036981 fi
36982else
cristy14fefe52012-05-21 00:59:18 +000036983 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036984fi
36985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36986rmdir conf$$.dir 2>/dev/null
36987
cristy8b350f62009-11-15 23:12:43 +000036988
36989# as_fn_mkdir_p
36990# -------------
36991# Create "$as_dir" as a directory, including parents if necessary.
36992as_fn_mkdir_p ()
36993{
36994
36995 case $as_dir in #(
36996 -*) as_dir=./$as_dir;;
36997 esac
36998 test -d "$as_dir" || eval $as_mkdir_p || {
36999 as_dirs=
37000 while :; do
37001 case $as_dir in #(
37002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37003 *) as_qdir=$as_dir;;
37004 esac
37005 as_dirs="'$as_qdir' $as_dirs"
37006 as_dir=`$as_dirname -- "$as_dir" ||
37007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37008 X"$as_dir" : 'X\(//\)[^/]' \| \
37009 X"$as_dir" : 'X\(//\)$' \| \
37010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37011$as_echo X"$as_dir" |
37012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37013 s//\1/
37014 q
37015 }
37016 /^X\(\/\/\)[^/].*/{
37017 s//\1/
37018 q
37019 }
37020 /^X\(\/\/\)$/{
37021 s//\1/
37022 q
37023 }
37024 /^X\(\/\).*/{
37025 s//\1/
37026 q
37027 }
37028 s/.*/./; q'`
37029 test -d "$as_dir" && break
37030 done
37031 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037033
37034
37035} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037036if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037037 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037038else
37039 test -d ./-p && rmdir ./-p
37040 as_mkdir_p=false
37041fi
37042
cristy14fefe52012-05-21 00:59:18 +000037043
37044# as_fn_executable_p FILE
37045# -----------------------
37046# Test if FILE is an executable regular file.
37047as_fn_executable_p ()
37048{
37049 test -f "$1" && test -x "$1"
37050} # as_fn_executable_p
37051as_test_x='test -x'
37052as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037053
37054# Sed expression to map a string onto a valid CPP name.
37055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37056
37057# Sed expression to map a string onto a valid variable name.
37058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37059
37060
37061exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037062## ----------------------------------- ##
37063## Main body of $CONFIG_STATUS script. ##
37064## ----------------------------------- ##
37065_ASEOF
37066test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037067
cristy8b350f62009-11-15 23:12:43 +000037068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37069# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037070# report actual input values of CONFIG_FILES etc. instead of their
37071# values after options handling.
37072ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037073This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037074generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037075
37076 CONFIG_FILES = $CONFIG_FILES
37077 CONFIG_HEADERS = $CONFIG_HEADERS
37078 CONFIG_LINKS = $CONFIG_LINKS
37079 CONFIG_COMMANDS = $CONFIG_COMMANDS
37080 $ $0 $@
37081
37082on `(hostname || uname -n) 2>/dev/null | sed 1q`
37083"
37084
37085_ACEOF
37086
37087case $ac_config_files in *"
37088"*) set x $ac_config_files; shift; ac_config_files=$*;;
37089esac
37090
37091case $ac_config_headers in *"
37092"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37093esac
37094
37095
37096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37097# Files that config.status was made for.
37098config_files="$ac_config_files"
37099config_headers="$ac_config_headers"
37100config_commands="$ac_config_commands"
37101
37102_ACEOF
37103
37104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37105ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037106\`$as_me' instantiates files and other configuration actions
37107from templates according to the current configuration. Unless the files
37108and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037109
cristy8b350f62009-11-15 23:12:43 +000037110Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037111
37112 -h, --help print this help, then exit
37113 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037114 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037115 -q, --quiet, --silent
37116 do not print progress messages
37117 -d, --debug don't remove temporary files
37118 --recheck update $as_me by reconfiguring in the same conditions
37119 --file=FILE[:TEMPLATE]
37120 instantiate the configuration file FILE
37121 --header=FILE[:TEMPLATE]
37122 instantiate the configuration header FILE
37123
37124Configuration files:
37125$config_files
37126
37127Configuration headers:
37128$config_headers
37129
37130Configuration commands:
37131$config_commands
37132
cristy8b350f62009-11-15 23:12:43 +000037133Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037134
37135_ACEOF
37136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037137ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037138ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037139ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037140configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037141 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037142
cristy14fefe52012-05-21 00:59:18 +000037143Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037144This config.status script is free software; the Free Software Foundation
37145gives unlimited permission to copy, distribute and modify it."
37146
37147ac_pwd='$ac_pwd'
37148srcdir='$srcdir'
37149INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037150MKDIR_P='$MKDIR_P'
37151AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037152test -n "\$AWK" || AWK=awk
37153_ACEOF
37154
37155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37156# The default lists apply if the user does not specify any file.
37157ac_need_defaults=:
37158while test $# != 0
37159do
37160 case $1 in
cristyda16f162011-02-19 23:52:17 +000037161 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37163 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37164 ac_shift=:
37165 ;;
cristyda16f162011-02-19 23:52:17 +000037166 --*=)
37167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37168 ac_optarg=
37169 ac_shift=:
37170 ;;
cristy3ed852e2009-09-05 21:47:34 +000037171 *)
37172 ac_option=$1
37173 ac_optarg=$2
37174 ac_shift=shift
37175 ;;
37176 esac
37177
37178 case $ac_option in
37179 # Handling of the options.
37180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37181 ac_cs_recheck=: ;;
37182 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37183 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037184 --config | --confi | --conf | --con | --co | --c )
37185 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037186 --debug | --debu | --deb | --de | --d | -d )
37187 debug=: ;;
37188 --file | --fil | --fi | --f )
37189 $ac_shift
37190 case $ac_optarg in
37191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037192 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037193 esac
cristy8b350f62009-11-15 23:12:43 +000037194 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037195 ac_need_defaults=false;;
37196 --header | --heade | --head | --hea )
37197 $ac_shift
37198 case $ac_optarg in
37199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37200 esac
cristy8b350f62009-11-15 23:12:43 +000037201 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037202 ac_need_defaults=false;;
37203 --he | --h)
37204 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037205 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037206Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037207 --help | --hel | -h )
37208 $as_echo "$ac_cs_usage"; exit ;;
37209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37210 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37211 ac_cs_silent=: ;;
37212
37213 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037214 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037215Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037216
cristy8b350f62009-11-15 23:12:43 +000037217 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037218 ac_need_defaults=false ;;
37219
37220 esac
37221 shift
37222done
37223
37224ac_configure_extra_args=
37225
37226if $ac_cs_silent; then
37227 exec 6>/dev/null
37228 ac_configure_extra_args="$ac_configure_extra_args --silent"
37229fi
37230
37231_ACEOF
37232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37233if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037234 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037235 shift
37236 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37237 CONFIG_SHELL='$SHELL'
37238 export CONFIG_SHELL
37239 exec "\$@"
37240fi
37241
37242_ACEOF
37243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37244exec 5>>config.log
37245{
37246 echo
37247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37248## Running $as_me. ##
37249_ASBOX
37250 $as_echo "$ac_log"
37251} >&5
37252
37253_ACEOF
37254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037255#
37256# INIT-COMMANDS
37257#
37258PACKAGE="$PACKAGE"
37259AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37260
37261
37262# The HP-UX ksh and POSIX shell print the target directory to stdout
37263# if CDPATH is set.
37264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37265
37266sed_quote_subst='$sed_quote_subst'
37267double_quote_subst='$double_quote_subst'
37268delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037269SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37270Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37271GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37272EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37273FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37274SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37275ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37276LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37277macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37278macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37279AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37280DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37281OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37282enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37283enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37284pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37285enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037286PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037287host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37288host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37289host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37290build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37291build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37292build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37293NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37294LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37295max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37296ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37297exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37298lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37299lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37300lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037301lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37302lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037303reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37304reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37305deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37306file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037307file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37308want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37309sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037310AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37311AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037312archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037313STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37314RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37315old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37316old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37317old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37318lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37319CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37320CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37321compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37322GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37323lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37324lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37325lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37326lt_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 +000037327nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37328lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037329objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37330MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37331lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037332lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037333lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037334lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37335lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37336need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037337MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037338DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37339NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37340LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37341OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37342OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37343libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37344shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37345extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37346archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37347enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37348export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37349whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37350compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37351old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37352old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37353archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37354archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37355module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37356module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37357with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37358allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37359no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37360hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037361hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37362hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37363hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37364hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37365hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37366hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37367inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37368link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037369always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37370export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37371exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37372include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37373prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037374postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037375file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37376variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37377need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37378need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37379version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37380runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37381shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37382shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37383libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37384library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37385soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37386install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37387postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37388postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37389finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37390finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37391hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37392sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37393sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37394hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37395enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37396enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37397enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37398old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37399striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37400compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37401predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37402postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37403predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37404postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37405compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37406LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37407reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37408reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37409old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37410compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37411GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37412lt_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 +000037413lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037414lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037415lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37416lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37417archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37418enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37419export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37420whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37421compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37422old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37423old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37424archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37425archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37426module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37427module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37428with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37429allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37430no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37431hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037432hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37433hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37434hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37435hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37436hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37437hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37438inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37439link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037440always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37441export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37442exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37443include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37444prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037445postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037446file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37447hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37448compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37449predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37450postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37451predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37452postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37453compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037454
37455LTCC='$LTCC'
37456LTCFLAGS='$LTCFLAGS'
37457compiler='$compiler_DEFAULT'
37458
cristy0c60a692010-11-04 01:09:47 +000037459# A function that is used when there is no print builtin or printf.
37460func_fallback_echo ()
37461{
37462 eval 'cat <<_LTECHO_EOF
37463\$1
37464_LTECHO_EOF'
37465}
37466
cristy73bd4a52010-10-05 11:24:23 +000037467# Quote evaled strings.
37468for var in SED \
37469GREP \
37470EGREP \
37471FGREP \
cristy0c60a692010-11-04 01:09:47 +000037472SHELL \
37473ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037474LD \
cristy0c60a692010-11-04 01:09:47 +000037475AS \
37476DLLTOOL \
37477OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037478PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037479NM \
37480LN_S \
37481lt_SP2NL \
37482lt_NL2SP \
37483reload_flag \
37484deplibs_check_method \
37485file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037486file_magic_glob \
37487want_nocaseglob \
37488sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037489AR \
37490AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037491archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037492STRIP \
37493RANLIB \
37494CC \
37495CFLAGS \
37496compiler \
37497lt_cv_sys_global_symbol_pipe \
37498lt_cv_sys_global_symbol_to_cdecl \
37499lt_cv_sys_global_symbol_to_c_name_address \
37500lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037501nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037502lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037503lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037504lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037505lt_prog_compiler_static \
37506lt_cv_prog_compiler_c_o \
37507need_locks \
cristyda16f162011-02-19 23:52:17 +000037508MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037509DSYMUTIL \
37510NMEDIT \
37511LIPO \
37512OTOOL \
37513OTOOL64 \
37514shrext_cmds \
37515export_dynamic_flag_spec \
37516whole_archive_flag_spec \
37517compiler_needs_object \
37518with_gnu_ld \
37519allow_undefined_flag \
37520no_undefined_flag \
37521hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037522hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037523exclude_expsyms \
37524include_expsyms \
37525file_list_spec \
37526variables_saved_for_relink \
37527libname_spec \
37528library_names_spec \
37529soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037530install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037531finish_eval \
37532old_striplib \
37533striplib \
37534compiler_lib_search_dirs \
37535predep_objects \
37536postdep_objects \
37537predeps \
37538postdeps \
37539compiler_lib_search_path \
37540LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037541reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037542compiler_CXX \
37543lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037544lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037545lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037546lt_prog_compiler_static_CXX \
37547lt_cv_prog_compiler_c_o_CXX \
37548export_dynamic_flag_spec_CXX \
37549whole_archive_flag_spec_CXX \
37550compiler_needs_object_CXX \
37551with_gnu_ld_CXX \
37552allow_undefined_flag_CXX \
37553no_undefined_flag_CXX \
37554hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037555hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037556exclude_expsyms_CXX \
37557include_expsyms_CXX \
37558file_list_spec_CXX \
37559compiler_lib_search_dirs_CXX \
37560predep_objects_CXX \
37561postdep_objects_CXX \
37562predeps_CXX \
37563postdeps_CXX \
37564compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037566 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037568 ;;
37569 *)
37570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37571 ;;
37572 esac
37573done
37574
37575# Double-quote double-evaled strings.
37576for var in reload_cmds \
37577old_postinstall_cmds \
37578old_postuninstall_cmds \
37579old_archive_cmds \
37580extract_expsyms_cmds \
37581old_archive_from_new_cmds \
37582old_archive_from_expsyms_cmds \
37583archive_cmds \
37584archive_expsym_cmds \
37585module_cmds \
37586module_expsym_cmds \
37587export_symbols_cmds \
37588prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037589postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037590postinstall_cmds \
37591postuninstall_cmds \
37592finish_cmds \
37593sys_lib_search_path_spec \
37594sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037595reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037596old_archive_cmds_CXX \
37597old_archive_from_new_cmds_CXX \
37598old_archive_from_expsyms_cmds_CXX \
37599archive_cmds_CXX \
37600archive_expsym_cmds_CXX \
37601module_cmds_CXX \
37602module_expsym_cmds_CXX \
37603export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037604prelink_cmds_CXX \
37605postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037607 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037609 ;;
37610 *)
37611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37612 ;;
37613 esac
37614done
37615
cristy73bd4a52010-10-05 11:24:23 +000037616ac_aux_dir='$ac_aux_dir'
37617xsi_shell='$xsi_shell'
37618lt_shell_append='$lt_shell_append'
37619
37620# See if we are running on zsh, and set the options which allow our
37621# commands through without removal of \ escapes INIT.
37622if test -n "\${ZSH_VERSION+set}" ; then
37623 setopt NO_GLOB_SUBST
37624fi
37625
37626
37627 PACKAGE='$PACKAGE'
37628 VERSION='$VERSION'
37629 TIMESTAMP='$TIMESTAMP'
37630 RM='$RM'
37631 ofile='$ofile'
37632
37633
37634
37635
37636
37637
cristy3ed852e2009-09-05 21:47:34 +000037638_ACEOF
37639
37640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37641
37642# Handling of arguments.
37643for ac_config_target in $ac_config_targets
37644do
37645 case $ac_config_target in
37646 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037647 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037648 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37649 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37650 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37651 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37652 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37653 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37654 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37655 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037656 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037657 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37658 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37659 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37660 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37661 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037662 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037663 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037664 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037665 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37666 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37667 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37668 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37669 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037670 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037671 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037672 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37673 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37674 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37676 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037677 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037678 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037679 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037680 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037681 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37682 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37683 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37684 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037685 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37686 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37687 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37688 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37689 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37690 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37691 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37692 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37693 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37694 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37695 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37696 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037697 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37698 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037699
cristy98dddb52010-11-04 00:30:15 +000037700 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037701 esac
37702done
37703
37704
37705# If the user did not use the arguments to specify the items to instantiate,
37706# then the envvar interface is used. Set only those that are not.
37707# We use the long form for the default assignment because of an extremely
37708# bizarre bug on SunOS 4.1.3.
37709if $ac_need_defaults; then
37710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37713fi
37714
37715# Have a temporary directory for convenience. Make it in the build tree
37716# simply because there is no reason against having it here, and in addition,
37717# creating and moving files from /tmp can sometimes cause problems.
37718# Hook for its removal unless debugging.
37719# Note that there is a small window in which the directory will not be cleaned:
37720# after its creation but before its name has been assigned to `$tmp'.
37721$debug ||
37722{
cristyda16f162011-02-19 23:52:17 +000037723 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037724 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037725 : "${ac_tmp:=$tmp}"
37726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037727' 0
cristy8b350f62009-11-15 23:12:43 +000037728 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037729}
37730# Create a (secure) tmp directory for tmp files.
37731
37732{
37733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037734 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037735} ||
37736{
37737 tmp=./conf$$-$RANDOM
37738 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037739} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037740ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037741
37742# Set up the scripts for CONFIG_FILES section.
37743# No need to generate them if there are no CONFIG_FILES.
37744# This happens for instance with `./config.status config.h'.
37745if test -n "$CONFIG_FILES"; then
37746
37747
cristy8b350f62009-11-15 23:12:43 +000037748ac_cr=`echo X | tr X '\015'`
37749# On cygwin, bash can eat \r inside `` if the user requested igncr.
37750# But we know of no other shell where ac_cr would be empty at this
37751# point, so we can use a bashism as a fallback.
37752if test "x$ac_cr" = x; then
37753 eval ac_cr=\$\'\\r\'
37754fi
cristy3ed852e2009-09-05 21:47:34 +000037755ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37756if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037757 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037758else
37759 ac_cs_awk_cr=$ac_cr
37760fi
37761
cristyda16f162011-02-19 23:52:17 +000037762echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037763_ACEOF
37764
37765
37766{
37767 echo "cat >conf$$subs.awk <<_ACEOF" &&
37768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37769 echo "_ACEOF"
37770} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37772ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037773ac_delim='%!_!# '
37774for ac_last_try in false false false false false :; do
37775 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037777
37778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37779 if test $ac_delim_n = $ac_delim_num; then
37780 break
37781 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037783 else
37784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37785 fi
37786done
37787rm -f conf$$subs.sh
37788
37789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037790cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037791_ACEOF
37792sed -n '
37793h
37794s/^/S["/; s/!.*/"]=/
37795p
37796g
37797s/^[^!]*!//
37798:repl
37799t repl
37800s/'"$ac_delim"'$//
37801t delim
37802:nl
37803h
cristycd4c5312009-11-22 01:19:08 +000037804s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037805t more1
37806s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37807p
37808n
37809b repl
37810:more1
37811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37812p
37813g
37814s/.\{148\}//
37815t nl
37816:delim
37817h
cristycd4c5312009-11-22 01:19:08 +000037818s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037819t more2
37820s/["\\]/\\&/g; s/^/"/; s/$/"/
37821p
37822b
37823:more2
37824s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37825p
37826g
37827s/.\{148\}//
37828t delim
37829' <conf$$subs.awk | sed '
37830/^[^""]/{
37831 N
37832 s/\n//
37833}
37834' >>$CONFIG_STATUS || ac_write_fail=1
37835rm -f conf$$subs.awk
37836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37837_ACAWK
cristyda16f162011-02-19 23:52:17 +000037838cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037839 for (key in S) S_is_set[key] = 1
37840 FS = ""
37841
37842}
37843{
37844 line = $ 0
37845 nfields = split(line, field, "@")
37846 substed = 0
37847 len = length(field[1])
37848 for (i = 2; i < nfields; i++) {
37849 key = field[i]
37850 keylen = length(key)
37851 if (S_is_set[key]) {
37852 value = S[key]
37853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37854 len += length(value) + length(field[++i])
37855 substed = 1
37856 } else
37857 len += 1 + keylen
37858 }
37859
37860 print line
37861}
37862
37863_ACAWK
37864_ACEOF
37865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37866if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37868else
37869 cat
cristyda16f162011-02-19 23:52:17 +000037870fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037872_ACEOF
37873
cristy98dddb52010-11-04 00:30:15 +000037874# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37875# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037876# trailing colons and then remove the whole line if VPATH becomes empty
37877# (actually we leave an empty line to preserve line numbers).
37878if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37880h
37881s///
37882s/^/:/
37883s/[ ]*$/:/
37884s/:\$(srcdir):/:/g
37885s/:\${srcdir}:/:/g
37886s/:@srcdir@:/:/g
37887s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037888s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037889x
37890s/\(=[ ]*\).*/\1/
37891G
37892s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037893s/^[^=]*=[ ]*$//
37894}'
37895fi
37896
37897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37898fi # test -n "$CONFIG_FILES"
37899
37900# Set up the scripts for CONFIG_HEADERS section.
37901# No need to generate them if there are no CONFIG_HEADERS.
37902# This happens for instance with `./config.status Makefile'.
37903if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037904cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037905BEGIN {
37906_ACEOF
37907
37908# Transform confdefs.h into an awk script `defines.awk', embedded as
37909# here-document in config.status, that substitutes the proper values into
37910# config.h.in to produce config.h.
37911
37912# Create a delimiter string that does not exist in confdefs.h, to ease
37913# handling of long lines.
37914ac_delim='%!_!# '
37915for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37917 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037918 break
37919 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037921 else
37922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37923 fi
37924done
37925
37926# For the awk script, D is an array of macro values keyed by name,
37927# likewise P contains macro parameters if any. Preserve backslash
37928# newline sequences.
37929
37930ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37931sed -n '
37932s/.\{148\}/&'"$ac_delim"'/g
37933t rset
37934:rset
37935s/^[ ]*#[ ]*define[ ][ ]*/ /
37936t def
37937d
37938:def
37939s/\\$//
37940t bsnl
37941s/["\\]/\\&/g
37942s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37943D["\1"]=" \3"/p
37944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37945d
37946:bsnl
37947s/["\\]/\\&/g
37948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37949D["\1"]=" \3\\\\\\n"\\/p
37950t cont
37951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37952t cont
37953d
37954:cont
37955n
37956s/.\{148\}/&'"$ac_delim"'/g
37957t clear
37958:clear
37959s/\\$//
37960t bsnlc
37961s/["\\]/\\&/g; s/^/"/; s/$/"/p
37962d
37963:bsnlc
37964s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37965b cont
37966' <confdefs.h | sed '
37967s/'"$ac_delim"'/"\\\
37968"/g' >>$CONFIG_STATUS || ac_write_fail=1
37969
37970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37971 for (key in D) D_is_set[key] = 1
37972 FS = ""
37973}
37974/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37975 line = \$ 0
37976 split(line, arg, " ")
37977 if (arg[1] == "#") {
37978 defundef = arg[2]
37979 mac1 = arg[3]
37980 } else {
37981 defundef = substr(arg[1], 2)
37982 mac1 = arg[2]
37983 }
37984 split(mac1, mac2, "(") #)
37985 macro = mac2[1]
37986 prefix = substr(line, 1, index(line, defundef) - 1)
37987 if (D_is_set[macro]) {
37988 # Preserve the white space surrounding the "#".
37989 print prefix "define", macro P[macro] D[macro]
37990 next
37991 } else {
37992 # Replace #undef with comments. This is necessary, for example,
37993 # in the case of _POSIX_SOURCE, which is predefined and required
37994 # on some systems where configure will not decide to define it.
37995 if (defundef == "undef") {
37996 print "/*", prefix defundef, macro, "*/"
37997 next
37998 }
37999 }
38000}
38001{ print }
38002_ACAWK
38003_ACEOF
38004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038006fi # test -n "$CONFIG_HEADERS"
38007
38008
38009eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38010shift
38011for ac_tag
38012do
38013 case $ac_tag in
38014 :[FHLC]) ac_mode=$ac_tag; continue;;
38015 esac
38016 case $ac_mode$ac_tag in
38017 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038019 :[FH]-) ac_tag=-:-;;
38020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38021 esac
38022 ac_save_IFS=$IFS
38023 IFS=:
38024 set x $ac_tag
38025 IFS=$ac_save_IFS
38026 shift
38027 ac_file=$1
38028 shift
38029
38030 case $ac_mode in
38031 :L) ac_source=$1;;
38032 :[FH])
38033 ac_file_inputs=
38034 for ac_f
38035 do
38036 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038037 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038038 *) # Look for the file first in the build tree, then in the source tree
38039 # (if the path is not absolute). The absolute path cannot be DOS-style,
38040 # because $ac_f cannot contain `:'.
38041 test -f "$ac_f" ||
38042 case $ac_f in
38043 [\\/$]*) false;;
38044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38045 esac ||
cristy98dddb52010-11-04 00:30:15 +000038046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038047 esac
38048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038049 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038050 done
38051
38052 # Let's still pretend it is `configure' which instantiates (i.e., don't
38053 # use $as_me), people would be surprised to read:
38054 # /* config.h. Generated by config.status. */
38055 configure_input='Generated from '`
38056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38057 `' by configure.'
38058 if test x"$ac_file" != x-; then
38059 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038061$as_echo "$as_me: creating $ac_file" >&6;}
38062 fi
38063 # Neutralize special characters interpreted by sed in replacement strings.
38064 case $configure_input in #(
38065 *\&* | *\|* | *\\* )
38066 ac_sed_conf_input=`$as_echo "$configure_input" |
38067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38068 *) ac_sed_conf_input=$configure_input;;
38069 esac
38070
38071 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038072 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038074 esac
38075 ;;
38076 esac
38077
38078 ac_dir=`$as_dirname -- "$ac_file" ||
38079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38080 X"$ac_file" : 'X\(//\)[^/]' \| \
38081 X"$ac_file" : 'X\(//\)$' \| \
38082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38083$as_echo X"$ac_file" |
38084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38085 s//\1/
38086 q
38087 }
38088 /^X\(\/\/\)[^/].*/{
38089 s//\1/
38090 q
38091 }
38092 /^X\(\/\/\)$/{
38093 s//\1/
38094 q
38095 }
38096 /^X\(\/\).*/{
38097 s//\1/
38098 q
38099 }
38100 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038101 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038102 ac_builddir=.
38103
38104case "$ac_dir" in
38105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38106*)
38107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38108 # A ".." for each directory in $ac_dir_suffix.
38109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38110 case $ac_top_builddir_sub in
38111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38113 esac ;;
38114esac
38115ac_abs_top_builddir=$ac_pwd
38116ac_abs_builddir=$ac_pwd$ac_dir_suffix
38117# for backward compatibility:
38118ac_top_builddir=$ac_top_build_prefix
38119
38120case $srcdir in
38121 .) # We are building in place.
38122 ac_srcdir=.
38123 ac_top_srcdir=$ac_top_builddir_sub
38124 ac_abs_top_srcdir=$ac_pwd ;;
38125 [\\/]* | ?:[\\/]* ) # Absolute name.
38126 ac_srcdir=$srcdir$ac_dir_suffix;
38127 ac_top_srcdir=$srcdir
38128 ac_abs_top_srcdir=$srcdir ;;
38129 *) # Relative name.
38130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38131 ac_top_srcdir=$ac_top_build_prefix$srcdir
38132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38133esac
38134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38135
38136
38137 case $ac_mode in
38138 :F)
38139 #
38140 # CONFIG_FILE
38141 #
38142
38143 case $INSTALL in
38144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38146 esac
cristy73bd4a52010-10-05 11:24:23 +000038147 ac_MKDIR_P=$MKDIR_P
38148 case $MKDIR_P in
38149 [\\/$]* | ?:[\\/]* ) ;;
38150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38151 esac
cristy3ed852e2009-09-05 21:47:34 +000038152_ACEOF
38153
38154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38155# If the template does not know about datarootdir, expand it.
38156# FIXME: This hack should be removed a few years after 2.60.
38157ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038158ac_sed_dataroot='
38159/datarootdir/ {
38160 p
38161 q
38162}
38163/@datadir@/p
38164/@docdir@/p
38165/@infodir@/p
38166/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038167/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38169*datarootdir*) ac_datarootdir_seen=yes;;
38170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38173_ACEOF
38174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38175 ac_datarootdir_hack='
38176 s&@datadir@&$datadir&g
38177 s&@docdir@&$docdir&g
38178 s&@infodir@&$infodir&g
38179 s&@localedir@&$localedir&g
38180 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038181 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038182esac
38183_ACEOF
38184
38185# Neutralize VPATH when `$srcdir' = `.'.
38186# Shell code in configure.ac might set extrasub.
38187# FIXME: do we really want to maintain this feature?
38188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38189ac_sed_extra="$ac_vpsub
38190$extrasub
38191_ACEOF
38192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38193:t
38194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38195s|@configure_input@|$ac_sed_conf_input|;t t
38196s&@top_builddir@&$ac_top_builddir_sub&;t t
38197s&@top_build_prefix@&$ac_top_build_prefix&;t t
38198s&@srcdir@&$ac_srcdir&;t t
38199s&@abs_srcdir@&$ac_abs_srcdir&;t t
38200s&@top_srcdir@&$ac_top_srcdir&;t t
38201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38202s&@builddir@&$ac_builddir&;t t
38203s&@abs_builddir@&$ac_abs_builddir&;t t
38204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38205s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038206s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038207$ac_datarootdir_hack
38208"
cristyda16f162011-02-19 23:52:17 +000038209eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38210 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038211
38212test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038213 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38214 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38215 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038217which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038218$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038219which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038220
cristyda16f162011-02-19 23:52:17 +000038221 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038222 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038223 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38224 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038225 esac \
cristy98dddb52010-11-04 00:30:15 +000038226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038227 ;;
38228 :H)
38229 #
38230 # CONFIG_HEADER
38231 #
38232 if test x"$ac_file" != x-; then
38233 {
38234 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38236 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038238 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038240$as_echo "$as_me: $ac_file is unchanged" >&6;}
38241 else
38242 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038243 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038245 fi
38246 else
38247 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038249 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038250 fi
cristy73bd4a52010-10-05 11:24:23 +000038251# Compute "$ac_file"'s index in $config_headers.
38252_am_arg="$ac_file"
38253_am_stamp_count=1
38254for _am_header in $config_headers :; do
38255 case $_am_header in
38256 $_am_arg | $_am_arg:* )
38257 break ;;
38258 * )
38259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38260 esac
38261done
38262echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38263$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38264 X"$_am_arg" : 'X\(//\)[^/]' \| \
38265 X"$_am_arg" : 'X\(//\)$' \| \
38266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38267$as_echo X"$_am_arg" |
38268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38269 s//\1/
38270 q
38271 }
38272 /^X\(\/\/\)[^/].*/{
38273 s//\1/
38274 q
38275 }
38276 /^X\(\/\/\)$/{
38277 s//\1/
38278 q
38279 }
38280 /^X\(\/\).*/{
38281 s//\1/
38282 q
38283 }
38284 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038285 ;;
38286
cristy8b350f62009-11-15 23:12:43 +000038287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038288$as_echo "$as_me: executing $ac_file commands" >&6;}
38289 ;;
38290 esac
38291
38292
38293 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038294 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038295ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38296ac_prefix_conf_PKG=`echo MagickCore`
38297ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38298ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38299ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38300if test ".$ac_prefix_conf_INP" = "."; then
38301 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38302 case "$ac_file" in
38303 *.h) ac_prefix_conf_INP=$ac_file ;;
38304 *)
38305 esac
38306 test ".$ac_prefix_conf_INP" != "." && break
38307 done
38308fi
38309if test ".$ac_prefix_conf_INP" = "."; then
38310 case "$ac_prefix_conf_OUT" in
38311 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38312 ;;
38313 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38314 ;;
38315 *) ac_prefix_conf_INP=config.h
38316 ;;
38317 esac
38318fi
38319if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038320 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038321else
38322 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38323 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38324 fi fi
38325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38326$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38327 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038328 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38329 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38330 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38331 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38332 $as_echo "#endif/" >> conftest.prefix
38333 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38334 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38335 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038336 # now executing _script on _DEF input to create _OUT output file
38337 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38338 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38339 echo ' ' >>$tmp/pconfig.h
38340 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38341
38342 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38343 echo ' ' >>$tmp/pconfig.h
38344 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38345 echo "#endif" >>$tmp/pconfig.h
38346 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38348$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38349 else
38350 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38351$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38352 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38353 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38354 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38355$as_echo X"$ac_prefix_conf_OUT" |
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="$ac_dir"; as_fn_mkdir_p
38374 rm -f "$ac_prefix_conf_OUT"
38375 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38376 fi
cristy73bd4a52010-10-05 11:24:23 +000038377 else
cristy98dddb52010-11-04 00:30:15 +000038378 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 +000038379 fi
38380 rm -f conftest.*
38381fi
38382 ;;
38383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038384 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038385 # are listed without --file. Let's play safe and only enable the eval
38386 # if we detect the quoting.
38387 case $CONFIG_FILES in
38388 *\'*) eval set x "$CONFIG_FILES" ;;
38389 *) set x $CONFIG_FILES ;;
38390 esac
38391 shift
38392 for mf
38393 do
38394 # Strip MF so we end up with the name of the file.
38395 mf=`echo "$mf" | sed -e 's/:.*$//'`
38396 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038397 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038398 # some people rename them; so instead we look at the file content.
38399 # Grep'ing the first line is not enough: some people post-process
38400 # each Makefile.in and add a new line on top of each file to say so.
38401 # Grep'ing the whole file is not good either: AIX grep has a line
38402 # limit of 2048, but all sed's we know have understand at least 4000.
38403 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38404 dirpart=`$as_dirname -- "$mf" ||
38405$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38406 X"$mf" : 'X\(//\)[^/]' \| \
38407 X"$mf" : 'X\(//\)$' \| \
38408 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38409$as_echo X"$mf" |
38410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38411 s//\1/
38412 q
38413 }
38414 /^X\(\/\/\)[^/].*/{
38415 s//\1/
38416 q
38417 }
38418 /^X\(\/\/\)$/{
38419 s//\1/
38420 q
38421 }
38422 /^X\(\/\).*/{
38423 s//\1/
38424 q
38425 }
38426 s/.*/./; q'`
38427 else
38428 continue
38429 fi
38430 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038431 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038432 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38433 test -z "$DEPDIR" && continue
38434 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038435 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038436 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038437 # Find all dependency output files, they are included files with
38438 # $(DEPDIR) in their names. We invoke sed twice because it is the
38439 # simplest approach to changing $(DEPDIR) to its actual value in the
38440 # expansion.
38441 for file in `sed -n "
38442 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038443 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038444 # Make sure the directory exists.
38445 test -f "$dirpart/$file" && continue
38446 fdir=`$as_dirname -- "$file" ||
38447$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38448 X"$file" : 'X\(//\)[^/]' \| \
38449 X"$file" : 'X\(//\)$' \| \
38450 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38451$as_echo X"$file" |
38452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38453 s//\1/
38454 q
38455 }
38456 /^X\(\/\/\)[^/].*/{
38457 s//\1/
38458 q
38459 }
38460 /^X\(\/\/\)$/{
38461 s//\1/
38462 q
38463 }
38464 /^X\(\/\).*/{
38465 s//\1/
38466 q
38467 }
38468 s/.*/./; q'`
38469 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38470 # echo "creating $dirpart/$file"
38471 echo '# dummy' > "$dirpart/$file"
38472 done
38473 done
38474}
38475 ;;
38476 "libtool":C)
38477
38478 # See if we are running on zsh, and set the options which allow our
38479 # commands through without removal of \ escapes.
38480 if test -n "${ZSH_VERSION+set}" ; then
38481 setopt NO_GLOB_SUBST
38482 fi
38483
38484 cfgfile="${ofile}T"
38485 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38486 $RM "$cfgfile"
38487
38488 cat <<_LT_EOF >> "$cfgfile"
38489#! $SHELL
38490
38491# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38492# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38493# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38494# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38495#
38496# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038497# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38498# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038499# Written by Gordon Matzigkeit, 1996
38500#
38501# This file is part of GNU Libtool.
38502#
38503# GNU Libtool is free software; you can redistribute it and/or
38504# modify it under the terms of the GNU General Public License as
38505# published by the Free Software Foundation; either version 2 of
38506# the License, or (at your option) any later version.
38507#
38508# As a special exception to the GNU General Public License,
38509# if you distribute this file as part of a program or library that
38510# is built using GNU Libtool, you may include this file under the
38511# same distribution terms that you use for the rest of that program.
38512#
38513# GNU Libtool is distributed in the hope that it will be useful,
38514# but WITHOUT ANY WARRANTY; without even the implied warranty of
38515# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38516# GNU General Public License for more details.
38517#
38518# You should have received a copy of the GNU General Public License
38519# along with GNU Libtool; see the file COPYING. If not, a copy
38520# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38521# obtained by writing to the Free Software Foundation, Inc.,
38522# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38523
38524
38525# The names of the tagged configurations supported by this script.
38526available_tags="CXX "
38527
38528# ### BEGIN LIBTOOL CONFIG
38529
38530# A sed program that does not truncate output.
38531SED=$lt_SED
38532
38533# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38534Xsed="\$SED -e 1s/^X//"
38535
38536# A grep program that handles long lines.
38537GREP=$lt_GREP
38538
38539# An ERE matcher.
38540EGREP=$lt_EGREP
38541
38542# A literal string matcher.
38543FGREP=$lt_FGREP
38544
cristy0c60a692010-11-04 01:09:47 +000038545# Shell to use when invoking shell scripts.
38546SHELL=$lt_SHELL
38547
38548# An echo program that protects backslashes.
38549ECHO=$lt_ECHO
38550
cristy73bd4a52010-10-05 11:24:23 +000038551# Which release of libtool.m4 was used?
38552macro_version=$macro_version
38553macro_revision=$macro_revision
38554
38555# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038556AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038557
38558# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038559DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038560
38561# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038562OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038563
38564# Whether or not to build shared libraries.
38565build_libtool_libs=$enable_shared
38566
38567# Whether or not to build static libraries.
38568build_old_libs=$enable_static
38569
38570# What type of objects to build.
38571pic_mode=$pic_mode
38572
38573# Whether or not to optimize for fast installation.
38574fast_install=$enable_fast_install
38575
cristy99bd5232011-12-07 14:38:20 +000038576# The PATH separator for the build system.
38577PATH_SEPARATOR=$lt_PATH_SEPARATOR
38578
cristy73bd4a52010-10-05 11:24:23 +000038579# The host system.
38580host_alias=$host_alias
38581host=$host
38582host_os=$host_os
38583
38584# The build system.
38585build_alias=$build_alias
38586build=$build
38587build_os=$build_os
38588
38589# A BSD- or MS-compatible name lister.
38590NM=$lt_NM
38591
38592# Whether we need soft or hard links.
38593LN_S=$lt_LN_S
38594
38595# What is the maximum length of a command?
38596max_cmd_len=$max_cmd_len
38597
38598# Object file suffix (normally "o").
38599objext=$ac_objext
38600
38601# Executable file suffix (normally "").
38602exeext=$exeext
38603
38604# whether the shell understands "unset".
38605lt_unset=$lt_unset
38606
38607# turn spaces into newlines.
38608SP2NL=$lt_lt_SP2NL
38609
38610# turn newlines into spaces.
38611NL2SP=$lt_lt_NL2SP
38612
cristyda16f162011-02-19 23:52:17 +000038613# convert \$build file names to \$host format.
38614to_host_file_cmd=$lt_cv_to_host_file_cmd
38615
38616# convert \$build files to toolchain format.
38617to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38618
cristy73bd4a52010-10-05 11:24:23 +000038619# Method to check whether dependent libraries are shared objects.
38620deplibs_check_method=$lt_deplibs_check_method
38621
cristyda16f162011-02-19 23:52:17 +000038622# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038623file_magic_cmd=$lt_file_magic_cmd
38624
cristyda16f162011-02-19 23:52:17 +000038625# How to find potential files when deplibs_check_method = "file_magic".
38626file_magic_glob=$lt_file_magic_glob
38627
38628# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38629want_nocaseglob=$lt_want_nocaseglob
38630
38631# Command to associate shared and link libraries.
38632sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38633
cristy73bd4a52010-10-05 11:24:23 +000038634# The archiver.
38635AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038636
38637# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038638AR_FLAGS=$lt_AR_FLAGS
38639
cristyda16f162011-02-19 23:52:17 +000038640# How to feed a file listing to the archiver.
38641archiver_list_spec=$lt_archiver_list_spec
38642
cristy73bd4a52010-10-05 11:24:23 +000038643# A symbol stripping program.
38644STRIP=$lt_STRIP
38645
38646# Commands used to install an old-style archive.
38647RANLIB=$lt_RANLIB
38648old_postinstall_cmds=$lt_old_postinstall_cmds
38649old_postuninstall_cmds=$lt_old_postuninstall_cmds
38650
cristy0c60a692010-11-04 01:09:47 +000038651# Whether to use a lock for old archive extraction.
38652lock_old_archive_extraction=$lock_old_archive_extraction
38653
cristy73bd4a52010-10-05 11:24:23 +000038654# A C compiler.
38655LTCC=$lt_CC
38656
38657# LTCC compiler flags.
38658LTCFLAGS=$lt_CFLAGS
38659
38660# Take the output of nm and produce a listing of raw symbols and C names.
38661global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38662
38663# Transform the output of nm in a proper C declaration.
38664global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38665
38666# Transform the output of nm in a C name address pair.
38667global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38668
38669# Transform the output of nm in a C name address pair when lib prefix is needed.
38670global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38671
cristyda16f162011-02-19 23:52:17 +000038672# Specify filename containing input files for \$NM.
38673nm_file_list_spec=$lt_nm_file_list_spec
38674
38675# The root where to search for dependent libraries,and in which our libraries should be installed.
38676lt_sysroot=$lt_sysroot
38677
cristy73bd4a52010-10-05 11:24:23 +000038678# The name of the directory that contains temporary libtool files.
38679objdir=$objdir
38680
cristy73bd4a52010-10-05 11:24:23 +000038681# Used to examine libraries when file_magic_cmd begins with "file".
38682MAGIC_CMD=$MAGIC_CMD
38683
38684# Must we lock files when doing compilation?
38685need_locks=$lt_need_locks
38686
cristyda16f162011-02-19 23:52:17 +000038687# Manifest tool.
38688MANIFEST_TOOL=$lt_MANIFEST_TOOL
38689
cristy73bd4a52010-10-05 11:24:23 +000038690# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38691DSYMUTIL=$lt_DSYMUTIL
38692
38693# Tool to change global to local symbols on Mac OS X.
38694NMEDIT=$lt_NMEDIT
38695
38696# Tool to manipulate fat objects and archives on Mac OS X.
38697LIPO=$lt_LIPO
38698
38699# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38700OTOOL=$lt_OTOOL
38701
38702# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38703OTOOL64=$lt_OTOOL64
38704
38705# Old archive suffix (normally "a").
38706libext=$libext
38707
38708# Shared library suffix (normally ".so").
38709shrext_cmds=$lt_shrext_cmds
38710
38711# The commands to extract the exported symbol list from a shared archive.
38712extract_expsyms_cmds=$lt_extract_expsyms_cmds
38713
38714# Variables whose values should be saved in libtool wrapper scripts and
38715# restored at link time.
38716variables_saved_for_relink=$lt_variables_saved_for_relink
38717
38718# Do we need the "lib" prefix for modules?
38719need_lib_prefix=$need_lib_prefix
38720
38721# Do we need a version for libraries?
38722need_version=$need_version
38723
38724# Library versioning type.
38725version_type=$version_type
38726
38727# Shared library runtime path variable.
38728runpath_var=$runpath_var
38729
38730# Shared library path variable.
38731shlibpath_var=$shlibpath_var
38732
38733# Is shlibpath searched before the hard-coded library search path?
38734shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38735
38736# Format of library name prefix.
38737libname_spec=$lt_libname_spec
38738
38739# List of archive names. First name is the real one, the rest are links.
38740# The last name is the one that the linker finds with -lNAME
38741library_names_spec=$lt_library_names_spec
38742
38743# The coded name of the library, if different from the real name.
38744soname_spec=$lt_soname_spec
38745
cristy0c60a692010-11-04 01:09:47 +000038746# Permission mode override for installation of shared libraries.
38747install_override_mode=$lt_install_override_mode
38748
cristy73bd4a52010-10-05 11:24:23 +000038749# Command to use after installation of a shared archive.
38750postinstall_cmds=$lt_postinstall_cmds
38751
38752# Command to use after uninstallation of a shared archive.
38753postuninstall_cmds=$lt_postuninstall_cmds
38754
38755# Commands used to finish a libtool library installation in a directory.
38756finish_cmds=$lt_finish_cmds
38757
38758# As "finish_cmds", except a single script fragment to be evaled but
38759# not shown.
38760finish_eval=$lt_finish_eval
38761
38762# Whether we should hardcode library paths into libraries.
38763hardcode_into_libs=$hardcode_into_libs
38764
38765# Compile-time system search path for libraries.
38766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38767
38768# Run-time system search path for libraries.
38769sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38770
38771# Whether dlopen is supported.
38772dlopen_support=$enable_dlopen
38773
38774# Whether dlopen of programs is supported.
38775dlopen_self=$enable_dlopen_self
38776
38777# Whether dlopen of statically linked programs is supported.
38778dlopen_self_static=$enable_dlopen_self_static
38779
38780# Commands to strip libraries.
38781old_striplib=$lt_old_striplib
38782striplib=$lt_striplib
38783
38784
38785# The linker used to build libraries.
38786LD=$lt_LD
38787
cristy0c60a692010-11-04 01:09:47 +000038788# How to create reloadable object files.
38789reload_flag=$lt_reload_flag
38790reload_cmds=$lt_reload_cmds
38791
cristy73bd4a52010-10-05 11:24:23 +000038792# Commands used to build an old-style archive.
38793old_archive_cmds=$lt_old_archive_cmds
38794
38795# A language specific compiler.
38796CC=$lt_compiler
38797
38798# Is the compiler the GNU compiler?
38799with_gcc=$GCC
38800
38801# Compiler flag to turn off builtin functions.
38802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38803
cristy73bd4a52010-10-05 11:24:23 +000038804# Additional compiler flags for building library objects.
38805pic_flag=$lt_lt_prog_compiler_pic
38806
cristyda16f162011-02-19 23:52:17 +000038807# How to pass a linker flag through the compiler.
38808wl=$lt_lt_prog_compiler_wl
38809
cristy73bd4a52010-10-05 11:24:23 +000038810# Compiler flag to prevent dynamic linking.
38811link_static_flag=$lt_lt_prog_compiler_static
38812
38813# Does compiler simultaneously support -c and -o options?
38814compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38815
38816# Whether or not to add -lc for building shared libraries.
38817build_libtool_need_lc=$archive_cmds_need_lc
38818
38819# Whether or not to disallow shared libs when runtime libs are static.
38820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38821
38822# Compiler flag to allow reflexive dlopens.
38823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38824
38825# Compiler flag to generate shared objects directly from archives.
38826whole_archive_flag_spec=$lt_whole_archive_flag_spec
38827
38828# Whether the compiler copes with passing no objects directly.
38829compiler_needs_object=$lt_compiler_needs_object
38830
38831# Create an old-style archive from a shared archive.
38832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38833
38834# Create a temporary old-style archive to link instead of a shared archive.
38835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38836
38837# Commands used to build a shared archive.
38838archive_cmds=$lt_archive_cmds
38839archive_expsym_cmds=$lt_archive_expsym_cmds
38840
38841# Commands used to build a loadable module if different from building
38842# a shared archive.
38843module_cmds=$lt_module_cmds
38844module_expsym_cmds=$lt_module_expsym_cmds
38845
38846# Whether we are building with GNU ld or not.
38847with_gnu_ld=$lt_with_gnu_ld
38848
38849# Flag that allows shared libraries with undefined symbols to be built.
38850allow_undefined_flag=$lt_allow_undefined_flag
38851
38852# Flag that enforces no undefined symbols.
38853no_undefined_flag=$lt_no_undefined_flag
38854
38855# Flag to hardcode \$libdir into a binary during linking.
38856# This must work even if \$libdir does not exist
38857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38858
cristy73bd4a52010-10-05 11:24:23 +000038859# Whether we need a single "-rpath" flag with a separated argument.
38860hardcode_libdir_separator=$lt_hardcode_libdir_separator
38861
38862# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38863# DIR into the resulting binary.
38864hardcode_direct=$hardcode_direct
38865
38866# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38867# DIR into the resulting binary and the resulting library dependency is
38868# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38869# library is relocated.
38870hardcode_direct_absolute=$hardcode_direct_absolute
38871
38872# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38873# into the resulting binary.
38874hardcode_minus_L=$hardcode_minus_L
38875
38876# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38877# into the resulting binary.
38878hardcode_shlibpath_var=$hardcode_shlibpath_var
38879
38880# Set to "yes" if building a shared library automatically hardcodes DIR
38881# into the library and all subsequent libraries and executables linked
38882# against it.
38883hardcode_automatic=$hardcode_automatic
38884
38885# Set to yes if linker adds runtime paths of dependent libraries
38886# to runtime path list.
38887inherit_rpath=$inherit_rpath
38888
38889# Whether libtool must link a program against all its dependency libraries.
38890link_all_deplibs=$link_all_deplibs
38891
cristy73bd4a52010-10-05 11:24:23 +000038892# Set to "yes" if exported symbols are required.
38893always_export_symbols=$always_export_symbols
38894
38895# The commands to list exported symbols.
38896export_symbols_cmds=$lt_export_symbols_cmds
38897
38898# Symbols that should not be listed in the preloaded symbols.
38899exclude_expsyms=$lt_exclude_expsyms
38900
38901# Symbols that must always be exported.
38902include_expsyms=$lt_include_expsyms
38903
38904# Commands necessary for linking programs (against libraries) with templates.
38905prelink_cmds=$lt_prelink_cmds
38906
cristyda16f162011-02-19 23:52:17 +000038907# Commands necessary for finishing linking programs.
38908postlink_cmds=$lt_postlink_cmds
38909
cristy73bd4a52010-10-05 11:24:23 +000038910# Specify filename containing input files.
38911file_list_spec=$lt_file_list_spec
38912
38913# How to hardcode a shared library path into an executable.
38914hardcode_action=$hardcode_action
38915
38916# The directories searched by this compiler when creating a shared library.
38917compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38918
38919# Dependencies to place before and after the objects being linked to
38920# create a shared library.
38921predep_objects=$lt_predep_objects
38922postdep_objects=$lt_postdep_objects
38923predeps=$lt_predeps
38924postdeps=$lt_postdeps
38925
38926# The library search path used internally by the compiler when linking
38927# a shared library.
38928compiler_lib_search_path=$lt_compiler_lib_search_path
38929
38930# ### END LIBTOOL CONFIG
38931
38932_LT_EOF
38933
38934 case $host_os in
38935 aix3*)
38936 cat <<\_LT_EOF >> "$cfgfile"
38937# AIX sometimes has problems with the GCC collect2 program. For some
38938# reason, if we set the COLLECT_NAMES environment variable, the problems
38939# vanish in a puff of smoke.
38940if test "X${COLLECT_NAMES+set}" != Xset; then
38941 COLLECT_NAMES=
38942 export COLLECT_NAMES
38943fi
38944_LT_EOF
38945 ;;
38946 esac
38947
38948
38949ltmain="$ac_aux_dir/ltmain.sh"
38950
38951
38952 # We use sed instead of cat because bash on DJGPP gets confused if
38953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38954 # text mode, it properly converts lines to CR/LF. This bash problem
38955 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038956 sed '$q' "$ltmain" >> "$cfgfile" \
38957 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038958
cristyda16f162011-02-19 23:52:17 +000038959 if test x"$xsi_shell" = xyes; then
38960 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38961func_dirname ()\
38962{\
38963\ case ${1} in\
38964\ */*) func_dirname_result="${1%/*}${2}" ;;\
38965\ * ) func_dirname_result="${3}" ;;\
38966\ esac\
38967} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38968 && mv -f "$cfgfile.tmp" "$cfgfile" \
38969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38970test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038971
38972
cristyda16f162011-02-19 23:52:17 +000038973 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38974func_basename ()\
38975{\
38976\ func_basename_result="${1##*/}"\
38977} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38978 && mv -f "$cfgfile.tmp" "$cfgfile" \
38979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38980test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038981
38982
cristyda16f162011-02-19 23:52:17 +000038983 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38984func_dirname_and_basename ()\
38985{\
38986\ case ${1} in\
38987\ */*) func_dirname_result="${1%/*}${2}" ;;\
38988\ * ) func_dirname_result="${3}" ;;\
38989\ esac\
38990\ func_basename_result="${1##*/}"\
38991} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38992 && mv -f "$cfgfile.tmp" "$cfgfile" \
38993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38994test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038995
cristyda16f162011-02-19 23:52:17 +000038996
38997 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38998func_stripname ()\
38999{\
39000\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39001\ # positional parameters, so assign one to ordinary parameter first.\
39002\ func_stripname_result=${3}\
39003\ func_stripname_result=${func_stripname_result#"${1}"}\
39004\ func_stripname_result=${func_stripname_result%"${2}"}\
39005} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39006 && mv -f "$cfgfile.tmp" "$cfgfile" \
39007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39008test 0 -eq $? || _lt_function_replace_fail=:
39009
39010
39011 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39012func_split_long_opt ()\
39013{\
39014\ func_split_long_opt_name=${1%%=*}\
39015\ func_split_long_opt_arg=${1#*=}\
39016} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39017 && mv -f "$cfgfile.tmp" "$cfgfile" \
39018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39019test 0 -eq $? || _lt_function_replace_fail=:
39020
39021
39022 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39023func_split_short_opt ()\
39024{\
39025\ func_split_short_opt_arg=${1#??}\
39026\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39027} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39028 && mv -f "$cfgfile.tmp" "$cfgfile" \
39029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39030test 0 -eq $? || _lt_function_replace_fail=:
39031
39032
39033 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39034func_lo2o ()\
39035{\
39036\ case ${1} in\
39037\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39038\ *) func_lo2o_result=${1} ;;\
39039\ esac\
39040} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39041 && mv -f "$cfgfile.tmp" "$cfgfile" \
39042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39043test 0 -eq $? || _lt_function_replace_fail=:
39044
39045
39046 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39047func_xform ()\
39048{\
39049 func_xform_result=${1%.*}.lo\
39050} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39051 && mv -f "$cfgfile.tmp" "$cfgfile" \
39052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39053test 0 -eq $? || _lt_function_replace_fail=:
39054
39055
39056 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39057func_arith ()\
39058{\
39059 func_arith_result=$(( $* ))\
39060} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39061 && mv -f "$cfgfile.tmp" "$cfgfile" \
39062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39063test 0 -eq $? || _lt_function_replace_fail=:
39064
39065
39066 sed -e '/^func_len ()$/,/^} # func_len /c\
39067func_len ()\
39068{\
39069 func_len_result=${#1}\
39070} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39071 && mv -f "$cfgfile.tmp" "$cfgfile" \
39072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39073test 0 -eq $? || _lt_function_replace_fail=:
39074
39075fi
39076
39077if test x"$lt_shell_append" = xyes; then
39078 sed -e '/^func_append ()$/,/^} # func_append /c\
39079func_append ()\
39080{\
39081 eval "${1}+=\\${2}"\
39082} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39083 && mv -f "$cfgfile.tmp" "$cfgfile" \
39084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39085test 0 -eq $? || _lt_function_replace_fail=:
39086
39087
39088 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39089func_append_quoted ()\
39090{\
39091\ func_quote_for_eval "${2}"\
39092\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39093} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39094 && mv -f "$cfgfile.tmp" "$cfgfile" \
39095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39096test 0 -eq $? || _lt_function_replace_fail=:
39097
39098
39099 # Save a `func_append' function call where possible by direct use of '+='
39100 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39101 && mv -f "$cfgfile.tmp" "$cfgfile" \
39102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39103 test 0 -eq $? || _lt_function_replace_fail=:
39104else
39105 # Save a `func_append' function call even when '+=' is not available
39106 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39107 && mv -f "$cfgfile.tmp" "$cfgfile" \
39108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39109 test 0 -eq $? || _lt_function_replace_fail=:
39110fi
39111
39112if test x"$_lt_function_replace_fail" = x":"; then
39113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39114$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39115fi
39116
39117
39118 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039119 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39120 chmod +x "$ofile"
39121
39122
39123 cat <<_LT_EOF >> "$ofile"
39124
39125# ### BEGIN LIBTOOL TAG CONFIG: CXX
39126
39127# The linker used to build libraries.
39128LD=$lt_LD_CXX
39129
cristy0c60a692010-11-04 01:09:47 +000039130# How to create reloadable object files.
39131reload_flag=$lt_reload_flag_CXX
39132reload_cmds=$lt_reload_cmds_CXX
39133
cristy73bd4a52010-10-05 11:24:23 +000039134# Commands used to build an old-style archive.
39135old_archive_cmds=$lt_old_archive_cmds_CXX
39136
39137# A language specific compiler.
39138CC=$lt_compiler_CXX
39139
39140# Is the compiler the GNU compiler?
39141with_gcc=$GCC_CXX
39142
39143# Compiler flag to turn off builtin functions.
39144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39145
cristy73bd4a52010-10-05 11:24:23 +000039146# Additional compiler flags for building library objects.
39147pic_flag=$lt_lt_prog_compiler_pic_CXX
39148
cristyda16f162011-02-19 23:52:17 +000039149# How to pass a linker flag through the compiler.
39150wl=$lt_lt_prog_compiler_wl_CXX
39151
cristy73bd4a52010-10-05 11:24:23 +000039152# Compiler flag to prevent dynamic linking.
39153link_static_flag=$lt_lt_prog_compiler_static_CXX
39154
39155# Does compiler simultaneously support -c and -o options?
39156compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39157
39158# Whether or not to add -lc for building shared libraries.
39159build_libtool_need_lc=$archive_cmds_need_lc_CXX
39160
39161# Whether or not to disallow shared libs when runtime libs are static.
39162allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39163
39164# Compiler flag to allow reflexive dlopens.
39165export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39166
39167# Compiler flag to generate shared objects directly from archives.
39168whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39169
39170# Whether the compiler copes with passing no objects directly.
39171compiler_needs_object=$lt_compiler_needs_object_CXX
39172
39173# Create an old-style archive from a shared archive.
39174old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39175
39176# Create a temporary old-style archive to link instead of a shared archive.
39177old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39178
39179# Commands used to build a shared archive.
39180archive_cmds=$lt_archive_cmds_CXX
39181archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39182
39183# Commands used to build a loadable module if different from building
39184# a shared archive.
39185module_cmds=$lt_module_cmds_CXX
39186module_expsym_cmds=$lt_module_expsym_cmds_CXX
39187
39188# Whether we are building with GNU ld or not.
39189with_gnu_ld=$lt_with_gnu_ld_CXX
39190
39191# Flag that allows shared libraries with undefined symbols to be built.
39192allow_undefined_flag=$lt_allow_undefined_flag_CXX
39193
39194# Flag that enforces no undefined symbols.
39195no_undefined_flag=$lt_no_undefined_flag_CXX
39196
39197# Flag to hardcode \$libdir into a binary during linking.
39198# This must work even if \$libdir does not exist
39199hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39200
cristy73bd4a52010-10-05 11:24:23 +000039201# Whether we need a single "-rpath" flag with a separated argument.
39202hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39203
39204# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39205# DIR into the resulting binary.
39206hardcode_direct=$hardcode_direct_CXX
39207
39208# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39209# DIR into the resulting binary and the resulting library dependency is
39210# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39211# library is relocated.
39212hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39213
39214# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39215# into the resulting binary.
39216hardcode_minus_L=$hardcode_minus_L_CXX
39217
39218# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39219# into the resulting binary.
39220hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39221
39222# Set to "yes" if building a shared library automatically hardcodes DIR
39223# into the library and all subsequent libraries and executables linked
39224# against it.
39225hardcode_automatic=$hardcode_automatic_CXX
39226
39227# Set to yes if linker adds runtime paths of dependent libraries
39228# to runtime path list.
39229inherit_rpath=$inherit_rpath_CXX
39230
39231# Whether libtool must link a program against all its dependency libraries.
39232link_all_deplibs=$link_all_deplibs_CXX
39233
cristy73bd4a52010-10-05 11:24:23 +000039234# Set to "yes" if exported symbols are required.
39235always_export_symbols=$always_export_symbols_CXX
39236
39237# The commands to list exported symbols.
39238export_symbols_cmds=$lt_export_symbols_cmds_CXX
39239
39240# Symbols that should not be listed in the preloaded symbols.
39241exclude_expsyms=$lt_exclude_expsyms_CXX
39242
39243# Symbols that must always be exported.
39244include_expsyms=$lt_include_expsyms_CXX
39245
39246# Commands necessary for linking programs (against libraries) with templates.
39247prelink_cmds=$lt_prelink_cmds_CXX
39248
cristyda16f162011-02-19 23:52:17 +000039249# Commands necessary for finishing linking programs.
39250postlink_cmds=$lt_postlink_cmds_CXX
39251
cristy73bd4a52010-10-05 11:24:23 +000039252# Specify filename containing input files.
39253file_list_spec=$lt_file_list_spec_CXX
39254
39255# How to hardcode a shared library path into an executable.
39256hardcode_action=$hardcode_action_CXX
39257
39258# The directories searched by this compiler when creating a shared library.
39259compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39260
39261# Dependencies to place before and after the objects being linked to
39262# create a shared library.
39263predep_objects=$lt_predep_objects_CXX
39264postdep_objects=$lt_postdep_objects_CXX
39265predeps=$lt_predeps_CXX
39266postdeps=$lt_postdeps_CXX
39267
39268# The library search path used internally by the compiler when linking
39269# a shared library.
39270compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39271
39272# ### END LIBTOOL TAG CONFIG: CXX
39273_LT_EOF
39274
39275 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039276 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039277 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039278 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039279 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39280 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39281
39282 esac
39283done # for ac_tag
39284
39285
cristy8b350f62009-11-15 23:12:43 +000039286as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039287_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039288ac_clean_files=$ac_clean_files_save
39289
39290test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039291 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039292
39293
39294# configure is writing to config.log, and then calls config.status.
39295# config.status does its own redirection, appending to config.log.
39296# Unfortunately, on DOS this fails, as config.log is still kept open
39297# by configure, so config.status won't be able to write to it; its
39298# output is simply discarded. So we exec the FD to /dev/null,
39299# effectively closing config.log, so it can be properly (re)opened and
39300# appended to by config.status. When coming back to configure, we
39301# need to make the FD available again.
39302if test "$no_create" != yes; then
39303 ac_cs_success=:
39304 ac_config_status_args=
39305 test "$silent" = yes &&
39306 ac_config_status_args="$ac_config_status_args --quiet"
39307 exec 5>/dev/null
39308 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39309 exec 5>>config.log
39310 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39311 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039312 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039313fi
39314if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039316$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39317fi
39318
39319
cristy9af1cbf2014-12-28 22:03:09 +000039320# ==============================================================================
39321# ImageMagick Configuration
39322# ==============================================================================
39323{ $as_echo "$as_me:${as_lineno-$LINENO}:
39324==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039325ImageMagick is configured as follows. Please verify that this configuration
39326matches your expectations.
39327
cristy9af1cbf2014-12-28 22:03:09 +000039328 Host system type: $host
39329 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039330
39331 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039332 ------------------------------------------------------------------------------
39333 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39334 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39335 Module support --with-modules=$build_modules $build_modules
39336 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39337 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39338 High Dynamic Range Imagery
39339 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039340
cristy9af1cbf2014-12-28 22:03:09 +000039341 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039342
cristy9af1cbf2014-12-28 22:03:09 +000039343 Delegate Library Configuration:
39344 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39345 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39346 DJVU --with-djvu=$with_djvu $have_djvu
39347 DPS --with-dps=$with_dps $have_dps
39348 FFTW --with-fftw=$with_fftw $have_fftw
39349 FlashPIX --with-fpx=$with_fpx $have_fpx
39350 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39351 FreeType --with-freetype=$with_freetype $have_freetype
39352 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39353 Graphviz --with-gvc=$with_gvc $have_gvc
39354 JBIG --with-jbig=$with_jbig $have_jbig
39355 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39356 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39357 LCMS v1 --with-lcms=$with_lcms $have_lcms
39358 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39359 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39360 LQR --with-lqr=$with_lqr $have_lqr
39361 LTDL --with-ltdl=$with_ltdl $have_ltdl
39362 LZMA --with-lzma=$with_lzma $have_lzma
39363 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39364 OpenEXR --with-openexr=$with_openexr $have_openexr
39365 PANGO --with-pango=$with_pango $have_pango
39366 PERL --with-perl=$with_perl $have_perl
39367 PNG --with-png=$with_png $have_png
39368 RSVG --with-rsvg=$with_rsvg $have_rsvg
39369 TIFF --with-tiff=$with_tiff $have_tiff
39370 WEBP --with-webp=$with_webp $have_webp
39371 WMF --with-wmf=$with_wmf $have_wmf
39372 X11 --with-x=$with_x $have_x
39373 XML --with-xml=$with_xml $have_xml
39374 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039375
cristy9af1cbf2014-12-28 22:03:09 +000039376 Delegate Program Configuration:
39377 GhostPCL None $PCLDelegate ($PCLVersion)
39378 GhostXPS None $XPSDelegate ($XPSVersion)
39379 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039380
cristy9af1cbf2014-12-28 22:03:09 +000039381 Font Configuration:
39382 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39383 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39384 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39385 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039386
cristy9af1cbf2014-12-28 22:03:09 +000039387 X11 Configuration:
39388 X_CFLAGS = $X_CFLAGS
39389 X_PRE_LIBS = $X_PRE_LIBS
39390 X_LIBS = $X_LIBS
39391 X_EXTRA_LIBS = $X_EXTRA_LIBS
39392
39393 Options used to compile and link:
39394 PREFIX = $PREFIX_DIR
39395 EXEC-PREFIX = $EXEC_PREFIX_DIR
39396 VERSION = $PACKAGE_VERSION
39397 CC = $CC
39398 CFLAGS = $CFLAGS
39399 CPPFLAGS = $CPPFLAGS
39400 PCFLAGS = $PCFLAGS
39401 DEFS = $DEFS
39402 LDFLAGS = $LDFLAGS
39403 LIBS = $LIBS
39404 CXX = $CXX
39405 CXXFLAGS = $CXXFLAGS
39406 FEATURES = $MAGICK_FEATURES
39407 DELEGATES = $MAGICK_DELEGATES
39408==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039409" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039410$as_echo "$as_me:
39411==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039412ImageMagick is configured as follows. Please verify that this configuration
39413matches your expectations.
39414
cristy9af1cbf2014-12-28 22:03:09 +000039415 Host system type: $host
39416 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039417
39418 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039419 ------------------------------------------------------------------------------
39420 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39421 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39422 Module support --with-modules=$build_modules $build_modules
39423 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39424 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39425 High Dynamic Range Imagery
39426 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039427
cristy9af1cbf2014-12-28 22:03:09 +000039428 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039429
cristy9af1cbf2014-12-28 22:03:09 +000039430 Delegate Library Configuration:
39431 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39432 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39433 DJVU --with-djvu=$with_djvu $have_djvu
39434 DPS --with-dps=$with_dps $have_dps
39435 FFTW --with-fftw=$with_fftw $have_fftw
39436 FlashPIX --with-fpx=$with_fpx $have_fpx
39437 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39438 FreeType --with-freetype=$with_freetype $have_freetype
39439 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39440 Graphviz --with-gvc=$with_gvc $have_gvc
39441 JBIG --with-jbig=$with_jbig $have_jbig
39442 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39443 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39444 LCMS v1 --with-lcms=$with_lcms $have_lcms
39445 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39446 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39447 LQR --with-lqr=$with_lqr $have_lqr
39448 LTDL --with-ltdl=$with_ltdl $have_ltdl
39449 LZMA --with-lzma=$with_lzma $have_lzma
39450 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39451 OpenEXR --with-openexr=$with_openexr $have_openexr
39452 PANGO --with-pango=$with_pango $have_pango
39453 PERL --with-perl=$with_perl $have_perl
39454 PNG --with-png=$with_png $have_png
39455 RSVG --with-rsvg=$with_rsvg $have_rsvg
39456 TIFF --with-tiff=$with_tiff $have_tiff
39457 WEBP --with-webp=$with_webp $have_webp
39458 WMF --with-wmf=$with_wmf $have_wmf
39459 X11 --with-x=$with_x $have_x
39460 XML --with-xml=$with_xml $have_xml
39461 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039462
cristy9af1cbf2014-12-28 22:03:09 +000039463 Delegate Program Configuration:
39464 GhostPCL None $PCLDelegate ($PCLVersion)
39465 GhostXPS None $XPSDelegate ($XPSVersion)
39466 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039467
cristy9af1cbf2014-12-28 22:03:09 +000039468 Font Configuration:
39469 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39470 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39471 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39472 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039473
cristy9af1cbf2014-12-28 22:03:09 +000039474 X11 Configuration:
39475 X_CFLAGS = $X_CFLAGS
39476 X_PRE_LIBS = $X_PRE_LIBS
39477 X_LIBS = $X_LIBS
39478 X_EXTRA_LIBS = $X_EXTRA_LIBS
39479
39480 Options used to compile and link:
39481 PREFIX = $PREFIX_DIR
39482 EXEC-PREFIX = $EXEC_PREFIX_DIR
39483 VERSION = $PACKAGE_VERSION
39484 CC = $CC
39485 CFLAGS = $CFLAGS
39486 CPPFLAGS = $CPPFLAGS
39487 PCFLAGS = $PCFLAGS
39488 DEFS = $DEFS
39489 LDFLAGS = $LDFLAGS
39490 LIBS = $LIBS
39491 CXX = $CXX
39492 CXXFLAGS = $CXXFLAGS
39493 FEATURES = $MAGICK_FEATURES
39494 DELEGATES = $MAGICK_DELEGATES
39495==============================================================================
39496" >&6;}