blob: 1f1fe062e00d7e0a0a7b393e2c6019618b3222b5 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000714JXREncodeDelegate
715JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720GnuplotDecodeDelegate
721MogrifyDelegate
722DisplayDelegate
723ConvertDelegate
724FIGDecodeDelegate
725EditorDelegate
726EchoDelegate
727DVIDecodeDelegate
728GVCDecodeDelegate
729DNGDecodeDelegate
730CatDelegate
731CGMDecodeDelegate
732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000795LZMA_DELEGATE_FALSE
796LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000797LZMA_LIBS
798LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000799LQR_DELEGATE_FALSE
800LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801LQR_LIBS
802LQR_CFLAGS
803LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804LCMS_DELEGATE_FALSE
805LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JP2_DELEGATE_FALSE
808JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JPEG_DELEGATE_FALSE
811JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JBIG_DELEGATE_FALSE
814JBIG_DELEGATE_TRUE
815GVC_DELEGATE_FALSE
816GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817GVC_LIBS
818GVC_CFLAGS
819GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820GS_DELEGATE_FALSE
821GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000822FREETYPE_DELEGATE_FALSE
823FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000824FREETYPE_LIBS
825FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000826FONTCONFIG_DELEGATE_FALSE
827FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828FONTCONFIG_LIBS
829FONTCONFIG_CFLAGS
830FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831FPX_DELEGATE_FALSE
832FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FFTW_DELEGATE_FALSE
835FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837DJVU_DELEGATE_FALSE
838DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DPS_DELEGATE_FALSE
841DPS_DELEGATE_TRUE
842AUTOTRACE_DELEGATE_FALSE
843AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844AUTOTRACE_LIBS
845AUTOTRACE_CFLAGS
846LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000850ZLIB_DELEGATE_FALSE
851ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852XEXT_LIBS
853X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854X11_DELEGATE_FALSE
855X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856X_EXTRA_LIBS
857X_LIBS
858X_PRE_LIBS
859X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000860XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000861BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862BZLIB_DELEGATE_FALSE
863BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864CCMALLOCDelegate
865UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866HasUMEM_FALSE
867HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868THREAD_LIBS
869GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_MAGICK_PLUS_PLUS_FALSE
871WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000873MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000874POW_LIB
875LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT32_T
888UINT16_T
889INT16_T
890UINT8_T
891INT8_T
892LIBRARY_EXTRA_CPPFLAGS
893MODULE_EXTRA_CPPFLAGS
894LIBSTDCLDFLAGS
895PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000896MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000897MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000898QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000899LEGACY_SUPPORT_FALSE
900LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000904MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000905WITH_MODULES_FALSE
906WITH_MODULES_TRUE
907WITH_SHARED_LIBS_FALSE
908WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000910CXXCPP
911OTOOL64
912OTOOL
913LIPO
914NMEDIT
915DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000916MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000917RANLIB
cristyda16f162011-02-19 23:52:17 +0000918ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000919AR
920NM
921ac_ct_DUMPBIN
922DUMPBIN
923LIBTOOL
924OBJDUMP
925DLLTOOL
926AS
cristy3ed852e2009-09-05 21:47:34 +0000927LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000928CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000929CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000930OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931PTHREAD_CFLAGS
932PTHREAD_LIBS
933PTHREAD_CC
934ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000935pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000936SHAREARCH_DIR
937INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000938WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000939USING_CL_FALSE
940USING_CL_TRUE
941CYGWIN_BUILD_FALSE
942CYGWIN_BUILD_TRUE
943WIN32_NATIVE_BUILD_FALSE
944WIN32_NATIVE_BUILD_TRUE
945WINGDI32_DELEGATE_FALSE
946WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000948HAVE_LD_VERSION_SCRIPT_FALSE
949HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000950PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000951PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000952LN_S
cristy3ed852e2009-09-05 21:47:34 +0000953LD
cristy73bd4a52010-10-05 11:24:23 +0000954FGREP
955SED
956am__fastdepCXX_FALSE
957am__fastdepCXX_TRUE
958CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000959ac_ct_CXX
960CXXFLAGS
961CXX
cristya0b81c32010-01-22 02:54:33 +0000962EGREP
963GREP
964CPP
cristy73bd4a52010-10-05 11:24:23 +0000965am__fastdepCC_FALSE
966am__fastdepCC_TRUE
967CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000968am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000969AMDEPBACKSLASH
970AMDEP_FALSE
971AMDEP_TRUE
972am__quote
973am__include
974DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000975OBJEXT
976EXEEXT
977ac_ct_CC
978CPPFLAGS
979LDFLAGS
980CFLAGS
981CC
982DIRSEP
983MAGICK_FILTER_MODULE_PATH
984MAGICK_CONFIGURE_BUILD_PATH
985MAGICK_CONFIGURE_SRC_PATH
986MAGICK_CODER_MODULE_PATH
987MAN_DIR
988INFO_DIR
989PERSISTINCLUDE_DIR
990INCLUDE_DIR
991LIB_DIR
992LOCALSTATE_DIR
993SHAREDSTATE_DIR
994SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000995DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000996DATA_DIR
997LIBEXEC_DIR
998SBIN_DIR
999BIN_DIR
1000EXEC_PREFIX_DIR
1001PREFIX_DIR
1002CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001003MAGICKPP_LIB_VERSION_TEXT
1004MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001005MAGICK_LIB_VERSION_NUMBER
1006MAGICK_LIB_VERSION_TEXT
1007MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001008AM_BACKSLASH
1009AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001010AM_DEFAULT_V
1011AM_V
cristy73bd4a52010-10-05 11:24:23 +00001012am__untar
1013am__tar
1014AMTAR
1015am__leading_dot
1016SET_MAKE
1017AWK
1018mkdir_p
1019MKDIR_P
1020INSTALL_STRIP_PROGRAM
1021STRIP
1022install_sh
1023MAKEINFO
1024AUTOHEADER
1025AUTOMAKE
1026AUTOCONF
1027ACLOCAL
1028VERSION
1029PACKAGE
1030CYGPATH_W
1031am__isrc
1032INSTALL_DATA
1033INSTALL_SCRIPT
1034INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001035PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001036PACKAGE_RELEASE_DATE
1037PACKAGE_LIB_VERSION_NUMBER
1038PACKAGE_LIB_VERSION
1039PACKAGE_CHANGE_DATE
1040PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001041PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001042MAGICKPP_LIBRARY_VERSION_INFO
1043MAGICKPP_LIBRARY_CURRENT_MIN
1044MAGICKPP_LIBRARY_AGE
1045MAGICKPP_LIBRARY_REVISION
1046MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001047MAGICK_LIBRARY_VERSION_INFO
1048MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001049MAGICK_LIBRARY_AGE
1050MAGICK_LIBRARY_REVISION
1051MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001052MAGICK_SVN_REVISION
1053MAGICK_VERSION
1054MAGICK_PATCHLEVEL_VERSION
1055MAGICK_MICRO_VERSION
1056MAGICK_MINOR_VERSION
1057MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001058MAGICK_TARGET_OS
1059MAGICK_TARGET_VENDOR
1060MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001061target_os
1062target_vendor
1063target_cpu
1064target
1065host_os
1066host_vendor
1067host_cpu
1068host
1069build_os
1070build_vendor
1071build_cpu
1072build
1073CONFIGURE_ARGS
1074DISTCHECK_CONFIG_FLAGS
1075target_alias
1076host_alias
1077build_alias
1078LIBS
1079ECHO_T
1080ECHO_N
1081ECHO_C
1082DEFS
1083mandir
1084localedir
1085libdir
1086psdir
1087pdfdir
1088dvidir
1089htmldir
1090infodir
1091docdir
1092oldincludedir
1093includedir
1094localstatedir
1095sharedstatedir
1096sysconfdir
1097datadir
1098datarootdir
1099libexecdir
1100sbindir
1101bindir
1102program_transform_name
1103prefix
1104exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001105PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001106PACKAGE_BUGREPORT
1107PACKAGE_STRING
1108PACKAGE_VERSION
1109PACKAGE_TARNAME
1110PACKAGE_NAME
1111PATH_SEPARATOR
1112SHELL'
1113ac_subst_files=''
1114ac_user_opts='
1115enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001116enable_silent_rules
1117enable_dependency_tracking
1118with_gnu_ld
1119with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001120with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001121enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001122enable_bounds_checking
1123enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001124with_includearch_dir
1125with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001126with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001127with_threads
1128enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001129enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001130enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001131enable_shared
1132enable_static
1133with_pic
1134enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001135with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001136enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001137with_modules
1138enable_delegate_build
1139enable_deprecated
1140enable_installed
1141enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001142enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001143enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001144enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001145enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001146enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001147enable_ccmalloc
1148enable_efence
1149enable_prof
1150enable_gprof
1151enable_gcov
1152with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001153enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001154with_quantum_depth
1155with_cache
1156with_frozenpaths
1157with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001158with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001159with_perl
1160with_perl_options
1161with_umem
1162with_libstdc
1163with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001164with_x
cristy3ed852e2009-09-05 21:47:34 +00001165with_zlib
1166with_autotrace
1167with_dps
1168with_djvu
cristy430a7312010-01-21 20:44:04 +00001169with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001170with_fftw
1171with_fpx
1172with_fontconfig
1173with_freetype
1174with_gslib
1175with_fontpath
1176with_gs_font_dir
1177with_gvc
1178with_jbig
1179with_jpeg
1180with_jp2
1181with_lcms
cristy71203402010-06-18 13:12:03 +00001182with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001183with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001184with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001185with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001186with_pango
cristy3ed852e2009-09-05 21:47:34 +00001187with_png
1188with_rsvg
1189with_tiff
cristyb1860752011-03-14 00:27:46 +00001190with_webp
cristy3ed852e2009-09-05 21:47:34 +00001191with_windows_font_dir
1192with_wmf
1193with_xml
1194'
1195 ac_precious_vars='build_alias
1196host_alias
1197target_alias
1198CC
1199CFLAGS
1200LDFLAGS
1201LIBS
1202CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001203CPP
cristy3ed852e2009-09-05 21:47:34 +00001204CXX
1205CXXFLAGS
1206CCC
cristy73bd4a52010-10-05 11:24:23 +00001207PKG_CONFIG
1208CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001209XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001210AUTOTRACE_CFLAGS
1211AUTOTRACE_LIBS
1212FONTCONFIG_CFLAGS
1213FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001214FREETYPE_CFLAGS
1215FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216GVC_CFLAGS
1217GVC_LIBS
1218LQR_CFLAGS
1219LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001220LZMA_CFLAGS
1221LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001222OPENEXR_CFLAGS
1223OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001224PANGO_CFLAGS
1225PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001226RSVG_CFLAGS
1227RSVG_LIBS
1228CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001229CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001230
1231
1232# Initialize some variables set by options.
1233ac_init_help=
1234ac_init_version=false
1235ac_unrecognized_opts=
1236ac_unrecognized_sep=
1237# The variables have the same names as the options, with
1238# dashes changed to underlines.
1239cache_file=/dev/null
1240exec_prefix=NONE
1241no_create=
1242no_recursion=
1243prefix=NONE
1244program_prefix=NONE
1245program_suffix=NONE
1246program_transform_name=s,x,x,
1247silent=
1248site=
1249srcdir=
1250verbose=
1251x_includes=NONE
1252x_libraries=NONE
1253
1254# Installation directory options.
1255# These are left unexpanded so users can "make install exec_prefix=/foo"
1256# and all the variables that are supposed to be based on exec_prefix
1257# by default will actually change.
1258# Use braces instead of parens because sh, perl, etc. also accept them.
1259# (The list follows the same order as the GNU Coding Standards.)
1260bindir='${exec_prefix}/bin'
1261sbindir='${exec_prefix}/sbin'
1262libexecdir='${exec_prefix}/libexec'
1263datarootdir='${prefix}/share'
1264datadir='${datarootdir}'
1265sysconfdir='${prefix}/etc'
1266sharedstatedir='${prefix}/com'
1267localstatedir='${prefix}/var'
1268includedir='${prefix}/include'
1269oldincludedir='/usr/include'
1270docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1271infodir='${datarootdir}/info'
1272htmldir='${docdir}'
1273dvidir='${docdir}'
1274pdfdir='${docdir}'
1275psdir='${docdir}'
1276libdir='${exec_prefix}/lib'
1277localedir='${datarootdir}/locale'
1278mandir='${datarootdir}/man'
1279
1280ac_prev=
1281ac_dashdash=
1282for ac_option
1283do
1284 # If the previous option needs an argument, assign it.
1285 if test -n "$ac_prev"; then
1286 eval $ac_prev=\$ac_option
1287 ac_prev=
1288 continue
1289 fi
1290
1291 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001292 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1293 *=) ac_optarg= ;;
1294 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001295 esac
1296
1297 # Accept the important Cygnus configure options, so we can diagnose typos.
1298
1299 case $ac_dashdash$ac_option in
1300 --)
1301 ac_dashdash=yes ;;
1302
1303 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1304 ac_prev=bindir ;;
1305 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1306 bindir=$ac_optarg ;;
1307
1308 -build | --build | --buil | --bui | --bu)
1309 ac_prev=build_alias ;;
1310 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1311 build_alias=$ac_optarg ;;
1312
1313 -cache-file | --cache-file | --cache-fil | --cache-fi \
1314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1315 ac_prev=cache_file ;;
1316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1318 cache_file=$ac_optarg ;;
1319
1320 --config-cache | -C)
1321 cache_file=config.cache ;;
1322
1323 -datadir | --datadir | --datadi | --datad)
1324 ac_prev=datadir ;;
1325 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1326 datadir=$ac_optarg ;;
1327
1328 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1329 | --dataroo | --dataro | --datar)
1330 ac_prev=datarootdir ;;
1331 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1332 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1333 datarootdir=$ac_optarg ;;
1334
1335 -disable-* | --disable-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001339 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344"enable_$ac_useropt"
1345"*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval enable_$ac_useropt=no ;;
1350
1351 -docdir | --docdir | --docdi | --doc | --do)
1352 ac_prev=docdir ;;
1353 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1354 docdir=$ac_optarg ;;
1355
1356 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1357 ac_prev=dvidir ;;
1358 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1359 dvidir=$ac_optarg ;;
1360
1361 -enable-* | --enable-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001365 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1369 *"
1370"enable_$ac_useropt"
1371"*) ;;
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1374 esac
1375 eval enable_$ac_useropt=\$ac_optarg ;;
1376
1377 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1378 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1379 | --exec | --exe | --ex)
1380 ac_prev=exec_prefix ;;
1381 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1382 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1383 | --exec=* | --exe=* | --ex=*)
1384 exec_prefix=$ac_optarg ;;
1385
1386 -gas | --gas | --ga | --g)
1387 # Obsolete; use --with-gas.
1388 with_gas=yes ;;
1389
1390 -help | --help | --hel | --he | -h)
1391 ac_init_help=long ;;
1392 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1393 ac_init_help=recursive ;;
1394 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1395 ac_init_help=short ;;
1396
1397 -host | --host | --hos | --ho)
1398 ac_prev=host_alias ;;
1399 -host=* | --host=* | --hos=* | --ho=*)
1400 host_alias=$ac_optarg ;;
1401
1402 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1403 ac_prev=htmldir ;;
1404 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1405 | --ht=*)
1406 htmldir=$ac_optarg ;;
1407
1408 -includedir | --includedir | --includedi | --included | --include \
1409 | --includ | --inclu | --incl | --inc)
1410 ac_prev=includedir ;;
1411 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1412 | --includ=* | --inclu=* | --incl=* | --inc=*)
1413 includedir=$ac_optarg ;;
1414
1415 -infodir | --infodir | --infodi | --infod | --info | --inf)
1416 ac_prev=infodir ;;
1417 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1418 infodir=$ac_optarg ;;
1419
1420 -libdir | --libdir | --libdi | --libd)
1421 ac_prev=libdir ;;
1422 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1423 libdir=$ac_optarg ;;
1424
1425 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1426 | --libexe | --libex | --libe)
1427 ac_prev=libexecdir ;;
1428 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1429 | --libexe=* | --libex=* | --libe=*)
1430 libexecdir=$ac_optarg ;;
1431
1432 -localedir | --localedir | --localedi | --localed | --locale)
1433 ac_prev=localedir ;;
1434 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1435 localedir=$ac_optarg ;;
1436
1437 -localstatedir | --localstatedir | --localstatedi | --localstated \
1438 | --localstate | --localstat | --localsta | --localst | --locals)
1439 ac_prev=localstatedir ;;
1440 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1441 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1442 localstatedir=$ac_optarg ;;
1443
1444 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1445 ac_prev=mandir ;;
1446 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1447 mandir=$ac_optarg ;;
1448
1449 -nfp | --nfp | --nf)
1450 # Obsolete; use --without-fp.
1451 with_fp=no ;;
1452
1453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1454 | --no-cr | --no-c | -n)
1455 no_create=yes ;;
1456
1457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1459 no_recursion=yes ;;
1460
1461 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1462 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1463 | --oldin | --oldi | --old | --ol | --o)
1464 ac_prev=oldincludedir ;;
1465 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1466 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1467 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1468 oldincludedir=$ac_optarg ;;
1469
1470 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1471 ac_prev=prefix ;;
1472 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1473 prefix=$ac_optarg ;;
1474
1475 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1476 | --program-pre | --program-pr | --program-p)
1477 ac_prev=program_prefix ;;
1478 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1479 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1480 program_prefix=$ac_optarg ;;
1481
1482 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1483 | --program-suf | --program-su | --program-s)
1484 ac_prev=program_suffix ;;
1485 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1486 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1487 program_suffix=$ac_optarg ;;
1488
1489 -program-transform-name | --program-transform-name \
1490 | --program-transform-nam | --program-transform-na \
1491 | --program-transform-n | --program-transform- \
1492 | --program-transform | --program-transfor \
1493 | --program-transfo | --program-transf \
1494 | --program-trans | --program-tran \
1495 | --progr-tra | --program-tr | --program-t)
1496 ac_prev=program_transform_name ;;
1497 -program-transform-name=* | --program-transform-name=* \
1498 | --program-transform-nam=* | --program-transform-na=* \
1499 | --program-transform-n=* | --program-transform-=* \
1500 | --program-transform=* | --program-transfor=* \
1501 | --program-transfo=* | --program-transf=* \
1502 | --program-trans=* | --program-tran=* \
1503 | --progr-tra=* | --program-tr=* | --program-t=*)
1504 program_transform_name=$ac_optarg ;;
1505
1506 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1507 ac_prev=pdfdir ;;
1508 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1509 pdfdir=$ac_optarg ;;
1510
1511 -psdir | --psdir | --psdi | --psd | --ps)
1512 ac_prev=psdir ;;
1513 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1514 psdir=$ac_optarg ;;
1515
1516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1517 | -silent | --silent | --silen | --sile | --sil)
1518 silent=yes ;;
1519
1520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1521 ac_prev=sbindir ;;
1522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1523 | --sbi=* | --sb=*)
1524 sbindir=$ac_optarg ;;
1525
1526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1528 | --sharedst | --shareds | --shared | --share | --shar \
1529 | --sha | --sh)
1530 ac_prev=sharedstatedir ;;
1531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1534 | --sha=* | --sh=*)
1535 sharedstatedir=$ac_optarg ;;
1536
1537 -site | --site | --sit)
1538 ac_prev=site ;;
1539 -site=* | --site=* | --sit=*)
1540 site=$ac_optarg ;;
1541
1542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1543 ac_prev=srcdir ;;
1544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1545 srcdir=$ac_optarg ;;
1546
1547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1548 | --syscon | --sysco | --sysc | --sys | --sy)
1549 ac_prev=sysconfdir ;;
1550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1552 sysconfdir=$ac_optarg ;;
1553
1554 -target | --target | --targe | --targ | --tar | --ta | --t)
1555 ac_prev=target_alias ;;
1556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1557 target_alias=$ac_optarg ;;
1558
1559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1560 verbose=yes ;;
1561
1562 -version | --version | --versio | --versi | --vers | -V)
1563 ac_init_version=: ;;
1564
1565 -with-* | --with-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001569 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=\$ac_optarg ;;
1580
1581 -without-* | --without-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=no ;;
1596
1597 --x)
1598 # Obsolete; use --with-x.
1599 with_x=yes ;;
1600
1601 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1602 | --x-incl | --x-inc | --x-in | --x-i)
1603 ac_prev=x_includes ;;
1604 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1605 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1606 x_includes=$ac_optarg ;;
1607
1608 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1609 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1610 ac_prev=x_libraries ;;
1611 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1612 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1613 x_libraries=$ac_optarg ;;
1614
cristy98dddb52010-11-04 00:30:15 +00001615 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1616Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001617 ;;
1618
1619 *=*)
1620 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1621 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001622 case $ac_envvar in #(
1623 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001624 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001625 esac
cristy3ed852e2009-09-05 21:47:34 +00001626 eval $ac_envvar=\$ac_optarg
1627 export $ac_envvar ;;
1628
1629 *)
1630 # FIXME: should be removed in autoconf 3.0.
1631 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1632 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1633 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001634 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001635 ;;
1636
1637 esac
1638done
1639
1640if test -n "$ac_prev"; then
1641 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001643fi
1644
1645if test -n "$ac_unrecognized_opts"; then
1646 case $enable_option_checking in
1647 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001648 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001649 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650 esac
1651fi
1652
1653# Check all directory arguments for consistency.
1654for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1655 datadir sysconfdir sharedstatedir localstatedir includedir \
1656 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1657 libdir localedir mandir
1658do
1659 eval ac_val=\$$ac_var
1660 # Remove trailing slashes.
1661 case $ac_val in
1662 */ )
1663 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1664 eval $ac_var=\$ac_val;;
1665 esac
1666 # Be sure to have absolute directory names.
1667 case $ac_val in
1668 [\\/$]* | ?:[\\/]* ) continue;;
1669 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1670 esac
cristy98dddb52010-11-04 00:30:15 +00001671 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001672done
1673
1674# There might be people who depend on the old broken behavior: `$host'
1675# used to hold the argument of --host etc.
1676# FIXME: To remove some day.
1677build=$build_alias
1678host=$host_alias
1679target=$target_alias
1680
1681# FIXME: To remove some day.
1682if test "x$host_alias" != x; then
1683 if test "x$build_alias" = x; then
1684 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001685 elif test "x$build_alias" != "x$host_alias"; then
1686 cross_compiling=yes
1687 fi
1688fi
1689
1690ac_tool_prefix=
1691test -n "$host_alias" && ac_tool_prefix=$host_alias-
1692
1693test "$silent" = yes && exec 6>/dev/null
1694
1695
1696ac_pwd=`pwd` && test -n "$ac_pwd" &&
1697ac_ls_di=`ls -di .` &&
1698ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001699 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001700test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001702
1703
1704# Find the source files, if location was not specified.
1705if test -z "$srcdir"; then
1706 ac_srcdir_defaulted=yes
1707 # Try the directory containing this script, then the parent directory.
1708 ac_confdir=`$as_dirname -- "$as_myself" ||
1709$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1710 X"$as_myself" : 'X\(//\)[^/]' \| \
1711 X"$as_myself" : 'X\(//\)$' \| \
1712 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1713$as_echo X"$as_myself" |
1714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)[^/].*/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)$/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\).*/{
1727 s//\1/
1728 q
1729 }
1730 s/.*/./; q'`
1731 srcdir=$ac_confdir
1732 if test ! -r "$srcdir/$ac_unique_file"; then
1733 srcdir=..
1734 fi
1735else
1736 ac_srcdir_defaulted=no
1737fi
1738if test ! -r "$srcdir/$ac_unique_file"; then
1739 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001740 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001741fi
1742ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1743ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001744 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001745 pwd)`
1746# When building in place, set srcdir=.
1747if test "$ac_abs_confdir" = "$ac_pwd"; then
1748 srcdir=.
1749fi
1750# Remove unnecessary trailing slashes from srcdir.
1751# Double slashes in file names in object file debugging info
1752# mess up M-x gdb in Emacs.
1753case $srcdir in
1754*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1755esac
1756for ac_var in $ac_precious_vars; do
1757 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1758 eval ac_env_${ac_var}_value=\$${ac_var}
1759 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761done
1762
1763#
1764# Report the --help message.
1765#
1766if test "$ac_init_help" = "long"; then
1767 # Omit some internal or obsolete options to make the list less imposing.
1768 # This message is too long to be a string in the A/UX 3.1 sh.
1769 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001770\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001771
1772Usage: $0 [OPTION]... [VAR=VALUE]...
1773
1774To assign environment variables (e.g., CC, CFLAGS...), specify them as
1775VAR=VALUE. See below for descriptions of some of the useful variables.
1776
1777Defaults for the options are specified in brackets.
1778
1779Configuration:
1780 -h, --help display this help and exit
1781 --help=short display options specific to this package
1782 --help=recursive display the short help of all the included packages
1783 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001784 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001785 --cache-file=FILE cache test results in FILE [disabled]
1786 -C, --config-cache alias for \`--cache-file=config.cache'
1787 -n, --no-create do not create output files
1788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1789
1790Installation directories:
1791 --prefix=PREFIX install architecture-independent files in PREFIX
1792 [$ac_default_prefix]
1793 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1794 [PREFIX]
1795
1796By default, \`make install' will install all the files in
1797\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1798an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1799for instance \`--prefix=\$HOME'.
1800
1801For better control, use the options below.
1802
1803Fine tuning of the installation directories:
1804 --bindir=DIR user executables [EPREFIX/bin]
1805 --sbindir=DIR system admin executables [EPREFIX/sbin]
1806 --libexecdir=DIR program executables [EPREFIX/libexec]
1807 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1808 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1809 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1810 --libdir=DIR object code libraries [EPREFIX/lib]
1811 --includedir=DIR C header files [PREFIX/include]
1812 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1813 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1814 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1815 --infodir=DIR info documentation [DATAROOTDIR/info]
1816 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1817 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001818 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001819 --htmldir=DIR html documentation [DOCDIR]
1820 --dvidir=DIR dvi documentation [DOCDIR]
1821 --pdfdir=DIR pdf documentation [DOCDIR]
1822 --psdir=DIR ps documentation [DOCDIR]
1823_ACEOF
1824
1825 cat <<\_ACEOF
1826
cristy73bd4a52010-10-05 11:24:23 +00001827Program names:
1828 --program-prefix=PREFIX prepend PREFIX to installed program names
1829 --program-suffix=SUFFIX append SUFFIX to installed program names
1830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1831
cristy3ed852e2009-09-05 21:47:34 +00001832X features:
1833 --x-includes=DIR X include files are in DIR
1834 --x-libraries=DIR X library files are in DIR
1835
1836System types:
1837 --build=BUILD configure for building on BUILD [guessed]
1838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1839 --target=TARGET configure for building compilers for TARGET [HOST]
1840_ACEOF
1841fi
1842
1843if test -n "$ac_init_help"; then
1844 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001845 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001846 esac
1847 cat <<\_ACEOF
1848
1849Optional Features:
1850 --disable-option-checking ignore unrecognized --enable/--with options
1851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001853 --enable-silent-rules less verbose build output (undo: "make V=1")
1854 --disable-silent-rules verbose build output (undo: "make V=0")
1855 --enable-dependency-tracking
1856 do not reject slow dependency extractors
1857 --disable-dependency-tracking
1858 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001859 --enable-ld-version-script
1860 enable linker version script (default is enabled
1861 when possible)
cristya3824692012-03-30 17:22:07 +00001862 --enable-bounds-checking
1863 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001865 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001866 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001867 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001869 --enable-shared[=PKGS] build shared libraries [default=yes]
1870 --enable-static[=PKGS] build static libraries [default=yes]
1871 --enable-fast-install[=PKGS]
1872 optimize for fast installation [default=yes]
1873 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-delegate-build look for delegate libraries in build directory
1875 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001876 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-installed Formally install ImageMagick under PREFIX
1878 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001879 --enable-zero-configuration
1880 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001881 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001882 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001883 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001885 --enable-maintainer-mode
1886 enable make rules and dependencies not useful (and
1887 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001888 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001889 --enable-ccmalloc enable 'ccmalloc' memory debug support
1890 --enable-efence enable 'efence' memory debug support
1891 --enable-prof enable 'prof' profiling support
1892 --enable-gprof enable 'gprof' profiling support
1893 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001894 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001895 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001896
1897Optional Packages:
1898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001901 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001902 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1903 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001904 --includearch-dir=DIR ARCH specific include directory
1905 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001906 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001908 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001909 both]
cristyda16f162011-02-19 23:52:17 +00001910 --with-sysroot=DIR Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001912 --with-modules enable building dynamically loadable modules
1913 --with-method-prefix=PREFIX
1914 prefix MagickCore API methods
1915 --with-quantum-depth=DEPTH
1916 number of bits in a pixel quantum (default 16)
1917 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1918 memory)
1919 --with-frozenpaths freeze delegate paths
1920 --without-magick-plus-plus
1921 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001922 --with-package-release-name=NAME
1923 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-perl enable build/install of PerlMagick
1925 --with-perl-options=OPTIONS
1926 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001927 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-umem enable umem memory allocation library support
1929 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1930 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001931 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-zlib disable ZLIB support
1933 --with-autotrace enable autotrace support
1934 --without-dps disable Display Postscript support
1935 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001936 --with-dejavu-font-dir=DIR
1937 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-fftw disable FFTW support
1939 --without-fpx disable FlashPIX support
1940 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001941 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001942 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-fontpath=DIR prepend to default font search path
1944 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001945 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-jbig disable JBIG support
1947 --without-jpeg disable JPEG support
1948 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001949 --without-lcms disable lcms (v1.1X) support
1950 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001951 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001952 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001954 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001956 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001958 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-windows-font-dir=DIR
1960 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001961 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-xml disable XML support
1963
1964Some influential environment variables:
1965 CC C compiler command
1966 CFLAGS C compiler flags
1967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1968 nonstandard directory <lib dir>
1969 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001970 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001971 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001972 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001973 CXX C++ compiler command
1974 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001975 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001976 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001977 XMKMF Path to xmkmf, Makefile generator for X Window System
1978 AUTOTRACE_CFLAGS
1979 C compiler flags for AUTOTRACE, overriding pkg-config
1980 AUTOTRACE_LIBS
1981 linker flags for AUTOTRACE, overriding pkg-config
1982 FONTCONFIG_CFLAGS
1983 C compiler flags for FONTCONFIG, overriding pkg-config
1984 FONTCONFIG_LIBS
1985 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001986 FREETYPE_CFLAGS
1987 C compiler flags for FREETYPE, overriding pkg-config
1988 FREETYPE_LIBS
1989 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001990 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1991 GVC_LIBS linker flags for GVC, overriding pkg-config
1992 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1993 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001994 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1995 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001996 OPENEXR_CFLAGS
1997 C compiler flags for OPENEXR, overriding pkg-config
1998 OPENEXR_LIBS
1999 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002000 PANGO_CFLAGS
2001 C compiler flags for PANGO, overriding pkg-config
2002 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2004 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2005 CAIRO_SVG_CFLAGS
2006 C compiler flags for CAIRO_SVG, overriding pkg-config
2007 CAIRO_SVG_LIBS
2008 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002009
2010Use these variables to override the choices made by `configure' or to help
2011it to find libraries and programs with nonstandard names/locations.
2012
2013Report bugs to <http://www.imagemagick.org>.
2014_ACEOF
2015ac_status=$?
2016fi
2017
2018if test "$ac_init_help" = "recursive"; then
2019 # If there are subdirs, report their specific --help.
2020 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021 test -d "$ac_dir" ||
2022 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023 continue
2024 ac_builddir=.
2025
2026case "$ac_dir" in
2027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028*)
2029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030 # A ".." for each directory in $ac_dir_suffix.
2031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032 case $ac_top_builddir_sub in
2033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035 esac ;;
2036esac
2037ac_abs_top_builddir=$ac_pwd
2038ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039# for backward compatibility:
2040ac_top_builddir=$ac_top_build_prefix
2041
2042case $srcdir in
2043 .) # We are building in place.
2044 ac_srcdir=.
2045 ac_top_srcdir=$ac_top_builddir_sub
2046 ac_abs_top_srcdir=$ac_pwd ;;
2047 [\\/]* | ?:[\\/]* ) # Absolute name.
2048 ac_srcdir=$srcdir$ac_dir_suffix;
2049 ac_top_srcdir=$srcdir
2050 ac_abs_top_srcdir=$srcdir ;;
2051 *) # Relative name.
2052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053 ac_top_srcdir=$ac_top_build_prefix$srcdir
2054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055esac
2056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2057
2058 cd "$ac_dir" || { ac_status=$?; continue; }
2059 # Check for guested configure.
2060 if test -f "$ac_srcdir/configure.gnu"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063 elif test -f "$ac_srcdir/configure"; then
2064 echo &&
2065 $SHELL "$ac_srcdir/configure" --help=recursive
2066 else
2067 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068 fi || ac_status=$?
2069 cd "$ac_pwd" || { ac_status=$?; break; }
2070 done
2071fi
2072
2073test -n "$ac_init_help" && exit $ac_status
2074if $ac_init_version; then
2075 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002076ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002077generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002078
cristy14fefe52012-05-21 00:59:18 +00002079Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002080This configure script is free software; the Free Software Foundation
2081gives unlimited permission to copy, distribute and modify it.
2082_ACEOF
2083 exit
2084fi
cristy8b350f62009-11-15 23:12:43 +00002085
2086## ------------------------ ##
2087## Autoconf initialization. ##
2088## ------------------------ ##
2089
2090# ac_fn_c_try_compile LINENO
2091# --------------------------
2092# Try to compile conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_compile ()
2094{
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext
2097 if { { ac_try="$ac_compile"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103$as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_compile") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2110 fi
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_c_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest.$ac_objext; then :
2116 ac_retval=0
2117else
2118 $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122fi
cristyda16f162011-02-19 23:52:17 +00002123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002124 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002125
2126} # ac_fn_c_try_compile
2127
cristy95646052009-11-28 23:05:30 +00002128# ac_fn_c_try_cpp LINENO
2129# ----------------------
2130# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_cpp ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002149 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159fi
cristyda16f162011-02-19 23:52:17 +00002160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002161 as_fn_set_status $ac_retval
2162
2163} # ac_fn_c_try_cpp
2164
cristy8b350f62009-11-15 23:12:43 +00002165# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166# -------------------------------------------------------
2167# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168# the include files in INCLUDES and setting the cache variable VAR
2169# accordingly.
2170ac_fn_c_check_header_mongrel ()
2171{
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002173 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002176if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002177 $as_echo_n "(cached) " >&6
2178fi
2179eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182else
2183 # Is the header compilable?
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185$as_echo_n "checking $2 usability... " >&6; }
2186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_header_compiler=yes
2193else
2194 ac_header_compiler=no
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198$as_echo "$ac_header_compiler" >&6; }
2199
2200# Is the header present?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202$as_echo_n "checking $2 presence... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_cpp "$LINENO"; then :
2208 ac_header_preproc=yes
2209else
2210 ac_header_preproc=no
2211fi
cristyda16f162011-02-19 23:52:17 +00002212rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214$as_echo "$ac_header_preproc" >&6; }
2215
2216# So? What about this header?
2217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218 yes:no: )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223 ;;
2224 no:yes:* )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2228$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2232$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002235( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002236## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002237## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002238 ) | sed "s/^/$as_me: WARNING: /" >&2
2239 ;;
2240esac
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002243if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002244 $as_echo_n "(cached) " >&6
2245else
2246 eval "$3=\$ac_header_compiler"
2247fi
2248eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251fi
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_mongrel
2255
2256# ac_fn_c_try_run LINENO
2257# ----------------------
2258# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2259# that executables *can* be run.
2260ac_fn_c_try_run ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 if { { ac_try="$ac_link"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_link") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2274 { { case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279$as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; }; }; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: program exited with status $ac_status" >&5
2287 $as_echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_retval=$ac_status
2291fi
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002294 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002295
2296} # ac_fn_c_try_run
2297
2298# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2299# -------------------------------------------------------
2300# Tests whether HEADER exists and can be compiled using the include files in
2301# INCLUDES, setting the cache variable VAR accordingly.
2302ac_fn_c_check_header_compile ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002307if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002308 $as_echo_n "(cached) " >&6
2309else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313#include <$2>
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316 eval "$3=yes"
2317else
2318 eval "$3=no"
2319fi
2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_check_header_compile
2328
cristya0b81c32010-01-22 02:54:33 +00002329# ac_fn_cxx_try_compile LINENO
2330# ----------------------------
2331# Try to compile conftest.$ac_ext, and return whether this succeeded.
2332ac_fn_cxx_try_compile ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 rm -f conftest.$ac_objext
2336 if { { ac_try="$ac_compile"
2337case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340esac
2341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342$as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_compile") 2>conftest.err
2344 ac_status=$?
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2349 fi
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } && {
2352 test -z "$ac_cxx_werror_flag" ||
2353 test ! -s conftest.err
2354 } && test -s conftest.$ac_objext; then :
2355 ac_retval=0
2356else
2357 $as_echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 ac_retval=1
2361fi
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002363 as_fn_set_status $ac_retval
2364
2365} # ac_fn_cxx_try_compile
2366
cristy8b350f62009-11-15 23:12:43 +00002367# ac_fn_c_try_link LINENO
2368# -----------------------
2369# Try to link conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_c_try_link ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 rm -f conftest.$ac_objext conftest$ac_exeext
2374 if { { ac_try="$ac_link"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_link") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2387 fi
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && {
2390 test -z "$ac_c_werror_flag" ||
2391 test ! -s conftest.err
2392 } && test -s conftest$ac_exeext && {
2393 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002394 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002395 }; then :
2396 ac_retval=0
2397else
2398 $as_echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_retval=1
2402fi
2403 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2404 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2405 # interfere with the next link command; also delete a directory that is
2406 # left behind by Apple's compiler. We do this before executing the actions.
2407 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002409 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002410
2411} # ac_fn_c_try_link
2412
cristy73bd4a52010-10-05 11:24:23 +00002413# ac_fn_c_check_func LINENO FUNC VAR
2414# ----------------------------------
2415# Tests whether FUNC exists, setting the cache variable VAR accordingly
2416ac_fn_c_check_func ()
2417{
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002421if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002422 $as_echo_n "(cached) " >&6
2423else
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2428#define $2 innocuous_$2
2429
2430/* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $2 (); below.
2432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 <limits.h> exists even on freestanding compilers. */
2434
2435#ifdef __STDC__
2436# include <limits.h>
2437#else
2438# include <assert.h>
2439#endif
2440
2441#undef $2
2442
2443/* Override any GCC internal prototype to avoid an error.
2444 Use char because int might match the return type of a GCC
2445 builtin and then its argument prototype would still apply. */
2446#ifdef __cplusplus
2447extern "C"
2448#endif
2449char $2 ();
2450/* The GNU C library defines this for functions which it implements
2451 to always fail with ENOSYS. Some functions are actually named
2452 something starting with __ and the normal name is an alias. */
2453#if defined __stub_$2 || defined __stub___$2
2454choke me
2455#endif
2456
2457int
2458main ()
2459{
2460return $2 ();
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465if ac_fn_c_try_link "$LINENO"; then :
2466 eval "$3=yes"
2467else
2468 eval "$3=no"
2469fi
2470rm -f core conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2472fi
2473eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002477
2478} # ac_fn_c_check_func
2479
2480# ac_fn_cxx_try_cpp LINENO
2481# ------------------------
2482# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2483ac_fn_cxx_try_cpp ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492$as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 ac_status=$?
2495 if test -s conftest.err; then
2496 grep -v '^ *+' conftest.err >conftest.er1
2497 cat conftest.er1 >&5
2498 mv -f conftest.er1 conftest.err
2499 fi
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002501 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2504 }; then :
2505 ac_retval=0
2506else
2507 $as_echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 ac_retval=1
2511fi
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_cpp
2516
2517# ac_fn_cxx_try_link LINENO
2518# -------------------------
2519# Try to link conftest.$ac_ext, and return whether this succeeded.
2520ac_fn_cxx_try_link ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { { ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530$as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_link") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } && {
2540 test -z "$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest$ac_exeext && {
2543 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002544 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002545 }; then :
2546 ac_retval=0
2547else
2548 $as_echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_retval=1
2552fi
2553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2555 # interfere with the next link command; also delete a directory that is
2556 # left behind by Apple's compiler. We do this before executing the actions.
2557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002559 as_fn_set_status $ac_retval
2560
2561} # ac_fn_cxx_try_link
2562
cristy8b350f62009-11-15 23:12:43 +00002563# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2564# -------------------------------------------
2565# Tests whether TYPE exists after having included INCLUDES, setting cache
2566# variable VAR accordingly.
2567ac_fn_c_check_type ()
2568{
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002572if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 eval "$3=no"
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof ($2))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$4
2592int
2593main ()
2594{
2595if (sizeof (($2)))
2596 return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604 eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_check_type
2616
cristy92703d82010-04-26 00:18:18 +00002617# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2618# ----------------------------------------------------
2619# Tries to find if the field MEMBER exists in type AGGR, after including
2620# INCLUDES, setting cache variable VAR accordingly.
2621ac_fn_c_check_member ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2625$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002626if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002627 $as_echo_n "(cached) " >&6
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (ac_aggr.$3)
2637return 0;
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643 eval "$4=yes"
2644else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$5
2648int
2649main ()
2650{
2651static $2 ac_aggr;
2652if (sizeof ac_aggr.$3)
2653return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 eval "$4=yes"
2660else
2661 eval "$4=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$4
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002671
2672} # ac_fn_c_check_member
2673
cristy5eef09f2012-10-16 12:08:28 +00002674# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2675# ---------------------------------------------
2676# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_check_decl ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 as_decl_name=`echo $2|sed 's/ *(.*//'`
2682 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2684$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2685if eval \${$3+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690$4
2691int
2692main ()
2693{
2694#ifndef $as_decl_name
2695#ifdef __cplusplus
2696 (void) $as_decl_use;
2697#else
2698 (void) $as_decl_name;
2699#endif
2700#endif
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 eval "$3=yes"
2708else
2709 eval "$3=no"
2710fi
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713eval ac_res=\$$3
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715$as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717
2718} # ac_fn_c_check_decl
2719
cristy501c8042011-05-26 17:46:28 +00002720# ac_fn_c_find_intX_t LINENO BITS VAR
2721# -----------------------------------
2722# Finds a signed integer type with width BITS, setting cache variable VAR
2723# accordingly.
2724ac_fn_c_find_intX_t ()
2725{
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2728$as_echo_n "checking for int$2_t... " >&6; }
2729if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 eval "$3=no"
2733 # Order is important - never check a type that is potentially smaller
2734 # than half of the expected target width.
2735 for ac_type in int$2_t 'int' 'long int' \
2736 'long long int' 'short int' 'signed char'; do
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$ac_includes_default
2740 enum { N = $2 / 2 - 1 };
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002745test_array [0] = 0;
2746return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h. */
2755$ac_includes_default
2756 enum { N = $2 / 2 - 1 };
2757int
2758main ()
2759{
2760static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2761 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002762test_array [0] = 0;
2763return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770
2771else
2772 case $ac_type in #(
2773 int$2_t) :
2774 eval "$3=yes" ;; #(
2775 *) :
2776 eval "$3=\$ac_type" ;;
2777esac
2778fi
2779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 if eval test \"x\$"$3"\" = x"no"; then :
2783
2784else
2785 break
2786fi
2787 done
2788fi
2789eval ac_res=\$$3
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791$as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2793
2794} # ac_fn_c_find_intX_t
2795
2796# ac_fn_c_find_uintX_t LINENO BITS VAR
2797# ------------------------------------
2798# Finds an unsigned integer type with width BITS, setting cache variable VAR
2799# accordingly.
2800ac_fn_c_find_uintX_t ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2804$as_echo_n "checking for uint$2_t... " >&6; }
2805if eval \${$3+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807else
2808 eval "$3=no"
2809 # Order is important - never check a type that is potentially smaller
2810 # than half of the expected target width.
2811 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2812 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814/* end confdefs.h. */
2815$ac_includes_default
2816int
2817main ()
2818{
2819static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002820test_array [0] = 0;
2821return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 case $ac_type in #(
2829 uint$2_t) :
2830 eval "$3=yes" ;; #(
2831 *) :
2832 eval "$3=\$ac_type" ;;
2833esac
2834fi
2835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 if eval test \"x\$"$3"\" = x"no"; then :
2837
2838else
2839 break
2840fi
2841 done
2842fi
2843eval ac_res=\$$3
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845$as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2847
2848} # ac_fn_c_find_uintX_t
2849
cristy8b350f62009-11-15 23:12:43 +00002850# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2851# --------------------------------------------
2852# Tries to find the compile-time value of EXPR in a program that includes
2853# INCLUDES, setting VAR accordingly. Returns whether the value could be
2854# computed
2855ac_fn_c_compute_int ()
2856{
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 if test "$cross_compiling" = yes; then
2859 # Depending upon the size, compute the lo and hi bounds.
2860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002867test_array [0] = 0;
2868return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002869
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_lo=0 ac_mid=0
2876 while :; do
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002884test_array [0] = 0;
2885return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_hi=$ac_mid; break
2893else
2894 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2895 if test $ac_lo -le $ac_mid; then
2896 ac_lo= ac_hi=
2897 break
2898 fi
2899 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2900fi
2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903else
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002911test_array [0] = 0;
2912return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919 ac_hi=-1 ac_mid=-1
2920 while :; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$4
2924int
2925main ()
2926{
2927static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002928test_array [0] = 0;
2929return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_lo=$ac_mid; break
2937else
2938 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2939 if test $ac_mid -le $ac_hi; then
2940 ac_lo= ac_hi=
2941 break
2942 fi
2943 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 done
2947else
2948 ac_lo= ac_hi=
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953# Binary search between lo and hi bounds.
2954while test "x$ac_lo" != "x$ac_hi"; do
2955 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
2958$4
2959int
2960main ()
2961{
2962static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002963test_array [0] = 0;
2964return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_hi=$ac_mid
2972else
2973 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976done
2977case $ac_lo in #((
2978?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2979'') ac_retval=1 ;;
2980esac
2981 else
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h. */
2984$4
2985static long int longval () { return $2; }
2986static unsigned long int ulongval () { return $2; }
2987#include <stdio.h>
2988#include <stdlib.h>
2989int
2990main ()
2991{
2992
2993 FILE *f = fopen ("conftest.val", "w");
2994 if (! f)
2995 return 1;
2996 if (($2) < 0)
2997 {
2998 long int i = longval ();
2999 if (i != ($2))
3000 return 1;
3001 fprintf (f, "%ld", i);
3002 }
3003 else
3004 {
3005 unsigned long int i = ulongval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%lu", i);
3009 }
3010 /* Do not output a trailing newline, as this causes \r\n confusion
3011 on some platforms. */
3012 return ferror (f) || fclose (f) != 0;
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018if ac_fn_c_try_run "$LINENO"; then :
3019 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3020else
3021 ac_retval=1
3022fi
3023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3024 conftest.$ac_objext conftest.beam conftest.$ac_ext
3025rm -f conftest.val
3026
3027 fi
cristyda16f162011-02-19 23:52:17 +00003028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003029 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003030
3031} # ac_fn_c_compute_int
3032
3033# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3034# ---------------------------------------------------------
3035# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3036# the include files in INCLUDES and setting the cache variable VAR
3037# accordingly.
3038ac_fn_cxx_check_header_mongrel ()
3039{
3040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003041 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3043$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003044if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003045 $as_echo_n "(cached) " >&6
3046fi
3047eval ac_res=\$$3
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049$as_echo "$ac_res" >&6; }
3050else
3051 # Is the header compilable?
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3053$as_echo_n "checking $2 usability... " >&6; }
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056$4
3057#include <$2>
3058_ACEOF
3059if ac_fn_cxx_try_compile "$LINENO"; then :
3060 ac_header_compiler=yes
3061else
3062 ac_header_compiler=no
3063fi
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3066$as_echo "$ac_header_compiler" >&6; }
3067
3068# Is the header present?
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3070$as_echo_n "checking $2 presence... " >&6; }
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073#include <$2>
3074_ACEOF
3075if ac_fn_cxx_try_cpp "$LINENO"; then :
3076 ac_header_preproc=yes
3077else
3078 ac_header_preproc=no
3079fi
cristyda16f162011-02-19 23:52:17 +00003080rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3082$as_echo "$ac_header_preproc" >&6; }
3083
3084# So? What about this header?
3085case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3086 yes:no: )
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3088$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3091 ;;
3092 no:yes:* )
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3094$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3096$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3098$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3100$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003103( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003104## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003105## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003106 ) | sed "s/^/$as_me: WARNING: /" >&2
3107 ;;
3108esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3110$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003111if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003112 $as_echo_n "(cached) " >&6
3113else
3114 eval "$3=\$ac_header_compiler"
3115fi
3116eval ac_res=\$$3
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3118$as_echo "$ac_res" >&6; }
3119fi
cristyda16f162011-02-19 23:52:17 +00003120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003121
3122} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003123cat >config.log <<_ACEOF
3124This file contains any messages produced by compilers while
3125running configure, to aid debugging if configure makes a mistake.
3126
cristy29eb34e2011-10-16 00:46:08 +00003127It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003128generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003129
3130 $ $0 $@
3131
3132_ACEOF
3133exec 5>>config.log
3134{
3135cat <<_ASUNAME
3136## --------- ##
3137## Platform. ##
3138## --------- ##
3139
3140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3141uname -m = `(uname -m) 2>/dev/null || echo unknown`
3142uname -r = `(uname -r) 2>/dev/null || echo unknown`
3143uname -s = `(uname -s) 2>/dev/null || echo unknown`
3144uname -v = `(uname -v) 2>/dev/null || echo unknown`
3145
3146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3148
3149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3152/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3156
3157_ASUNAME
3158
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003164 $as_echo "PATH: $as_dir"
3165 done
cristy3ed852e2009-09-05 21:47:34 +00003166IFS=$as_save_IFS
3167
3168} >&5
3169
3170cat >&5 <<_ACEOF
3171
3172
3173## ----------- ##
3174## Core tests. ##
3175## ----------- ##
3176
3177_ACEOF
3178
3179
3180# Keep a trace of the command line.
3181# Strip out --no-create and --no-recursion so they do not pile up.
3182# Strip out --silent because we don't want to record it for future runs.
3183# Also quote any args containing shell meta-characters.
3184# Make two passes to allow for proper duplicate-argument suppression.
3185ac_configure_args=
3186ac_configure_args0=
3187ac_configure_args1=
3188ac_must_keep_next=false
3189for ac_pass in 1 2
3190do
3191 for ac_arg
3192 do
3193 case $ac_arg in
3194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3196 | -silent | --silent | --silen | --sile | --sil)
3197 continue ;;
3198 *\'*)
3199 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3200 esac
3201 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003202 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 2)
cristy8b350f62009-11-15 23:12:43 +00003204 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003205 if test $ac_must_keep_next = true; then
3206 ac_must_keep_next=false # Got value, back to normal.
3207 else
3208 case $ac_arg in
3209 *=* | --config-cache | -C | -disable-* | --disable-* \
3210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3212 | -with-* | --with-* | -without-* | --without-* | --x)
3213 case "$ac_configure_args0 " in
3214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3215 esac
3216 ;;
3217 -* ) ac_must_keep_next=true ;;
3218 esac
3219 fi
cristy8b350f62009-11-15 23:12:43 +00003220 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003221 ;;
3222 esac
3223 done
3224done
cristy8b350f62009-11-15 23:12:43 +00003225{ ac_configure_args0=; unset ac_configure_args0;}
3226{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003227
3228# When interrupted or exit'd, cleanup temporary files, and complete
3229# config.log. We remove comments because anyway the quotes in there
3230# would cause problems or look ugly.
3231# WARNING: Use '\'' to represent an apostrophe within the trap.
3232# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3233trap 'exit_status=$?
3234 # Save into config.log some information that might help in debugging.
3235 {
3236 echo
3237
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 # The following way of writing the cache mishandles newlines in values,
3243(
3244 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3245 eval ac_val=\$$ac_var
3246 case $ac_val in #(
3247 *${as_nl}*)
3248 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3251 esac
3252 case $ac_var in #(
3253 _ | IFS | as_nl) ;; #(
3254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003255 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003256 esac ;;
3257 esac
3258 done
3259 (set) 2>&1 |
3260 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3261 *${as_nl}ac_space=\ *)
3262 sed -n \
3263 "s/'\''/'\''\\\\'\'''\''/g;
3264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3265 ;; #(
3266 *)
3267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3268 ;;
3269 esac |
3270 sort
3271)
3272 echo
3273
cristy98dddb52010-11-04 00:30:15 +00003274 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003275## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003276## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003277 echo
3278 for ac_var in $ac_subst_vars
3279 do
3280 eval ac_val=\$$ac_var
3281 case $ac_val in
3282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3283 esac
3284 $as_echo "$ac_var='\''$ac_val'\''"
3285 done | sort
3286 echo
3287
3288 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003289 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003290## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003291## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003292 echo
3293 for ac_var in $ac_subst_files
3294 do
3295 eval ac_val=\$$ac_var
3296 case $ac_val in
3297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298 esac
3299 $as_echo "$ac_var='\''$ac_val'\''"
3300 done | sort
3301 echo
3302 fi
3303
3304 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003305 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003307## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003308 echo
3309 cat confdefs.h
3310 echo
3311 fi
3312 test "$ac_signal" != 0 &&
3313 $as_echo "$as_me: caught signal $ac_signal"
3314 $as_echo "$as_me: exit $exit_status"
3315 } >&5
3316 rm -f core *.core core.conftest.* &&
3317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3318 exit $exit_status
3319' 0
3320for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003322done
3323ac_signal=0
3324
3325# confdefs.h avoids OS command line length limits that DEFS can exceed.
3326rm -f -r conftest* confdefs.h
3327
cristy8b350f62009-11-15 23:12:43 +00003328$as_echo "/* confdefs.h */" > confdefs.h
3329
cristy3ed852e2009-09-05 21:47:34 +00003330# Predefined preprocessor variables.
3331
3332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_NAME "$PACKAGE_NAME"
3334_ACEOF
3335
cristy3ed852e2009-09-05 21:47:34 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3338_ACEOF
3339
cristy3ed852e2009-09-05 21:47:34 +00003340cat >>confdefs.h <<_ACEOF
3341#define PACKAGE_VERSION "$PACKAGE_VERSION"
3342_ACEOF
3343
cristy3ed852e2009-09-05 21:47:34 +00003344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_STRING "$PACKAGE_STRING"
3346_ACEOF
3347
cristy3ed852e2009-09-05 21:47:34 +00003348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3350_ACEOF
3351
cristy8b350f62009-11-15 23:12:43 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_URL "$PACKAGE_URL"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356
3357# Let the site file select an alternate cache file if it wants to.
3358# Prefer an explicitly selected file to automatically selected ones.
3359ac_site_file1=NONE
3360ac_site_file2=NONE
3361if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003362 # We do not want a PATH search for config.site.
3363 case $CONFIG_SITE in #((
3364 -*) ac_site_file1=./$CONFIG_SITE;;
3365 */*) ac_site_file1=$CONFIG_SITE;;
3366 *) ac_site_file1=./$CONFIG_SITE;;
3367 esac
cristy3ed852e2009-09-05 21:47:34 +00003368elif test "x$prefix" != xNONE; then
3369 ac_site_file1=$prefix/share/config.site
3370 ac_site_file2=$prefix/etc/config.site
3371else
3372 ac_site_file1=$ac_default_prefix/share/config.site
3373 ac_site_file2=$ac_default_prefix/etc/config.site
3374fi
3375for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3376do
3377 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003378 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3381 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003382 . "$ac_site_file" \
3383 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385as_fn_error $? "failed to load site script $ac_site_file
3386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003387 fi
3388done
3389
3390if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003391 # Some versions of bash will fail to source /dev/null (special files
3392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: loading cache $cache_file" >&6;}
3396 case $cache_file in
3397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3398 *) . "./$cache_file";;
3399 esac
3400 fi
3401else
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: creating cache $cache_file" >&6;}
3404 >$cache_file
3405fi
3406
cristycd4c5312009-11-22 01:19:08 +00003407as_fn_append ac_header_list " stdlib.h"
3408as_fn_append ac_header_list " unistd.h"
3409as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003410# Check that the precious variables saved in the cache have kept the same
3411# value.
3412ac_cache_corrupted=false
3413for ac_var in $ac_precious_vars; do
3414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415 eval ac_new_set=\$ac_env_${ac_var}_set
3416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417 eval ac_new_val=\$ac_env_${ac_var}_value
3418 case $ac_old_set,$ac_new_set in
3419 set,)
cristy8b350f62009-11-15 23:12:43 +00003420 { $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 +00003421$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422 ac_cache_corrupted=: ;;
3423 ,set)
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426 ac_cache_corrupted=: ;;
3427 ,);;
3428 *)
3429 if test "x$ac_old_val" != "x$ac_new_val"; then
3430 # differences in whitespace do not lead to failure.
3431 ac_old_val_w=`echo x $ac_old_val`
3432 ac_new_val_w=`echo x $ac_new_val`
3433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436 ac_cache_corrupted=:
3437 else
cristy8b350f62009-11-15 23:12:43 +00003438 { $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 +00003439$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440 eval $ac_var=\$ac_old_val
3441 fi
cristy8b350f62009-11-15 23:12:43 +00003442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003445$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3446 fi;;
3447 esac
3448 # Pass precious variables to config.status.
3449 if test "$ac_new_set" = set; then
3450 case $ac_new_val in
3451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452 *) ac_arg=$ac_var=$ac_new_val ;;
3453 esac
3454 case " $ac_configure_args " in
3455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003457 esac
3458 fi
3459done
3460if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003466fi
cristy8b350f62009-11-15 23:12:43 +00003467## -------------------- ##
3468## Main body of script. ##
3469## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003470
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478
3479ac_aux_dir=
3480for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003481 if test -f "$ac_dir/install-sh"; then
3482 ac_aux_dir=$ac_dir
3483 ac_install_sh="$ac_aux_dir/install-sh -c"
3484 break
3485 elif test -f "$ac_dir/install.sh"; then
3486 ac_aux_dir=$ac_dir
3487 ac_install_sh="$ac_aux_dir/install.sh -c"
3488 break
3489 elif test -f "$ac_dir/shtool"; then
3490 ac_aux_dir=$ac_dir
3491 ac_install_sh="$ac_aux_dir/shtool install -c"
3492 break
3493 fi
cristy3ed852e2009-09-05 21:47:34 +00003494done
3495if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003496 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003497fi
3498
3499# These three variables are undocumented and unsupported,
3500# and are intended to be withdrawn in a future Autoconf release.
3501# They can cause serious problems if a builder's source tree is in a directory
3502# whose full name contains unusual characters.
3503ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3504ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3505ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3506
3507
3508
3509
3510ac_config_headers="$ac_config_headers config/config.h"
3511
cristy24fc1fe2010-10-23 21:13:01 +00003512
cristy01ff9f32012-12-01 18:15:29 +00003513ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003514
cristy8d0ff762013-03-10 20:33:28 +00003515ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003516
3517
3518#
3519# Save initial user-tunable values
3520#
3521USER_LIBS=$LIBS
3522for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3523 eval isset=\${$var+set}
3524 if test "$isset" = 'set'; then
3525 eval val=$`echo $var`
3526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3527 fi
3528done
3529
3530
3531CONFIGURE_ARGS="$0 ${ac_configure_args}"
3532
3533
3534# Source file containing package/library versioning information.
3535. ${srcdir}/version.sh
3536
cristy15a88782010-01-31 23:24:49 +00003537echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
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
3650
3651
cristy8be34142012-06-17 14:07:18 +00003652
cristy19615b82011-04-13 20:02:01 +00003653MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003654
3655
cristy27d53d62012-07-29 23:30:07 +00003656cat >>confdefs.h <<_ACEOF
3657#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3658_ACEOF
3659
3660
cristy19615b82011-04-13 20:02:01 +00003661MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003662
3663
cristy27d53d62012-07-29 23:30:07 +00003664cat >>confdefs.h <<_ACEOF
3665#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3666_ACEOF
3667
3668
cristy19615b82011-04-13 20:02:01 +00003669MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003670
3671
cristy27d53d62012-07-29 23:30:07 +00003672cat >>confdefs.h <<_ACEOF
3673#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3674_ACEOF
3675
3676
cristy37442762013-02-10 21:07:23 +00003677
3678# Substitute versioning
3679MAGICK_MAJOR_VERSION=7
3680
3681MAGICK_MINOR_VERSION=0
3682
3683MAGICK_MICRO_VERSION=0
3684
3685MAGICK_PATCHLEVEL_VERSION=0
3686
3687MAGICK_VERSION=7.0.0-0
3688
cristy3b640ed2013-07-29 00:27:59 +00003689MAGICK_SVN_REVISION=12786:12797M
cristy37442762013-02-10 21:07:23 +00003690
3691
cristy3ed852e2009-09-05 21:47:34 +00003692# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003693MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3694
3695MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3696
cristy37442762013-02-10 21:07:23 +00003697
cristy5ed9c6e2013-07-14 21:20:31 +00003698MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3699
3700MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3701
3702
cristyd694ca32011-03-27 21:42:54 +00003703
cristy3ed852e2009-09-05 21:47:34 +00003704# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3706$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003707# Reject unsafe characters in $srcdir or the absolute working directory
3708# name. Accept space and tab only in the latter.
3709am_lf='
3710'
3711case `pwd` in
3712 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003714esac
3715case $srcdir in
3716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003718esac
cristy3ed852e2009-09-05 21:47:34 +00003719
cristyc0890a62012-07-19 00:18:20 +00003720# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003721# arguments. Must try -L first in case configure is actually a
3722# symlink; some systems play weird games with the mod time of symlinks
3723# (eg FreeBSD returns the mod time of the symlink's containing
3724# directory).
3725if (
cristyc0890a62012-07-19 00:18:20 +00003726 am_has_slept=no
3727 for am_try in 1 2; do
3728 echo "timestamp, slept: $am_has_slept" > conftest.file
3729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3730 if test "$*" = "X"; then
3731 # -L didn't work.
3732 set X `ls -t "$srcdir/configure" conftest.file`
3733 fi
3734 if test "$*" != "X $srcdir/configure conftest.file" \
3735 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003736
cristyc0890a62012-07-19 00:18:20 +00003737 # If neither matched, then we have a broken ls. This can happen
3738 # if, for instance, CONFIG_SHELL is bash and it inherits a
3739 # broken ls alias from the environment. This has actually
3740 # happened. Such a system could not be considered "sane".
3741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3742 alias in your environment" "$LINENO" 5
3743 fi
3744 if test "$2" = conftest.file || test $am_try -eq 2; then
3745 break
3746 fi
3747 # Just in case.
3748 sleep 1
3749 am_has_slept=yes
3750 done
cristy73bd4a52010-10-05 11:24:23 +00003751 test "$2" = conftest.file
3752 )
3753then
3754 # Ok.
3755 :
3756else
cristy98dddb52010-11-04 00:30:15 +00003757 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003758Check your system clock" "$LINENO" 5
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003762# If we didn't sleep, we still need to ensure time stamps of config.status and
3763# generated files are strictly newer.
3764am_sleep_pid=
3765if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3766 ( sleep 1 ) &
3767 am_sleep_pid=$!
3768fi
cristy73bd4a52010-10-05 11:24:23 +00003769
cristyc0890a62012-07-19 00:18:20 +00003770rm -f conftest.file
3771
3772
cristy58d34aa2013-01-24 15:11:54 +00003773am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003774
3775# Find a good install program. We prefer a C program (faster),
3776# so one script is as good as another. But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# OS/2's system install, which has a completely different semantic
3787# ./install, which can be erroneously created by make from ./install.sh.
3788# Reject install programs that cannot install multiple files.
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790$as_echo_n "checking for a BSD-compatible install... " >&6; }
3791if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003792if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in #((
3802 ./ | .// | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003812 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839esac
3840
3841 done
3842IFS=$as_save_IFS
3843
3844rm -rf conftest.one conftest.two conftest.dir
3845
3846fi
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858$as_echo "$INSTALL" >&6; }
3859
3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861# It thinks the first close brace ends the variable substitution.
3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868test "$program_prefix" != NONE &&
3869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3870# Use a double $ so make ignores it.
3871test "$program_suffix" != NONE &&
3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3873# Double any \ or $.
3874# By default was `s,x,x', remove it if useless.
3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3877
3878# expand $ac_aux_dir to an absolute path
3879am_aux_dir=`cd $ac_aux_dir && pwd`
3880
3881if test x"${MISSING+set}" != xset; then
3882 case $am_aux_dir in
3883 *\ * | *\ *)
3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3885 *)
3886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3887 esac
3888fi
3889# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003890if eval "$MISSING --is-lightweight"; then
3891 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003892else
3893 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003896fi
3897
3898if test x"${install_sh}" != xset; then
3899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3902 *)
3903 install_sh="\${SHELL} $am_aux_dir/install-sh"
3904 esac
3905fi
3906
cristyc0890a62012-07-19 00:18:20 +00003907# Installed binaries are usually stripped using 'strip' when the user
3908# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003909# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003910# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003911if test "$cross_compiling" != no; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003917if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940STRIP=$ac_cv_prog_STRIP
3941if test -n "$STRIP"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3943$as_echo "$STRIP" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_STRIP"; then
3952 ac_ct_STRIP=$STRIP
3953 # Extract the first word of "strip", so it can be a program name with args.
3954set dummy strip; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_STRIP"; then
3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003970 ac_cv_prog_ac_ct_STRIP="strip"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981if test -n "$ac_ct_STRIP"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3983$as_echo "$ac_ct_STRIP" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_STRIP" = x; then
3990 STRIP=":"
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 STRIP=$ac_ct_STRIP
3999 fi
4000else
4001 STRIP="$ac_cv_prog_STRIP"
4002fi
4003
4004fi
4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4009if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004010 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in mkdir gmkdir; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4022 'mkdir (GNU coreutils) '* | \
4023 'mkdir (coreutils) '* | \
4024 'mkdir (fileutils) '4.1*)
4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4026 break 3;;
4027 esac
4028 done
4029 done
4030 done
4031IFS=$as_save_IFS
4032
4033fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test "${ac_cv_path_mkdir+set}" = set; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for MKDIR_P within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 MKDIR_P="$ac_install_sh -d"
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4047$as_echo "$MKDIR_P" >&6; }
4048
cristy73bd4a52010-10-05 11:24:23 +00004049for ac_prog in gawk mawk nawk awk
4050do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004055if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004056 $as_echo_n "(cached) " >&6
4057else
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004068 ac_cv_prog_AWK="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078AWK=$ac_cv_prog_AWK
4079if test -n "$AWK"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4081$as_echo "$AWK" >&6; }
4082else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088 test -n "$AWK" && break
4089done
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4093set x ${MAKE-make}
4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004096 $as_echo_n "(cached) " >&6
4097else
4098 cat >conftest.make <<\_ACEOF
4099SHELL = /bin/sh
4100all:
4101 @echo '@@@%%%=$(MAKE)=@@@%%%'
4102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004104case `${MAKE-make} -f conftest.make 2>/dev/null` in
4105 *@@@%%%=?*=@@@%%%*)
4106 eval ac_cv_prog_make_${ac_make}_set=yes;;
4107 *)
4108 eval ac_cv_prog_make_${ac_make}_set=no;;
4109esac
4110rm -f conftest.make
4111fi
4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
4115 SET_MAKE=
4116else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119 SET_MAKE="MAKE=${MAKE-make}"
4120fi
4121
4122rm -rf .tst 2>/dev/null
4123mkdir .tst 2>/dev/null
4124if test -d .tst; then
4125 am__leading_dot=.
4126else
4127 am__leading_dot=_
4128fi
4129rmdir .tst 2>/dev/null
4130
cristya448bd22011-10-14 12:38:13 +00004131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133 enableval=$enable_silent_rules;
4134fi
4135
cristyc0890a62012-07-19 00:18:20 +00004136case $enable_silent_rules in # (((
4137 yes) AM_DEFAULT_VERBOSITY=0;;
4138 no) AM_DEFAULT_VERBOSITY=1;;
4139 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004140esac
cristyc3fb77b2012-02-06 01:49:41 +00004141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152 @$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154 am_cv_make_support_nested_variables=yes
4155else
4156 am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162 AM_V='$(V)'
4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165 AM_V=$AM_DEFAULT_VERBOSITY
4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
cristya448bd22011-10-14 12:38:13 +00004168AM_BACKSLASH='\'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172 # is not polluted with repeated "-I."
4173 am__isrc=' -I$(srcdir)'
4174 # test to see if srcdir already configured
4175 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004177 fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182 if (cygpath --version) >/dev/null 2>/dev/null; then
4183 CYGPATH_W='cygpath -w'
4184 else
4185 CYGPATH_W=echo
4186 fi
4187fi
4188
4189
4190# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004191 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004192 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004193
4194
cristya448bd22011-10-14 12:38:13 +00004195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
cristy73bd4a52010-10-05 11:24:23 +00004204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
cristyc0890a62012-07-19 00:18:20 +00004220# For better backward compatibility. To be removed once Automake 1.9.x
4221# dies out for good. For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
cristy73bd4a52010-10-05 11:24:23 +00004226# We need awk for the "check" target. The system "awk" is bad on
4227# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004228# Always define AMTAR for backward compatibility. Yes, it's still used
4229# in the wild :-( We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004231
cristye69bdbe2013-05-03 21:40:44 +00004232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar pax cpio none'
4235
cristyc3fb77b2012-02-06 01:49:41 +00004236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004237
4238
4239
4240
4241
cristy3ed852e2009-09-05 21:47:34 +00004242
cristye69bdbe2013-05-03 21:40:44 +00004243
cristy3ed852e2009-09-05 21:47:34 +00004244# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004245# Check whether --enable-silent-rules was given.
4246if test "${enable_silent_rules+set}" = set; then :
4247 enableval=$enable_silent_rules;
4248fi
4249
cristyc0890a62012-07-19 00:18:20 +00004250case $enable_silent_rules in # (((
4251 yes) AM_DEFAULT_VERBOSITY=0;;
4252 no) AM_DEFAULT_VERBOSITY=1;;
4253 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004254esac
cristyc3fb77b2012-02-06 01:49:41 +00004255am_make=${MAKE-make}
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258if ${am_cv_make_support_nested_variables+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if $as_echo 'TRUE=$(BAR$(V))
4262BAR0=false
4263BAR1=true
4264V=1
4265am__doit:
4266 @$(TRUE)
4267.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268 am_cv_make_support_nested_variables=yes
4269else
4270 am_cv_make_support_nested_variables=no
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274$as_echo "$am_cv_make_support_nested_variables" >&6; }
4275if test $am_cv_make_support_nested_variables = yes; then
4276 AM_V='$(V)'
4277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278else
4279 AM_V=$AM_DEFAULT_VERBOSITY
4280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281fi
cristy73bd4a52010-10-05 11:24:23 +00004282AM_BACKSLASH='\'
4283
cristy3ed852e2009-09-05 21:47:34 +00004284
cristy5ed9c6e2013-07-14 21:20:31 +00004285# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004286MAGICK_LIB_VERSION="0x"
4287if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4288 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4289fi
4290MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4291if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4292 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4293fi
4294MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4295if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4296 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4297fi
4298MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4299
4300
4301# Definition used to define MagickLibVersionText in version.h
4302MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4303
4304
4305# Definition used to define MagickLibVersionNumber in version.h
4306MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4307
4308
cristy5ed9c6e2013-07-14 21:20:31 +00004309MAGICKPP_LIB_VERSION="0x"
4310if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4311 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4312fi
4313MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4314if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4315 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4316fi
4317MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4318if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4319 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4320fi
4321MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4322
4323
4324# Definition used to define MagickLibVersionText in version.h
4325MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4326
4327
4328# Definition used to define MagickLibVersionNumber in version.h
4329MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4330
4331
4332
4333
cristy3ed852e2009-09-05 21:47:34 +00004334# Regenerate config.status if ChangeLog or version.sh is updated.
4335CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4336
4337
4338PERLMAINCC=$CC
4339
4340MAGICK_CFLAGS=''
4341MAGICK_CPPFLAGS=$CPPFLAGS_USER
4342MAGICK_PCFLAGS=$CPPFLAGS_USER
4343MAGICK_LDFLAGS=''
4344MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004345MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004346
4347#
4348# Evaluate shell variable equivalents to Makefile directory variables
4349#
4350if test "x$prefix" = xNONE; then
4351 prefix=$ac_default_prefix
4352fi
4353# Let make expand exec_prefix.
4354if test "x$exec_prefix" = xNONE; then
4355 exec_prefix='${prefix}'
4356fi
4357
4358#
4359eval "eval PREFIX_DIR=${prefix}"
4360
4361eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4362
4363eval "eval BIN_DIR=$bindir"
4364
4365eval "eval SBIN_DIR=$sbindir"
4366
4367eval "eval LIBEXEC_DIR=$libexecdir"
4368
4369eval "eval DATA_DIR=$datadir"
4370
cristy4e65ec22012-04-08 01:33:27 +00004371eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004372
cristy3ed852e2009-09-05 21:47:34 +00004373eval "eval SYSCONF_DIR=$sysconfdir"
4374
4375eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4376
4377eval "eval LOCALSTATE_DIR=$localstatedir"
4378
4379eval "eval LIB_DIR=$libdir"
4380
4381eval "eval INCLUDE_DIR=$includedir"
4382
4383eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4384
4385eval "eval INFO_DIR=$infodir"
4386
4387eval "eval MAN_DIR=$mandir"
4388
4389
4390# Get full paths to source and build directories
4391srcdirfull="`cd $srcdir && pwd`"
4392builddir="`pwd`"
4393
4394#
4395# Compute variables useful for running uninstalled software.
4396#
4397MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4398MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4399MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4400MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4401DIRSEP=':'
4402case "${build_os}" in
4403 mingw* )
4404 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4405 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4406 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4407 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4408 DIRSEP=';'
4409 ;;
4410esac
4411case "${host_os}" in
4412 mingw* )
4413 DIRSEP=';'
4414 ;;
4415esac
4416
4417
4418
4419
4420
4421
cristya0b81c32010-01-22 02:54:33 +00004422
4423#
4424# Enable OS features.
4425#
cristy73bd4a52010-10-05 11:24:23 +00004426DEPDIR="${am__leading_dot}deps"
4427
4428ac_config_commands="$ac_config_commands depfiles"
4429
4430
4431am_make=${MAKE-make}
4432cat > confinc << 'END'
4433am__doit:
4434 @echo this is the am__doit target
4435.PHONY: am__doit
4436END
4437# If we don't find an include directive, just comment out the code.
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4439$as_echo_n "checking for style of include used by $am_make... " >&6; }
4440am__include="#"
4441am__quote=
4442_am_result=none
4443# First try GNU make style include.
4444echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004445# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004446case `$am_make -s -f confmf 2> /dev/null` in #(
4447*the\ am__doit\ target*)
4448 am__include=include
4449 am__quote=
4450 _am_result=GNU
4451 ;;
4452esac
4453# Now try BSD make style include.
4454if test "$am__include" = "#"; then
4455 echo '.include "confinc"' > confmf
4456 case `$am_make -s -f confmf 2> /dev/null` in #(
4457 *the\ am__doit\ target*)
4458 am__include=.include
4459 am__quote="\""
4460 _am_result=BSD
4461 ;;
4462 esac
4463fi
4464
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4467$as_echo "$_am_result" >&6; }
4468rm -f confinc confmf
4469
4470# Check whether --enable-dependency-tracking was given.
4471if test "${enable_dependency_tracking+set}" = set; then :
4472 enableval=$enable_dependency_tracking;
4473fi
4474
4475if test "x$enable_dependency_tracking" != xno; then
4476 am_depcomp="$ac_aux_dir/depcomp"
4477 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004478 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004479fi
4480 if test "x$enable_dependency_tracking" != xno; then
4481 AMDEP_TRUE=
4482 AMDEP_FALSE='#'
4483else
4484 AMDEP_TRUE='#'
4485 AMDEP_FALSE=
4486fi
4487
4488
cristy3ed852e2009-09-05 21:47:34 +00004489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4496set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004499if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 break 2
4515 fi
4516done
cristy8b350f62009-11-15 23:12:43 +00004517 done
cristy3ed852e2009-09-05 21:47:34 +00004518IFS=$as_save_IFS
4519
4520fi
4521fi
4522CC=$ac_cv_prog_CC
4523if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$CC" >&6; }
4526else
cristy8b350f62009-11-15 23:12:43 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "gcc", so it can be a program name with args.
4536set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004539if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004540 $as_echo_n "(cached) " >&6
4541else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004552 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554 break 2
4555 fi
4556done
cristy8b350f62009-11-15 23:12:43 +00004557 done
cristy3ed852e2009-09-05 21:47:34 +00004558IFS=$as_save_IFS
4559
4560fi
4561fi
4562ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004565$as_echo "$ac_ct_CC" >&6; }
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "no" >&6; }
4569fi
4570
4571 if test "x$ac_ct_CC" = x; then
4572 CC=""
4573 else
4574 case $cross_compiling:$ac_tool_warned in
4575yes:)
cristy8b350f62009-11-15 23:12:43 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578ac_tool_warned=yes ;;
4579esac
4580 CC=$ac_ct_CC
4581 fi
4582else
4583 CC="$ac_cv_prog_CC"
4584fi
4585
4586if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004592if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004605 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615CC=$ac_cv_prog_CC
4616if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$CC" >&6; }
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo "no" >&6; }
4622fi
4623
4624
4625 fi
4626fi
4627if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004632if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652 break 2
4653 fi
4654done
cristy8b350f62009-11-15 23:12:43 +00004655 done
cristy3ed852e2009-09-05 21:47:34 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_CC
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set CC to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682fi
4683if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in cl.exe
4686 do
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706 break 2
4707 fi
4708done
cristy8b350f62009-11-15 23:12:43 +00004709 done
cristy3ed852e2009-09-05 21:47:34 +00004710IFS=$as_save_IFS
4711
4712fi
4713fi
4714CC=$ac_cv_prog_CC
4715if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$CC" >&6; }
4718else
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "no" >&6; }
4721fi
4722
4723
4724 test -n "$CC" && break
4725 done
4726fi
4727if test -z "$CC"; then
4728 ac_ct_CC=$CC
4729 for ac_prog in cl.exe
4730do
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004735if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004736 $as_echo_n "(cached) " >&6
4737else
4738 if test -n "$ac_ct_CC"; then
4739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004748 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750 break 2
4751 fi
4752done
cristy8b350f62009-11-15 23:12:43 +00004753 done
cristy3ed852e2009-09-05 21:47:34 +00004754IFS=$as_save_IFS
4755
4756fi
4757fi
4758ac_ct_CC=$ac_cv_prog_ac_ct_CC
4759if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo "$ac_ct_CC" >&6; }
4762else
cristy8b350f62009-11-15 23:12:43 +00004763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "no" >&6; }
4765fi
4766
4767
4768 test -n "$ac_ct_CC" && break
4769done
4770
4771 if test "x$ac_ct_CC" = x; then
4772 CC=""
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775yes:)
cristy8b350f62009-11-15 23:12:43 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778ac_tool_warned=yes ;;
4779esac
4780 CC=$ac_ct_CC
4781 fi
4782fi
4783
4784fi
4785
4786
cristy8b350f62009-11-15 23:12:43 +00004787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004789as_fn_error $? "no acceptable C compiler found in \$PATH
4790See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004791
4792# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794set X $ac_compile
4795ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004796for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
cristy8b350f62009-11-15 23:12:43 +00004802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004805 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004806 if test -s conftest.err; then
4807 sed '10a\
4808... rest of stderr output deleted ...
4809 10q' conftest.err >conftest.er1
4810 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004811 fi
cristycd4c5312009-11-22 01:19:08 +00004812 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4815done
cristy3ed852e2009-09-05 21:47:34 +00004816
cristy8b350f62009-11-15 23:12:43 +00004817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004818/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004819
cristy3ed852e2009-09-05 21:47:34 +00004820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004830# Try to create an executable without -o first, disregard a.out.
4831# It will help us diagnose broken compilers, and finding out an intuition
4832# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4834$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4836
4837# The possible output files:
4838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4839
4840ac_rmfiles=
4841for ac_file in $ac_files
4842do
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4846 esac
4847done
4848rm -f $ac_rmfiles
4849
cristy8b350f62009-11-15 23:12:43 +00004850if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
cristy8b350f62009-11-15 23:12:43 +00004855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004857 (eval "$ac_link_default") 2>&5
4858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4863# in a Makefile. We should not override ac_cv_exeext if it was cached,
4864# so that the user can short-circuit this test for compilers unknown to
4865# Autoconf.
4866for ac_file in $ac_files ''
4867do
4868 test -f "$ac_file" || continue
4869 case $ac_file in
4870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4871 ;;
4872 [ab].out )
4873 # We found the default executable, but exeext='' is most
4874 # certainly right.
4875 break;;
4876 *.* )
cristy8b350f62009-11-15 23:12:43 +00004877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004878 then :; else
4879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4880 fi
4881 # We set ac_cv_exeext here because the later test for it is not
4882 # safe: cross compilers may not add the suffix if given an `-o'
4883 # argument, so we may need to know it at that point already.
4884 # Even if this section looks crufty: it has the advantage of
4885 # actually working.
4886 break;;
4887 * )
4888 break;;
4889 esac
4890done
4891test "$ac_cv_exeext" = no && ac_cv_exeext=
4892
4893else
4894 ac_file=''
4895fi
cristy8b350f62009-11-15 23:12:43 +00004896if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900sed 's/^/| /' conftest.$ac_ext >&5
4901
cristy8b350f62009-11-15 23:12:43 +00004902{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004904as_fn_error 77 "C compiler cannot create executables
4905See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004906else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004909fi
cristycd4c5312009-11-22 01:19:08 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4911$as_echo_n "checking for C compiler default output file name... " >&6; }
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4913$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004914ac_exeext=$ac_cv_exeext
4915
cristycd4c5312009-11-22 01:19:08 +00004916rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004917ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004919$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004920if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
cristy8b350f62009-11-15 23:12:43 +00004925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004927 (eval "$ac_link") 2>&5
4928 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4933# work properly (i.e., refer to `conftest.exe'), while it won't with
4934# `rm'.
4935for ac_file in conftest.exe conftest conftest.*; do
4936 test -f "$ac_file" || continue
4937 case $ac_file in
4938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4940 break;;
4941 * ) break;;
4942 esac
4943done
4944else
cristy8b350f62009-11-15 23:12:43 +00004945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004947as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4948See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004949fi
cristycd4c5312009-11-22 01:19:08 +00004950rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_cv_exeext" >&6; }
4953
4954rm -f conftest.$ac_ext
4955EXEEXT=$ac_cv_exeext
4956ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959#include <stdio.h>
4960int
4961main ()
4962{
4963FILE *f = fopen ("conftest.out", "w");
4964 return ferror (f) || fclose (f) != 0;
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970ac_clean_files="$ac_clean_files conftest.out"
4971# Check that the compiler produces executables we can run. If not, either
4972# the compiler is broken, or we cross compile.
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4974$as_echo_n "checking whether we are cross compiling... " >&6; }
4975if test "$cross_compiling" != yes; then
4976 { { ac_try="$ac_link"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982$as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_link") 2>&5
4984 ac_status=$?
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }
4987 if { ac_try='./conftest$ac_cv_exeext'
4988 { { case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4993$as_echo "$ac_try_echo"; } >&5
4994 (eval "$ac_try") 2>&5
4995 ac_status=$?
4996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997 test $ac_status = 0; }; }; then
4998 cross_compiling=no
4999 else
5000 if test "$cross_compiling" = maybe; then
5001 cross_compiling=yes
5002 else
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005005as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005006If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005007See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005008 fi
5009 fi
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5012$as_echo "$cross_compiling" >&6; }
5013
5014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5015ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005018if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005019 $as_echo_n "(cached) " >&6
5020else
cristy8b350f62009-11-15 23:12:43 +00005021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005022/* end confdefs.h. */
5023
5024int
5025main ()
5026{
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005033if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
cristy8b350f62009-11-15 23:12:43 +00005038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005040 (eval "$ac_compile") 2>&5
5041 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005044 for ac_file in conftest.o conftest.obj conftest.*; do
5045 test -f "$ac_file" || continue;
5046 case $ac_file in
5047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5049 break;;
5050 esac
5051done
5052else
5053 $as_echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
cristy8b350f62009-11-15 23:12:43 +00005056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005058as_fn_error $? "cannot compute suffix of object files: cannot compile
5059See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f conftest.$ac_cv_objext conftest.$ac_ext
5062fi
cristy8b350f62009-11-15 23:12:43 +00005063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005064$as_echo "$ac_cv_objext" >&6; }
5065OBJEXT=$ac_cv_objext
5066ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005070 $as_echo_n "(cached) " >&6
5071else
cristy8b350f62009-11-15 23:12:43 +00005072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005073/* end confdefs.h. */
5074
5075int
5076main ()
5077{
5078#ifndef __GNUC__
5079 choke me
5080#endif
5081
5082 ;
5083 return 0;
5084}
5085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005087 ac_compiler_gnu=yes
5088else
cristy8b350f62009-11-15 23:12:43 +00005089 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristy3ed852e2009-09-05 21:47:34 +00005091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092ac_cv_c_compiler_gnu=$ac_compiler_gnu
5093
5094fi
cristy8b350f62009-11-15 23:12:43 +00005095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005096$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5097if test $ac_compiler_gnu = yes; then
5098 GCC=yes
5099else
5100 GCC=
5101fi
5102ac_test_CFLAGS=${CFLAGS+set}
5103ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005106if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005107 $as_echo_n "(cached) " >&6
5108else
5109 ac_save_c_werror_flag=$ac_c_werror_flag
5110 ac_c_werror_flag=yes
5111 ac_cv_prog_cc_g=no
5112 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005114/* end confdefs.h. */
5115
5116int
5117main ()
5118{
5119
5120 ;
5121 return 0;
5122}
5123_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005125 ac_cv_prog_cc_g=yes
5126else
cristy8b350f62009-11-15 23:12:43 +00005127 CFLAGS=""
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
5130
5131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005140
cristy8b350f62009-11-15 23:12:43 +00005141else
5142 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005143 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005145/* end confdefs.h. */
5146
5147int
5148main ()
5149{
5150
5151 ;
5152 return 0;
5153}
5154_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005156 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005157fi
cristy3ed852e2009-09-05 21:47:34 +00005158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
cristy3ed852e2009-09-05 21:47:34 +00005160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
cristy3ed852e2009-09-05 21:47:34 +00005162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 ac_c_werror_flag=$ac_save_c_werror_flag
5164fi
cristy8b350f62009-11-15 23:12:43 +00005165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005166$as_echo "$ac_cv_prog_cc_g" >&6; }
5167if test "$ac_test_CFLAGS" = set; then
5168 CFLAGS=$ac_save_CFLAGS
5169elif test $ac_cv_prog_cc_g = yes; then
5170 if test "$GCC" = yes; then
5171 CFLAGS="-g -O2"
5172 else
5173 CFLAGS="-g"
5174 fi
5175else
5176 if test "$GCC" = yes; then
5177 CFLAGS="-O2"
5178 else
5179 CFLAGS=
5180 fi
5181fi
cristy8b350f62009-11-15 23:12:43 +00005182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005183$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005184if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 ac_cv_prog_cc_c89=no
5188ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005190/* end confdefs.h. */
5191#include <stdarg.h>
5192#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005193struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195struct buf { int x; };
5196FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197static char *e (p, i)
5198 char **p;
5199 int i;
5200{
5201 return p[i];
5202}
5203static char *f (char * (*g) (char **, int), char **p, ...)
5204{
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5211}
5212
5213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5221
5222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224#define FOO(x) 'x'
5225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5226
5227int test (int i, double x);
5228struct s1 {int (*f) (int a);};
5229struct s2 {int (*f) (double a);};
5230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231int argc;
5232char **argv;
5233int
5234main ()
5235{
5236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5243do
5244 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005245 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005246 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005247fi
cristy3ed852e2009-09-05 21:47:34 +00005248rm -f core conftest.err conftest.$ac_objext
5249 test "x$ac_cv_prog_cc_c89" != "xno" && break
5250done
5251rm -f conftest.$ac_ext
5252CC=$ac_save_CC
5253
5254fi
5255# AC_CACHE_VAL
5256case "x$ac_cv_prog_cc_c89" in
5257 x)
cristy8b350f62009-11-15 23:12:43 +00005258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo "none needed" >&6; } ;;
5260 xno)
cristy8b350f62009-11-15 23:12:43 +00005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005262$as_echo "unsupported" >&6; } ;;
5263 *)
5264 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267esac
cristy8b350f62009-11-15 23:12:43 +00005268if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005269
cristy8b350f62009-11-15 23:12:43 +00005270fi
cristy3ed852e2009-09-05 21:47:34 +00005271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005277
cristy73bd4a52010-10-05 11:24:23 +00005278depcc="$CC" am_compiler_list=
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5281$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005282if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005283 $as_echo_n "(cached) " >&6
5284else
5285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286 # We make a subdir and do the tests there. Otherwise we can end up
5287 # making bogus files that we don't know about and never remove. For
5288 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005289 # making a dummy file named 'D' -- because '-MD' means "put the output
5290 # in D".
cristy7247bba2012-02-05 16:37:27 +00005291 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005292 mkdir conftest.dir
5293 # Copy depcomp to subdir because otherwise we won't find it if we're
5294 # using a relative directory.
5295 cp "$am_depcomp" conftest.dir
5296 cd conftest.dir
5297 # We will build objects and dependencies in a subdirectory because
5298 # it helps to detect inapplicable dependency modes. For instance
5299 # both Tru64's cc and ICC support -MD to output dependencies as a
5300 # side effect of compilation, but ICC will put the dependencies in
5301 # the current directory while Tru64 will put them in the object
5302 # directory.
5303 mkdir sub
5304
5305 am_cv_CC_dependencies_compiler_type=none
5306 if test "$am_compiler_list" = ""; then
5307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5308 fi
5309 am__universal=false
5310 case " $depcc " in #(
5311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5312 esac
5313
5314 for depmode in $am_compiler_list; do
5315 # Setup a source with many dependencies, because some compilers
5316 # like to wrap large dependency lists on column 80 (with \), and
5317 # we should not choose a depcomp mode which is confused by this.
5318 #
5319 # We need to recreate these files for each test, as the compiler may
5320 # overwrite some of them when testing with obscure command lines.
5321 # This happens at least with the AIX C compiler.
5322 : > sub/conftest.c
5323 for i in 1 2 3 4 5 6; do
5324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005325 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5326 # Solaris 10 /bin/sh.
5327 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005328 done
5329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5330
cristyc0890a62012-07-19 00:18:20 +00005331 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005332 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005333 # handle '-M -o', and we need to detect this. Also, some Intel
5334 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005335 am__obj=sub/conftest.${OBJEXT-o}
5336 am__minus_obj="-o $am__obj"
5337 case $depmode in
5338 gcc)
5339 # This depmode causes a compiler race in universal mode.
5340 test "$am__universal" = false || continue
5341 ;;
5342 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005343 # After this tag, mechanisms are not by side-effect, so they'll
5344 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005345 if test "x$enable_dependency_tracking" = xyes; then
5346 continue
5347 else
5348 break
5349 fi
5350 ;;
cristy7247bba2012-02-05 16:37:27 +00005351 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005352 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005353 # not run yet. These depmodes are late enough in the game, and
5354 # so weak that their functioning should not be impacted.
5355 am__obj=conftest.${OBJEXT-o}
5356 am__minus_obj=
5357 ;;
5358 none) break ;;
5359 esac
5360 if depmode=$depmode \
5361 source=sub/conftest.c object=$am__obj \
5362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5364 >/dev/null 2>conftest.err &&
5365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5369 # icc doesn't choke on unknown options, it will just issue warnings
5370 # or remarks (even with -Werror). So we grep stderr for any message
5371 # that says an option was ignored or not supported.
5372 # When given -MP, icc 7.0 and 7.1 complain thusly:
5373 # icc: Command line warning: ignoring option '-M'; no argument required
5374 # The diagnosis changed in icc 8.0:
5375 # icc: Command line remark: option '-MP' not supported
5376 if (grep 'ignoring option' conftest.err ||
5377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5378 am_cv_CC_dependencies_compiler_type=$depmode
5379 break
5380 fi
5381 fi
5382 done
5383
5384 cd ..
5385 rm -rf conftest.dir
5386else
5387 am_cv_CC_dependencies_compiler_type=none
5388fi
5389
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5394
5395 if
5396 test "x$enable_dependency_tracking" != xno \
5397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5398 am__fastdepCC_TRUE=
5399 am__fastdepCC_FALSE='#'
5400else
5401 am__fastdepCC_TRUE='#'
5402 am__fastdepCC_FALSE=
5403fi
5404
5405
cristy3ed852e2009-09-05 21:47:34 +00005406
cristya0b81c32010-01-22 02:54:33 +00005407ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5413$as_echo_n "checking how to run the C preprocessor... " >&6; }
5414# On Suns, sometimes $CPP names a directory.
5415if test -n "$CPP" && test -d "$CPP"; then
5416 CPP=
5417fi
5418if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005419 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005420 $as_echo_n "(cached) " >&6
5421else
5422 # Double quotes because CPP needs to be expanded
5423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5424 do
5425 ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#ifdef __STDC__
5437# include <limits.h>
5438#else
5439# include <assert.h>
5440#endif
5441 Syntax error
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445else
5446 # Broken: fails on valid input.
5447continue
5448fi
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459continue
5460else
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005469rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005470if $ac_preproc_ok; then :
5471 break
5472fi
5473
5474 done
5475 ac_cv_prog_CPP=$CPP
5476
5477fi
5478 CPP=$ac_cv_prog_CPP
5479else
5480 ac_cv_prog_CPP=$CPP
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5483$as_echo "$CPP" >&6; }
5484ac_preproc_ok=false
5485for ac_c_preproc_warn_flag in '' yes
5486do
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#ifdef __STDC__
5496# include <limits.h>
5497#else
5498# include <assert.h>
5499#endif
5500 Syntax error
5501_ACEOF
5502if ac_fn_c_try_cpp "$LINENO"; then :
5503
5504else
5505 # Broken: fails on valid input.
5506continue
5507fi
cristyda16f162011-02-19 23:52:17 +00005508rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h. */
5514#include <ac_nonexistent.h>
5515_ACEOF
5516if ac_fn_c_try_cpp "$LINENO"; then :
5517 # Broken: success on invalid input.
5518continue
5519else
5520 # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
cristyda16f162011-02-19 23:52:17 +00005524rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005525
5526done
5527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005528rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005529if $ac_preproc_ok; then :
5530
5531else
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005534as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5535See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005536fi
5537
5538ac_ext=c
5539ac_cpp='$CPP $CPPFLAGS'
5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5546$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005547if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005548 $as_echo_n "(cached) " >&6
5549else
5550 if test -z "$GREP"; then
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005561 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005562# Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564case `"$ac_path_GREP" --version 2>&1` in
5565*GNU*)
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567*)
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5571 do
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5583 fi
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588esac
5589
5590 $ac_path_GREP_found && break 3
5591 done
5592 done
5593 done
5594IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005596 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005597 fi
5598else
5599 ac_cv_path_GREP=$GREP
5600fi
5601
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5604$as_echo "$ac_cv_path_GREP" >&6; }
5605 GREP="$ac_cv_path_GREP"
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5609$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005610if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005611 $as_echo_n "(cached) " >&6
5612else
5613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5614 then ac_cv_path_EGREP="$GREP -E"
5615 else
5616 if test -z "$EGREP"; then
5617 ac_path_EGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in egrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005627 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005628# Check for GNU ac_path_EGREP and select it if it is found.
5629 # Check for GNU $ac_path_EGREP
5630case `"$ac_path_EGREP" --version 2>&1` in
5631*GNU*)
5632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633*)
5634 ac_count=0
5635 $as_echo_n 0123456789 >"conftest.in"
5636 while :
5637 do
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 $as_echo 'EGREP' >> "conftest.nl"
5642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 as_fn_arith $ac_count + 1 && ac_count=$as_val
5645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_EGREP="$ac_path_EGREP"
5648 ac_path_EGREP_max=$ac_count
5649 fi
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5652 done
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654esac
5655
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5659 done
5660IFS=$as_save_IFS
5661 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005662 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005663 fi
5664else
5665 ac_cv_path_EGREP=$EGREP
5666fi
5667
5668 fi
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5671$as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5673
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005677if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005678 $as_echo_n "(cached) " >&6
5679else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#include <stdlib.h>
5683#include <stdarg.h>
5684#include <string.h>
5685#include <float.h>
5686
5687int
5688main ()
5689{
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697else
5698 ac_cv_header_stdc=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <string.h>
5707
5708_ACEOF
5709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5711
5712else
5713 ac_cv_header_stdc=no
5714fi
5715rm -f conftest*
5716
5717fi
5718
5719if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723#include <stdlib.h>
5724
5725_ACEOF
5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5728
5729else
5730 ac_cv_header_stdc=no
5731fi
5732rm -f conftest*
5733
5734fi
5735
5736if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5739 :
5740else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743#include <ctype.h>
5744#include <stdlib.h>
5745#if ((' ' & 0x0FF) == 0x020)
5746# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748#else
5749# define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754#endif
5755
5756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757int
5758main ()
5759{
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_run "$LINENO"; then :
5769
5770else
5771 ac_cv_header_stdc=no
5772fi
5773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776
5777fi
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780$as_echo "$ac_cv_header_stdc" >&6; }
5781if test $ac_cv_header_stdc = yes; then
5782
5783$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5784
5785fi
5786
5787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5793"
cristy98dddb52010-11-04 00:30:15 +00005794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005795 cat >>confdefs.h <<_ACEOF
5796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797_ACEOF
5798
5799fi
5800
5801done
5802
5803
5804
5805 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 +00005806if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005807 MINIX=yes
5808else
5809 MINIX=
5810fi
5811
5812
5813 if test "$MINIX" = yes; then
5814
5815$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5816
5817
5818$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5819
5820
5821$as_echo "#define _MINIX 1" >>confdefs.h
5822
5823 fi
5824
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5827$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005828if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833
cristy14fefe52012-05-21 00:59:18 +00005834# define __EXTENSIONS__ 1
5835 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005836int
5837main ()
5838{
5839
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845 ac_cv_safe_to_define___extensions__=yes
5846else
5847 ac_cv_safe_to_define___extensions__=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5852$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5853 test $ac_cv_safe_to_define___extensions__ = yes &&
5854 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5855
5856 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5857
5858 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5859
5860 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5861
5862 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5863
5864
5865
5866# Check for programs
5867ac_ext=c
5868ac_cpp='$CPP $CPPFLAGS'
5869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}gcc; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$CC"; then
5881 ac_cv_prog_CC="$CC" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900CC=$ac_cv_prog_CC
5901if test -n "$CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5903$as_echo "$CC" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910fi
5911if test -z "$ac_cv_prog_CC"; then
5912 ac_ct_CC=$CC
5913 # Extract the first word of "gcc", so it can be a program name with args.
5914set dummy gcc; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005917if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005918 $as_echo_n "(cached) " >&6
5919else
5920 if test -n "$ac_ct_CC"; then
5921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005930 ac_cv_prog_ac_ct_CC="gcc"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935 done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_CC=$ac_cv_prog_ac_ct_CC
5941if test -n "$ac_ct_CC"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5943$as_echo "$ac_ct_CC" >&6; }
5944else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949 if test "x$ac_ct_CC" = x; then
5950 CC=""
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 CC=$ac_ct_CC
5959 fi
5960else
5961 CC="$ac_cv_prog_CC"
5962fi
5963
5964if test -z "$CC"; then
5965 if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5967set dummy ${ac_tool_prefix}cc; ac_word=$2
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005970if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005971 $as_echo_n "(cached) " >&6
5972else
5973 if test -n "$CC"; then
5974 ac_cv_prog_CC="$CC" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005983 ac_cv_prog_CC="${ac_tool_prefix}cc"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988 done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993CC=$ac_cv_prog_CC
5994if test -n "$CC"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5996$as_echo "$CC" >&6; }
5997else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002
6003 fi
6004fi
6005if test -z "$CC"; then
6006 # Extract the first word of "cc", so it can be a program name with args.
6007set dummy cc; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015else
6016 ac_prog_rejected=no
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6025 ac_prog_rejected=yes
6026 continue
6027 fi
6028 ac_cv_prog_CC="cc"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036if test $ac_prog_rejected = yes; then
6037 # We found a bogon in the path, so make sure we never use it.
6038 set dummy $ac_cv_prog_CC
6039 shift
6040 if test $# != 0; then
6041 # We chose a different compiler from the bogus one.
6042 # However, it has the same basename, so the bogon will be chosen
6043 # first if we set CC to just the basename; use the full file name.
6044 shift
6045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6046 fi
6047fi
6048fi
6049fi
6050CC=$ac_cv_prog_CC
6051if test -n "$CC"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6053$as_echo "$CC" >&6; }
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060fi
6061if test -z "$CC"; then
6062 if test -n "$ac_tool_prefix"; then
6063 for ac_prog in cl.exe
6064 do
6065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006069if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006070 $as_echo_n "(cached) " >&6
6071else
6072 if test -n "$CC"; then
6073 ac_cv_prog_CC="$CC" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087 done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092CC=$ac_cv_prog_CC
6093if test -n "$CC"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6095$as_echo "$CC" >&6; }
6096else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101
6102 test -n "$CC" && break
6103 done
6104fi
6105if test -z "$CC"; then
6106 ac_ct_CC=$CC
6107 for ac_prog in cl.exe
6108do
6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
6110set dummy $ac_prog; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006113if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$ac_ct_CC"; then
6117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006126 ac_cv_prog_ac_ct_CC="$ac_prog"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131 done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_CC=$ac_cv_prog_ac_ct_CC
6137if test -n "$ac_ct_CC"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6139$as_echo "$ac_ct_CC" >&6; }
6140else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146 test -n "$ac_ct_CC" && break
6147done
6148
6149 if test "x$ac_ct_CC" = x; then
6150 CC=""
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156ac_tool_warned=yes ;;
6157esac
6158 CC=$ac_ct_CC
6159 fi
6160fi
6161
6162fi
6163
6164
6165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006167as_fn_error $? "no acceptable C compiler found in \$PATH
6168See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006169
6170# Provide some information about the compiler.
6171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6172set X $ac_compile
6173ac_compiler=$2
6174for ac_option in --version -v -V -qversion; do
6175 { { ac_try="$ac_compiler $ac_option >&5"
6176case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6181$as_echo "$ac_try_echo"; } >&5
6182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6183 ac_status=$?
6184 if test -s conftest.err; then
6185 sed '10a\
6186... rest of stderr output deleted ...
6187 10q' conftest.err >conftest.er1
6188 cat conftest.er1 >&5
6189 fi
6190 rm -f conftest.er1 conftest.err
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }
6193done
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006197if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006198 $as_echo_n "(cached) " >&6
6199else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */
6202
6203int
6204main ()
6205{
6206#ifndef __GNUC__
6207 choke me
6208#endif
6209
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_compiler_gnu=yes
6216else
6217 ac_compiler_gnu=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220ac_cv_c_compiler_gnu=$ac_compiler_gnu
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6225if test $ac_compiler_gnu = yes; then
6226 GCC=yes
6227else
6228 GCC=
6229fi
6230ac_test_CFLAGS=${CFLAGS+set}
6231ac_save_CFLAGS=$CFLAGS
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6233$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006234if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006235 $as_echo_n "(cached) " >&6
6236else
6237 ac_save_c_werror_flag=$ac_c_werror_flag
6238 ac_c_werror_flag=yes
6239 ac_cv_prog_cc_g=no
6240 CFLAGS="-g"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243
6244int
6245main ()
6246{
6247
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_prog_cc_g=yes
6254else
6255 CFLAGS=""
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258
6259int
6260main ()
6261{
6262
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267if ac_fn_c_try_compile "$LINENO"; then :
6268
6269else
6270 ac_c_werror_flag=$ac_save_c_werror_flag
6271 CFLAGS="-g"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274
6275int
6276main ()
6277{
6278
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284 ac_cv_prog_cc_g=yes
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_c_werror_flag=$ac_save_c_werror_flag
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6294$as_echo "$ac_cv_prog_cc_g" >&6; }
6295if test "$ac_test_CFLAGS" = set; then
6296 CFLAGS=$ac_save_CFLAGS
6297elif test $ac_cv_prog_cc_g = yes; then
6298 if test "$GCC" = yes; then
6299 CFLAGS="-g -O2"
6300 else
6301 CFLAGS="-g"
6302 fi
6303else
6304 if test "$GCC" = yes; then
6305 CFLAGS="-O2"
6306 else
6307 CFLAGS=
6308 fi
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006312if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006313 $as_echo_n "(cached) " >&6
6314else
6315 ac_cv_prog_cc_c89=no
6316ac_save_CC=$CC
6317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319#include <stdarg.h>
6320#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006321struct stat;
cristya0b81c32010-01-22 02:54:33 +00006322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6323struct buf { int x; };
6324FILE * (*rcsopen) (struct buf *, struct stat *, int);
6325static char *e (p, i)
6326 char **p;
6327 int i;
6328{
6329 return p[i];
6330}
6331static char *f (char * (*g) (char **, int), char **p, ...)
6332{
6333 char *s;
6334 va_list v;
6335 va_start (v,p);
6336 s = g (p, va_arg (v,int));
6337 va_end (v);
6338 return s;
6339}
6340
6341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6342 function prototypes and stuff, but not '\xHH' hex character constants.
6343 These don't provoke an error unfortunately, instead are silently treated
6344 as 'x'. The following induces an error, until -std is added to get
6345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6346 array size at least. It's necessary to write '\x00'==0 to get something
6347 that's true only with -std. */
6348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6349
6350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6351 inside strings and character constants. */
6352#define FOO(x) 'x'
6353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6354
6355int test (int i, double x);
6356struct s1 {int (*f) (int a);};
6357struct s2 {int (*f) (double a);};
6358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6359int argc;
6360char **argv;
6361int
6362main ()
6363{
6364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6371do
6372 CC="$ac_save_CC $ac_arg"
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 ac_cv_prog_cc_c89=$ac_arg
6375fi
6376rm -f core conftest.err conftest.$ac_objext
6377 test "x$ac_cv_prog_cc_c89" != "xno" && break
6378done
6379rm -f conftest.$ac_ext
6380CC=$ac_save_CC
6381
6382fi
6383# AC_CACHE_VAL
6384case "x$ac_cv_prog_cc_c89" in
6385 x)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6387$as_echo "none needed" >&6; } ;;
6388 xno)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6390$as_echo "unsupported" >&6; } ;;
6391 *)
6392 CC="$CC $ac_cv_prog_cc_c89"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6395esac
6396if test "x$ac_cv_prog_cc_c89" != xno; then :
6397
6398fi
6399
6400ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
cristy73bd4a52010-10-05 11:24:23 +00006406depcc="$CC" am_compiler_list=
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6409$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006410if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006411 $as_echo_n "(cached) " >&6
6412else
6413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6414 # We make a subdir and do the tests there. Otherwise we can end up
6415 # making bogus files that we don't know about and never remove. For
6416 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006417 # making a dummy file named 'D' -- because '-MD' means "put the output
6418 # in D".
cristy7247bba2012-02-05 16:37:27 +00006419 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006420 mkdir conftest.dir
6421 # Copy depcomp to subdir because otherwise we won't find it if we're
6422 # using a relative directory.
6423 cp "$am_depcomp" conftest.dir
6424 cd conftest.dir
6425 # We will build objects and dependencies in a subdirectory because
6426 # it helps to detect inapplicable dependency modes. For instance
6427 # both Tru64's cc and ICC support -MD to output dependencies as a
6428 # side effect of compilation, but ICC will put the dependencies in
6429 # the current directory while Tru64 will put them in the object
6430 # directory.
6431 mkdir sub
6432
6433 am_cv_CC_dependencies_compiler_type=none
6434 if test "$am_compiler_list" = ""; then
6435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6436 fi
6437 am__universal=false
6438 case " $depcc " in #(
6439 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6440 esac
6441
6442 for depmode in $am_compiler_list; do
6443 # Setup a source with many dependencies, because some compilers
6444 # like to wrap large dependency lists on column 80 (with \), and
6445 # we should not choose a depcomp mode which is confused by this.
6446 #
6447 # We need to recreate these files for each test, as the compiler may
6448 # overwrite some of them when testing with obscure command lines.
6449 # This happens at least with the AIX C compiler.
6450 : > sub/conftest.c
6451 for i in 1 2 3 4 5 6; do
6452 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006453 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6454 # Solaris 10 /bin/sh.
6455 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006456 done
6457 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6458
cristyc0890a62012-07-19 00:18:20 +00006459 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006460 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006461 # handle '-M -o', and we need to detect this. Also, some Intel
6462 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006463 am__obj=sub/conftest.${OBJEXT-o}
6464 am__minus_obj="-o $am__obj"
6465 case $depmode in
6466 gcc)
6467 # This depmode causes a compiler race in universal mode.
6468 test "$am__universal" = false || continue
6469 ;;
6470 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006471 # After this tag, mechanisms are not by side-effect, so they'll
6472 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006473 if test "x$enable_dependency_tracking" = xyes; then
6474 continue
6475 else
6476 break
6477 fi
6478 ;;
cristy7247bba2012-02-05 16:37:27 +00006479 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006480 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006481 # not run yet. These depmodes are late enough in the game, and
6482 # so weak that their functioning should not be impacted.
6483 am__obj=conftest.${OBJEXT-o}
6484 am__minus_obj=
6485 ;;
6486 none) break ;;
6487 esac
6488 if depmode=$depmode \
6489 source=sub/conftest.c object=$am__obj \
6490 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6491 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6492 >/dev/null 2>conftest.err &&
6493 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6494 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6495 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6496 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6497 # icc doesn't choke on unknown options, it will just issue warnings
6498 # or remarks (even with -Werror). So we grep stderr for any message
6499 # that says an option was ignored or not supported.
6500 # When given -MP, icc 7.0 and 7.1 complain thusly:
6501 # icc: Command line warning: ignoring option '-M'; no argument required
6502 # The diagnosis changed in icc 8.0:
6503 # icc: Command line remark: option '-MP' not supported
6504 if (grep 'ignoring option' conftest.err ||
6505 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6506 am_cv_CC_dependencies_compiler_type=$depmode
6507 break
6508 fi
6509 fi
6510 done
6511
6512 cd ..
6513 rm -rf conftest.dir
6514else
6515 am_cv_CC_dependencies_compiler_type=none
6516fi
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6520$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6521CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6522
6523 if
6524 test "x$enable_dependency_tracking" != xno \
6525 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6526 am__fastdepCC_TRUE=
6527 am__fastdepCC_FALSE='#'
6528else
6529 am__fastdepCC_TRUE='#'
6530 am__fastdepCC_FALSE=
6531fi
6532
6533
cristy95646052009-11-28 23:05:30 +00006534ac_ext=cpp
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6539if test -z "$CXX"; then
6540 if test -n "$CCC"; then
6541 CXX=$CCC
6542 else
6543 if test -n "$ac_tool_prefix"; then
6544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6545 do
6546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006550if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$CXX"; then
6554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568 done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573CXX=$ac_cv_prog_CXX
6574if test -n "$CXX"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6576$as_echo "$CXX" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583 test -n "$CXX" && break
6584 done
6585fi
6586if test -z "$CXX"; then
6587 ac_ct_CXX=$CXX
6588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6589do
6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
6591set dummy $ac_prog; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 if test -n "$ac_ct_CXX"; then
6598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006607 ac_cv_prog_ac_ct_CXX="$ac_prog"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6618if test -n "$ac_ct_CXX"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6620$as_echo "$ac_ct_CXX" >&6; }
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627 test -n "$ac_ct_CXX" && break
6628done
6629
6630 if test "x$ac_ct_CXX" = x; then
6631 CXX="g++"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634yes:)
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637ac_tool_warned=yes ;;
6638esac
6639 CXX=$ac_ct_CXX
6640 fi
6641fi
6642
6643 fi
6644fi
6645# Provide some information about the compiler.
6646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6647set X $ac_compile
6648ac_compiler=$2
6649for ac_option in --version -v -V -qversion; do
6650 { { ac_try="$ac_compiler $ac_option >&5"
6651case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6656$as_echo "$ac_try_echo"; } >&5
6657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6658 ac_status=$?
6659 if test -s conftest.err; then
6660 sed '10a\
6661... rest of stderr output deleted ...
6662 10q' conftest.err >conftest.er1
6663 cat conftest.er1 >&5
6664 fi
6665 rm -f conftest.er1 conftest.err
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668done
6669
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6671$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006672if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006673 $as_echo_n "(cached) " >&6
6674else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681#ifndef __GNUC__
6682 choke me
6683#endif
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689if ac_fn_cxx_try_compile "$LINENO"; then :
6690 ac_compiler_gnu=yes
6691else
6692 ac_compiler_gnu=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6696
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6699$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6700if test $ac_compiler_gnu = yes; then
6701 GXX=yes
6702else
6703 GXX=
6704fi
6705ac_test_CXXFLAGS=${CXXFLAGS+set}
6706ac_save_CXXFLAGS=$CXXFLAGS
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6708$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006709if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006710 $as_echo_n "(cached) " >&6
6711else
6712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6713 ac_cxx_werror_flag=yes
6714 ac_cv_prog_cxx_g=no
6715 CXXFLAGS="-g"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h. */
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_cxx_try_compile "$LINENO"; then :
6728 ac_cv_prog_cxx_g=yes
6729else
6730 CXXFLAGS=""
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733
6734int
6735main ()
6736{
6737
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742if ac_fn_cxx_try_compile "$LINENO"; then :
6743
6744else
6745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6746 CXXFLAGS="-g"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749
6750int
6751main ()
6752{
6753
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758if ac_fn_cxx_try_compile "$LINENO"; then :
6759 ac_cv_prog_cxx_g=yes
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6769$as_echo "$ac_cv_prog_cxx_g" >&6; }
6770if test "$ac_test_CXXFLAGS" = set; then
6771 CXXFLAGS=$ac_save_CXXFLAGS
6772elif test $ac_cv_prog_cxx_g = yes; then
6773 if test "$GXX" = yes; then
6774 CXXFLAGS="-g -O2"
6775 else
6776 CXXFLAGS="-g"
6777 fi
6778else
6779 if test "$GXX" = yes; then
6780 CXXFLAGS="-O2"
6781 else
6782 CXXFLAGS=
6783 fi
6784fi
6785ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
cristy73bd4a52010-10-05 11:24:23 +00006791depcc="$CXX" am_compiler_list=
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6794$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006795if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006796 $as_echo_n "(cached) " >&6
6797else
6798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6799 # We make a subdir and do the tests there. Otherwise we can end up
6800 # making bogus files that we don't know about and never remove. For
6801 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006802 # making a dummy file named 'D' -- because '-MD' means "put the output
6803 # in D".
cristy7247bba2012-02-05 16:37:27 +00006804 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006805 mkdir conftest.dir
6806 # Copy depcomp to subdir because otherwise we won't find it if we're
6807 # using a relative directory.
6808 cp "$am_depcomp" conftest.dir
6809 cd conftest.dir
6810 # We will build objects and dependencies in a subdirectory because
6811 # it helps to detect inapplicable dependency modes. For instance
6812 # both Tru64's cc and ICC support -MD to output dependencies as a
6813 # side effect of compilation, but ICC will put the dependencies in
6814 # the current directory while Tru64 will put them in the object
6815 # directory.
6816 mkdir sub
6817
6818 am_cv_CXX_dependencies_compiler_type=none
6819 if test "$am_compiler_list" = ""; then
6820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6821 fi
6822 am__universal=false
6823 case " $depcc " in #(
6824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6825 esac
6826
6827 for depmode in $am_compiler_list; do
6828 # Setup a source with many dependencies, because some compilers
6829 # like to wrap large dependency lists on column 80 (with \), and
6830 # we should not choose a depcomp mode which is confused by this.
6831 #
6832 # We need to recreate these files for each test, as the compiler may
6833 # overwrite some of them when testing with obscure command lines.
6834 # This happens at least with the AIX C compiler.
6835 : > sub/conftest.c
6836 for i in 1 2 3 4 5 6; do
6837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6839 # Solaris 10 /bin/sh.
6840 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006841 done
6842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6843
cristyc0890a62012-07-19 00:18:20 +00006844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006845 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006846 # handle '-M -o', and we need to detect this. Also, some Intel
6847 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006848 am__obj=sub/conftest.${OBJEXT-o}
6849 am__minus_obj="-o $am__obj"
6850 case $depmode in
6851 gcc)
6852 # This depmode causes a compiler race in universal mode.
6853 test "$am__universal" = false || continue
6854 ;;
6855 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006856 # After this tag, mechanisms are not by side-effect, so they'll
6857 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006858 if test "x$enable_dependency_tracking" = xyes; then
6859 continue
6860 else
6861 break
6862 fi
6863 ;;
cristy7247bba2012-02-05 16:37:27 +00006864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006865 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006866 # not run yet. These depmodes are late enough in the game, and
6867 # so weak that their functioning should not be impacted.
6868 am__obj=conftest.${OBJEXT-o}
6869 am__minus_obj=
6870 ;;
6871 none) break ;;
6872 esac
6873 if depmode=$depmode \
6874 source=sub/conftest.c object=$am__obj \
6875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6877 >/dev/null 2>conftest.err &&
6878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6882 # icc doesn't choke on unknown options, it will just issue warnings
6883 # or remarks (even with -Werror). So we grep stderr for any message
6884 # that says an option was ignored or not supported.
6885 # When given -MP, icc 7.0 and 7.1 complain thusly:
6886 # icc: Command line warning: ignoring option '-M'; no argument required
6887 # The diagnosis changed in icc 8.0:
6888 # icc: Command line remark: option '-MP' not supported
6889 if (grep 'ignoring option' conftest.err ||
6890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6891 am_cv_CXX_dependencies_compiler_type=$depmode
6892 break
6893 fi
6894 fi
6895 done
6896
6897 cd ..
6898 rm -rf conftest.dir
6899else
6900 am_cv_CXX_dependencies_compiler_type=none
6901fi
6902
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6905$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6906CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6907
6908 if
6909 test "x$enable_dependency_tracking" != xno \
6910 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6911 am__fastdepCXX_TRUE=
6912 am__fastdepCXX_FALSE='#'
6913else
6914 am__fastdepCXX_TRUE='#'
6915 am__fastdepCXX_FALSE=
6916fi
6917
6918
cristy8b350f62009-11-15 23:12:43 +00006919 case $ac_cv_prog_cc_stdc in #(
6920 no) :
6921 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6922 *) :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006925if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 $as_echo_n "(cached) " >&6
6927else
6928 ac_cv_prog_cc_c99=no
6929ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006931/* end confdefs.h. */
6932#include <stdarg.h>
6933#include <stdbool.h>
6934#include <stdlib.h>
6935#include <wchar.h>
6936#include <stdio.h>
6937
6938// Check varargs macros. These examples are taken from C99 6.10.3.5.
6939#define debug(...) fprintf (stderr, __VA_ARGS__)
6940#define showlist(...) puts (#__VA_ARGS__)
6941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6942static void
6943test_varargs_macros (void)
6944{
6945 int x = 1234;
6946 int y = 5678;
6947 debug ("Flag");
6948 debug ("X = %d\n", x);
6949 showlist (The first, second, and third items.);
6950 report (x>y, "x is %d but y is %d", x, y);
6951}
6952
6953// Check long long types.
6954#define BIG64 18446744073709551615ull
6955#define BIG32 4294967295ul
6956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6957#if !BIG_OK
6958 your preprocessor is broken;
6959#endif
6960#if BIG_OK
6961#else
6962 your preprocessor is broken;
6963#endif
6964static long long int bignum = -9223372036854775807LL;
6965static unsigned long long int ubignum = BIG64;
6966
6967struct incomplete_array
6968{
6969 int datasize;
6970 double data[];
6971};
6972
6973struct named_init {
6974 int number;
6975 const wchar_t *name;
6976 double average;
6977};
6978
6979typedef const char *ccp;
6980
6981static inline int
6982test_restrict (ccp restrict text)
6983{
6984 // See if C++-style comments work.
6985 // Iterate through items via the restricted pointer.
6986 // Also check for declarations in for loops.
6987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6988 continue;
6989 return 0;
6990}
6991
6992// Check varargs and va_copy.
6993static void
6994test_varargs (const char *format, ...)
6995{
6996 va_list args;
6997 va_start (args, format);
6998 va_list args_copy;
6999 va_copy (args_copy, args);
7000
7001 const char *str;
7002 int number;
7003 float fnumber;
7004
7005 while (*format)
7006 {
7007 switch (*format++)
7008 {
7009 case 's': // string
7010 str = va_arg (args_copy, const char *);
7011 break;
7012 case 'd': // int
7013 number = va_arg (args_copy, int);
7014 break;
7015 case 'f': // float
7016 fnumber = va_arg (args_copy, double);
7017 break;
7018 default:
7019 break;
7020 }
7021 }
7022 va_end (args_copy);
7023 va_end (args);
7024}
7025
7026int
7027main ()
7028{
7029
7030 // Check bool.
7031 _Bool success = false;
7032
7033 // Check restrict.
7034 if (test_restrict ("String literal") == 0)
7035 success = true;
7036 char *restrict newvar = "Another string";
7037
7038 // Check varargs.
7039 test_varargs ("s, d' f .", "string", 65, 34.234);
7040 test_varargs_macros ();
7041
7042 // Check flexible array members.
7043 struct incomplete_array *ia =
7044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7045 ia->datasize = 10;
7046 for (int i = 0; i < ia->datasize; ++i)
7047 ia->data[i] = i * 1.234;
7048
7049 // Check named initializers.
7050 struct named_init ni = {
7051 .number = 34,
7052 .name = L"Test wide string",
7053 .average = 543.34343,
7054 };
7055
7056 ni.number = 58;
7057
7058 int dynamic_array[ni.number];
7059 dynamic_array[ni.number - 1] = 543;
7060
7061 // work around unused variable warnings
7062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7063 || dynamic_array[ni.number - 1] != 543);
7064
7065 ;
7066 return 0;
7067}
7068_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007070do
7071 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007072 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007074fi
cristy3ed852e2009-09-05 21:47:34 +00007075rm -f core conftest.err conftest.$ac_objext
7076 test "x$ac_cv_prog_cc_c99" != "xno" && break
7077done
7078rm -f conftest.$ac_ext
7079CC=$ac_save_CC
7080
7081fi
7082# AC_CACHE_VAL
7083case "x$ac_cv_prog_cc_c99" in
7084 x)
cristy8b350f62009-11-15 23:12:43 +00007085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "none needed" >&6; } ;;
7087 xno)
cristy8b350f62009-11-15 23:12:43 +00007088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo "unsupported" >&6; } ;;
7090 *)
7091 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7094esac
cristy8b350f62009-11-15 23:12:43 +00007095if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7097else
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 ac_cv_prog_cc_c89=no
7104ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007106/* end confdefs.h. */
7107#include <stdarg.h>
7108#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007109struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7111struct buf { int x; };
7112FILE * (*rcsopen) (struct buf *, struct stat *, int);
7113static char *e (p, i)
7114 char **p;
7115 int i;
7116{
7117 return p[i];
7118}
7119static char *f (char * (*g) (char **, int), char **p, ...)
7120{
7121 char *s;
7122 va_list v;
7123 va_start (v,p);
7124 s = g (p, va_arg (v,int));
7125 va_end (v);
7126 return s;
7127}
7128
7129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7130 function prototypes and stuff, but not '\xHH' hex character constants.
7131 These don't provoke an error unfortunately, instead are silently treated
7132 as 'x'. The following induces an error, until -std is added to get
7133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7134 array size at least. It's necessary to write '\x00'==0 to get something
7135 that's true only with -std. */
7136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7137
7138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7139 inside strings and character constants. */
7140#define FOO(x) 'x'
7141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7142
7143int test (int i, double x);
7144struct s1 {int (*f) (int a);};
7145struct s2 {int (*f) (double a);};
7146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7147int argc;
7148char **argv;
7149int
7150main ()
7151{
7152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7159do
7160 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007161 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007163fi
cristy3ed852e2009-09-05 21:47:34 +00007164rm -f core conftest.err conftest.$ac_objext
7165 test "x$ac_cv_prog_cc_c89" != "xno" && break
7166done
7167rm -f conftest.$ac_ext
7168CC=$ac_save_CC
7169
7170fi
7171# AC_CACHE_VAL
7172case "x$ac_cv_prog_cc_c89" in
7173 x)
cristy8b350f62009-11-15 23:12:43 +00007174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007175$as_echo "none needed" >&6; } ;;
7176 xno)
cristy8b350f62009-11-15 23:12:43 +00007177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007178$as_echo "unsupported" >&6; } ;;
7179 *)
7180 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7183esac
cristy8b350f62009-11-15 23:12:43 +00007184if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7186else
7187 ac_cv_prog_cc_stdc=no
7188fi
7189
cristy3ed852e2009-09-05 21:47:34 +00007190fi
cristy3ed852e2009-09-05 21:47:34 +00007191 ;;
7192esac
cristy8b350f62009-11-15 23:12:43 +00007193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007194$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007195 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007196 $as_echo_n "(cached) " >&6
7197fi
7198
cristy8b350f62009-11-15 23:12:43 +00007199 case $ac_cv_prog_cc_stdc in #(
7200 no) :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7202$as_echo "unsupported" >&6; } ;; #(
7203 '') :
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205$as_echo "none needed" >&6; } ;; #(
7206 *) :
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7209esac
7210
cristy3ed852e2009-09-05 21:47:34 +00007211ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007217$as_echo_n "checking how to run the C preprocessor... " >&6; }
7218# On Suns, sometimes $CPP names a directory.
7219if test -n "$CPP" && test -d "$CPP"; then
7220 CPP=
7221fi
7222if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007223 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 # Double quotes because CPP needs to be expanded
7227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7228 do
7229 ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007247if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248
cristy8b350f62009-11-15 23:12:43 +00007249else
cristy3ed852e2009-09-05 21:47:34 +00007250 # Broken: fails on valid input.
7251continue
7252fi
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: success on invalid input.
7263continue
7264else
cristy3ed852e2009-09-05 21:47:34 +00007265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007273rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007274if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007275 break
7276fi
7277
7278 done
7279 ac_cv_prog_CPP=$CPP
7280
7281fi
7282 CPP=$ac_cv_prog_CPP
7283else
7284 ac_cv_prog_CPP=$CPP
7285fi
cristy8b350f62009-11-15 23:12:43 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007287$as_echo "$CPP" >&6; }
7288ac_preproc_ok=false
7289for ac_c_preproc_warn_flag in '' yes
7290do
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007298/* end confdefs.h. */
7299#ifdef __STDC__
7300# include <limits.h>
7301#else
7302# include <assert.h>
7303#endif
7304 Syntax error
7305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007306if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007307
cristy8b350f62009-11-15 23:12:43 +00007308else
cristy3ed852e2009-09-05 21:47:34 +00007309 # Broken: fails on valid input.
7310continue
7311fi
cristyda16f162011-02-19 23:52:17 +00007312rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007313
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007317/* end confdefs.h. */
7318#include <ac_nonexistent.h>
7319_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007320if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007321 # Broken: success on invalid input.
7322continue
7323else
cristy3ed852e2009-09-05 21:47:34 +00007324 # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
cristyda16f162011-02-19 23:52:17 +00007328rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007329
7330done
7331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007332rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007333if $ac_preproc_ok; then :
7334
cristy3ed852e2009-09-05 21:47:34 +00007335else
cristy8b350f62009-11-15 23:12:43 +00007336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007338as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7339See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007340fi
7341
7342ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
cristy73bd4a52010-10-05 11:24:23 +00007348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7349$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007350if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007351 $as_echo_n "(cached) " >&6
7352else
7353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7354 for ac_i in 1 2 3 4 5 6 7; do
7355 ac_script="$ac_script$as_nl$ac_script"
7356 done
7357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7358 { ac_script=; unset ac_script;}
7359 if test -z "$SED"; then
7360 ac_path_SED_found=false
7361 # Loop through the user's path and test for each of PROGNAME-LIST
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_prog in sed gsed; do
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007370 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007371# Check for GNU ac_path_SED and select it if it is found.
7372 # Check for GNU $ac_path_SED
7373case `"$ac_path_SED" --version 2>&1` in
7374*GNU*)
7375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7376*)
7377 ac_count=0
7378 $as_echo_n 0123456789 >"conftest.in"
7379 while :
7380 do
7381 cat "conftest.in" "conftest.in" >"conftest.tmp"
7382 mv "conftest.tmp" "conftest.in"
7383 cp "conftest.in" "conftest.nl"
7384 $as_echo '' >> "conftest.nl"
7385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387 as_fn_arith $ac_count + 1 && ac_count=$as_val
7388 if test $ac_count -gt ${ac_path_SED_max-0}; then
7389 # Best one so far, save it but keep looking for a better one
7390 ac_cv_path_SED="$ac_path_SED"
7391 ac_path_SED_max=$ac_count
7392 fi
7393 # 10*(2^10) chars as input seems more than enough
7394 test $ac_count -gt 10 && break
7395 done
7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397esac
7398
7399 $ac_path_SED_found && break 3
7400 done
7401 done
7402 done
7403IFS=$as_save_IFS
7404 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007405 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007406 fi
7407else
7408 ac_cv_path_SED=$SED
7409fi
7410
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7413$as_echo "$ac_cv_path_SED" >&6; }
7414 SED="$ac_cv_path_SED"
7415 rm -f conftest.sed
7416
7417test -z "$SED" && SED=sed
7418Xsed="$SED -e 1s/^X//"
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7431$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007432if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007433 $as_echo_n "(cached) " >&6
7434else
7435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7436 then ac_cv_path_FGREP="$GREP -F"
7437 else
7438 if test -z "$FGREP"; then
7439 ac_path_FGREP_found=false
7440 # Loop through the user's path and test for each of PROGNAME-LIST
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_prog in fgrep; do
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007449 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007450# Check for GNU ac_path_FGREP and select it if it is found.
7451 # Check for GNU $ac_path_FGREP
7452case `"$ac_path_FGREP" --version 2>&1` in
7453*GNU*)
7454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7455*)
7456 ac_count=0
7457 $as_echo_n 0123456789 >"conftest.in"
7458 while :
7459 do
7460 cat "conftest.in" "conftest.in" >"conftest.tmp"
7461 mv "conftest.tmp" "conftest.in"
7462 cp "conftest.in" "conftest.nl"
7463 $as_echo 'FGREP' >> "conftest.nl"
7464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7466 as_fn_arith $ac_count + 1 && ac_count=$as_val
7467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7468 # Best one so far, save it but keep looking for a better one
7469 ac_cv_path_FGREP="$ac_path_FGREP"
7470 ac_path_FGREP_max=$ac_count
7471 fi
7472 # 10*(2^10) chars as input seems more than enough
7473 test $ac_count -gt 10 && break
7474 done
7475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476esac
7477
7478 $ac_path_FGREP_found && break 3
7479 done
7480 done
7481 done
7482IFS=$as_save_IFS
7483 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007485 fi
7486else
7487 ac_cv_path_FGREP=$FGREP
7488fi
7489
7490 fi
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7493$as_echo "$ac_cv_path_FGREP" >&6; }
7494 FGREP="$ac_cv_path_FGREP"
7495
7496
7497test -z "$GREP" && GREP=grep
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
cristy0c60a692010-11-04 01:09:47 +00007515ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7517ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7518
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7520$as_echo_n "checking how to print strings... " >&6; }
7521# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007522if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007523 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7524 ECHO='print -r --'
7525elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7526 ECHO='printf %s\n'
7527else
7528 # Use this function as a fallback that always works.
7529 func_fallback_echo ()
7530 {
7531 eval 'cat <<_LTECHO_EOF
7532$1
7533_LTECHO_EOF'
7534 }
7535 ECHO='func_fallback_echo'
7536fi
7537
7538# func_echo_all arg...
7539# Invoke $ECHO with all args, space-separated.
7540func_echo_all ()
7541{
7542 $ECHO ""
7543}
7544
7545case "$ECHO" in
7546 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7547$as_echo "printf" >&6; } ;;
7548 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7549$as_echo "print -r" >&6; } ;;
7550 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7551$as_echo "cat" >&6; } ;;
7552esac
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
cristy73bd4a52010-10-05 11:24:23 +00007567
7568
7569# Check whether --with-gnu-ld was given.
7570if test "${with_gnu_ld+set}" = set; then :
7571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7572else
7573 with_gnu_ld=no
7574fi
7575
7576ac_prog=ld
7577if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580$as_echo_n "checking for ld used by $CC... " >&6; }
7581 case $host in
7582 *-*-mingw*)
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7585 *)
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7587 esac
7588 case $ac_prog in
7589 # Accept absolute paths.
7590 [\\/]* | ?:[\\/]*)
7591 re_direlt='/[^/][^/]*/\.\./'
7592 # Canonicalize the pathname of ld
7593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7596 done
7597 test -z "$LD" && LD="$ac_prog"
7598 ;;
7599 "")
7600 # If it fails, then pretend we aren't using GCC.
7601 ac_prog=ld
7602 ;;
7603 *)
7604 # If it is relative, then search for the first ld in PATH.
7605 with_gnu_ld=unknown
7606 ;;
7607 esac
7608elif test "$with_gnu_ld" = yes; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7610$as_echo_n "checking for GNU ld... " >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613$as_echo_n "checking for non-GNU ld... " >&6; }
7614fi
cristyda16f162011-02-19 23:52:17 +00007615if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007616 $as_echo_n "(cached) " >&6
7617else
7618 if test -z "$LD"; then
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 for ac_dir in $PATH; do
7621 IFS="$lt_save_ifs"
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 lt_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
7626 # but apparently some variants of GNU ld only accept -v.
7627 # Break only if it was the GNU/non-GNU ld that we prefer.
7628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630 test "$with_gnu_ld" != no && break
7631 ;;
7632 *)
7633 test "$with_gnu_ld" != yes && break
7634 ;;
7635 esac
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639else
7640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7641fi
7642fi
7643
7644LD="$lt_cv_path_LD"
7645if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647$as_echo "$LD" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
cristy98dddb52010-11-04 00:30:15 +00007652test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007655if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659case `$LD -v 2>&1 </dev/null` in
7660*GNU* | *'with BFD'*)
7661 lt_cv_prog_gnu_ld=yes
7662 ;;
7663*)
7664 lt_cv_prog_gnu_ld=no
7665 ;;
7666esac
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7669$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7670with_gnu_ld=$lt_cv_prog_gnu_ld
7671
7672
7673
7674
7675
7676
7677
7678
7679
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy837d6dc2010-02-27 01:16:57 +00007681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7682$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007683if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007684 $as_echo_n "(cached) " >&6
7685else
7686 ac_cv_prog_cc_c99=no
7687ac_save_CC=$CC
7688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h. */
7690#include <stdarg.h>
7691#include <stdbool.h>
7692#include <stdlib.h>
7693#include <wchar.h>
7694#include <stdio.h>
7695
7696// Check varargs macros. These examples are taken from C99 6.10.3.5.
7697#define debug(...) fprintf (stderr, __VA_ARGS__)
7698#define showlist(...) puts (#__VA_ARGS__)
7699#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7700static void
7701test_varargs_macros (void)
7702{
7703 int x = 1234;
7704 int y = 5678;
7705 debug ("Flag");
7706 debug ("X = %d\n", x);
7707 showlist (The first, second, and third items.);
7708 report (x>y, "x is %d but y is %d", x, y);
7709}
7710
7711// Check long long types.
7712#define BIG64 18446744073709551615ull
7713#define BIG32 4294967295ul
7714#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7715#if !BIG_OK
7716 your preprocessor is broken;
7717#endif
7718#if BIG_OK
7719#else
7720 your preprocessor is broken;
7721#endif
7722static long long int bignum = -9223372036854775807LL;
7723static unsigned long long int ubignum = BIG64;
7724
7725struct incomplete_array
7726{
7727 int datasize;
7728 double data[];
7729};
7730
7731struct named_init {
7732 int number;
7733 const wchar_t *name;
7734 double average;
7735};
7736
7737typedef const char *ccp;
7738
7739static inline int
7740test_restrict (ccp restrict text)
7741{
7742 // See if C++-style comments work.
7743 // Iterate through items via the restricted pointer.
7744 // Also check for declarations in for loops.
7745 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7746 continue;
7747 return 0;
7748}
7749
7750// Check varargs and va_copy.
7751static void
7752test_varargs (const char *format, ...)
7753{
7754 va_list args;
7755 va_start (args, format);
7756 va_list args_copy;
7757 va_copy (args_copy, args);
7758
7759 const char *str;
7760 int number;
7761 float fnumber;
7762
7763 while (*format)
7764 {
7765 switch (*format++)
7766 {
7767 case 's': // string
7768 str = va_arg (args_copy, const char *);
7769 break;
7770 case 'd': // int
7771 number = va_arg (args_copy, int);
7772 break;
7773 case 'f': // float
7774 fnumber = va_arg (args_copy, double);
7775 break;
7776 default:
7777 break;
7778 }
7779 }
7780 va_end (args_copy);
7781 va_end (args);
7782}
7783
7784int
7785main ()
7786{
7787
7788 // Check bool.
7789 _Bool success = false;
7790
7791 // Check restrict.
7792 if (test_restrict ("String literal") == 0)
7793 success = true;
7794 char *restrict newvar = "Another string";
7795
7796 // Check varargs.
7797 test_varargs ("s, d' f .", "string", 65, 34.234);
7798 test_varargs_macros ();
7799
7800 // Check flexible array members.
7801 struct incomplete_array *ia =
7802 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7803 ia->datasize = 10;
7804 for (int i = 0; i < ia->datasize; ++i)
7805 ia->data[i] = i * 1.234;
7806
7807 // Check named initializers.
7808 struct named_init ni = {
7809 .number = 34,
7810 .name = L"Test wide string",
7811 .average = 543.34343,
7812 };
7813
7814 ni.number = 58;
7815
7816 int dynamic_array[ni.number];
7817 dynamic_array[ni.number - 1] = 543;
7818
7819 // work around unused variable warnings
7820 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7821 || dynamic_array[ni.number - 1] != 543);
7822
7823 ;
7824 return 0;
7825}
7826_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007827for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007828do
7829 CC="$ac_save_CC $ac_arg"
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 ac_cv_prog_cc_c99=$ac_arg
7832fi
7833rm -f core conftest.err conftest.$ac_objext
7834 test "x$ac_cv_prog_cc_c99" != "xno" && break
7835done
7836rm -f conftest.$ac_ext
7837CC=$ac_save_CC
7838
7839fi
7840# AC_CACHE_VAL
7841case "x$ac_cv_prog_cc_c99" in
7842 x)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7844$as_echo "none needed" >&6; } ;;
7845 xno)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7847$as_echo "unsupported" >&6; } ;;
7848 *)
7849 CC="$CC $ac_cv_prog_cc_c99"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7851$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7852esac
7853if test "x$ac_cv_prog_cc_c99" != xno; then :
7854
7855fi
7856
7857
cristy73bd4a52010-10-05 11:24:23 +00007858if test "x$CC" != xcc; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7860$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7861else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7863$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7864fi
7865set dummy $CC; ac_cc=`$as_echo "$2" |
7866 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007867if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007868 $as_echo_n "(cached) " >&6
7869else
cristy73bd4a52010-10-05 11:24:23 +00007870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872
7873int
7874main ()
7875{
7876
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881# Make sure it works both with $CC and with simple cc.
7882# We do the test twice because some compilers refuse to overwrite an
7883# existing .o file with -o, though they will create one.
7884ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7885rm -f conftest2.*
7886if { { case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7891$as_echo "$ac_try_echo"; } >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; } &&
7896 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7901$as_echo "$ac_try_echo"; } >&5
7902 (eval "$ac_try") 2>&5
7903 ac_status=$?
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; };
7906then
7907 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7908 if test "x$CC" != xcc; then
7909 # Test first that cc exists at all.
7910 if { ac_try='cc -c conftest.$ac_ext >&5'
7911 { { case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7916$as_echo "$ac_try_echo"; } >&5
7917 (eval "$ac_try") 2>&5
7918 ac_status=$?
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; }; then
7921 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7922 rm -f conftest2.*
7923 if { { case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7928$as_echo "$ac_try_echo"; } >&5
7929 (eval "$ac_try") 2>&5
7930 ac_status=$?
7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932 test $ac_status = 0; } &&
7933 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7938$as_echo "$ac_try_echo"; } >&5
7939 (eval "$ac_try") 2>&5
7940 ac_status=$?
7941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; };
7943 then
7944 # cc works too.
7945 :
7946 else
7947 # cc exists but doesn't like -o.
7948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7949 fi
7950 fi
7951 fi
7952else
7953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7954fi
7955rm -f core conftest*
7956
7957fi
7958if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964
7965$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7966
7967fi
7968
7969# FIXME: we rely on the cache variable name because
7970# there is no other way.
7971set dummy $CC
7972am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7973eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7974if test "$am_t" != yes; then
7975 # Losing compiler, so override with the script.
7976 # FIXME: It is wrong to rewrite CC.
7977 # But if we don't then we get into trouble of one sort or another.
7978 # A longer-term fix would be to have automake use am__CC in this case,
7979 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7980 CC="$am_aux_dir/compile $CC"
7981fi
7982
7983
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7985$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007986if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007987 $as_echo_n "(cached) " >&6
7988else
7989 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996 ac_save_CFLAGS="$CFLAGS"
7997for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7998do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001
8002int
8003main ()
8004{
cristy24fc1fe2010-10-23 21:13:01 +00008005
cristy73bd4a52010-10-05 11:24:23 +00008006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014done
8015 CFLAGS="$ac_save_CFLAGS"
8016 ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8025$as_echo "$ac_cv_cflags_warn_all" >&6; }
8026case ".$ac_cv_cflags_warn_all" in
8027 .ok|.ok,*) ;;
8028 .|.no|.no,*)
8029 ;;
8030 *)
8031 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8032 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8033 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }
8037 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8038 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }
8042 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8043 fi
8044 ;;
nicolas6237c462010-10-05 06:11:49 +00008045esac
cristy3ed852e2009-09-05 21:47:34 +00008046
cristy016e8b82012-12-26 12:11:06 +00008047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8048$as_echo_n "checking for C compiler vendor... " >&6; }
8049if ${ax_cv_c_compiler_vendor+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 # note: don't check for gcc first since some other compilers define __GNUC__
8053 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8054 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8055 pathscale: __PATHCC__,__PATHSCALE__
8056 clang: __clang__
8057 gnu: __GNUC__
8058 sun: __SUNPRO_C,__SUNPRO_CC
8059 hp: __HP_cc,__HP_aCC
8060 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8061 borland: __BORLANDC__,__TURBOC__
8062 comeau: __COMO__
8063 cray: _CRAYC
8064 kai: __KCC
8065 lcc: __LCC__
8066 sgi: __sgi,sgi
8067 microsoft: _MSC_VER
8068 metrowerks: __MWERKS__
8069 watcom: __WATCOMC__
8070 portland: __PGI
8071 unknown: UNKNOWN"
8072 for ventest in $vendors; do
8073 case $ventest in
8074 *:) vendor=$ventest; continue ;;
8075 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8076 esac
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080int
8081main ()
8082{
8083
8084 #if !($vencpp)
8085 thisisanerror;
8086 #endif
8087
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_compile "$LINENO"; then :
8093 break
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 done
8097 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8098
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8101$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8102
cristya0b81c32010-01-22 02:54:33 +00008103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8106set x ${MAKE-make}
8107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008108if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008109 $as_echo_n "(cached) " >&6
8110else
8111 cat >conftest.make <<\_ACEOF
8112SHELL = /bin/sh
8113all:
8114 @echo '@@@%%%=$(MAKE)=@@@%%%'
8115_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008116# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008117case `${MAKE-make} -f conftest.make 2>/dev/null` in
8118 *@@@%%%=?*=@@@%%%*)
8119 eval ac_cv_prog_make_${ac_make}_set=yes;;
8120 *)
8121 eval ac_cv_prog_make_${ac_make}_set=no;;
8122esac
8123rm -f conftest.make
8124fi
8125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127$as_echo "yes" >&6; }
8128 SET_MAKE=
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132 SET_MAKE="MAKE=${MAKE-make}"
8133fi
8134
cristy8b350f62009-11-15 23:12:43 +00008135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008136$as_echo_n "checking whether ln -s works... " >&6; }
8137LN_S=$as_ln_s
8138if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008140$as_echo "yes" >&6; }
8141else
cristy8b350f62009-11-15 23:12:43 +00008142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143$as_echo "no, using $LN_S" >&6; }
8144fi
8145
cristy8d0ff762013-03-10 20:33:28 +00008146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8148if ${ac_cv_path_SED+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150else
8151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8152 for ac_i in 1 2 3 4 5 6 7; do
8153 ac_script="$ac_script$as_nl$ac_script"
8154 done
8155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8156 { ac_script=; unset ac_script;}
8157 if test -z "$SED"; then
8158 ac_path_SED_found=false
8159 # Loop through the user's path and test for each of PROGNAME-LIST
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_prog in sed gsed; do
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8168 as_fn_executable_p "$ac_path_SED" || continue
8169# Check for GNU ac_path_SED and select it if it is found.
8170 # Check for GNU $ac_path_SED
8171case `"$ac_path_SED" --version 2>&1` in
8172*GNU*)
8173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8174*)
8175 ac_count=0
8176 $as_echo_n 0123456789 >"conftest.in"
8177 while :
8178 do
8179 cat "conftest.in" "conftest.in" >"conftest.tmp"
8180 mv "conftest.tmp" "conftest.in"
8181 cp "conftest.in" "conftest.nl"
8182 $as_echo '' >> "conftest.nl"
8183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8185 as_fn_arith $ac_count + 1 && ac_count=$as_val
8186 if test $ac_count -gt ${ac_path_SED_max-0}; then
8187 # Best one so far, save it but keep looking for a better one
8188 ac_cv_path_SED="$ac_path_SED"
8189 ac_path_SED_max=$ac_count
8190 fi
8191 # 10*(2^10) chars as input seems more than enough
8192 test $ac_count -gt 10 && break
8193 done
8194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8195esac
8196
8197 $ac_path_SED_found && break 3
8198 done
8199 done
8200 done
8201IFS=$as_save_IFS
8202 if test -z "$ac_cv_path_SED"; then
8203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8204 fi
8205else
8206 ac_cv_path_SED=$SED
8207fi
8208
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8211$as_echo "$ac_cv_path_SED" >&6; }
8212 SED="$ac_cv_path_SED"
8213 rm -f conftest.sed
8214
cristybc556452012-08-17 19:44:03 +00008215for ac_prog in gawk mawk nawk awk
8216do
8217 # Extract the first word of "$ac_prog", so it can be a program name with args.
8218set dummy $ac_prog; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_AWK+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 if test -n "$AWK"; then
8225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_AWK="$ac_prog"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239 done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244AWK=$ac_cv_prog_AWK
8245if test -n "$AWK"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8247$as_echo "$AWK" >&6; }
8248else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254 test -n "$AWK" && break
8255done
8256
cristy73bd4a52010-10-05 11:24:23 +00008257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8258$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8259
8260# Check whether --with-dmalloc was given.
8261if test "${with_dmalloc+set}" = set; then :
8262 withval=$with_dmalloc; if test "$withval" = yes; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8264$as_echo "yes" >&6; }
8265
8266$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8267
8268 LIBS="$LIBS -ldmalloc"
8269 LDFLAGS="$LDFLAGS -g"
8270else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8282$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008283if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008284 $as_echo_n "(cached) " >&6
8285else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008289 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008290 static void
8291 foo(void) {
8292 exit(1);
8293 }
8294
8295int
8296main ()
8297{
8298
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304 ax_cv___attribute__=yes
8305else
8306 ax_cv___attribute__=no
8307
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8313$as_echo "$ax_cv___attribute__" >&6; }
8314 if test "$ax_cv___attribute__" = "yes"; then
8315
8316$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8317
8318 fi
8319
8320
8321
cristy37110d62012-03-01 18:38:20 +00008322
8323
8324# Check whether --with-gcc-arch was given.
8325if test "${with_gcc_arch+set}" = set; then :
8326 withval=$with_gcc_arch; ax_gcc_arch=$withval
8327else
cristya32d1812012-03-02 19:24:21 +00008328 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008329fi
8330
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8333$as_echo_n "checking for gcc architecture flag... " >&6; }
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8335$as_echo "" >&6; }
8336if ${ax_cv_gcc_archflag+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339
8340ax_cv_gcc_archflag="unknown"
8341
8342if test "$GCC" = yes; then
8343
8344if test "x$ax_gcc_arch" = xyes; then
8345ax_gcc_arch=""
8346if test "$cross_compiling" = no; then
8347case $host_cpu in
8348 i[3456]86*|x86_64*) # use cpuid codes
8349
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8357$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8358if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test "$cross_compiling" = yes; then :
8362 ax_cv_gcc_x86_cpuid_0=unknown
8363else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366#include <stdio.h>
8367int
8368main ()
8369{
8370
8371 int op = 0, eax, ebx, ecx, edx;
8372 FILE *f;
8373 __asm__("cpuid"
8374 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8375 : "a" (op));
8376 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8377 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8378 fclose(f);
8379 return 0;
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_run "$LINENO"; then :
8386 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8387else
8388 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8396$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8412$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8413if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415else
8416 if test "$cross_compiling" = yes; then :
8417 ax_cv_gcc_x86_cpuid_1=unknown
8418else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <stdio.h>
8422int
8423main ()
8424{
8425
8426 int op = 1, eax, ebx, ecx, edx;
8427 FILE *f;
8428 __asm__("cpuid"
8429 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8430 : "a" (op));
8431 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8432 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8433 fclose(f);
8434 return 0;
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_run "$LINENO"; then :
8441 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8442else
8443 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8444fi
8445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8451$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8452ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459 case $ax_cv_gcc_x86_cpuid_0 in
8460 *:756e6547:*:*) # Intel
8461 case $ax_cv_gcc_x86_cpuid_1 in
8462 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8463 *5??:*:*:*) ax_gcc_arch=pentium ;;
8464 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8465 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8466 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8467 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8468 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8469 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8470 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8471 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8472 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8473 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8474 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8475 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8476 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8477 case $host_cpu in
8478 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8479 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8480 esac ;;
8481 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8482 esac ;;
8483 *:68747541:*:*) # AMD
8484 case $ax_cv_gcc_x86_cpuid_1 in
8485 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8486 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8487 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8488 *60?:*:*:*) ax_gcc_arch=k7 ;;
8489 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8490 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8491 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8492 *6[68a]?:*:*:*)
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8501$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8502if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504else
8505 if test "$cross_compiling" = yes; then :
8506 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8507else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510#include <stdio.h>
8511int
8512main ()
8513{
8514
8515 int op = 0x80000006, eax, ebx, ecx, edx;
8516 FILE *f;
8517 __asm__("cpuid"
8518 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8519 : "a" (op));
8520 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8521 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8522 fclose(f);
8523 return 0;
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_run "$LINENO"; then :
8530 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8531else
8532 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8533fi
8534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535 conftest.$ac_objext conftest.beam conftest.$ac_ext
8536fi
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8540$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 # L2 cache size
8548 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8549 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8550 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8551 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8552 esac ;;
8553 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8554 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8555 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8556 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8557 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8558 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8559 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8560 esac ;;
8561 *:746e6543:*:*) # IDT
8562 case $ax_cv_gcc_x86_cpuid_1 in
8563 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8564 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8565 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8566 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8567 esac ;;
8568 esac
8569 if test x"$ax_gcc_arch" = x; then # fallback
8570 case $host_cpu in
8571 i586*) ax_gcc_arch=pentium ;;
8572 i686*) ax_gcc_arch=pentiumpro ;;
8573 esac
8574 fi
8575 ;;
8576
8577 sparc*)
8578 # Extract the first word of "prtdiag", so it can be a program name with args.
8579set dummy prtdiag; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_path_PRTDIAG+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 case $PRTDIAG in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8588 ;;
8589 *)
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8592for as_dir in $as_dummy
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008598 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8607 ;;
8608esac
8609fi
8610PRTDIAG=$ac_cv_path_PRTDIAG
8611if test -n "$PRTDIAG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8613$as_echo "$PRTDIAG" >&6; }
8614else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620 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`
8621 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8622 case $cputype in
8623 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8624 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8625 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8626 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8627 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8628 *cypress*) ax_gcc_arch=cypress ;;
8629 esac ;;
8630
8631 alphaev5) ax_gcc_arch=ev5 ;;
8632 alphaev56) ax_gcc_arch=ev56 ;;
8633 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8634 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8635 alphaev6) ax_gcc_arch=ev6 ;;
8636 alphaev67) ax_gcc_arch=ev67 ;;
8637 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8638 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8639 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8640 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8641
8642 powerpc*)
8643 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`
8644 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8645 case $cputype in
8646 *750*) ax_gcc_arch="750 G3" ;;
8647 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8648 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8649 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8650 *970*) ax_gcc_arch="970 G5 power4";;
8651 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8652 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8653 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8654 *) ax_gcc_arch=$cputype ;;
8655 esac
8656 ax_gcc_arch="$ax_gcc_arch powerpc"
8657 ;;
8658esac
8659fi # not cross-compiling
8660fi # guess arch
8661
8662if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8663for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008664 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008665 flags="-mtune=$arch"
8666 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8667 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8668 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8669 else
8670 flags="-march=$arch -mcpu=$arch -m$arch"
8671 fi
8672 for flag in $flags; do
8673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8675$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8676if eval \${$as_CACHEVAR+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678else
8679
8680 ax_check_save_flags=$CFLAGS
8681 CFLAGS="$CFLAGS $flag"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h. */
8684
8685int
8686main ()
8687{
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694 eval "$as_CACHEVAR=yes"
8695else
8696 eval "$as_CACHEVAR=no"
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 CFLAGS=$ax_check_save_flags
8700fi
8701eval ac_res=\$$as_CACHEVAR
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703$as_echo "$ac_res" >&6; }
8704if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8705 ax_cv_gcc_archflag=$flag; break
8706else
8707 :
8708fi
8709
8710 done
8711 test "x$ax_cv_gcc_archflag" = xunknown || break
8712done
8713fi
8714
8715fi # $GCC=yes
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8720$as_echo_n "checking for gcc architecture flag... " >&6; }
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8722$as_echo "$ax_cv_gcc_archflag" >&6; }
8723if test "x$ax_cv_gcc_archflag" = xunknown; then
8724 :
8725else
8726 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8727fi
8728
8729
8730
cristy73bd4a52010-10-05 11:24:23 +00008731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8732 if test -n "$ac_tool_prefix"; then
8733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008737if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 case $PKG_CONFIG in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8743 ;;
8744 *)
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757 done
8758IFS=$as_save_IFS
8759
8760 ;;
8761esac
8762fi
8763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8764if test -n "$PKG_CONFIG"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8766$as_echo "$PKG_CONFIG" >&6; }
8767else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_path_PKG_CONFIG"; then
8775 ac_pt_PKG_CONFIG=$PKG_CONFIG
8776 # Extract the first word of "pkg-config", so it can be a program name with args.
8777set dummy pkg-config; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008780if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008781 $as_echo_n "(cached) " >&6
8782else
8783 case $ac_pt_PKG_CONFIG in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8786 ;;
8787 *)
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800 done
8801IFS=$as_save_IFS
8802
8803 ;;
8804esac
8805fi
8806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8807if test -n "$ac_pt_PKG_CONFIG"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8809$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815 if test "x$ac_pt_PKG_CONFIG" = x; then
8816 PKG_CONFIG=""
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824 PKG_CONFIG=$ac_pt_PKG_CONFIG
8825 fi
8826else
8827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8828fi
8829
8830fi
8831if test -n "$PKG_CONFIG"; then
8832 _pkg_min_version=0.9.0
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8834$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841 PKG_CONFIG=""
8842 fi
8843
8844fi
cristy3ed852e2009-09-05 21:47:34 +00008845
cristy9b86f202012-11-28 21:55:35 +00008846# Check for linker script support
8847
8848 # Check whether --enable-ld-version-script was given.
8849if test "${enable_ld_version_script+set}" = set; then :
8850 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8851fi
8852
8853 if test -z "$have_ld_version_script"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8855$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8856 save_LDFLAGS="$LDFLAGS"
8857 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8858 cat > conftest.map <<EOF
8859foo
8860EOF
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h. */
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873 accepts_syntax_errors=yes
8874else
8875 accepts_syntax_errors=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 if test "$accepts_syntax_errors" = no; then
8880 cat > conftest.map <<EOF
8881VERS_1 {
8882 global: sym;
8883};
8884
8885VERS_2 {
8886 global: sym;
8887} VERS_1;
8888EOF
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h. */
8891
8892int
8893main ()
8894{
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_link "$LINENO"; then :
8901 have_ld_version_script=yes
8902else
8903 have_ld_version_script=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 else
8908 have_ld_version_script=no
8909 fi
8910 rm -f conftest.map
8911 LDFLAGS="$save_LDFLAGS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8913$as_echo "$have_ld_version_script" >&6; }
8914 fi
8915 if test "$have_ld_version_script" = "yes"; then
8916 HAVE_LD_VERSION_SCRIPT_TRUE=
8917 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8918else
8919 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8920 HAVE_LD_VERSION_SCRIPT_FALSE=
8921fi
8922
8923
8924
cristy3ed852e2009-09-05 21:47:34 +00008925#
cristy3ed852e2009-09-05 21:47:34 +00008926# Enable run-time checking.
8927#
8928# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008929if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008930 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8931else
8932 enable_bounds_checking='no'
8933fi
8934
8935
8936if test "$enable_bounds_checking" = yes; then
8937
cristy8b350f62009-11-15 23:12:43 +00008938$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008939
8940fi
8941
8942#
8943# Tests for Windows
8944#
8945
8946
8947
8948GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008949native_win32_build='no'
8950cygwin_build='no'
8951case "${host_os}" in
8952 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008953 cygwin_build='yes'
8954 GDI32_LIBS='-lgdi32'
8955 ;;
8956 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008957 native_win32_build='yes'
8958 GDI32_LIBS='-lgdi32'
8959 ;;
8960esac
8961if test "${GDI32_LIBS}x" != 'x'; then
8962
cristy8b350f62009-11-15 23:12:43 +00008963$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008964
8965fi
8966
cristy73bd4a52010-10-05 11:24:23 +00008967 if test "${GDI32_LIBS}x" != 'x' ; then
8968 WINGDI32_DELEGATE_TRUE=
8969 WINGDI32_DELEGATE_FALSE='#'
8970else
8971 WINGDI32_DELEGATE_TRUE='#'
8972 WINGDI32_DELEGATE_FALSE=
8973fi
8974
8975 if test "${native_win32_build}" = 'yes' ; then
8976 WIN32_NATIVE_BUILD_TRUE=
8977 WIN32_NATIVE_BUILD_FALSE='#'
8978else
8979 WIN32_NATIVE_BUILD_TRUE='#'
8980 WIN32_NATIVE_BUILD_FALSE=
8981fi
8982
8983 if test "${cygwin_build}" = 'yes' ; then
8984 CYGWIN_BUILD_TRUE=
8985 CYGWIN_BUILD_FALSE='#'
8986else
8987 CYGWIN_BUILD_TRUE='#'
8988 CYGWIN_BUILD_FALSE=
8989fi
8990
8991 if test "x${CC}" = 'xcl.exe' ; then
8992 USING_CL_TRUE=
8993 USING_CL_FALSE='#'
8994else
8995 USING_CL_TRUE='#'
8996 USING_CL_FALSE=
8997fi
8998
cristy3ed852e2009-09-05 21:47:34 +00008999
9000WinPathScript="${srcdirfull}/winpath.sh"
9001
9002
9003#
9004# Compiler flags tweaks
9005#
9006if test "${GCC}" != "yes"; then
9007 case "${host}" in
9008 *-*-hpux* )
9009 # aCC: HP ANSI C++ B3910B A.03.34
9010 CFLAGS="${CFLAGS} -Wp,-H30000"
9011 if test -n "${CXXFLAGS}"; then
9012 CXXFLAGS='-AA'
9013 else
9014 CXXFLAGS="${CXXFLAGS} -AA"
9015 fi
9016 ;;
9017 *-dec-osf5.* )
9018 # Compaq alphaev68-dec-osf5.1 compiler
9019 if test -n "${CXXFLAGS}"; then
9020 CXXFLAGS='-std strict_ansi -noimplicit_include'
9021 else
9022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9023 fi
9024 esac
9025fi
9026
9027# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009029$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009030if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009031 $as_echo_n "(cached) " >&6
9032else
9033
9034im_cv_ld_lazyload='none'
9035case "${host}" in
9036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9038 im_cv_ld_lazyload='-Wl,-zlazyload'
9039 fi
9040 ;;
9041esac
9042
9043fi
cristy8b350f62009-11-15 23:12:43 +00009044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009045$as_echo "$im_cv_ld_lazyload" >&6; }
9046if test "${im_cv_ld_lazyload}" != 'none' ; then
9047 if test -z "${LDFLAGS}" ; then
9048 LDFLAGS="${im_cv_ld_lazyload}"
9049 else
9050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9051 fi
9052fi
9053
9054case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009055 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009056 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009057 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009058if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009059 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9060else
9061 build_osxuniversal=no
9062fi
9063
9064
cristyc37574e2013-02-16 01:04:55 +00009065 if test "${build_osxuniversal}" != no ; then
9066 if test "$enable_dependency_tracking" != no ; then
9067 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009068Please re-run configure with these options:
9069 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009070 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009071 fi
9072 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9073 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9074 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009075 fi
9076 ;;
9077esac
9078
cristy0151ae12011-10-28 16:32:29 +00009079#
9080# ARCH specific include directory
9081#
9082
cristy670aa3c2011-11-03 00:54:00 +00009083# Check whether --with-includearch-dir was given.
9084if test "${with_includearch_dir+set}" = set; then :
9085 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009086else
cristy670aa3c2011-11-03 00:54:00 +00009087 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009088fi
9089
9090
cristyd286fd72013-02-24 19:25:33 +00009091eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009092
cristy0151ae12011-10-28 16:32:29 +00009093
9094#
9095# ARCH specific configuration directory
9096#
9097
cristy670aa3c2011-11-03 00:54:00 +00009098# Check whether --with-sharearch-dir was given.
9099if test "${with_sharearch_dir+set}" = set; then :
9100 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009101else
cristy408ebcd2011-11-14 01:36:57 +00009102 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009103fi
9104
9105
cristy670aa3c2011-11-03 00:54:00 +00009106eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009107
cristy0151ae12011-10-28 16:32:29 +00009108
cristy2ec87cc2013-02-18 17:46:50 +00009109# Path to the pkgconfig folder
9110
9111# Check whether --with-pkgconfigdir was given.
9112if test "${with_pkgconfigdir+set}" = set; then :
9113 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9114else
9115 pkgconfigdir='${libdir}/pkgconfig'
9116fi
9117
9118
9119
cristy0151ae12011-10-28 16:32:29 +00009120#
cristy3ed852e2009-09-05 21:47:34 +00009121# Enable support for threads
9122
9123# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009124if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009125 withval=$with_threads; with_threads=$withval
9126else
9127 with_threads='yes'
9128fi
9129
9130
9131have_threads=no
9132if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009133
9134
cristy73bd4a52010-10-05 11:24:23 +00009135ac_ext=c
9136ac_cpp='$CPP $CPPFLAGS'
9137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140
9141ax_pthread_ok=no
9142
9143# We used to check for pthread.h first, but this fails if pthread.h
9144# requires special compiler flags (e.g. on True64 or Sequent).
9145# It gets checked for in the link test anyway.
9146
9147# First of all, check if the user has set any of the PTHREAD_LIBS,
9148# etcetera environment variables, and if threads linking works using
9149# them:
9150if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9151 save_CFLAGS="$CFLAGS"
9152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9153 save_LIBS="$LIBS"
9154 LIBS="$PTHREAD_LIBS $LIBS"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9156$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h. */
9159
9160/* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9163#ifdef __cplusplus
9164extern "C"
9165#endif
9166char pthread_join ();
9167int
9168main ()
9169{
9170return pthread_join ();
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176 ax_pthread_ok=yes
9177fi
9178rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9181$as_echo "$ax_pthread_ok" >&6; }
9182 if test x"$ax_pthread_ok" = xno; then
9183 PTHREAD_LIBS=""
9184 PTHREAD_CFLAGS=""
9185 fi
9186 LIBS="$save_LIBS"
9187 CFLAGS="$save_CFLAGS"
9188fi
9189
9190# We must check for the threads library under a number of different
9191# names; the ordering is very important because some systems
9192# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9193# libraries is broken (non-POSIX).
9194
9195# Create a list of thread flags to try. Items starting with a "-" are
9196# C compiler flags, and other items are library names, except for "none"
9197# which indicates that we try without any flags at all, and "pthread-config"
9198# which is a program returning the flags for the Pth emulation library.
9199
cristy2ec87cc2013-02-18 17:46:50 +00009200ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009201
9202# The ordering *is* (sometimes) important. Some notes on the
9203# individual items follow:
9204
9205# pthreads: AIX (must check this before -lpthread)
9206# none: in case threads are in libc; should be tried before -Kthread and
9207# other compiler flags to prevent continual compiler warnings
9208# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9209# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9210# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9211# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9212# -pthreads: Solaris/gcc
9213# -mthreads: Mingw32/gcc, Lynx/gcc
9214# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9215# doesn't hurt to check since this sometimes defines pthreads too;
9216# also defines -D_REENTRANT)
9217# ... -mt is also the pthreads flag for HP/aCC
9218# pthread: Linux, etcetera
9219# --thread-safe: KAI C++
9220# pthread-config: use pthread-config program (for GNU Pth library)
9221
cristy2ec87cc2013-02-18 17:46:50 +00009222case ${host_os} in
9223 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009224
9225 # On Solaris (at least, for some versions), libc contains stubbed
9226 # (non-functional) versions of the pthreads routines, so link-based
9227 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9228 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9229 # a function called by this macro, so we could check for that, but
9230 # who knows whether they'll stub that too in a future libc.) So,
9231 # we'll just look for -pthreads and -lpthread first:
9232
9233 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9234 ;;
9235
cristy2ec87cc2013-02-18 17:46:50 +00009236 darwin*)
cristya316db12011-10-24 00:49:45 +00009237 ax_pthread_flags="-pthread $ax_pthread_flags"
9238 ;;
cristy73bd4a52010-10-05 11:24:23 +00009239esac
9240
9241if test x"$ax_pthread_ok" = xno; then
9242for flag in $ax_pthread_flags; do
9243
9244 case $flag in
9245 none)
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9247$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9248 ;;
9249
9250 -*)
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9252$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9253 PTHREAD_CFLAGS="$flag"
9254 ;;
9255
cristya316db12011-10-24 00:49:45 +00009256 pthread-config)
9257 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009258set dummy pthread-config; ac_word=$2
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009261if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 if test -n "$ax_pthread_config"; then
9265 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009274 ac_cv_prog_ax_pthread_config="yes"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278done
9279 done
9280IFS=$as_save_IFS
9281
9282 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9283fi
9284fi
9285ax_pthread_config=$ac_cv_prog_ax_pthread_config
9286if test -n "$ax_pthread_config"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9288$as_echo "$ax_pthread_config" >&6; }
9289else
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
9292fi
9293
9294
cristya316db12011-10-24 00:49:45 +00009295 if test x"$ax_pthread_config" = xno; then continue; fi
9296 PTHREAD_CFLAGS="`pthread-config --cflags`"
9297 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9298 ;;
cristy73bd4a52010-10-05 11:24:23 +00009299
9300 *)
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9302$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9303 PTHREAD_LIBS="-l$flag"
9304 ;;
9305 esac
9306
9307 save_LIBS="$LIBS"
9308 save_CFLAGS="$CFLAGS"
9309 LIBS="$PTHREAD_LIBS $LIBS"
9310 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9311
9312 # Check for various functions. We must include pthread.h,
9313 # since some functions may be macros. (On the Sequent, we
9314 # need a special flag -Kthread to make this header compile.)
9315 # We check for pthread_join because it is in -lpthread on IRIX
9316 # while pthread_create is in libc. We check for pthread_attr_init
9317 # due to DEC craziness with -lpthreads. We check for
9318 # pthread_cleanup_push because it is one of the few pthread
9319 # functions on Solaris that doesn't have a non-functional libc stub.
9320 # We try pthread_create on general principles.
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h. */
9323#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009324 static void routine(void *a) { a = 0; }
9325 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009326int
9327main ()
9328{
9329pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009330 pthread_create(&th, 0, start_routine, 0);
9331 pthread_join(th, 0);
9332 pthread_attr_init(&attr);
9333 pthread_cleanup_push(routine, 0);
9334 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009335 ;
9336 return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_link "$LINENO"; then :
9340 ax_pthread_ok=yes
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344
9345 LIBS="$save_LIBS"
9346 CFLAGS="$save_CFLAGS"
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9349$as_echo "$ax_pthread_ok" >&6; }
9350 if test "x$ax_pthread_ok" = xyes; then
9351 break;
9352 fi
9353
9354 PTHREAD_LIBS=""
9355 PTHREAD_CFLAGS=""
9356done
9357fi
9358
9359# Various other checks:
9360if test "x$ax_pthread_ok" = xyes; then
9361 save_LIBS="$LIBS"
9362 LIBS="$PTHREAD_LIBS $LIBS"
9363 save_CFLAGS="$CFLAGS"
9364 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9365
9366 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009368$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009369 attr_name=unknown
9370 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009372/* end confdefs.h. */
9373#include <pthread.h>
9374int
9375main ()
9376{
cristya316db12011-10-24 00:49:45 +00009377int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009378 ;
9379 return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then :
9383 attr_name=$attr; break
9384fi
9385rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009387 done
cristy73bd4a52010-10-05 11:24:23 +00009388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9389$as_echo "$attr_name" >&6; }
9390 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9391
9392cat >>confdefs.h <<_ACEOF
9393#define PTHREAD_CREATE_JOINABLE $attr_name
9394_ACEOF
9395
9396 fi
9397
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9399$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9400 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009401 case ${host_os} in
9402 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9403 osf* | hpux*) flag="-D_REENTRANT";;
9404 solaris*)
9405 if test "$GCC" = "yes"; then
9406 flag="-D_REENTRANT"
9407 else
9408 flag="-mt -D_REENTRANT"
9409 fi
9410 ;;
cristy73bd4a52010-10-05 11:24:23 +00009411 esac
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9413$as_echo "${flag}" >&6; }
9414 if test "x$flag" != xno; then
9415 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9416 fi
9417
cristya316db12011-10-24 00:49:45 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9419$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9420if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422else
9423
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h. */
9426
9427 #include <pthread.h>
9428int
9429main ()
9430{
9431int i = PTHREAD_PRIO_INHERIT;
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436if ac_fn_c_try_link "$LINENO"; then :
9437 ax_cv_PTHREAD_PRIO_INHERIT=yes
9438else
9439 ax_cv_PTHREAD_PRIO_INHERIT=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9446$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9447 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9448
9449$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9450
9451fi
9452
cristy73bd4a52010-10-05 11:24:23 +00009453 LIBS="$save_LIBS"
9454 CFLAGS="$save_CFLAGS"
9455
cristy23493c42013-04-11 16:04:59 +00009456 # More AIX lossage: compile with *_r variant
9457 if test "x$GCC" != xyes; then
9458 case $host_os in
9459 aix*)
9460 case "x/$CC" in #(
9461 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9462 #handle absolute path differently from PATH based program lookup
9463 case "x$CC" in #(
9464 x/*) :
9465 if as_fn_executable_p ${CC}_r; then :
9466 PTHREAD_CC="${CC}_r"
9467fi ;; #(
9468 *) :
9469 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009470do
9471 # Extract the first word of "$ac_prog", so it can be a program name with args.
9472set dummy $ac_prog; ac_word=$2
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009475if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009476 $as_echo_n "(cached) " >&6
9477else
9478 if test -n "$PTHREAD_CC"; then
9479 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009488 ac_cv_prog_PTHREAD_CC="$ac_prog"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492done
9493 done
9494IFS=$as_save_IFS
9495
9496fi
9497fi
9498PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9499if test -n "$PTHREAD_CC"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9501$as_echo "$PTHREAD_CC" >&6; }
9502else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505fi
9506
9507
9508 test -n "$PTHREAD_CC" && break
9509done
cristy23493c42013-04-11 16:04:59 +00009510test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9511 ;;
9512esac ;; #(
9513 *) :
9514 ;;
9515esac
9516 ;;
9517 esac
cristya316db12011-10-24 00:49:45 +00009518 fi
cristy73bd4a52010-10-05 11:24:23 +00009519fi
9520
cristy23493c42013-04-11 16:04:59 +00009521test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9522
cristy73bd4a52010-10-05 11:24:23 +00009523
9524
9525
9526
9527# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9528if test x"$ax_pthread_ok" = xyes; then
9529
9530$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9531
9532 :
9533else
9534 ax_pthread_ok=no
9535
9536fi
9537ac_ext=c
9538ac_cpp='$CPP $CPPFLAGS'
9539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543
cristy7acf8fb2010-09-23 19:58:53 +00009544 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009545 have_threads=yes
9546 DEF_THREAD="$PTHREAD_CFLAGS"
9547 CFLAGS="$CFLAGS $DEF_THREAD"
9548 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9549 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009550 { $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 +00009551$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9552 CC="$PTHREAD_CC"
9553 fi
cristy55bf91c2010-09-24 00:29:41 +00009554
9555$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9556
cristy3ed852e2009-09-05 21:47:34 +00009557 fi
9558fi
9559
9560# Enable support for OpenMP
9561if test "$have_threads" != 'yes'; then
9562 ac_cv_prog_c_openmp=unsupported
9563fi
9564
9565 OPENMP_CFLAGS=
9566 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009567if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 enableval=$enable_openmp;
9569fi
9570
9571 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009573$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009574if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009575 $as_echo_n "(cached) " >&6
9576else
cristy8b350f62009-11-15 23:12:43 +00009577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009579
9580#ifndef _OPENMP
9581 choke me
9582#endif
9583#include <omp.h>
9584int main () { return omp_get_num_threads (); }
9585
9586_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009588 ac_cv_prog_c_openmp='none needed'
9589else
cristy8b350f62009-11-15 23:12:43 +00009590 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009591 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9592 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009593 ac_save_CFLAGS=$CFLAGS
9594 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009597
9598#ifndef _OPENMP
9599 choke me
9600#endif
9601#include <omp.h>
9602int main () { return omp_get_num_threads (); }
9603
9604_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009606 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009607fi
cristy8b350f62009-11-15 23:12:43 +00009608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009610 CFLAGS=$ac_save_CFLAGS
9611 if test "$ac_cv_prog_c_openmp" != unsupported; then
9612 break
9613 fi
9614 done
9615fi
cristy8b350f62009-11-15 23:12:43 +00009616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009618fi
cristy8b350f62009-11-15 23:12:43 +00009619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009620$as_echo "$ac_cv_prog_c_openmp" >&6; }
9621 case $ac_cv_prog_c_openmp in #(
9622 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009623 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009624 *)
cristy8b350f62009-11-15 23:12:43 +00009625 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009626 esac
9627 fi
9628
9629
9630CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9631MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9632
cristy391f1ce2010-09-09 17:23:28 +00009633if test "$enable_openmp" != no; then
9634 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9635 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9636 fi
9637fi
cristy3ed852e2009-09-05 21:47:34 +00009638
cristy736173a2009-09-20 21:18:22 +00009639# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009640
9641
cristy73bd4a52010-10-05 11:24:23 +00009642ac_ext=c
9643ac_cpp='$CPP $CPPFLAGS'
9644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648ax_pthread_ok=no
9649
9650# We used to check for pthread.h first, but this fails if pthread.h
9651# requires special compiler flags (e.g. on True64 or Sequent).
9652# It gets checked for in the link test anyway.
9653
9654# First of all, check if the user has set any of the PTHREAD_LIBS,
9655# etcetera environment variables, and if threads linking works using
9656# them:
9657if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9658 save_CFLAGS="$CFLAGS"
9659 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9660 save_LIBS="$LIBS"
9661 LIBS="$PTHREAD_LIBS $LIBS"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9663$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h. */
9666
9667/* Override any GCC internal prototype to avoid an error.
9668 Use char because int might match the return type of a GCC
9669 builtin and then its argument prototype would still apply. */
9670#ifdef __cplusplus
9671extern "C"
9672#endif
9673char pthread_join ();
9674int
9675main ()
9676{
9677return pthread_join ();
9678 ;
9679 return 0;
9680}
9681_ACEOF
9682if ac_fn_c_try_link "$LINENO"; then :
9683 ax_pthread_ok=yes
9684fi
9685rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9688$as_echo "$ax_pthread_ok" >&6; }
9689 if test x"$ax_pthread_ok" = xno; then
9690 PTHREAD_LIBS=""
9691 PTHREAD_CFLAGS=""
9692 fi
9693 LIBS="$save_LIBS"
9694 CFLAGS="$save_CFLAGS"
9695fi
9696
9697# We must check for the threads library under a number of different
9698# names; the ordering is very important because some systems
9699# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9700# libraries is broken (non-POSIX).
9701
9702# Create a list of thread flags to try. Items starting with a "-" are
9703# C compiler flags, and other items are library names, except for "none"
9704# which indicates that we try without any flags at all, and "pthread-config"
9705# which is a program returning the flags for the Pth emulation library.
9706
cristy2ec87cc2013-02-18 17:46:50 +00009707ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009708
9709# The ordering *is* (sometimes) important. Some notes on the
9710# individual items follow:
9711
9712# pthreads: AIX (must check this before -lpthread)
9713# none: in case threads are in libc; should be tried before -Kthread and
9714# other compiler flags to prevent continual compiler warnings
9715# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9716# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9717# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9718# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9719# -pthreads: Solaris/gcc
9720# -mthreads: Mingw32/gcc, Lynx/gcc
9721# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9722# doesn't hurt to check since this sometimes defines pthreads too;
9723# also defines -D_REENTRANT)
9724# ... -mt is also the pthreads flag for HP/aCC
9725# pthread: Linux, etcetera
9726# --thread-safe: KAI C++
9727# pthread-config: use pthread-config program (for GNU Pth library)
9728
cristy2ec87cc2013-02-18 17:46:50 +00009729case ${host_os} in
9730 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009731
9732 # On Solaris (at least, for some versions), libc contains stubbed
9733 # (non-functional) versions of the pthreads routines, so link-based
9734 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9735 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9736 # a function called by this macro, so we could check for that, but
9737 # who knows whether they'll stub that too in a future libc.) So,
9738 # we'll just look for -pthreads and -lpthread first:
9739
9740 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9741 ;;
9742
cristy2ec87cc2013-02-18 17:46:50 +00009743 darwin*)
cristya316db12011-10-24 00:49:45 +00009744 ax_pthread_flags="-pthread $ax_pthread_flags"
9745 ;;
cristy73bd4a52010-10-05 11:24:23 +00009746esac
9747
9748if test x"$ax_pthread_ok" = xno; then
9749for flag in $ax_pthread_flags; do
9750
9751 case $flag in
9752 none)
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9754$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9755 ;;
9756
9757 -*)
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9759$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9760 PTHREAD_CFLAGS="$flag"
9761 ;;
9762
cristya316db12011-10-24 00:49:45 +00009763 pthread-config)
9764 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009765set dummy pthread-config; ac_word=$2
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009768if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009769 $as_echo_n "(cached) " >&6
9770else
9771 if test -n "$ax_pthread_config"; then
9772 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9773else
9774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775for as_dir in $PATH
9776do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009781 ac_cv_prog_ax_pthread_config="yes"
9782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785done
9786 done
9787IFS=$as_save_IFS
9788
9789 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9790fi
9791fi
9792ax_pthread_config=$ac_cv_prog_ax_pthread_config
9793if test -n "$ax_pthread_config"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9795$as_echo "$ax_pthread_config" >&6; }
9796else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799fi
9800
9801
cristya316db12011-10-24 00:49:45 +00009802 if test x"$ax_pthread_config" = xno; then continue; fi
9803 PTHREAD_CFLAGS="`pthread-config --cflags`"
9804 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9805 ;;
cristy73bd4a52010-10-05 11:24:23 +00009806
9807 *)
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9809$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9810 PTHREAD_LIBS="-l$flag"
9811 ;;
9812 esac
9813
9814 save_LIBS="$LIBS"
9815 save_CFLAGS="$CFLAGS"
9816 LIBS="$PTHREAD_LIBS $LIBS"
9817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9818
9819 # Check for various functions. We must include pthread.h,
9820 # since some functions may be macros. (On the Sequent, we
9821 # need a special flag -Kthread to make this header compile.)
9822 # We check for pthread_join because it is in -lpthread on IRIX
9823 # while pthread_create is in libc. We check for pthread_attr_init
9824 # due to DEC craziness with -lpthreads. We check for
9825 # pthread_cleanup_push because it is one of the few pthread
9826 # functions on Solaris that doesn't have a non-functional libc stub.
9827 # We try pthread_create on general principles.
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h. */
9830#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009831 static void routine(void *a) { a = 0; }
9832 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009833int
9834main ()
9835{
9836pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009837 pthread_create(&th, 0, start_routine, 0);
9838 pthread_join(th, 0);
9839 pthread_attr_init(&attr);
9840 pthread_cleanup_push(routine, 0);
9841 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009842 ;
9843 return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_link "$LINENO"; then :
9847 ax_pthread_ok=yes
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851
9852 LIBS="$save_LIBS"
9853 CFLAGS="$save_CFLAGS"
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9856$as_echo "$ax_pthread_ok" >&6; }
9857 if test "x$ax_pthread_ok" = xyes; then
9858 break;
9859 fi
9860
9861 PTHREAD_LIBS=""
9862 PTHREAD_CFLAGS=""
9863done
9864fi
9865
9866# Various other checks:
9867if test "x$ax_pthread_ok" = xyes; then
9868 save_LIBS="$LIBS"
9869 LIBS="$PTHREAD_LIBS $LIBS"
9870 save_CFLAGS="$CFLAGS"
9871 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9872
9873 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009875$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009876 attr_name=unknown
9877 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009879/* end confdefs.h. */
9880#include <pthread.h>
9881int
9882main ()
9883{
cristya316db12011-10-24 00:49:45 +00009884int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009885 ;
9886 return 0;
9887}
9888_ACEOF
9889if ac_fn_c_try_link "$LINENO"; then :
9890 attr_name=$attr; break
9891fi
9892rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009894 done
cristy73bd4a52010-10-05 11:24:23 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9896$as_echo "$attr_name" >&6; }
9897 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9898
9899cat >>confdefs.h <<_ACEOF
9900#define PTHREAD_CREATE_JOINABLE $attr_name
9901_ACEOF
9902
9903 fi
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9906$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9907 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009908 case ${host_os} in
9909 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9910 osf* | hpux*) flag="-D_REENTRANT";;
9911 solaris*)
9912 if test "$GCC" = "yes"; then
9913 flag="-D_REENTRANT"
9914 else
9915 flag="-mt -D_REENTRANT"
9916 fi
9917 ;;
cristy73bd4a52010-10-05 11:24:23 +00009918 esac
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9920$as_echo "${flag}" >&6; }
9921 if test "x$flag" != xno; then
9922 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9923 fi
9924
cristya316db12011-10-24 00:49:45 +00009925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9926$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9927if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h. */
9933
9934 #include <pthread.h>
9935int
9936main ()
9937{
9938int i = PTHREAD_PRIO_INHERIT;
9939 ;
9940 return 0;
9941}
9942_ACEOF
9943if ac_fn_c_try_link "$LINENO"; then :
9944 ax_cv_PTHREAD_PRIO_INHERIT=yes
9945else
9946 ax_cv_PTHREAD_PRIO_INHERIT=no
9947fi
9948rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950
9951fi
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9953$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9954 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9955
9956$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9957
9958fi
9959
cristy73bd4a52010-10-05 11:24:23 +00009960 LIBS="$save_LIBS"
9961 CFLAGS="$save_CFLAGS"
9962
cristy23493c42013-04-11 16:04:59 +00009963 # More AIX lossage: compile with *_r variant
9964 if test "x$GCC" != xyes; then
9965 case $host_os in
9966 aix*)
9967 case "x/$CC" in #(
9968 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9969 #handle absolute path differently from PATH based program lookup
9970 case "x$CC" in #(
9971 x/*) :
9972 if as_fn_executable_p ${CC}_r; then :
9973 PTHREAD_CC="${CC}_r"
9974fi ;; #(
9975 *) :
9976 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009977do
9978 # Extract the first word of "$ac_prog", so it can be a program name with args.
9979set dummy $ac_prog; ac_word=$2
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009982if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009983 $as_echo_n "(cached) " >&6
9984else
9985 if test -n "$PTHREAD_CC"; then
9986 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9987else
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009995 ac_cv_prog_PTHREAD_CC="$ac_prog"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9998 fi
9999done
10000 done
10001IFS=$as_save_IFS
10002
10003fi
10004fi
10005PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10006if test -n "$PTHREAD_CC"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10008$as_echo "$PTHREAD_CC" >&6; }
10009else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
10012fi
10013
10014
10015 test -n "$PTHREAD_CC" && break
10016done
cristy23493c42013-04-11 16:04:59 +000010017test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10018 ;;
10019esac ;; #(
10020 *) :
10021 ;;
10022esac
10023 ;;
10024 esac
cristya316db12011-10-24 00:49:45 +000010025 fi
cristy73bd4a52010-10-05 11:24:23 +000010026fi
10027
cristy23493c42013-04-11 16:04:59 +000010028test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10029
cristy73bd4a52010-10-05 11:24:23 +000010030
10031
10032
10033
10034# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10035if test x"$ax_pthread_ok" = xyes; then
10036
10037$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10038
10039 :
10040else
10041 ax_pthread_ok=no
10042
10043fi
10044ac_ext=c
10045ac_cpp='$CPP $CPPFLAGS'
10046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048ac_compiler_gnu=$ac_cv_c_compiler_gnu
10049
10050
10051
10052# Check whether --enable-opencl was given.
10053if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010054 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010055else
cristy48794642012-09-02 15:19:08 +000010056 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010057fi
10058
10059
cristy48794642012-09-02 15:19:08 +000010060if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010061 ac_ext=c
10062ac_cpp='$CPP $CPPFLAGS'
10063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065ac_compiler_gnu=$ac_cv_c_compiler_gnu
10066
cristy75314cc2012-09-15 23:08:29 +000010067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10068$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10069if ${ax_cv_c_compiler_ms+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h. */
10074
10075int
10076main ()
10077{
10078#ifndef _MSC_VER
10079 choke me
10080#endif
10081
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086if ac_fn_c_try_compile "$LINENO"; then :
10087 ax_compiler_ms=yes
10088else
10089 ax_compiler_ms=no
10090fi
10091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092ax_cv_c_compiler_ms=$ax_compiler_ms
10093
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10096$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010097 if test X$ax_compiler_ms = Xno; then :
10098 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10099fi
10100
10101 ax_save_CPPFLAGS=$CPPFLAGS
10102 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10103 for ac_header in CL/cl.h OpenCL/cl.h
10104do :
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010108 cat >>confdefs.h <<_ACEOF
10109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10110_ACEOF
10111
10112fi
10113
10114done
10115
10116 CPPFLAGS=$ax_save_CPPFLAGS
10117
10118 for ac_header in windows.h
10119do :
10120 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010121if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010122 cat >>confdefs.h <<_ACEOF
10123#define HAVE_WINDOWS_H 1
10124_ACEOF
10125
10126fi
10127
10128done
10129
10130
10131
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10134$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010135if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010136 $as_echo_n "(cached) " >&6
10137else
10138 ax_cv_check_cl_libcl=no
10139 case $host_cpu in
10140 x86_64) ax_check_cl_libdir=lib64 ;;
10141 *) ax_check_cl_libdir=lib ;;
10142 esac
10143 ax_save_CPPFLAGS=$CPPFLAGS
10144 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10145 ax_save_LIBS=$LIBS
10146 LIBS=""
10147 ax_check_libs="-lOpenCL -lCL -lclparser"
10148 for ax_lib in $ax_check_libs; do
10149 if test X$ax_compiler_ms = Xyes; then :
10150 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10151else
10152 ax_try_lib=$ax_lib
10153fi
10154 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h. */
10157
10158 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10159 # include <windows.h>
10160 # endif
10161 # ifdef HAVE_CL_CL_H
10162 # include <CL/cl.h>
10163 # elif defined(HAVE_OPENCL_CL_H)
10164 # include <OpenCL/cl.h>
10165 # else
10166 # error no CL.h
10167 # endif
10168int
10169main ()
10170{
10171clCreateContextFromType(0,0,0,0,0)
10172 ;
10173 return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_link "$LINENO"; then :
10177 ax_cv_check_cl_libcl=$ax_try_lib; break
10178else
10179 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"
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h. */
10182
10183 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10184 # include <windows.h>
10185 # endif
10186 # ifdef HAVE_CL_CL_H
10187 # include <CL/cl.h>
10188 # elif defined(HAVE_OPENCL_CL_H)
10189 # include <OpenCL/cl.h>
10190 # else
10191 # error no CL.h
10192 # endif
10193int
10194main ()
10195{
10196clCreateContextFromType(0,0,0,0,0)
10197 ;
10198 return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_link "$LINENO"; then :
10202 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10203else
cristy78c5a0c2010-12-04 20:00:59 +000010204 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 +000010205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h. */
10207
10208 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10209 # include <windows.h>
10210 # endif
10211 # ifdef HAVE_CL_CL_H
10212 # include <CL/cl.h>
10213 # elif defined(HAVE_OPENCL_CL_H)
10214 # include <OpenCL/cl.h>
10215 # else
10216 # error no CL.h
10217 # endif
10218int
10219main ()
10220{
10221clCreateContextFromType(0,0,0,0,0)
10222 ;
10223 return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"; then :
10227 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231fi
10232rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 done
10238
cristyc3f8b8e2011-12-22 14:55:16 +000010239 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010240 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h. */
10243
10244 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10245 # include <windows.h>
10246 # endif
10247 # ifdef HAVE_CL_CL_H
10248 # include <CL/cl.h>
10249 # elif defined(HAVE_OPENCL_CL_H)
10250 # include <OpenCL/cl.h>
10251 # else
10252 # error no CL.h
10253 # endif
10254int
10255main ()
10256{
10257clCreateContextFromType(0,0,0,0,0)
10258 ;
10259 return 0;
10260}
10261_ACEOF
10262if ac_fn_c_try_link "$LINENO"; then :
10263 ax_cv_check_cl_libcl=$LIBS
10264fi
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267fi
10268
10269 LIBS=$ax_save_LIBS
10270 CPPFLAGS=$ax_save_CPPFLAGS
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10273$as_echo "$ax_cv_check_cl_libcl" >&6; }
10274
10275 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10276 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10277else
10278 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10279$as_echo "#define _OPENCL 1" >>confdefs.h
10280
10281fi
10282 ac_ext=c
10283ac_cpp='$CPP $CPPFLAGS'
10284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287
10288fi
10289
10290
10291
10292
cristyc7083c12009-10-14 03:16:55 +000010293CFLAGS="$CL_CFLAGS $CFLAGS"
10294LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010295
cristy391f1ce2010-09-09 17:23:28 +000010296if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010297 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010298 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10299 fi
cristyfd9dcd42010-08-08 18:07:02 +000010300fi
cristy2e8b51d2009-10-17 18:26:15 +000010301
cristy3ed852e2009-09-05 21:47:34 +000010302########
10303#
10304# Check for large file support
10305#
10306########
10307# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010308if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010309 enableval=$enable_largefile;
10310fi
10311
10312if test "$enable_largefile" != no; then
10313
cristy8b350f62009-11-15 23:12:43 +000010314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010316if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010317 $as_echo_n "(cached) " >&6
10318else
10319 ac_cv_sys_largefile_CC=no
10320 if test "$GCC" != yes; then
10321 ac_save_CC=$CC
10322 while :; do
10323 # IRIX 6.2 and later do not support large files by default,
10324 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010326/* end confdefs.h. */
10327#include <sys/types.h>
10328 /* Check that off_t can represent 2**63 - 1 correctly.
10329 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10330 since some C++ compilers masquerading as C compilers
10331 incorrectly reject 9223372036854775807. */
10332#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10334 && LARGE_OFF_T % 2147483647 == 1)
10335 ? 1 : -1];
10336int
10337main ()
10338{
10339
10340 ;
10341 return 0;
10342}
10343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010344 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010345 break
cristy3ed852e2009-09-05 21:47:34 +000010346fi
cristy3ed852e2009-09-05 21:47:34 +000010347rm -f core conftest.err conftest.$ac_objext
10348 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010349 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010350 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010351fi
cristy3ed852e2009-09-05 21:47:34 +000010352rm -f core conftest.err conftest.$ac_objext
10353 break
10354 done
10355 CC=$ac_save_CC
10356 rm -f conftest.$ac_ext
10357 fi
10358fi
cristy8b350f62009-11-15 23:12:43 +000010359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10361 if test "$ac_cv_sys_largefile_CC" != no; then
10362 CC=$CC$ac_cv_sys_largefile_CC
10363 fi
10364
cristy8b350f62009-11-15 23:12:43 +000010365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010366$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010367if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010368 $as_echo_n "(cached) " >&6
10369else
10370 while :; do
cristy8b350f62009-11-15 23:12:43 +000010371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010372/* end confdefs.h. */
10373#include <sys/types.h>
10374 /* Check that off_t can represent 2**63 - 1 correctly.
10375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10376 since some C++ compilers masquerading as C compilers
10377 incorrectly reject 9223372036854775807. */
10378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10380 && LARGE_OFF_T % 2147483647 == 1)
10381 ? 1 : -1];
10382int
10383main ()
10384{
10385
10386 ;
10387 return 0;
10388}
10389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010390if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010391 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010392fi
cristy3ed852e2009-09-05 21:47:34 +000010393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010395/* end confdefs.h. */
10396#define _FILE_OFFSET_BITS 64
10397#include <sys/types.h>
10398 /* Check that off_t can represent 2**63 - 1 correctly.
10399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10400 since some C++ compilers masquerading as C compilers
10401 incorrectly reject 9223372036854775807. */
10402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10404 && LARGE_OFF_T % 2147483647 == 1)
10405 ? 1 : -1];
10406int
10407main ()
10408{
10409
10410 ;
10411 return 0;
10412}
10413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010415 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010416fi
cristy3ed852e2009-09-05 21:47:34 +000010417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 ac_cv_sys_file_offset_bits=unknown
10419 break
10420done
10421fi
cristy8b350f62009-11-15 23:12:43 +000010422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010423$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10424case $ac_cv_sys_file_offset_bits in #(
10425 no | unknown) ;;
10426 *)
10427cat >>confdefs.h <<_ACEOF
10428#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10429_ACEOF
10430;;
10431esac
10432rm -rf conftest*
10433 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010435$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010436if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010437 $as_echo_n "(cached) " >&6
10438else
10439 while :; do
cristy8b350f62009-11-15 23:12:43 +000010440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010441/* end confdefs.h. */
10442#include <sys/types.h>
10443 /* Check that off_t can represent 2**63 - 1 correctly.
10444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10445 since some C++ compilers masquerading as C compilers
10446 incorrectly reject 9223372036854775807. */
10447#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10449 && LARGE_OFF_T % 2147483647 == 1)
10450 ? 1 : -1];
10451int
10452main ()
10453{
10454
10455 ;
10456 return 0;
10457}
10458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010460 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010461fi
cristy3ed852e2009-09-05 21:47:34 +000010462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010464/* end confdefs.h. */
10465#define _LARGE_FILES 1
10466#include <sys/types.h>
10467 /* Check that off_t can represent 2**63 - 1 correctly.
10468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10469 since some C++ compilers masquerading as C compilers
10470 incorrectly reject 9223372036854775807. */
10471#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10473 && LARGE_OFF_T % 2147483647 == 1)
10474 ? 1 : -1];
10475int
10476main ()
10477{
10478
10479 ;
10480 return 0;
10481}
10482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010484 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010485fi
cristy3ed852e2009-09-05 21:47:34 +000010486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 ac_cv_sys_large_files=unknown
10488 break
10489done
10490fi
cristy8b350f62009-11-15 23:12:43 +000010491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo "$ac_cv_sys_large_files" >&6; }
10493case $ac_cv_sys_large_files in #(
10494 no | unknown) ;;
10495 *)
10496cat >>confdefs.h <<_ACEOF
10497#define _LARGE_FILES $ac_cv_sys_large_files
10498_ACEOF
10499;;
10500esac
10501rm -rf conftest*
10502 fi
cristy14fefe52012-05-21 00:59:18 +000010503
10504
cristy3ed852e2009-09-05 21:47:34 +000010505fi
10506
cristy8b350f62009-11-15 23:12:43 +000010507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010508$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010509if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010510 $as_echo_n "(cached) " >&6
10511else
10512 while :; do
cristy8b350f62009-11-15 23:12:43 +000010513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010514/* end confdefs.h. */
10515#include <sys/types.h> /* for off_t */
10516 #include <stdio.h>
10517int
10518main ()
10519{
10520int (*fp) (FILE *, off_t, int) = fseeko;
10521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10522 ;
10523 return 0;
10524}
10525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010527 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010528fi
cristy8b350f62009-11-15 23:12:43 +000010529rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010532/* end confdefs.h. */
10533#define _LARGEFILE_SOURCE 1
10534#include <sys/types.h> /* for off_t */
10535 #include <stdio.h>
10536int
10537main ()
10538{
10539int (*fp) (FILE *, off_t, int) = fseeko;
10540 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10541 ;
10542 return 0;
10543}
10544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010546 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010547fi
cristy8b350f62009-11-15 23:12:43 +000010548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010550 ac_cv_sys_largefile_source=unknown
10551 break
10552done
10553fi
cristy8b350f62009-11-15 23:12:43 +000010554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010555$as_echo "$ac_cv_sys_largefile_source" >&6; }
10556case $ac_cv_sys_largefile_source in #(
10557 no | unknown) ;;
10558 *)
10559cat >>confdefs.h <<_ACEOF
10560#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10561_ACEOF
10562;;
10563esac
10564rm -rf conftest*
10565
10566# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10567# in glibc 2.1.3, but that breaks too many other things.
10568# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10569if test $ac_cv_sys_largefile_source != unknown; then
10570
cristy8b350f62009-11-15 23:12:43 +000010571$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010572
10573fi
10574
10575LFS_CPPFLAGS=''
10576if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010577 case $ac_cv_sys_file_offset_bits in
10578 no)
10579 # nothing to do here as the host supports LFS fine
10580 ;;
10581 unknown)
cristy8b350f62009-11-15 23:12:43 +000010582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010583$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010584 if test "$cross_compiling" = yes; then :
10585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010587as_fn_error $? "cannot run test program while cross compiling
10588See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010589else
cristy8b350f62009-11-15 23:12:43 +000010590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010592#include <unistd.h>
10593 main () {
10594 exit(!(sizeof(off_t) == 8));
10595 }
cristyda16f162011-02-19 23:52:17 +000010596int
10597main ()
10598{
10599
10600 ;
10601 return 0;
10602}
cristy3ed852e2009-09-05 21:47:34 +000010603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010604if ac_fn_c_try_run "$LINENO"; then :
10605 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010606
cristyad38abe2012-12-23 23:03:21 +000010607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010609else
cristyad38abe2012-12-23 23:03:21 +000010610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010612fi
cristy8b350f62009-11-15 23:12:43 +000010613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10614 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010615fi
10616
cristyc1e0cc12011-09-21 16:41:16 +000010617 ;;
10618 *)
10619 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10620 ;;
10621 esac
cristy3ed852e2009-09-05 21:47:34 +000010622 if test "$ac_cv_sys_large_files" != 'no'; then
10623 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10624 fi
10625 if test "$ac_cv_sys_largefile_source" != 'no'; then
10626 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10627 fi
10628fi
10629
10630
cristy3ed852e2009-09-05 21:47:34 +000010631# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010632enable_dlopen=yes
10633
10634
10635
10636case `pwd` in
10637 *\ * | *\ *)
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10639$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10640esac
10641
10642
10643
cristy99bd5232011-12-07 14:38:20 +000010644macro_version='2.4.2'
10645macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659ltmain="$ac_aux_dir/ltmain.sh"
10660
cristy0c60a692010-11-04 01:09:47 +000010661# Backslashify metacharacters that are still active within
10662# double-quoted strings.
10663sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10664
10665# Same as above, but do not quote variable references.
10666double_quote_subst='s/\(["`\\]\)/\\\1/g'
10667
10668# Sed substitution to delay expansion of an escaped shell variable in a
10669# double_quote_subst'ed string.
10670delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10671
10672# Sed substitution to delay expansion of an escaped single quote.
10673delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10674
10675# Sed substitution to avoid accidental globbing in evaled expressions
10676no_glob_subst='s/\*/\\\*/g'
10677
cristy73bd4a52010-10-05 11:24:23 +000010678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10679$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010680if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010681 $as_echo_n "(cached) " >&6
10682else
10683 if test -n "$NM"; then
10684 # Let the user override the test.
10685 lt_cv_path_NM="$NM"
10686else
10687 lt_nm_to_check="${ac_tool_prefix}nm"
10688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10689 lt_nm_to_check="$lt_nm_to_check nm"
10690 fi
10691 for lt_tmp_nm in $lt_nm_to_check; do
10692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10694 IFS="$lt_save_ifs"
10695 test -z "$ac_dir" && ac_dir=.
10696 tmp_nm="$ac_dir/$lt_tmp_nm"
10697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10698 # Check to see if the nm accepts a BSD-compat flag.
10699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10700 # nm: unknown option "B" ignored
10701 # Tru64's nm complains that /dev/null is an invalid object file
10702 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10703 */dev/null* | *'Invalid file or object type'*)
10704 lt_cv_path_NM="$tmp_nm -B"
10705 break
10706 ;;
10707 *)
10708 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10709 */dev/null*)
10710 lt_cv_path_NM="$tmp_nm -p"
10711 break
10712 ;;
10713 *)
10714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10715 continue # so that we can try to find one that supports BSD flags
10716 ;;
10717 esac
10718 ;;
10719 esac
10720 fi
10721 done
10722 IFS="$lt_save_ifs"
10723 done
10724 : ${lt_cv_path_NM=no}
10725fi
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10728$as_echo "$lt_cv_path_NM" >&6; }
10729if test "$lt_cv_path_NM" != "no"; then
10730 NM="$lt_cv_path_NM"
10731else
10732 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010733 if test -n "$DUMPBIN"; then :
10734 # Let the user override the test.
10735 else
10736 if test -n "$ac_tool_prefix"; then
10737 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010738 do
10739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010743if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010744 $as_echo_n "(cached) " >&6
10745else
10746 if test -n "$DUMPBIN"; then
10747 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10748else
10749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750for as_dir in $PATH
10751do
10752 IFS=$as_save_IFS
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010756 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 break 2
10759 fi
10760done
10761 done
10762IFS=$as_save_IFS
10763
10764fi
10765fi
10766DUMPBIN=$ac_cv_prog_DUMPBIN
10767if test -n "$DUMPBIN"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10769$as_echo "$DUMPBIN" >&6; }
10770else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773fi
10774
10775
10776 test -n "$DUMPBIN" && break
10777 done
10778fi
10779if test -z "$DUMPBIN"; then
10780 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010781 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010782do
10783 # Extract the first word of "$ac_prog", so it can be a program name with args.
10784set dummy $ac_prog; ac_word=$2
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010787if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010788 $as_echo_n "(cached) " >&6
10789else
10790 if test -n "$ac_ct_DUMPBIN"; then
10791 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10792else
10793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794for as_dir in $PATH
10795do
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010800 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10803 fi
10804done
10805 done
10806IFS=$as_save_IFS
10807
10808fi
10809fi
10810ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10811if test -n "$ac_ct_DUMPBIN"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10813$as_echo "$ac_ct_DUMPBIN" >&6; }
10814else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
10817fi
10818
10819
10820 test -n "$ac_ct_DUMPBIN" && break
10821done
10822
10823 if test "x$ac_ct_DUMPBIN" = x; then
10824 DUMPBIN=":"
10825 else
10826 case $cross_compiling:$ac_tool_warned in
10827yes:)
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10830ac_tool_warned=yes ;;
10831esac
10832 DUMPBIN=$ac_ct_DUMPBIN
10833 fi
10834fi
10835
cristy0c60a692010-11-04 01:09:47 +000010836 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10837 *COFF*)
10838 DUMPBIN="$DUMPBIN -symbols"
10839 ;;
10840 *)
10841 DUMPBIN=:
10842 ;;
10843 esac
10844 fi
cristy73bd4a52010-10-05 11:24:23 +000010845
10846 if test "$DUMPBIN" != ":"; then
10847 NM="$DUMPBIN"
10848 fi
10849fi
10850test -z "$NM" && NM=nm
10851
10852
10853
10854
10855
10856
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10858$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010859if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010860 $as_echo_n "(cached) " >&6
10861else
10862 lt_cv_nm_interface="BSD nm"
10863 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010864 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010865 (eval "$ac_compile" 2>conftest.err)
10866 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010867 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010868 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10869 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010870 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010871 cat conftest.out >&5
10872 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10873 lt_cv_nm_interface="MS dumpbin"
10874 fi
10875 rm -f conftest*
10876fi
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10878$as_echo "$lt_cv_nm_interface" >&6; }
10879
10880# find the maximum length of command line arguments
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10882$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010883if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010884 $as_echo_n "(cached) " >&6
10885else
10886 i=0
10887 teststring="ABCD"
10888
10889 case $build_os in
10890 msdosdjgpp*)
10891 # On DJGPP, this test can blow up pretty badly due to problems in libc
10892 # (any single argument exceeding 2000 bytes causes a buffer overrun
10893 # during glob expansion). Even if it were fixed, the result of this
10894 # check would be larger than it should be.
10895 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10896 ;;
10897
10898 gnu*)
10899 # Under GNU Hurd, this test is not required because there is
10900 # no limit to the length of command line arguments.
10901 # Libtool will interpret -1 as no limit whatsoever
10902 lt_cv_sys_max_cmd_len=-1;
10903 ;;
10904
10905 cygwin* | mingw* | cegcc*)
10906 # On Win9x/ME, this test blows up -- it succeeds, but takes
10907 # about 5 minutes as the teststring grows exponentially.
10908 # Worse, since 9x/ME are not pre-emptively multitasking,
10909 # you end up with a "frozen" computer, even though with patience
10910 # the test eventually succeeds (with a max line length of 256k).
10911 # Instead, let's just punt: use the minimum linelength reported by
10912 # all of the supported platforms: 8192 (on NT/2K/XP).
10913 lt_cv_sys_max_cmd_len=8192;
10914 ;;
10915
cristy0c60a692010-11-04 01:09:47 +000010916 mint*)
10917 # On MiNT this can take a long time and run out of memory.
10918 lt_cv_sys_max_cmd_len=8192;
10919 ;;
10920
cristy73bd4a52010-10-05 11:24:23 +000010921 amigaos*)
10922 # On AmigaOS with pdksh, this test takes hours, literally.
10923 # So we just punt and use a minimum line length of 8192.
10924 lt_cv_sys_max_cmd_len=8192;
10925 ;;
10926
10927 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10928 # This has been around since 386BSD, at least. Likely further.
10929 if test -x /sbin/sysctl; then
10930 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10931 elif test -x /usr/sbin/sysctl; then
10932 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10933 else
10934 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10935 fi
10936 # And add a safety zone
10937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10939 ;;
10940
10941 interix*)
10942 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10943 lt_cv_sys_max_cmd_len=196608
10944 ;;
10945
cristy99bd5232011-12-07 14:38:20 +000010946 os2*)
10947 # The test takes a long time on OS/2.
10948 lt_cv_sys_max_cmd_len=8192
10949 ;;
10950
cristy73bd4a52010-10-05 11:24:23 +000010951 osf*)
10952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10954 # nice to cause kernel panics so lets avoid the loop below.
10955 # First set a reasonable default.
10956 lt_cv_sys_max_cmd_len=16384
10957 #
10958 if test -x /sbin/sysconfig; then
10959 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10961 esac
10962 fi
10963 ;;
10964 sco3.2v5*)
10965 lt_cv_sys_max_cmd_len=102400
10966 ;;
10967 sysv5* | sco5v6* | sysv4.2uw2*)
10968 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10969 if test -n "$kargmax"; then
10970 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10971 else
10972 lt_cv_sys_max_cmd_len=32768
10973 fi
10974 ;;
10975 *)
10976 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10977 if test -n "$lt_cv_sys_max_cmd_len"; then
10978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10980 else
10981 # Make teststring a little bigger before we do anything with it.
10982 # a 1K string should be a reasonable start.
10983 for i in 1 2 3 4 5 6 7 8 ; do
10984 teststring=$teststring$teststring
10985 done
10986 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10987 # If test is not a shell built-in, we'll probably end up computing a
10988 # maximum length that is only half of the actual maximum length, but
10989 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010990 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010991 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010992 test $i != 17 # 1/2 MB should be enough
10993 do
10994 i=`expr $i + 1`
10995 teststring=$teststring$teststring
10996 done
10997 # Only check the string length outside the loop.
10998 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10999 teststring=
11000 # Add a significant safety factor because C++ compilers can tack on
11001 # massive amounts of additional arguments before passing them to the
11002 # linker. It appears as though 1/2 is a usable value.
11003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11004 fi
11005 ;;
11006 esac
11007
11008fi
11009
11010if test -n $lt_cv_sys_max_cmd_len ; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11012$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11015$as_echo "none" >&6; }
11016fi
11017max_cmd_len=$lt_cv_sys_max_cmd_len
11018
11019
11020
11021
11022
11023
11024: ${CP="cp -f"}
11025: ${MV="mv -f"}
11026: ${RM="rm -f"}
11027
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11029$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11030# Try some XSI features
11031xsi_shell=no
11032( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011033 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11034 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011035 && eval 'test $(( 1 + 1 )) -eq 2 \
11036 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11037 && xsi_shell=yes
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11039$as_echo "$xsi_shell" >&6; }
11040
11041
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11043$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11044lt_shell_append=no
11045( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11046 >/dev/null 2>&1 \
11047 && lt_shell_append=yes
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11049$as_echo "$lt_shell_append" >&6; }
11050
11051
11052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11053 lt_unset=unset
11054else
11055 lt_unset=false
11056fi
11057
11058
11059
11060
11061
11062# test EBCDIC or ASCII
11063case `echo X|tr X '\101'` in
11064 A) # ASCII based system
11065 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11066 lt_SP2NL='tr \040 \012'
11067 lt_NL2SP='tr \015\012 \040\040'
11068 ;;
11069 *) # EBCDIC based system
11070 lt_SP2NL='tr \100 \n'
11071 lt_NL2SP='tr \r\n \100\100'
11072 ;;
11073esac
11074
11075
11076
11077
11078
11079
11080
11081
11082
cristyda16f162011-02-19 23:52:17 +000011083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11084$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11085if ${lt_cv_to_host_file_cmd+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087else
11088 case $host in
11089 *-*-mingw* )
11090 case $build in
11091 *-*-mingw* ) # actually msys
11092 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11093 ;;
11094 *-*-cygwin* )
11095 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11096 ;;
11097 * ) # otherwise, assume *nix
11098 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11099 ;;
11100 esac
11101 ;;
11102 *-*-cygwin* )
11103 case $build in
11104 *-*-mingw* ) # actually msys
11105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11106 ;;
11107 *-*-cygwin* )
11108 lt_cv_to_host_file_cmd=func_convert_file_noop
11109 ;;
11110 * ) # otherwise, assume *nix
11111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11112 ;;
11113 esac
11114 ;;
11115 * ) # unhandled hosts (and "normal" native builds)
11116 lt_cv_to_host_file_cmd=func_convert_file_noop
11117 ;;
11118esac
11119
11120fi
11121
11122to_host_file_cmd=$lt_cv_to_host_file_cmd
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11124$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11125
11126
11127
11128
11129
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11131$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11132if ${lt_cv_to_tool_file_cmd+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134else
11135 #assume ordinary cross tools, or native build.
11136lt_cv_to_tool_file_cmd=func_convert_file_noop
11137case $host in
11138 *-*-mingw* )
11139 case $build in
11140 *-*-mingw* ) # actually msys
11141 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11142 ;;
11143 esac
11144 ;;
11145esac
11146
11147fi
11148
11149to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11151$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11152
11153
11154
11155
11156
cristy73bd4a52010-10-05 11:24:23 +000011157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11158$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011159if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011160 $as_echo_n "(cached) " >&6
11161else
11162 lt_cv_ld_reload_flag='-r'
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11165$as_echo "$lt_cv_ld_reload_flag" >&6; }
11166reload_flag=$lt_cv_ld_reload_flag
11167case $reload_flag in
11168"" | " "*) ;;
11169*) reload_flag=" $reload_flag" ;;
11170esac
11171reload_cmds='$LD$reload_flag -o $output$reload_objs'
11172case $host_os in
cristyda16f162011-02-19 23:52:17 +000011173 cygwin* | mingw* | pw32* | cegcc*)
11174 if test "$GCC" != yes; then
11175 reload_cmds=false
11176 fi
11177 ;;
cristy73bd4a52010-10-05 11:24:23 +000011178 darwin*)
11179 if test "$GCC" = yes; then
11180 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11181 else
11182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11183 fi
11184 ;;
11185esac
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195if test -n "$ac_tool_prefix"; then
11196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11197set dummy ${ac_tool_prefix}objdump; ac_word=$2
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011200if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011201 $as_echo_n "(cached) " >&6
11202else
11203 if test -n "$OBJDUMP"; then
11204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11205else
11206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $PATH
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 break 2
11216 fi
11217done
11218 done
11219IFS=$as_save_IFS
11220
11221fi
11222fi
11223OBJDUMP=$ac_cv_prog_OBJDUMP
11224if test -n "$OBJDUMP"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11226$as_echo "$OBJDUMP" >&6; }
11227else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
11230fi
11231
11232
11233fi
11234if test -z "$ac_cv_prog_OBJDUMP"; then
11235 ac_ct_OBJDUMP=$OBJDUMP
11236 # Extract the first word of "objdump", so it can be a program name with args.
11237set dummy objdump; ac_word=$2
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011241 $as_echo_n "(cached) " >&6
11242else
11243 if test -n "$ac_ct_OBJDUMP"; then
11244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258 done
11259IFS=$as_save_IFS
11260
11261fi
11262fi
11263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11264if test -n "$ac_ct_OBJDUMP"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11266$as_echo "$ac_ct_OBJDUMP" >&6; }
11267else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272 if test "x$ac_ct_OBJDUMP" = x; then
11273 OBJDUMP="false"
11274 else
11275 case $cross_compiling:$ac_tool_warned in
11276yes:)
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11279ac_tool_warned=yes ;;
11280esac
11281 OBJDUMP=$ac_ct_OBJDUMP
11282 fi
11283else
11284 OBJDUMP="$ac_cv_prog_OBJDUMP"
11285fi
11286
11287test -z "$OBJDUMP" && OBJDUMP=objdump
11288
11289
11290
11291
11292
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11295$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011296if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011297 $as_echo_n "(cached) " >&6
11298else
11299 lt_cv_file_magic_cmd='$MAGIC_CMD'
11300lt_cv_file_magic_test_file=
11301lt_cv_deplibs_check_method='unknown'
11302# Need to set the preceding variable on all platforms that support
11303# interlibrary dependencies.
11304# 'none' -- dependencies not supported.
11305# `unknown' -- same as none, but documents that we really don't know.
11306# 'pass_all' -- all dependencies passed with no checks.
11307# 'test_compile' -- check by making test program.
11308# 'file_magic [[regex]]' -- check by looking for files in library path
11309# which responds to the $file_magic_cmd with a given extended regex.
11310# If you have `file' or equivalent on your system and you're not sure
11311# whether `pass_all' will *always* work, you probably want this one.
11312
11313case $host_os in
11314aix[4-9]*)
11315 lt_cv_deplibs_check_method=pass_all
11316 ;;
11317
11318beos*)
11319 lt_cv_deplibs_check_method=pass_all
11320 ;;
11321
11322bsdi[45]*)
11323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11324 lt_cv_file_magic_cmd='/usr/bin/file -L'
11325 lt_cv_file_magic_test_file=/shlib/libc.so
11326 ;;
11327
11328cygwin*)
11329 # func_win32_libid is a shell function defined in ltmain.sh
11330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11331 lt_cv_file_magic_cmd='func_win32_libid'
11332 ;;
11333
11334mingw* | pw32*)
11335 # Base MSYS/MinGW do not provide the 'file' command needed by
11336 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11337 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011338 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11339 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11341 lt_cv_file_magic_cmd='func_win32_libid'
11342 else
cristy0c60a692010-11-04 01:09:47 +000011343 # Keep this pattern in sync with the one in func_win32_libid.
11344 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 +000011345 lt_cv_file_magic_cmd='$OBJDUMP -f'
11346 fi
11347 ;;
11348
cristy0c60a692010-11-04 01:09:47 +000011349cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011350 # use the weaker test based on 'objdump'. See mingw*.
11351 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11352 lt_cv_file_magic_cmd='$OBJDUMP -f'
11353 ;;
11354
11355darwin* | rhapsody*)
11356 lt_cv_deplibs_check_method=pass_all
11357 ;;
11358
11359freebsd* | dragonfly*)
11360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11361 case $host_cpu in
11362 i*86 )
11363 # Not sure whether the presence of OpenBSD here was a mistake.
11364 # Let's accept both of them until this is cleared up.
11365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11366 lt_cv_file_magic_cmd=/usr/bin/file
11367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11368 ;;
11369 esac
11370 else
11371 lt_cv_deplibs_check_method=pass_all
11372 fi
11373 ;;
11374
11375gnu*)
11376 lt_cv_deplibs_check_method=pass_all
11377 ;;
11378
cristy0c60a692010-11-04 01:09:47 +000011379haiku*)
11380 lt_cv_deplibs_check_method=pass_all
11381 ;;
11382
cristy73bd4a52010-10-05 11:24:23 +000011383hpux10.20* | hpux11*)
11384 lt_cv_file_magic_cmd=/usr/bin/file
11385 case $host_cpu in
11386 ia64*)
11387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11389 ;;
11390 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011391 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 +000011392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11393 ;;
11394 *)
cristy0c60a692010-11-04 01:09:47 +000011395 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 +000011396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11397 ;;
11398 esac
11399 ;;
11400
11401interix[3-9]*)
11402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11404 ;;
11405
11406irix5* | irix6* | nonstopux*)
11407 case $LD in
11408 *-32|*"-32 ") libmagic=32-bit;;
11409 *-n32|*"-n32 ") libmagic=N32;;
11410 *-64|*"-64 ") libmagic=64-bit;;
11411 *) libmagic=never-match;;
11412 esac
11413 lt_cv_deplibs_check_method=pass_all
11414 ;;
11415
cristy99bd5232011-12-07 14:38:20 +000011416# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011417linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011418 lt_cv_deplibs_check_method=pass_all
11419 ;;
11420
11421netbsd*)
11422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11424 else
11425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11426 fi
11427 ;;
11428
11429newos6*)
11430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11431 lt_cv_file_magic_cmd=/usr/bin/file
11432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11433 ;;
11434
11435*nto* | *qnx*)
11436 lt_cv_deplibs_check_method=pass_all
11437 ;;
11438
11439openbsd*)
11440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11442 else
11443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11444 fi
11445 ;;
11446
11447osf3* | osf4* | osf5*)
11448 lt_cv_deplibs_check_method=pass_all
11449 ;;
11450
11451rdos*)
11452 lt_cv_deplibs_check_method=pass_all
11453 ;;
11454
11455solaris*)
11456 lt_cv_deplibs_check_method=pass_all
11457 ;;
11458
11459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11460 lt_cv_deplibs_check_method=pass_all
11461 ;;
11462
11463sysv4 | sysv4.3*)
11464 case $host_vendor in
11465 motorola)
11466 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]'
11467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11468 ;;
11469 ncr)
11470 lt_cv_deplibs_check_method=pass_all
11471 ;;
11472 sequent)
11473 lt_cv_file_magic_cmd='/bin/file'
11474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11475 ;;
11476 sni)
11477 lt_cv_file_magic_cmd='/bin/file'
11478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11479 lt_cv_file_magic_test_file=/lib/libc.so
11480 ;;
11481 siemens)
11482 lt_cv_deplibs_check_method=pass_all
11483 ;;
11484 pc)
11485 lt_cv_deplibs_check_method=pass_all
11486 ;;
11487 esac
11488 ;;
11489
11490tpf*)
11491 lt_cv_deplibs_check_method=pass_all
11492 ;;
11493esac
11494
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11497$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011498
11499file_magic_glob=
11500want_nocaseglob=no
11501if test "$build" = "$host"; then
11502 case $host_os in
11503 mingw* | pw32*)
11504 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11505 want_nocaseglob=yes
11506 else
11507 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11508 fi
11509 ;;
11510 esac
11511fi
11512
cristy73bd4a52010-10-05 11:24:23 +000011513file_magic_cmd=$lt_cv_file_magic_cmd
11514deplibs_check_method=$lt_cv_deplibs_check_method
11515test -z "$deplibs_check_method" && deplibs_check_method=unknown
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
cristyda16f162011-02-19 23:52:17 +000011528
11529
11530
11531
11532
11533
11534
11535
11536
11537
cristy73bd4a52010-10-05 11:24:23 +000011538if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011539 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11540set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011543if ${ac_cv_prog_DLLTOOL+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545else
11546 if test -n "$DLLTOOL"; then
11547 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011556 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560done
11561 done
11562IFS=$as_save_IFS
11563
11564fi
11565fi
11566DLLTOOL=$ac_cv_prog_DLLTOOL
11567if test -n "$DLLTOOL"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11569$as_echo "$DLLTOOL" >&6; }
11570else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572$as_echo "no" >&6; }
11573fi
11574
11575
11576fi
11577if test -z "$ac_cv_prog_DLLTOOL"; then
11578 ac_ct_DLLTOOL=$DLLTOOL
11579 # Extract the first word of "dlltool", so it can be a program name with args.
11580set dummy dlltool; ac_word=$2
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
11583if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585else
11586 if test -n "$ac_ct_DLLTOOL"; then
11587 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11588else
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011596 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11599 fi
11600done
11601 done
11602IFS=$as_save_IFS
11603
11604fi
11605fi
11606ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11607if test -n "$ac_ct_DLLTOOL"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11609$as_echo "$ac_ct_DLLTOOL" >&6; }
11610else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
11613fi
11614
11615 if test "x$ac_ct_DLLTOOL" = x; then
11616 DLLTOOL="false"
11617 else
11618 case $cross_compiling:$ac_tool_warned in
11619yes:)
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622ac_tool_warned=yes ;;
11623esac
11624 DLLTOOL=$ac_ct_DLLTOOL
11625 fi
11626else
11627 DLLTOOL="$ac_cv_prog_DLLTOOL"
11628fi
11629
11630test -z "$DLLTOOL" && DLLTOOL=dlltool
11631
11632
11633
11634
11635
11636
11637
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11639$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11640if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643 lt_cv_sharedlib_from_linklib_cmd='unknown'
11644
11645case $host_os in
11646cygwin* | mingw* | pw32* | cegcc*)
11647 # two different shell functions defined in ltmain.sh
11648 # decide which to use based on capabilities of $DLLTOOL
11649 case `$DLLTOOL --help 2>&1` in
11650 *--identify-strict*)
11651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11652 ;;
11653 *)
11654 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11655 ;;
11656 esac
11657 ;;
11658*)
11659 # fallback: assume linklib IS sharedlib
11660 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11661 ;;
11662esac
11663
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11666$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11667sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11668test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11669
11670
11671
11672
11673
11674
11675
11676if test -n "$ac_tool_prefix"; then
11677 for ac_prog in ar
11678 do
11679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682$as_echo_n "checking for $ac_word... " >&6; }
11683if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011684 $as_echo_n "(cached) " >&6
11685else
11686 if test -n "$AR"; then
11687 ac_cv_prog_AR="$AR" # Let the user override the test.
11688else
11689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011696 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11699 fi
11700done
11701 done
11702IFS=$as_save_IFS
11703
11704fi
11705fi
11706AR=$ac_cv_prog_AR
11707if test -n "$AR"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11709$as_echo "$AR" >&6; }
11710else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
11713fi
11714
11715
cristyda16f162011-02-19 23:52:17 +000011716 test -n "$AR" && break
11717 done
cristy73bd4a52010-10-05 11:24:23 +000011718fi
cristyda16f162011-02-19 23:52:17 +000011719if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011720 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011721 for ac_prog in ar
11722do
11723 # Extract the first word of "$ac_prog", so it can be a program name with args.
11724set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011727if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011728 $as_echo_n "(cached) " >&6
11729else
11730 if test -n "$ac_ct_AR"; then
11731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011740 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744done
11745 done
11746IFS=$as_save_IFS
11747
11748fi
11749fi
11750ac_ct_AR=$ac_cv_prog_ac_ct_AR
11751if test -n "$ac_ct_AR"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11753$as_echo "$ac_ct_AR" >&6; }
11754else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756$as_echo "no" >&6; }
11757fi
11758
cristyda16f162011-02-19 23:52:17 +000011759
11760 test -n "$ac_ct_AR" && break
11761done
11762
cristy73bd4a52010-10-05 11:24:23 +000011763 if test "x$ac_ct_AR" = x; then
11764 AR="false"
11765 else
11766 case $cross_compiling:$ac_tool_warned in
11767yes:)
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11770ac_tool_warned=yes ;;
11771esac
11772 AR=$ac_ct_AR
11773 fi
cristy73bd4a52010-10-05 11:24:23 +000011774fi
11775
cristyda16f162011-02-19 23:52:17 +000011776: ${AR=ar}
11777: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
cristyda16f162011-02-19 23:52:17 +000011789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11790$as_echo_n "checking for archiver @FILE support... " >&6; }
11791if ${lt_cv_ar_at_file+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793else
11794 lt_cv_ar_at_file=no
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796/* end confdefs.h. */
11797
11798int
11799main ()
11800{
11801
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806if ac_fn_c_try_compile "$LINENO"; then :
11807 echo conftest.$ac_objext > conftest.lst
11808 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11810 (eval $lt_ar_try) 2>&5
11811 ac_status=$?
11812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813 test $ac_status = 0; }
11814 if test "$ac_status" -eq 0; then
11815 # Ensure the archiver fails upon bogus file names.
11816 rm -f conftest.$ac_objext libconftest.a
11817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11818 (eval $lt_ar_try) 2>&5
11819 ac_status=$?
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; }
11822 if test "$ac_status" -ne 0; then
11823 lt_cv_ar_at_file=@
11824 fi
11825 fi
11826 rm -f conftest.* libconftest.a
11827
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11833$as_echo "$lt_cv_ar_at_file" >&6; }
11834
11835if test "x$lt_cv_ar_at_file" = xno; then
11836 archiver_list_spec=
11837else
11838 archiver_list_spec=$lt_cv_ar_at_file
11839fi
11840
11841
11842
11843
11844
11845
11846
cristy73bd4a52010-10-05 11:24:23 +000011847if test -n "$ac_tool_prefix"; then
11848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11849set dummy ${ac_tool_prefix}strip; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011852if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011853 $as_echo_n "(cached) " >&6
11854else
11855 if test -n "$STRIP"; then
11856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869done
11870 done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875STRIP=$ac_cv_prog_STRIP
11876if test -n "$STRIP"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11878$as_echo "$STRIP" >&6; }
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884
11885fi
11886if test -z "$ac_cv_prog_STRIP"; then
11887 ac_ct_STRIP=$STRIP
11888 # Extract the first word of "strip", so it can be a program name with args.
11889set dummy strip; ac_word=$2
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011892if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011893 $as_echo_n "(cached) " >&6
11894else
11895 if test -n "$ac_ct_STRIP"; then
11896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011905 ac_cv_prog_ac_ct_STRIP="strip"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11908 fi
11909done
11910 done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11916if test -n "$ac_ct_STRIP"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11918$as_echo "$ac_ct_STRIP" >&6; }
11919else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924 if test "x$ac_ct_STRIP" = x; then
11925 STRIP=":"
11926 else
11927 case $cross_compiling:$ac_tool_warned in
11928yes:)
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931ac_tool_warned=yes ;;
11932esac
11933 STRIP=$ac_ct_STRIP
11934 fi
11935else
11936 STRIP="$ac_cv_prog_STRIP"
11937fi
11938
11939test -z "$STRIP" && STRIP=:
11940
11941
11942
11943
11944
11945
11946if test -n "$ac_tool_prefix"; then
11947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11948set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011951if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011952 $as_echo_n "(cached) " >&6
11953else
11954 if test -n "$RANLIB"; then
11955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11956else
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11967 fi
11968done
11969 done
11970IFS=$as_save_IFS
11971
11972fi
11973fi
11974RANLIB=$ac_cv_prog_RANLIB
11975if test -n "$RANLIB"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11977$as_echo "$RANLIB" >&6; }
11978else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
11981fi
11982
11983
11984fi
11985if test -z "$ac_cv_prog_RANLIB"; then
11986 ac_ct_RANLIB=$RANLIB
11987 # Extract the first word of "ranlib", so it can be a program name with args.
11988set dummy ranlib; ac_word=$2
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011991if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011992 $as_echo_n "(cached) " >&6
11993else
11994 if test -n "$ac_ct_RANLIB"; then
11995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11996else
11997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998for as_dir in $PATH
11999do
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012004 ac_cv_prog_ac_ct_RANLIB="ranlib"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12007 fi
12008done
12009 done
12010IFS=$as_save_IFS
12011
12012fi
12013fi
12014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12015if test -n "$ac_ct_RANLIB"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12017$as_echo "$ac_ct_RANLIB" >&6; }
12018else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021fi
12022
12023 if test "x$ac_ct_RANLIB" = x; then
12024 RANLIB=":"
12025 else
12026 case $cross_compiling:$ac_tool_warned in
12027yes:)
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12030ac_tool_warned=yes ;;
12031esac
12032 RANLIB=$ac_ct_RANLIB
12033 fi
12034else
12035 RANLIB="$ac_cv_prog_RANLIB"
12036fi
12037
12038test -z "$RANLIB" && RANLIB=:
12039
12040
12041
12042
12043
12044
12045# Determine commands to create old-style static archives.
12046old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12047old_postinstall_cmds='chmod 644 $oldlib'
12048old_postuninstall_cmds=
12049
12050if test -n "$RANLIB"; then
12051 case $host_os in
12052 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012054 ;;
12055 *)
cristy99bd5232011-12-07 14:38:20 +000012056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012057 ;;
12058 esac
cristy99bd5232011-12-07 14:38:20 +000012059 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012060fi
12061
cristy0c60a692010-11-04 01:09:47 +000012062case $host_os in
12063 darwin*)
12064 lock_old_archive_extraction=yes ;;
12065 *)
12066 lock_old_archive_extraction=no ;;
12067esac
12068
12069
12070
12071
12072
12073
cristy73bd4a52010-10-05 11:24:23 +000012074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107# If no C compiler was specified, use CC.
12108LTCC=${LTCC-"$CC"}
12109
12110# If no C compiler flags were specified, use CFLAGS.
12111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12112
12113# Allow CC to be a program name with arguments.
12114compiler=$CC
12115
12116
12117# Check for command to grab the raw symbol name followed by C symbol from nm.
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12119$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012120if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012121 $as_echo_n "(cached) " >&6
12122else
12123
12124# These are sane defaults that work on at least a few old systems.
12125# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12126
12127# Character class describing NM global symbol codes.
12128symcode='[BCDEGRST]'
12129
12130# Regexp to match symbols that can be accessed directly from C.
12131sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12132
12133# Define system-specific variables.
12134case $host_os in
12135aix*)
12136 symcode='[BCDT]'
12137 ;;
12138cygwin* | mingw* | pw32* | cegcc*)
12139 symcode='[ABCDGISTW]'
12140 ;;
12141hpux*)
12142 if test "$host_cpu" = ia64; then
12143 symcode='[ABCDEGRST]'
12144 fi
12145 ;;
12146irix* | nonstopux*)
12147 symcode='[BCDEGRST]'
12148 ;;
12149osf*)
12150 symcode='[BCDEGQRST]'
12151 ;;
12152solaris*)
12153 symcode='[BDRT]'
12154 ;;
12155sco3.2v5*)
12156 symcode='[DT]'
12157 ;;
12158sysv4.2uw2*)
12159 symcode='[DT]'
12160 ;;
12161sysv5* | sco5v6* | unixware* | OpenUNIX*)
12162 symcode='[ABDT]'
12163 ;;
12164sysv4)
12165 symcode='[DFNSTU]'
12166 ;;
12167esac
12168
12169# If we're using GNU nm, then use its standard symbol codes.
12170case `$NM -V 2>&1` in
12171*GNU* | *'with BFD'*)
12172 symcode='[ABCDGIRSTW]' ;;
12173esac
12174
12175# Transform an extracted symbol line into a proper C declaration.
12176# Some systems (esp. on ia64) link data and code symbols differently,
12177# so use this general approach.
12178lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12179
12180# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012181lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12182lt_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 +000012183
12184# Handle CRLF in mingw tool chain
12185opt_cr=
12186case $build_os in
12187mingw*)
12188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12189 ;;
12190esac
12191
12192# Try without a prefix underscore, then with it.
12193for ac_symprfx in "" "_"; do
12194
12195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12196 symxfrm="\\1 $ac_symprfx\\2 \\2"
12197
12198 # Write the raw and C identifiers.
12199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12200 # Fake it for dumpbin and say T for any non-static function
12201 # and D for any global variable.
12202 # Also find C++ and __fastcall symbols from MSVC++,
12203 # which start with @ or ?.
12204 lt_cv_sys_global_symbol_pipe="$AWK '"\
12205" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012206" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012207" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12208" \$ 0!~/External *\|/{next};"\
12209" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12210" {if(hide[section]) next};"\
12211" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12212" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12213" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12214" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12215" ' prfx=^$ac_symprfx"
12216 else
12217 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12218 fi
cristyda16f162011-02-19 23:52:17 +000012219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012220
12221 # Check to see that the pipe works correctly.
12222 pipe_works=no
12223
12224 rm -f conftest*
12225 cat > conftest.$ac_ext <<_LT_EOF
12226#ifdef __cplusplus
12227extern "C" {
12228#endif
12229char nm_test_var;
12230void nm_test_func(void);
12231void nm_test_func(void){}
12232#ifdef __cplusplus
12233}
12234#endif
12235int main(){nm_test_var='a';nm_test_func();return(0);}
12236_LT_EOF
12237
12238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12239 (eval $ac_compile) 2>&5
12240 ac_status=$?
12241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242 test $ac_status = 0; }; then
12243 # Now try to grab the symbols.
12244 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; } && test -s "$nlist"; then
12250 # Try sorting and uniquifying the output.
12251 if sort "$nlist" | uniq > "$nlist"T; then
12252 mv -f "$nlist"T "$nlist"
12253 else
12254 rm -f "$nlist"T
12255 fi
12256
12257 # Make sure that we snagged all the symbols we need.
12258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12260 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012261/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12262#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12263/* DATA imports from DLLs on WIN32 con't be const, because runtime
12264 relocations are performed -- see ld's documentation on pseudo-relocs. */
12265# define LT_DLSYM_CONST
12266#elif defined(__osf__)
12267/* This system does not cope well with relocations in const data. */
12268# define LT_DLSYM_CONST
12269#else
12270# define LT_DLSYM_CONST const
12271#endif
12272
cristy73bd4a52010-10-05 11:24:23 +000012273#ifdef __cplusplus
12274extern "C" {
12275#endif
12276
12277_LT_EOF
12278 # Now generate the symbol file.
12279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12280
12281 cat <<_LT_EOF >> conftest.$ac_ext
12282
12283/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012284LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012285 const char *name;
12286 void *address;
12287}
12288lt__PROGRAM__LTX_preloaded_symbols[] =
12289{
12290 { "@PROGRAM@", (void *) 0 },
12291_LT_EOF
12292 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12293 cat <<\_LT_EOF >> conftest.$ac_ext
12294 {0, (void *) 0}
12295};
12296
12297/* This works around a problem in FreeBSD linker */
12298#ifdef FREEBSD_WORKAROUND
12299static const void *lt_preloaded_setup() {
12300 return lt__PROGRAM__LTX_preloaded_symbols;
12301}
12302#endif
12303
12304#ifdef __cplusplus
12305}
12306#endif
12307_LT_EOF
12308 # Now try linking the two files.
12309 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012310 lt_globsym_save_LIBS=$LIBS
12311 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012312 LIBS="conftstm.$ac_objext"
12313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12319 pipe_works=yes
12320 fi
cristyda16f162011-02-19 23:52:17 +000012321 LIBS=$lt_globsym_save_LIBS
12322 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012323 else
12324 echo "cannot find nm_test_func in $nlist" >&5
12325 fi
12326 else
12327 echo "cannot find nm_test_var in $nlist" >&5
12328 fi
12329 else
12330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12331 fi
12332 else
12333 echo "$progname: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 fi
12336 rm -rf conftest* conftst*
12337
12338 # Do not use the global_symbol_pipe unless it works.
12339 if test "$pipe_works" = yes; then
12340 break
12341 else
12342 lt_cv_sys_global_symbol_pipe=
12343 fi
12344done
12345
12346fi
12347
12348if test -z "$lt_cv_sys_global_symbol_pipe"; then
12349 lt_cv_sys_global_symbol_to_cdecl=
12350fi
12351if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12353$as_echo "failed" >&6; }
12354else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12356$as_echo "ok" >&6; }
12357fi
12358
cristyda16f162011-02-19 23:52:17 +000012359# Response file support.
12360if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12361 nm_file_list_spec='@'
12362elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12363 nm_file_list_spec='@'
12364fi
cristy73bd4a52010-10-05 11:24:23 +000012365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
cristyda16f162011-02-19 23:52:17 +000012386
12387
12388
12389
12390
12391
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12393$as_echo_n "checking for sysroot... " >&6; }
12394
12395# Check whether --with-sysroot was given.
12396if test "${with_sysroot+set}" = set; then :
12397 withval=$with_sysroot;
12398else
12399 with_sysroot=no
12400fi
12401
12402
12403lt_sysroot=
12404case ${with_sysroot} in #(
12405 yes)
12406 if test "$GCC" = yes; then
12407 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12408 fi
12409 ;; #(
12410 /*)
12411 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12412 ;; #(
12413 no|'')
12414 ;; #(
12415 *)
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12417$as_echo "${with_sysroot}" >&6; }
12418 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12419 ;;
12420esac
12421
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12423$as_echo "${lt_sysroot:-no}" >&6; }
12424
12425
12426
12427
12428
cristy73bd4a52010-10-05 11:24:23 +000012429# Check whether --enable-libtool-lock was given.
12430if test "${enable_libtool_lock+set}" = set; then :
12431 enableval=$enable_libtool_lock;
12432fi
12433
12434test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12435
12436# Some flags need to be propagated to the compiler or linker for good
12437# libtool support.
12438case $host in
12439ia64-*-hpux*)
12440 # Find out which ABI we are using.
12441 echo 'int i;' > conftest.$ac_ext
12442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12443 (eval $ac_compile) 2>&5
12444 ac_status=$?
12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }; then
12447 case `/usr/bin/file conftest.$ac_objext` in
12448 *ELF-32*)
12449 HPUX_IA64_MODE="32"
12450 ;;
12451 *ELF-64*)
12452 HPUX_IA64_MODE="64"
12453 ;;
12454 esac
12455 fi
12456 rm -rf conftest*
12457 ;;
12458*-*-irix6*)
12459 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; }; then
12466 if test "$lt_cv_prog_gnu_ld" = yes; then
12467 case `/usr/bin/file conftest.$ac_objext` in
12468 *32-bit*)
12469 LD="${LD-ld} -melf32bsmip"
12470 ;;
12471 *N32*)
12472 LD="${LD-ld} -melf32bmipn32"
12473 ;;
12474 *64-bit*)
12475 LD="${LD-ld} -melf64bmip"
12476 ;;
12477 esac
12478 else
12479 case `/usr/bin/file conftest.$ac_objext` in
12480 *32-bit*)
12481 LD="${LD-ld} -32"
12482 ;;
12483 *N32*)
12484 LD="${LD-ld} -n32"
12485 ;;
12486 *64-bit*)
12487 LD="${LD-ld} -64"
12488 ;;
12489 esac
12490 fi
12491 fi
12492 rm -rf conftest*
12493 ;;
12494
12495x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12496s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12497 # Find out which ABI we are using.
12498 echo 'int i;' > conftest.$ac_ext
12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12500 (eval $ac_compile) 2>&5
12501 ac_status=$?
12502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12503 test $ac_status = 0; }; then
12504 case `/usr/bin/file conftest.o` in
12505 *32-bit*)
12506 case $host in
12507 x86_64-*kfreebsd*-gnu)
12508 LD="${LD-ld} -m elf_i386_fbsd"
12509 ;;
12510 x86_64-*linux*)
12511 LD="${LD-ld} -m elf_i386"
12512 ;;
12513 ppc64-*linux*|powerpc64-*linux*)
12514 LD="${LD-ld} -m elf32ppclinux"
12515 ;;
12516 s390x-*linux*)
12517 LD="${LD-ld} -m elf_s390"
12518 ;;
12519 sparc64-*linux*)
12520 LD="${LD-ld} -m elf32_sparc"
12521 ;;
12522 esac
12523 ;;
12524 *64-bit*)
12525 case $host in
12526 x86_64-*kfreebsd*-gnu)
12527 LD="${LD-ld} -m elf_x86_64_fbsd"
12528 ;;
12529 x86_64-*linux*)
12530 LD="${LD-ld} -m elf_x86_64"
12531 ;;
12532 ppc*-*linux*|powerpc*-*linux*)
12533 LD="${LD-ld} -m elf64ppc"
12534 ;;
12535 s390*-*linux*|s390*-*tpf*)
12536 LD="${LD-ld} -m elf64_s390"
12537 ;;
12538 sparc*-*linux*)
12539 LD="${LD-ld} -m elf64_sparc"
12540 ;;
12541 esac
12542 ;;
12543 esac
12544 fi
12545 rm -rf conftest*
12546 ;;
12547
12548*-*-sco3.2v5*)
12549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12550 SAVE_CFLAGS="$CFLAGS"
12551 CFLAGS="$CFLAGS -belf"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12553$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 ac_ext=c
12558ac_cpp='$CPP $CPPFLAGS'
12559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561ac_compiler_gnu=$ac_cv_c_compiler_gnu
12562
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565
12566int
12567main ()
12568{
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_link "$LINENO"; then :
12575 lt_cv_cc_needs_belf=yes
12576else
12577 lt_cv_cc_needs_belf=no
12578fi
12579rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 ac_ext=c
12582ac_cpp='$CPP $CPPFLAGS'
12583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12589$as_echo "$lt_cv_cc_needs_belf" >&6; }
12590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12592 CFLAGS="$SAVE_CFLAGS"
12593 fi
12594 ;;
cristy99bd5232011-12-07 14:38:20 +000012595*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012596 # Find out which ABI we are using.
12597 echo 'int i;' > conftest.$ac_ext
12598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602 test $ac_status = 0; }; then
12603 case `/usr/bin/file conftest.o` in
12604 *64-bit*)
12605 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012606 yes*)
12607 case $host in
12608 i?86-*-solaris*)
12609 LD="${LD-ld} -m elf_x86_64"
12610 ;;
12611 sparc*-*-solaris*)
12612 LD="${LD-ld} -m elf64_sparc"
12613 ;;
12614 esac
12615 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12616 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12617 LD="${LD-ld}_sol2"
12618 fi
12619 ;;
cristy73bd4a52010-10-05 11:24:23 +000012620 *)
12621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12622 LD="${LD-ld} -64"
12623 fi
12624 ;;
12625 esac
12626 ;;
12627 esac
12628 fi
12629 rm -rf conftest*
12630 ;;
12631esac
12632
12633need_locks="$enable_libtool_lock"
12634
cristyda16f162011-02-19 23:52:17 +000012635if test -n "$ac_tool_prefix"; then
12636 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12637set dummy ${ac_tool_prefix}mt; ac_word=$2
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639$as_echo_n "checking for $ac_word... " >&6; }
12640if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642else
12643 if test -n "$MANIFEST_TOOL"; then
12644 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12645else
12646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $PATH
12648do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012653 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12656 fi
12657done
12658 done
12659IFS=$as_save_IFS
12660
12661fi
12662fi
12663MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12664if test -n "$MANIFEST_TOOL"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12666$as_echo "$MANIFEST_TOOL" >&6; }
12667else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
12670fi
12671
12672
12673fi
12674if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12675 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12676 # Extract the first word of "mt", so it can be a program name with args.
12677set dummy mt; ac_word=$2
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679$as_echo_n "checking for $ac_word... " >&6; }
12680if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682else
12683 if test -n "$ac_ct_MANIFEST_TOOL"; then
12684 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12685else
12686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $PATH
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012693 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697done
12698 done
12699IFS=$as_save_IFS
12700
12701fi
12702fi
12703ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12704if test -n "$ac_ct_MANIFEST_TOOL"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12706$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12707else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
12710fi
12711
12712 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12713 MANIFEST_TOOL=":"
12714 else
12715 case $cross_compiling:$ac_tool_warned in
12716yes:)
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12719ac_tool_warned=yes ;;
12720esac
12721 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12722 fi
12723else
12724 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12725fi
12726
12727test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12729$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12730if ${lt_cv_path_mainfest_tool+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732else
12733 lt_cv_path_mainfest_tool=no
12734 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12735 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12736 cat conftest.err >&5
12737 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12738 lt_cv_path_mainfest_tool=yes
12739 fi
12740 rm -f conftest*
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12743$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12744if test "x$lt_cv_path_mainfest_tool" != xyes; then
12745 MANIFEST_TOOL=:
12746fi
12747
12748
12749
12750
12751
cristy73bd4a52010-10-05 11:24:23 +000012752
12753 case $host_os in
12754 rhapsody* | darwin*)
12755 if test -n "$ac_tool_prefix"; then
12756 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12757set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012760if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012761 $as_echo_n "(cached) " >&6
12762else
12763 if test -n "$DSYMUTIL"; then
12764 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12765else
12766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767for as_dir in $PATH
12768do
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012773 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12776 fi
12777done
12778 done
12779IFS=$as_save_IFS
12780
12781fi
12782fi
12783DSYMUTIL=$ac_cv_prog_DSYMUTIL
12784if test -n "$DSYMUTIL"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12786$as_echo "$DSYMUTIL" >&6; }
12787else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
12790fi
12791
12792
12793fi
12794if test -z "$ac_cv_prog_DSYMUTIL"; then
12795 ac_ct_DSYMUTIL=$DSYMUTIL
12796 # Extract the first word of "dsymutil", so it can be a program name with args.
12797set dummy dsymutil; ac_word=$2
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012800if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012801 $as_echo_n "(cached) " >&6
12802else
12803 if test -n "$ac_ct_DSYMUTIL"; then
12804 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12805else
12806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807for as_dir in $PATH
12808do
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012813 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12816 fi
12817done
12818 done
12819IFS=$as_save_IFS
12820
12821fi
12822fi
12823ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12824if test -n "$ac_ct_DSYMUTIL"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12826$as_echo "$ac_ct_DSYMUTIL" >&6; }
12827else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829$as_echo "no" >&6; }
12830fi
12831
12832 if test "x$ac_ct_DSYMUTIL" = x; then
12833 DSYMUTIL=":"
12834 else
12835 case $cross_compiling:$ac_tool_warned in
12836yes:)
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12839ac_tool_warned=yes ;;
12840esac
12841 DSYMUTIL=$ac_ct_DSYMUTIL
12842 fi
12843else
12844 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12845fi
12846
12847 if test -n "$ac_tool_prefix"; then
12848 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12849set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012852if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012853 $as_echo_n "(cached) " >&6
12854else
12855 if test -n "$NMEDIT"; then
12856 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12857else
12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859for as_dir in $PATH
12860do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012865 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12868 fi
12869done
12870 done
12871IFS=$as_save_IFS
12872
12873fi
12874fi
12875NMEDIT=$ac_cv_prog_NMEDIT
12876if test -n "$NMEDIT"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12878$as_echo "$NMEDIT" >&6; }
12879else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
12882fi
12883
12884
12885fi
12886if test -z "$ac_cv_prog_NMEDIT"; then
12887 ac_ct_NMEDIT=$NMEDIT
12888 # Extract the first word of "nmedit", so it can be a program name with args.
12889set dummy nmedit; ac_word=$2
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012892if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012893 $as_echo_n "(cached) " >&6
12894else
12895 if test -n "$ac_ct_NMEDIT"; then
12896 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12897else
12898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899for as_dir in $PATH
12900do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012905 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12908 fi
12909done
12910 done
12911IFS=$as_save_IFS
12912
12913fi
12914fi
12915ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12916if test -n "$ac_ct_NMEDIT"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12918$as_echo "$ac_ct_NMEDIT" >&6; }
12919else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922fi
12923
12924 if test "x$ac_ct_NMEDIT" = x; then
12925 NMEDIT=":"
12926 else
12927 case $cross_compiling:$ac_tool_warned in
12928yes:)
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12931ac_tool_warned=yes ;;
12932esac
12933 NMEDIT=$ac_ct_NMEDIT
12934 fi
12935else
12936 NMEDIT="$ac_cv_prog_NMEDIT"
12937fi
12938
12939 if test -n "$ac_tool_prefix"; then
12940 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12941set dummy ${ac_tool_prefix}lipo; ac_word=$2
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012944if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012945 $as_echo_n "(cached) " >&6
12946else
12947 if test -n "$LIPO"; then
12948 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012957 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12960 fi
12961done
12962 done
12963IFS=$as_save_IFS
12964
12965fi
12966fi
12967LIPO=$ac_cv_prog_LIPO
12968if test -n "$LIPO"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12970$as_echo "$LIPO" >&6; }
12971else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
12974fi
12975
12976
12977fi
12978if test -z "$ac_cv_prog_LIPO"; then
12979 ac_ct_LIPO=$LIPO
12980 # Extract the first word of "lipo", so it can be a program name with args.
12981set dummy lipo; ac_word=$2
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012984if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012985 $as_echo_n "(cached) " >&6
12986else
12987 if test -n "$ac_ct_LIPO"; then
12988 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012997 ac_cv_prog_ac_ct_LIPO="lipo"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002 done
13003IFS=$as_save_IFS
13004
13005fi
13006fi
13007ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13008if test -n "$ac_ct_LIPO"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13010$as_echo "$ac_ct_LIPO" >&6; }
13011else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013$as_echo "no" >&6; }
13014fi
13015
13016 if test "x$ac_ct_LIPO" = x; then
13017 LIPO=":"
13018 else
13019 case $cross_compiling:$ac_tool_warned in
13020yes:)
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13023ac_tool_warned=yes ;;
13024esac
13025 LIPO=$ac_ct_LIPO
13026 fi
13027else
13028 LIPO="$ac_cv_prog_LIPO"
13029fi
13030
13031 if test -n "$ac_tool_prefix"; then
13032 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13033set dummy ${ac_tool_prefix}otool; ac_word=$2
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013036if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013037 $as_echo_n "(cached) " >&6
13038else
13039 if test -n "$OTOOL"; then
13040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13041else
13042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $PATH
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013049 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053done
13054 done
13055IFS=$as_save_IFS
13056
13057fi
13058fi
13059OTOOL=$ac_cv_prog_OTOOL
13060if test -n "$OTOOL"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13062$as_echo "$OTOOL" >&6; }
13063else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066fi
13067
13068
13069fi
13070if test -z "$ac_cv_prog_OTOOL"; then
13071 ac_ct_OTOOL=$OTOOL
13072 # Extract the first word of "otool", so it can be a program name with args.
13073set dummy otool; ac_word=$2
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013076if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013077 $as_echo_n "(cached) " >&6
13078else
13079 if test -n "$ac_ct_OTOOL"; then
13080 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13081else
13082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083for as_dir in $PATH
13084do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013089 ac_cv_prog_ac_ct_OTOOL="otool"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093done
13094 done
13095IFS=$as_save_IFS
13096
13097fi
13098fi
13099ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13100if test -n "$ac_ct_OTOOL"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13102$as_echo "$ac_ct_OTOOL" >&6; }
13103else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106fi
13107
13108 if test "x$ac_ct_OTOOL" = x; then
13109 OTOOL=":"
13110 else
13111 case $cross_compiling:$ac_tool_warned in
13112yes:)
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13115ac_tool_warned=yes ;;
13116esac
13117 OTOOL=$ac_ct_OTOOL
13118 fi
13119else
13120 OTOOL="$ac_cv_prog_OTOOL"
13121fi
13122
13123 if test -n "$ac_tool_prefix"; then
13124 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13125set dummy ${ac_tool_prefix}otool64; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013128if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013129 $as_echo_n "(cached) " >&6
13130else
13131 if test -n "$OTOOL64"; then
13132 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013141 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145done
13146 done
13147IFS=$as_save_IFS
13148
13149fi
13150fi
13151OTOOL64=$ac_cv_prog_OTOOL64
13152if test -n "$OTOOL64"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13154$as_echo "$OTOOL64" >&6; }
13155else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159
13160
13161fi
13162if test -z "$ac_cv_prog_OTOOL64"; then
13163 ac_ct_OTOOL64=$OTOOL64
13164 # Extract the first word of "otool64", so it can be a program name with args.
13165set dummy otool64; ac_word=$2
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013168if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013169 $as_echo_n "(cached) " >&6
13170else
13171 if test -n "$ac_ct_OTOOL64"; then
13172 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13173else
13174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013181 ac_cv_prog_ac_ct_OTOOL64="otool64"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13184 fi
13185done
13186 done
13187IFS=$as_save_IFS
13188
13189fi
13190fi
13191ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13192if test -n "$ac_ct_OTOOL64"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13194$as_echo "$ac_ct_OTOOL64" >&6; }
13195else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
13198fi
13199
13200 if test "x$ac_ct_OTOOL64" = x; then
13201 OTOOL64=":"
13202 else
13203 case $cross_compiling:$ac_tool_warned in
13204yes:)
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207ac_tool_warned=yes ;;
13208esac
13209 OTOOL64=$ac_ct_OTOOL64
13210 fi
13211else
13212 OTOOL64="$ac_cv_prog_OTOOL64"
13213fi
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13242$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013243if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013244 $as_echo_n "(cached) " >&6
13245else
13246 lt_cv_apple_cc_single_mod=no
13247 if test -z "${LT_MULTI_MODULE}"; then
13248 # By default we will add the -single_module flag. You can override
13249 # by either setting the environment variable LT_MULTI_MODULE
13250 # non-empty at configure time, or by adding -multi_module to the
13251 # link flags.
13252 rm -rf libconftest.dylib*
13253 echo "int foo(void){return 1;}" > conftest.c
13254 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13255-dynamiclib -Wl,-single_module conftest.c" >&5
13256 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13257 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13258 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013259 # If there is a non-empty error log, and "single_module"
13260 # appears in it, assume the flag caused a linker warning
13261 if test -s conftest.err && $GREP single_module conftest.err; then
13262 cat conftest.err >&5
13263 # Otherwise, if the output was created with a 0 exit code from
13264 # the compiler, it worked.
13265 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013266 lt_cv_apple_cc_single_mod=yes
13267 else
13268 cat conftest.err >&5
13269 fi
13270 rm -rf libconftest.dylib*
13271 rm -f conftest.*
13272 fi
13273fi
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13275$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013276
cristy73bd4a52010-10-05 11:24:23 +000013277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13278$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013279if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013280 $as_echo_n "(cached) " >&6
13281else
13282 lt_cv_ld_exported_symbols_list=no
13283 save_LDFLAGS=$LDFLAGS
13284 echo "_main" > conftest.sym
13285 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298 lt_cv_ld_exported_symbols_list=yes
13299else
13300 lt_cv_ld_exported_symbols_list=no
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LDFLAGS="$save_LDFLAGS"
13305
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13308$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013309
cristy0c60a692010-11-04 01:09:47 +000013310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13311$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 lt_cv_ld_force_load=no
13316 cat > conftest.c << _LT_EOF
13317int forced_loaded() { return 2;}
13318_LT_EOF
13319 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13320 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13321 echo "$AR cru libconftest.a conftest.o" >&5
13322 $AR cru libconftest.a conftest.o 2>&5
13323 echo "$RANLIB libconftest.a" >&5
13324 $RANLIB libconftest.a 2>&5
13325 cat > conftest.c << _LT_EOF
13326int main() { return 0;}
13327_LT_EOF
13328 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13329 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13330 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013331 if test -s conftest.err && $GREP force_load conftest.err; then
13332 cat conftest.err >&5
13333 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013334 lt_cv_ld_force_load=yes
13335 else
13336 cat conftest.err >&5
13337 fi
13338 rm -f conftest.err libconftest.a conftest conftest.c
13339 rm -rf conftest.dSYM
13340
13341fi
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13343$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013344 case $host_os in
13345 rhapsody* | darwin1.[012])
13346 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13347 darwin1.*)
13348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13349 darwin*) # darwin 5.x on
13350 # if running on 10.5 or later, the deployment target defaults
13351 # to the OS version, if on x86, and 10.4, the deployment
13352 # target defaults to 10.4. Don't you love it?
13353 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13354 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13355 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13356 10.[012]*)
13357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13358 10.*)
13359 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13360 esac
13361 ;;
13362 esac
13363 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13364 _lt_dar_single_mod='$single_module'
13365 fi
13366 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13367 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13368 else
13369 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13370 fi
cristy0c60a692010-11-04 01:09:47 +000013371 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013372 _lt_dsymutil='~$DSYMUTIL $lib || :'
13373 else
13374 _lt_dsymutil=
13375 fi
13376 ;;
13377 esac
13378
13379for ac_header in dlfcn.h
13380do :
13381 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13382"
cristyda16f162011-02-19 23:52:17 +000013383if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013384 cat >>confdefs.h <<_ACEOF
13385#define HAVE_DLFCN_H 1
13386_ACEOF
13387
13388fi
13389
13390done
13391
13392
13393
cristy73bd4a52010-10-05 11:24:23 +000013394
cristyda16f162011-02-19 23:52:17 +000013395func_stripname_cnf ()
13396{
13397 case ${2} in
13398 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13399 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13400 esac
13401} # func_stripname_cnf
13402
13403
13404
cristy73bd4a52010-10-05 11:24:23 +000013405
13406
13407# Set options
13408enable_win32_dll=yes
13409
13410case $host in
cristy0c60a692010-11-04 01:09:47 +000013411*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013412 if test -n "$ac_tool_prefix"; then
13413 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13414set dummy ${ac_tool_prefix}as; ac_word=$2
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013417if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013418 $as_echo_n "(cached) " >&6
13419else
13420 if test -n "$AS"; then
13421 ac_cv_prog_AS="$AS" # Let the user override the test.
13422else
13423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424for as_dir in $PATH
13425do
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013430 ac_cv_prog_AS="${ac_tool_prefix}as"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 break 2
13433 fi
13434done
13435 done
13436IFS=$as_save_IFS
13437
13438fi
13439fi
13440AS=$ac_cv_prog_AS
13441if test -n "$AS"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13443$as_echo "$AS" >&6; }
13444else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
13447fi
13448
13449
13450fi
13451if test -z "$ac_cv_prog_AS"; then
13452 ac_ct_AS=$AS
13453 # Extract the first word of "as", so it can be a program name with args.
13454set dummy as; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013457if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013458 $as_echo_n "(cached) " >&6
13459else
13460 if test -n "$ac_ct_AS"; then
13461 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013470 ac_cv_prog_ac_ct_AS="as"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474done
13475 done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480ac_ct_AS=$ac_cv_prog_ac_ct_AS
13481if test -n "$ac_ct_AS"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13483$as_echo "$ac_ct_AS" >&6; }
13484else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489 if test "x$ac_ct_AS" = x; then
13490 AS="false"
13491 else
13492 case $cross_compiling:$ac_tool_warned in
13493yes:)
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13496ac_tool_warned=yes ;;
13497esac
13498 AS=$ac_ct_AS
13499 fi
13500else
13501 AS="$ac_cv_prog_AS"
13502fi
13503
13504 if test -n "$ac_tool_prefix"; then
13505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13506set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013509if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013510 $as_echo_n "(cached) " >&6
13511else
13512 if test -n "$DLLTOOL"; then
13513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13514else
13515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516for as_dir in $PATH
13517do
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13525 fi
13526done
13527 done
13528IFS=$as_save_IFS
13529
13530fi
13531fi
13532DLLTOOL=$ac_cv_prog_DLLTOOL
13533if test -n "$DLLTOOL"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13535$as_echo "$DLLTOOL" >&6; }
13536else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
13539fi
13540
13541
13542fi
13543if test -z "$ac_cv_prog_DLLTOOL"; then
13544 ac_ct_DLLTOOL=$DLLTOOL
13545 # Extract the first word of "dlltool", so it can be a program name with args.
13546set dummy dlltool; ac_word=$2
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013549if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013550 $as_echo_n "(cached) " >&6
13551else
13552 if test -n "$ac_ct_DLLTOOL"; then
13553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13554else
13555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13565 fi
13566done
13567 done
13568IFS=$as_save_IFS
13569
13570fi
13571fi
13572ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13573if test -n "$ac_ct_DLLTOOL"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13575$as_echo "$ac_ct_DLLTOOL" >&6; }
13576else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581 if test "x$ac_ct_DLLTOOL" = x; then
13582 DLLTOOL="false"
13583 else
13584 case $cross_compiling:$ac_tool_warned in
13585yes:)
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13588ac_tool_warned=yes ;;
13589esac
13590 DLLTOOL=$ac_ct_DLLTOOL
13591 fi
13592else
13593 DLLTOOL="$ac_cv_prog_DLLTOOL"
13594fi
13595
13596 if test -n "$ac_tool_prefix"; then
13597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13598set dummy ${ac_tool_prefix}objdump; ac_word=$2
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013601if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013602 $as_echo_n "(cached) " >&6
13603else
13604 if test -n "$OBJDUMP"; then
13605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13606else
13607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608for as_dir in $PATH
13609do
13610 IFS=$as_save_IFS
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 break 2
13617 fi
13618done
13619 done
13620IFS=$as_save_IFS
13621
13622fi
13623fi
13624OBJDUMP=$ac_cv_prog_OBJDUMP
13625if test -n "$OBJDUMP"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13627$as_echo "$OBJDUMP" >&6; }
13628else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630$as_echo "no" >&6; }
13631fi
13632
13633
13634fi
13635if test -z "$ac_cv_prog_OBJDUMP"; then
13636 ac_ct_OBJDUMP=$OBJDUMP
13637 # Extract the first word of "objdump", so it can be a program name with args.
13638set dummy objdump; ac_word=$2
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013641if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013642 $as_echo_n "(cached) " >&6
13643else
13644 if test -n "$ac_ct_OBJDUMP"; then
13645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13646else
13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648for as_dir in $PATH
13649do
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13657 fi
13658done
13659 done
13660IFS=$as_save_IFS
13661
13662fi
13663fi
13664ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13665if test -n "$ac_ct_OBJDUMP"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13667$as_echo "$ac_ct_OBJDUMP" >&6; }
13668else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
13671fi
13672
13673 if test "x$ac_ct_OBJDUMP" = x; then
13674 OBJDUMP="false"
13675 else
13676 case $cross_compiling:$ac_tool_warned in
13677yes:)
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13680ac_tool_warned=yes ;;
13681esac
13682 OBJDUMP=$ac_ct_OBJDUMP
13683 fi
13684else
13685 OBJDUMP="$ac_cv_prog_OBJDUMP"
13686fi
13687
13688 ;;
13689esac
13690
13691test -z "$AS" && AS=as
13692
13693
13694
13695
13696
13697test -z "$DLLTOOL" && DLLTOOL=dlltool
13698
13699
13700
13701
13702
13703test -z "$OBJDUMP" && OBJDUMP=objdump
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 # Check whether --enable-shared was given.
13714if test "${enable_shared+set}" = set; then :
13715 enableval=$enable_shared; p=${PACKAGE-default}
13716 case $enableval in
13717 yes) enable_shared=yes ;;
13718 no) enable_shared=no ;;
13719 *)
13720 enable_shared=no
13721 # Look at the argument we got. We use all the common list separators.
13722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13723 for pkg in $enableval; do
13724 IFS="$lt_save_ifs"
13725 if test "X$pkg" = "X$p"; then
13726 enable_shared=yes
13727 fi
13728 done
13729 IFS="$lt_save_ifs"
13730 ;;
13731 esac
13732else
13733 enable_shared=yes
13734fi
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744 # Check whether --enable-static was given.
13745if test "${enable_static+set}" = set; then :
13746 enableval=$enable_static; p=${PACKAGE-default}
13747 case $enableval in
13748 yes) enable_static=yes ;;
13749 no) enable_static=no ;;
13750 *)
13751 enable_static=no
13752 # Look at the argument we got. We use all the common list separators.
13753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13754 for pkg in $enableval; do
13755 IFS="$lt_save_ifs"
13756 if test "X$pkg" = "X$p"; then
13757 enable_static=yes
13758 fi
13759 done
13760 IFS="$lt_save_ifs"
13761 ;;
13762 esac
13763else
13764 enable_static=yes
13765fi
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776# Check whether --with-pic was given.
13777if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013778 withval=$with_pic; lt_p=${PACKAGE-default}
13779 case $withval in
13780 yes|no) pic_mode=$withval ;;
13781 *)
13782 pic_mode=default
13783 # Look at the argument we got. We use all the common list separators.
13784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13785 for lt_pkg in $withval; do
13786 IFS="$lt_save_ifs"
13787 if test "X$lt_pkg" = "X$lt_p"; then
13788 pic_mode=yes
13789 fi
13790 done
13791 IFS="$lt_save_ifs"
13792 ;;
13793 esac
cristy73bd4a52010-10-05 11:24:23 +000013794else
13795 pic_mode=default
13796fi
13797
13798
13799test -z "$pic_mode" && pic_mode=default
13800
13801
13802
13803
13804
13805
13806
13807 # Check whether --enable-fast-install was given.
13808if test "${enable_fast_install+set}" = set; then :
13809 enableval=$enable_fast_install; p=${PACKAGE-default}
13810 case $enableval in
13811 yes) enable_fast_install=yes ;;
13812 no) enable_fast_install=no ;;
13813 *)
13814 enable_fast_install=no
13815 # Look at the argument we got. We use all the common list separators.
13816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13817 for pkg in $enableval; do
13818 IFS="$lt_save_ifs"
13819 if test "X$pkg" = "X$p"; then
13820 enable_fast_install=yes
13821 fi
13822 done
13823 IFS="$lt_save_ifs"
13824 ;;
13825 esac
13826else
13827 enable_fast_install=yes
13828fi
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840# This can be used to rebuild libtool when needed
13841LIBTOOL_DEPS="$ltmain"
13842
13843# Always use our own libtool.
13844LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
cristy0c60a692010-11-04 01:09:47 +000013870
cristy99bd5232011-12-07 14:38:20 +000013871
13872
13873
13874
cristy73bd4a52010-10-05 11:24:23 +000013875test -z "$LN_S" && LN_S="ln -s"
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890if test -n "${ZSH_VERSION+set}" ; then
13891 setopt NO_GLOB_SUBST
13892fi
13893
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13895$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013896if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013897 $as_echo_n "(cached) " >&6
13898else
13899 rm -f .libs 2>/dev/null
13900mkdir .libs 2>/dev/null
13901if test -d .libs; then
13902 lt_cv_objdir=.libs
13903else
13904 # MS-DOS does not allow filenames that begin with a dot.
13905 lt_cv_objdir=_libs
13906fi
13907rmdir .libs 2>/dev/null
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13910$as_echo "$lt_cv_objdir" >&6; }
13911objdir=$lt_cv_objdir
13912
13913
13914
13915
13916
13917cat >>confdefs.h <<_ACEOF
13918#define LT_OBJDIR "$lt_cv_objdir/"
13919_ACEOF
13920
13921
13922
13923
cristy73bd4a52010-10-05 11:24:23 +000013924case $host_os in
13925aix3*)
13926 # AIX sometimes has problems with the GCC collect2 program. For some
13927 # reason, if we set the COLLECT_NAMES environment variable, the problems
13928 # vanish in a puff of smoke.
13929 if test "X${COLLECT_NAMES+set}" != Xset; then
13930 COLLECT_NAMES=
13931 export COLLECT_NAMES
13932 fi
13933 ;;
13934esac
13935
cristy73bd4a52010-10-05 11:24:23 +000013936# Global variables:
13937ofile=libtool
13938can_build_shared=yes
13939
13940# All known linkers require a `.a' archive for static linking (except MSVC,
13941# which needs '.lib').
13942libext=a
13943
13944with_gnu_ld="$lt_cv_prog_gnu_ld"
13945
13946old_CC="$CC"
13947old_CFLAGS="$CFLAGS"
13948
13949# Set sane defaults for various variables
13950test -z "$CC" && CC=cc
13951test -z "$LTCC" && LTCC=$CC
13952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13953test -z "$LD" && LD=ld
13954test -z "$ac_objext" && ac_objext=o
13955
13956for cc_temp in $compiler""; do
13957 case $cc_temp in
13958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13960 \-*) ;;
13961 *) break;;
13962 esac
13963done
cristy0c60a692010-11-04 01:09:47 +000013964cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013965
13966
13967# Only perform the check for file, if the check method requires it
13968test -z "$MAGIC_CMD" && MAGIC_CMD=file
13969case $deplibs_check_method in
13970file_magic*)
13971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013974if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013975 $as_echo_n "(cached) " >&6
13976else
13977 case $MAGIC_CMD in
13978[\\/*] | ?:[\\/]*)
13979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13980 ;;
13981*)
13982 lt_save_MAGIC_CMD="$MAGIC_CMD"
13983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13985 for ac_dir in $ac_dummy; do
13986 IFS="$lt_save_ifs"
13987 test -z "$ac_dir" && ac_dir=.
13988 if test -f $ac_dir/${ac_tool_prefix}file; then
13989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13990 if test -n "$file_magic_test_file"; then
13991 case $deplibs_check_method in
13992 "file_magic "*)
13993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13996 $EGREP "$file_magic_regex" > /dev/null; then
13997 :
13998 else
13999 cat <<_LT_EOF 1>&2
14000
14001*** Warning: the command libtool uses to detect shared libraries,
14002*** $file_magic_cmd, produces output that libtool cannot recognize.
14003*** The result is that libtool may fail to recognize shared libraries
14004*** as such. This will affect the creation of libtool libraries that
14005*** depend on shared libraries, but programs linked with such libtool
14006*** libraries will work regardless of this problem. Nevertheless, you
14007*** may want to report the problem to your system manager and/or to
14008*** bug-libtool@gnu.org
14009
14010_LT_EOF
14011 fi ;;
14012 esac
14013 fi
14014 break
14015 fi
14016 done
14017 IFS="$lt_save_ifs"
14018 MAGIC_CMD="$lt_save_MAGIC_CMD"
14019 ;;
14020esac
14021fi
14022
14023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024if test -n "$MAGIC_CMD"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14026$as_echo "$MAGIC_CMD" >&6; }
14027else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029$as_echo "no" >&6; }
14030fi
14031
14032
14033
14034
14035
14036if test -z "$lt_cv_path_MAGIC_CMD"; then
14037 if test -n "$ac_tool_prefix"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14039$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014040if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014041 $as_echo_n "(cached) " >&6
14042else
14043 case $MAGIC_CMD in
14044[\\/*] | ?:[\\/]*)
14045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14046 ;;
14047*)
14048 lt_save_MAGIC_CMD="$MAGIC_CMD"
14049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14051 for ac_dir in $ac_dummy; do
14052 IFS="$lt_save_ifs"
14053 test -z "$ac_dir" && ac_dir=.
14054 if test -f $ac_dir/file; then
14055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14056 if test -n "$file_magic_test_file"; then
14057 case $deplibs_check_method in
14058 "file_magic "*)
14059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14062 $EGREP "$file_magic_regex" > /dev/null; then
14063 :
14064 else
14065 cat <<_LT_EOF 1>&2
14066
14067*** Warning: the command libtool uses to detect shared libraries,
14068*** $file_magic_cmd, produces output that libtool cannot recognize.
14069*** The result is that libtool may fail to recognize shared libraries
14070*** as such. This will affect the creation of libtool libraries that
14071*** depend on shared libraries, but programs linked with such libtool
14072*** libraries will work regardless of this problem. Nevertheless, you
14073*** may want to report the problem to your system manager and/or to
14074*** bug-libtool@gnu.org
14075
14076_LT_EOF
14077 fi ;;
14078 esac
14079 fi
14080 break
14081 fi
14082 done
14083 IFS="$lt_save_ifs"
14084 MAGIC_CMD="$lt_save_MAGIC_CMD"
14085 ;;
14086esac
14087fi
14088
14089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14090if test -n "$MAGIC_CMD"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14092$as_echo "$MAGIC_CMD" >&6; }
14093else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095$as_echo "no" >&6; }
14096fi
14097
14098
14099 else
14100 MAGIC_CMD=:
14101 fi
14102fi
14103
14104 fi
14105 ;;
14106esac
14107
14108# Use C for the default configuration in the libtool script
14109
14110lt_save_CC="$CC"
14111ac_ext=c
14112ac_cpp='$CPP $CPPFLAGS'
14113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14115ac_compiler_gnu=$ac_cv_c_compiler_gnu
14116
14117
14118# Source file extension for C test sources.
14119ac_ext=c
14120
14121# Object file extension for compiled C test sources.
14122objext=o
14123objext=$objext
14124
14125# Code to be used in simple compile tests
14126lt_simple_compile_test_code="int some_variable = 0;"
14127
14128# Code to be used in simple link tests
14129lt_simple_link_test_code='int main(){return(0);}'
14130
14131
14132
14133
14134
14135
14136
14137# If no C compiler was specified, use CC.
14138LTCC=${LTCC-"$CC"}
14139
14140# If no C compiler flags were specified, use CFLAGS.
14141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14142
14143# Allow CC to be a program name with arguments.
14144compiler=$CC
14145
14146# Save the default compiler, since it gets overwritten when the other
14147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14148compiler_DEFAULT=$CC
14149
14150# save warnings/boilerplate of simple test code
14151ac_outfile=conftest.$ac_objext
14152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14154_lt_compiler_boilerplate=`cat conftest.err`
14155$RM conftest*
14156
14157ac_outfile=conftest.$ac_objext
14158echo "$lt_simple_link_test_code" >conftest.$ac_ext
14159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14160_lt_linker_boilerplate=`cat conftest.err`
14161$RM -r conftest*
14162
14163
14164## CAVEAT EMPTOR:
14165## There is no encapsulation within the following macros, do not change
14166## the running order or otherwise move them around unless you know exactly
14167## what you are doing...
14168if test -n "$compiler"; then
14169
14170lt_prog_compiler_no_builtin_flag=
14171
14172if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014173 case $cc_basename in
14174 nvcc*)
14175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14176 *)
14177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14178 esac
cristy73bd4a52010-10-05 11:24:23 +000014179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014182if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014183 $as_echo_n "(cached) " >&6
14184else
14185 lt_cv_prog_compiler_rtti_exceptions=no
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 lt_compiler_flag="-fno-rtti -fno-exceptions"
14189 # Insert the option either (1) after the last *FLAGS variable, or
14190 # (2) before a word containing "conftest.", or (3) at the end.
14191 # Note that $ac_compile itself does not contain backslashes and begins
14192 # with a dollar sign (not a hyphen), so the echo should work correctly.
14193 # The option is referenced via a variable to avoid confusing sed.
14194 lt_compile=`echo "$ac_compile" | $SED \
14195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014199 (eval "$lt_compile" 2>conftest.err)
14200 ac_status=$?
14201 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014203 if (exit $ac_status) && test -s "$ac_outfile"; then
14204 # The compiler can only warn and ignore the option if not recognized
14205 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14209 lt_cv_prog_compiler_rtti_exceptions=yes
14210 fi
14211 fi
14212 $RM conftest*
14213
14214fi
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14217
14218if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14220else
14221 :
14222fi
14223
14224fi
14225
14226
14227
14228
14229
14230
14231 lt_prog_compiler_wl=
14232lt_prog_compiler_pic=
14233lt_prog_compiler_static=
14234
cristy73bd4a52010-10-05 11:24:23 +000014235
14236 if test "$GCC" = yes; then
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_static='-static'
14239
14240 case $host_os in
14241 aix*)
14242 # All AIX code is PIC.
14243 if test "$host_cpu" = ia64; then
14244 # AIX 5 now supports IA64 processor
14245 lt_prog_compiler_static='-Bstatic'
14246 fi
14247 ;;
14248
14249 amigaos*)
14250 case $host_cpu in
14251 powerpc)
14252 # see comment about AmigaOS4 .so support
14253 lt_prog_compiler_pic='-fPIC'
14254 ;;
14255 m68k)
14256 # FIXME: we need at least 68020 code to build shared libraries, but
14257 # adding the `-m68020' flag to GCC prevents building anything better,
14258 # like `-m68040'.
14259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14260 ;;
14261 esac
14262 ;;
14263
14264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14265 # PIC is the default for these OSes.
14266 ;;
14267
14268 mingw* | cygwin* | pw32* | os2* | cegcc*)
14269 # This hack is so that the source file can tell whether it is being
14270 # built for inclusion in a dll (and should export symbols for example).
14271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14272 # (--disable-auto-import) libraries
14273 lt_prog_compiler_pic='-DDLL_EXPORT'
14274 ;;
14275
14276 darwin* | rhapsody*)
14277 # PIC is the default on this platform
14278 # Common symbols not allowed in MH_DYLIB files
14279 lt_prog_compiler_pic='-fno-common'
14280 ;;
14281
cristy0c60a692010-11-04 01:09:47 +000014282 haiku*)
14283 # PIC is the default for Haiku.
14284 # The "-static" flag exists, but is broken.
14285 lt_prog_compiler_static=
14286 ;;
14287
cristy73bd4a52010-10-05 11:24:23 +000014288 hpux*)
14289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14291 # sets the default TLS model and affects inlining.
14292 case $host_cpu in
14293 hppa*64*)
14294 # +Z the default
14295 ;;
14296 *)
14297 lt_prog_compiler_pic='-fPIC'
14298 ;;
14299 esac
14300 ;;
14301
14302 interix[3-9]*)
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14305 ;;
14306
14307 msdosdjgpp*)
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared=no
14311 enable_shared=no
14312 ;;
14313
14314 *nto* | *qnx*)
14315 # QNX uses GNU C++, but need to define -shared option too, otherwise
14316 # it will coredump.
14317 lt_prog_compiler_pic='-fPIC -shared'
14318 ;;
14319
14320 sysv4*MP*)
14321 if test -d /usr/nec; then
14322 lt_prog_compiler_pic=-Kconform_pic
14323 fi
14324 ;;
14325
14326 *)
14327 lt_prog_compiler_pic='-fPIC'
14328 ;;
14329 esac
cristy0c60a692010-11-04 01:09:47 +000014330
14331 case $cc_basename in
14332 nvcc*) # Cuda Compiler Driver 2.2
14333 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014334 if test -n "$lt_prog_compiler_pic"; then
14335 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14336 fi
cristy0c60a692010-11-04 01:09:47 +000014337 ;;
14338 esac
cristy73bd4a52010-10-05 11:24:23 +000014339 else
14340 # PORTME Check for flag to pass linker flags through the system compiler.
14341 case $host_os in
14342 aix*)
14343 lt_prog_compiler_wl='-Wl,'
14344 if test "$host_cpu" = ia64; then
14345 # AIX 5 now supports IA64 processor
14346 lt_prog_compiler_static='-Bstatic'
14347 else
14348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14349 fi
14350 ;;
14351
14352 mingw* | cygwin* | pw32* | os2* | cegcc*)
14353 # This hack is so that the source file can tell whether it is being
14354 # built for inclusion in a dll (and should export symbols for example).
14355 lt_prog_compiler_pic='-DDLL_EXPORT'
14356 ;;
14357
14358 hpux9* | hpux10* | hpux11*)
14359 lt_prog_compiler_wl='-Wl,'
14360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14361 # not for PA HP-UX.
14362 case $host_cpu in
14363 hppa*64*|ia64*)
14364 # +Z the default
14365 ;;
14366 *)
14367 lt_prog_compiler_pic='+Z'
14368 ;;
14369 esac
14370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14371 lt_prog_compiler_static='${wl}-a ${wl}archive'
14372 ;;
14373
14374 irix5* | irix6* | nonstopux*)
14375 lt_prog_compiler_wl='-Wl,'
14376 # PIC (with -KPIC) is the default.
14377 lt_prog_compiler_static='-non_shared'
14378 ;;
14379
cristy0c60a692010-11-04 01:09:47 +000014380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014381 case $cc_basename in
14382 # old Intel for x86_64 which still supported -KPIC.
14383 ecc*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-static'
14387 ;;
14388 # icc used to be incompatible with GCC.
14389 # ICC 10 doesn't accept -KPIC any more.
14390 icc* | ifort*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-fPIC'
14393 lt_prog_compiler_static='-static'
14394 ;;
14395 # Lahey Fortran 8.1.
14396 lf95*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_pic='--shared'
14399 lt_prog_compiler_static='--static'
14400 ;;
cristyda16f162011-02-19 23:52:17 +000014401 nagfor*)
14402 # NAG Fortran compiler
14403 lt_prog_compiler_wl='-Wl,-Wl,,'
14404 lt_prog_compiler_pic='-PIC'
14405 lt_prog_compiler_static='-Bstatic'
14406 ;;
cristy0c60a692010-11-04 01:09:47 +000014407 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014408 # Portland Group compilers (*not* the Pentium gcc compiler,
14409 # which looks to be a dead project)
14410 lt_prog_compiler_wl='-Wl,'
14411 lt_prog_compiler_pic='-fpic'
14412 lt_prog_compiler_static='-Bstatic'
14413 ;;
14414 ccc*)
14415 lt_prog_compiler_wl='-Wl,'
14416 # All Alpha code is PIC.
14417 lt_prog_compiler_static='-non_shared'
14418 ;;
cristy0c60a692010-11-04 01:09:47 +000014419 xl* | bgxl* | bgf* | mpixl*)
14420 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014421 lt_prog_compiler_wl='-Wl,'
14422 lt_prog_compiler_pic='-qpic'
14423 lt_prog_compiler_static='-qstaticlink'
14424 ;;
14425 *)
14426 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014427 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14429 lt_prog_compiler_pic='-KPIC'
14430 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_wl=''
14432 ;;
cristy99bd5232011-12-07 14:38:20 +000014433 *Sun\ F* | *Sun*Fortran*)
14434 lt_prog_compiler_pic='-KPIC'
14435 lt_prog_compiler_static='-Bstatic'
14436 lt_prog_compiler_wl='-Qoption ld '
14437 ;;
cristy73bd4a52010-10-05 11:24:23 +000014438 *Sun\ C*)
14439 # Sun C 5.9
14440 lt_prog_compiler_pic='-KPIC'
14441 lt_prog_compiler_static='-Bstatic'
14442 lt_prog_compiler_wl='-Wl,'
14443 ;;
cristy99bd5232011-12-07 14:38:20 +000014444 *Intel*\ [CF]*Compiler*)
14445 lt_prog_compiler_wl='-Wl,'
14446 lt_prog_compiler_pic='-fPIC'
14447 lt_prog_compiler_static='-static'
14448 ;;
14449 *Portland\ Group*)
14450 lt_prog_compiler_wl='-Wl,'
14451 lt_prog_compiler_pic='-fpic'
14452 lt_prog_compiler_static='-Bstatic'
14453 ;;
cristy73bd4a52010-10-05 11:24:23 +000014454 esac
14455 ;;
14456 esac
14457 ;;
14458
14459 newsos6)
14460 lt_prog_compiler_pic='-KPIC'
14461 lt_prog_compiler_static='-Bstatic'
14462 ;;
14463
14464 *nto* | *qnx*)
14465 # QNX uses GNU C++, but need to define -shared option too, otherwise
14466 # it will coredump.
14467 lt_prog_compiler_pic='-fPIC -shared'
14468 ;;
14469
14470 osf3* | osf4* | osf5*)
14471 lt_prog_compiler_wl='-Wl,'
14472 # All OSF/1 code is PIC.
14473 lt_prog_compiler_static='-non_shared'
14474 ;;
14475
14476 rdos*)
14477 lt_prog_compiler_static='-non_shared'
14478 ;;
14479
14480 solaris*)
14481 lt_prog_compiler_pic='-KPIC'
14482 lt_prog_compiler_static='-Bstatic'
14483 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014484 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014485 lt_prog_compiler_wl='-Qoption ld ';;
14486 *)
14487 lt_prog_compiler_wl='-Wl,';;
14488 esac
14489 ;;
14490
14491 sunos4*)
14492 lt_prog_compiler_wl='-Qoption ld '
14493 lt_prog_compiler_pic='-PIC'
14494 lt_prog_compiler_static='-Bstatic'
14495 ;;
14496
14497 sysv4 | sysv4.2uw2* | sysv4.3*)
14498 lt_prog_compiler_wl='-Wl,'
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14501 ;;
14502
14503 sysv4*MP*)
14504 if test -d /usr/nec ;then
14505 lt_prog_compiler_pic='-Kconform_pic'
14506 lt_prog_compiler_static='-Bstatic'
14507 fi
14508 ;;
14509
14510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14511 lt_prog_compiler_wl='-Wl,'
14512 lt_prog_compiler_pic='-KPIC'
14513 lt_prog_compiler_static='-Bstatic'
14514 ;;
14515
14516 unicos*)
14517 lt_prog_compiler_wl='-Wl,'
14518 lt_prog_compiler_can_build_shared=no
14519 ;;
14520
14521 uts4*)
14522 lt_prog_compiler_pic='-pic'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525
14526 *)
14527 lt_prog_compiler_can_build_shared=no
14528 ;;
14529 esac
14530 fi
14531
14532case $host_os in
14533 # For platforms which do not support PIC, -DPIC is meaningless:
14534 *djgpp*)
14535 lt_prog_compiler_pic=
14536 ;;
14537 *)
14538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14539 ;;
14540esac
cristy73bd4a52010-10-05 11:24:23 +000014541
cristyda16f162011-02-19 23:52:17 +000014542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14543$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14544if ${lt_cv_prog_compiler_pic+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546else
14547 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14550$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14551lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014552
14553#
14554# Check to make sure the PIC flag actually works.
14555#
14556if test -n "$lt_prog_compiler_pic"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14558$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014559if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014560 $as_echo_n "(cached) " >&6
14561else
14562 lt_cv_prog_compiler_pic_works=no
14563 ac_outfile=conftest.$ac_objext
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 # The option is referenced via a variable to avoid confusing sed.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014576 (eval "$lt_compile" 2>conftest.err)
14577 ac_status=$?
14578 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014580 if (exit $ac_status) && test -s "$ac_outfile"; then
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_pic_works=yes
14587 fi
14588 fi
14589 $RM conftest*
14590
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14593$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14594
14595if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14596 case $lt_prog_compiler_pic in
14597 "" | " "*) ;;
14598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14599 esac
14600else
14601 lt_prog_compiler_pic=
14602 lt_prog_compiler_can_build_shared=no
14603fi
14604
14605fi
14606
14607
14608
14609
14610
14611
cristyda16f162011-02-19 23:52:17 +000014612
14613
14614
14615
14616
cristy73bd4a52010-10-05 11:24:23 +000014617#
14618# Check to make sure the static flag actually works.
14619#
14620wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14622$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014623if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_static_works=no
14627 save_LDFLAGS="$LDFLAGS"
14628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14631 # The linker can only warn and ignore the option if not recognized
14632 # So say no if there are warnings
14633 if test -s conftest.err; then
14634 # Append any errors to the config.log.
14635 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14638 if diff conftest.exp conftest.er2 >/dev/null; then
14639 lt_cv_prog_compiler_static_works=yes
14640 fi
14641 else
14642 lt_cv_prog_compiler_static_works=yes
14643 fi
14644 fi
14645 $RM -r conftest*
14646 LDFLAGS="$save_LDFLAGS"
14647
14648fi
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14650$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14651
14652if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14653 :
14654else
14655 lt_prog_compiler_static=
14656fi
14657
14658
14659
14660
14661
14662
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14665$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014666if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014667 $as_echo_n "(cached) " >&6
14668else
14669 lt_cv_prog_compiler_c_o=no
14670 $RM -r conftest 2>/dev/null
14671 mkdir conftest
14672 cd conftest
14673 mkdir out
14674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675
14676 lt_compiler_flag="-o out/conftest2.$ac_objext"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 lt_compile=`echo "$ac_compile" | $SED \
14682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014686 (eval "$lt_compile" 2>out/conftest.err)
14687 ac_status=$?
14688 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691 then
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_c_o=yes
14698 fi
14699 fi
14700 chmod u+w . 2>&5
14701 $RM conftest*
14702 # SGI C++ compiler will create directory out/ii_files/ for
14703 # template instantiation
14704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14705 $RM out/* && rmdir out
14706 cd ..
14707 $RM -r conftest
14708 $RM conftest*
14709
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14712$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14713
14714
14715
14716
14717
14718
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014721if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014722 $as_echo_n "(cached) " >&6
14723else
14724 lt_cv_prog_compiler_c_o=no
14725 $RM -r conftest 2>/dev/null
14726 mkdir conftest
14727 cd conftest
14728 mkdir out
14729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730
14731 lt_compiler_flag="-o out/conftest2.$ac_objext"
14732 # Insert the option either (1) after the last *FLAGS variable, or
14733 # (2) before a word containing "conftest.", or (3) at the end.
14734 # Note that $ac_compile itself does not contain backslashes and begins
14735 # with a dollar sign (not a hyphen), so the echo should work correctly.
14736 lt_compile=`echo "$ac_compile" | $SED \
14737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014741 (eval "$lt_compile" 2>out/conftest.err)
14742 ac_status=$?
14743 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14746 then
14747 # The compiler can only warn and ignore the option if not recognized
14748 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler_c_o=yes
14753 fi
14754 fi
14755 chmod u+w . 2>&5
14756 $RM conftest*
14757 # SGI C++ compiler will create directory out/ii_files/ for
14758 # template instantiation
14759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14760 $RM out/* && rmdir out
14761 cd ..
14762 $RM -r conftest
14763 $RM conftest*
14764
14765fi
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14767$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14768
14769
14770
14771
14772hard_links="nottested"
14773if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14774 # do not overwrite the value of need_locks provided by the user
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14776$as_echo_n "checking if we can lock with hard links... " >&6; }
14777 hard_links=yes
14778 $RM conftest*
14779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14780 touch conftest.a
14781 ln conftest.a conftest.b 2>&5 || hard_links=no
14782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14784$as_echo "$hard_links" >&6; }
14785 if test "$hard_links" = no; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14787$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14788 need_locks=warn
14789 fi
14790else
14791 need_locks=no
14792fi
14793
14794
14795
14796
14797
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14800$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14801
14802 runpath_var=
14803 allow_undefined_flag=
14804 always_export_symbols=no
14805 archive_cmds=
14806 archive_expsym_cmds=
14807 compiler_needs_object=no
14808 enable_shared_with_static_runtimes=no
14809 export_dynamic_flag_spec=
14810 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14811 hardcode_automatic=no
14812 hardcode_direct=no
14813 hardcode_direct_absolute=no
14814 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014815 hardcode_libdir_separator=
14816 hardcode_minus_L=no
14817 hardcode_shlibpath_var=unsupported
14818 inherit_rpath=no
14819 link_all_deplibs=unknown
14820 module_cmds=
14821 module_expsym_cmds=
14822 old_archive_from_new_cmds=
14823 old_archive_from_expsyms_cmds=
14824 thread_safe_flag_spec=
14825 whole_archive_flag_spec=
14826 # include_expsyms should be a list of space-separated symbols to be *always*
14827 # included in the symbol list
14828 include_expsyms=
14829 # exclude_expsyms can be an extended regexp of symbols to exclude
14830 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14832 # as well as any symbol that contains `d'.
14833 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14835 # platforms (ab)use it in PIC code, but their linkers get confused if
14836 # the symbol is explicitly referenced. Since portable code cannot
14837 # rely on this symbol name, it's probably fine to never include it in
14838 # preloaded symbol tables.
14839 # Exclude shared library initialization/finalization symbols.
14840 extract_expsyms_cmds=
14841
14842 case $host_os in
14843 cygwin* | mingw* | pw32* | cegcc*)
14844 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14845 # When not using gcc, we currently assume that we are using
14846 # Microsoft Visual C++.
14847 if test "$GCC" != yes; then
14848 with_gnu_ld=no
14849 fi
14850 ;;
14851 interix*)
14852 # we just hope/assume this is gcc and not c89 (= MSVC++)
14853 with_gnu_ld=yes
14854 ;;
14855 openbsd*)
14856 with_gnu_ld=no
14857 ;;
14858 esac
14859
14860 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014861
14862 # On some targets, GNU ld is compatible enough with the native linker
14863 # that we're better off using the native interface for both.
14864 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014865 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014866 case $host_os in
14867 aix*)
14868 # The AIX port of GNU ld has always aspired to compatibility
14869 # with the native linker. However, as the warning in the GNU ld
14870 # block says, versions before 2.19.5* couldn't really create working
14871 # shared libraries, regardless of the interface used.
14872 case `$LD -v 2>&1` in
14873 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14874 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14875 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14876 *)
14877 lt_use_gnu_ld_interface=yes
14878 ;;
14879 esac
14880 ;;
14881 *)
14882 lt_use_gnu_ld_interface=yes
14883 ;;
14884 esac
14885 fi
14886
14887 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014888 # If archive_cmds runs LD, not CC, wlarc should be empty
14889 wlarc='${wl}'
14890
14891 # Set some defaults for GNU ld with shared library support. These
14892 # are reset later if shared libraries are not supported. Putting them
14893 # here allows them to be overridden if necessary.
14894 runpath_var=LD_RUN_PATH
14895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14896 export_dynamic_flag_spec='${wl}--export-dynamic'
14897 # ancient GNU ld didn't support --whole-archive et. al.
14898 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14899 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14900 else
14901 whole_archive_flag_spec=
14902 fi
14903 supports_anon_versioning=no
14904 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014905 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14909 *\ 2.11.*) ;; # other 2.11 versions
14910 *) supports_anon_versioning=yes ;;
14911 esac
14912
14913 # See if GNU ld supports shared libraries.
14914 case $host_os in
14915 aix[3-9]*)
14916 # On AIX/PPC, the GNU linker is very broken
14917 if test "$host_cpu" != ia64; then
14918 ld_shlibs=no
14919 cat <<_LT_EOF 1>&2
14920
cristy0c60a692010-11-04 01:09:47 +000014921*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014922*** to be unable to reliably create shared libraries on AIX.
14923*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014924*** really care for shared libraries, you may want to install binutils
14925*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14926*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014927
14928_LT_EOF
14929 fi
14930 ;;
14931
14932 amigaos*)
14933 case $host_cpu in
14934 powerpc)
14935 # see comment about AmigaOS4 .so support
14936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14937 archive_expsym_cmds=''
14938 ;;
14939 m68k)
14940 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)'
14941 hardcode_libdir_flag_spec='-L$libdir'
14942 hardcode_minus_L=yes
14943 ;;
14944 esac
14945 ;;
14946
14947 beos*)
14948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14949 allow_undefined_flag=unsupported
14950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14951 # support --undefined. This deserves some investigation. FIXME
14952 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 else
14954 ld_shlibs=no
14955 fi
14956 ;;
14957
14958 cygwin* | mingw* | pw32* | cegcc*)
14959 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14960 # as there is no search path for DLLs.
14961 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014962 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014963 allow_undefined_flag=unsupported
14964 always_export_symbols=no
14965 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014966 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'
14967 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 +000014968
14969 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14971 # If the export-symbols file already is a .def file (1st line
14972 # is EXPORTS), use it as is; otherwise, prepend...
14973 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14974 cp $export_symbols $output_objdir/$soname.def;
14975 else
14976 echo EXPORTS > $output_objdir/$soname.def;
14977 cat $export_symbols >> $output_objdir/$soname.def;
14978 fi~
14979 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980 else
14981 ld_shlibs=no
14982 fi
14983 ;;
14984
cristy0c60a692010-11-04 01:09:47 +000014985 haiku*)
14986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987 link_all_deplibs=yes
14988 ;;
14989
cristy73bd4a52010-10-05 11:24:23 +000014990 interix[3-9]*)
14991 hardcode_direct=no
14992 hardcode_shlibpath_var=no
14993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14994 export_dynamic_flag_spec='${wl}-E'
14995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14996 # Instead, shared libraries are loaded at an image base (0x10000000 by
14997 # default) and relocated if they conflict, which is a slow very memory
14998 # consuming and fragmenting process. To avoid this, we pick a random,
14999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15000 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15002 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'
15003 ;;
15004
cristy0c60a692010-11-04 01:09:47 +000015005 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015006 tmp_diet=no
15007 if test "$host_os" = linux-dietlibc; then
15008 case $cc_basename in
15009 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15010 esac
15011 fi
15012 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15013 && test "$tmp_diet" = no
15014 then
cristyda16f162011-02-19 23:52:17 +000015015 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015016 tmp_sharedflag='-shared'
15017 case $cc_basename,$host_cpu in
15018 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015019 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 +000015020 tmp_addflag=' $pic_flag'
15021 ;;
cristy0c60a692010-11-04 01:09:47 +000015022 pgf77* | pgf90* | pgf95* | pgfortran*)
15023 # Portland Group f77 and f90 compilers
15024 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 +000015025 tmp_addflag=' $pic_flag -Mnomain' ;;
15026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15027 tmp_addflag=' -i_dynamic' ;;
15028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15029 tmp_addflag=' -i_dynamic -nofor_main' ;;
15030 ifc* | ifort*) # Intel Fortran compiler
15031 tmp_addflag=' -nofor_main' ;;
15032 lf95*) # Lahey Fortran 8.1
15033 whole_archive_flag_spec=
15034 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015035 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015036 tmp_sharedflag='-qmkshrobj'
15037 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015038 nvcc*) # Cuda Compiler Driver 2.2
15039 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'
15040 compiler_needs_object=yes
15041 ;;
cristy73bd4a52010-10-05 11:24:23 +000015042 esac
15043 case `$CC -V 2>&1 | sed 5q` in
15044 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015045 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 +000015046 compiler_needs_object=yes
15047 tmp_sharedflag='-G' ;;
15048 *Sun\ F*) # Sun Fortran 8.3
15049 tmp_sharedflag='-G' ;;
15050 esac
15051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052
15053 if test "x$supports_anon_versioning" = xyes; then
15054 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15056 echo "local: *; };" >> $output_objdir/$libname.ver~
15057 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15058 fi
15059
15060 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015061 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015062 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15063 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015065 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015066 if test "x$supports_anon_versioning" = xyes; then
15067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15069 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015070 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015071 fi
15072 ;;
15073 esac
15074 else
15075 ld_shlibs=no
15076 fi
15077 ;;
15078
15079 netbsd*)
15080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15081 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15082 wlarc=
15083 else
cristyda16f162011-02-19 23:52:17 +000015084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085 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 +000015086 fi
15087 ;;
15088
15089 solaris*)
15090 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15091 ld_shlibs=no
15092 cat <<_LT_EOF 1>&2
15093
15094*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15095*** create shared libraries on Solaris systems. Therefore, libtool
15096*** is disabling shared libraries support. We urge you to upgrade GNU
15097*** binutils to release 2.9.1 or newer. Another option is to modify
15098*** your PATH or compiler configuration so that the native linker is
15099*** used, and then restart.
15100
15101_LT_EOF
15102 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15104 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 +000015105 else
15106 ld_shlibs=no
15107 fi
15108 ;;
15109
15110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15111 case `$LD -v 2>&1` in
15112 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15113 ld_shlibs=no
15114 cat <<_LT_EOF 1>&2
15115
15116*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15117*** reliably create shared libraries on SCO systems. Therefore, libtool
15118*** is disabling shared libraries support. We urge you to upgrade GNU
15119*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15120*** your PATH or compiler configuration so that the native linker is
15121*** used, and then restart.
15122
15123_LT_EOF
15124 ;;
15125 *)
15126 # For security reasons, it is highly recommended that you always
15127 # use absolute paths for naming shared libraries, and exclude the
15128 # DT_RUNPATH tag from executables and libraries. But doing so
15129 # requires that you compile everything twice, which is a pain.
15130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134 else
15135 ld_shlibs=no
15136 fi
15137 ;;
15138 esac
15139 ;;
15140
15141 sunos4*)
15142 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15143 wlarc=
15144 hardcode_direct=yes
15145 hardcode_shlibpath_var=no
15146 ;;
15147
15148 *)
15149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15151 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 +000015152 else
15153 ld_shlibs=no
15154 fi
15155 ;;
15156 esac
15157
15158 if test "$ld_shlibs" = no; then
15159 runpath_var=
15160 hardcode_libdir_flag_spec=
15161 export_dynamic_flag_spec=
15162 whole_archive_flag_spec=
15163 fi
15164 else
15165 # PORTME fill in a description of your system's linker (not GNU ld)
15166 case $host_os in
15167 aix3*)
15168 allow_undefined_flag=unsupported
15169 always_export_symbols=yes
15170 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'
15171 # Note: this linker hardcodes the directories in LIBPATH if there
15172 # are no directories specified by -L.
15173 hardcode_minus_L=yes
15174 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15175 # Neither direct hardcoding nor static linking is supported with a
15176 # broken collect2.
15177 hardcode_direct=unsupported
15178 fi
15179 ;;
15180
15181 aix[4-9]*)
15182 if test "$host_cpu" = ia64; then
15183 # On IA64, the linker does run time linking by default, so we don't
15184 # have to do anything special.
15185 aix_use_runtimelinking=no
15186 exp_sym_flag='-Bexport'
15187 no_entry_flag=""
15188 else
15189 # If we're using GNU nm, then we don't want the "-C" option.
15190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015191 # Also, AIX nm treats weak defined symbols like other global
15192 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015194 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 +000015195 else
15196 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'
15197 fi
15198 aix_use_runtimelinking=no
15199
15200 # Test if we are trying to use run time linking or normal
15201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15202 # need to do runtime linking.
15203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15204 for ld_flag in $LDFLAGS; do
15205 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15206 aix_use_runtimelinking=yes
15207 break
15208 fi
15209 done
15210 ;;
15211 esac
15212
15213 exp_sym_flag='-bexport'
15214 no_entry_flag='-bnoentry'
15215 fi
15216
15217 # When large executables or shared objects are built, AIX ld can
15218 # have problems creating the table of contents. If linking a library
15219 # or program results in "error TOC overflow" add -mminimal-toc to
15220 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15221 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15222
15223 archive_cmds=''
15224 hardcode_direct=yes
15225 hardcode_direct_absolute=yes
15226 hardcode_libdir_separator=':'
15227 link_all_deplibs=yes
15228 file_list_spec='${wl}-f,'
15229
15230 if test "$GCC" = yes; then
15231 case $host_os in aix4.[012]|aix4.[012].*)
15232 # We only want to do this on AIX 4.2 and lower, the check
15233 # below for broken collect2 doesn't work under 4.3+
15234 collect2name=`${CC} -print-prog-name=collect2`
15235 if test -f "$collect2name" &&
15236 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15237 then
15238 # We have reworked collect2
15239 :
15240 else
15241 # We have old collect2
15242 hardcode_direct=unsupported
15243 # It fails to find uninstalled libraries when the uninstalled
15244 # path is not listed in the libpath. Setting hardcode_minus_L
15245 # to unsupported forces relinking
15246 hardcode_minus_L=yes
15247 hardcode_libdir_flag_spec='-L$libdir'
15248 hardcode_libdir_separator=
15249 fi
15250 ;;
15251 esac
15252 shared_flag='-shared'
15253 if test "$aix_use_runtimelinking" = yes; then
15254 shared_flag="$shared_flag "'${wl}-G'
15255 fi
15256 else
15257 # not using gcc
15258 if test "$host_cpu" = ia64; then
15259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15260 # chokes on -Wl,-G. The following line is correct:
15261 shared_flag='-G'
15262 else
15263 if test "$aix_use_runtimelinking" = yes; then
15264 shared_flag='${wl}-G'
15265 else
15266 shared_flag='${wl}-bM:SRE'
15267 fi
15268 fi
15269 fi
15270
15271 export_dynamic_flag_spec='${wl}-bexpall'
15272 # It seems that -bexpall does not export symbols beginning with
15273 # underscore (_), so it is better to generate a list of symbols to export.
15274 always_export_symbols=yes
15275 if test "$aix_use_runtimelinking" = yes; then
15276 # Warning - without using the other runtime loading flags (-brtl),
15277 # -berok will link without error, but may produce a broken library.
15278 allow_undefined_flag='-berok'
15279 # Determine the default libpath from the value encoded in an
15280 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015281 if test "${lt_cv_aix_libpath+set}" = set; then
15282 aix_libpath=$lt_cv_aix_libpath
15283else
15284 if ${lt_cv_aix_libpath_+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286else
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015288/* end confdefs.h. */
15289
15290int
15291main ()
15292{
15293
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"; then :
15299
cristyda16f162011-02-19 23:52:17 +000015300 lt_aix_libpath_sed='
15301 /Import File Strings/,/^$/ {
15302 /^0/ {
15303 s/^0 *\([^ ]*\) *$/\1/
15304 p
15305 }
15306 }'
15307 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308 # Check for a 64-bit object if we didn't find anything.
15309 if test -z "$lt_cv_aix_libpath_"; then
15310 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311 fi
cristy73bd4a52010-10-05 11:24:23 +000015312fi
15313rm -f core conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015315 if test -z "$lt_cv_aix_libpath_"; then
15316 lt_cv_aix_libpath_="/usr/lib:/lib"
15317 fi
15318
15319fi
15320
15321 aix_libpath=$lt_cv_aix_libpath_
15322fi
cristy73bd4a52010-10-05 11:24:23 +000015323
15324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015325 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 +000015326 else
15327 if test "$host_cpu" = ia64; then
15328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15329 allow_undefined_flag="-z nodefs"
15330 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"
15331 else
15332 # Determine the default libpath from the value encoded in an
15333 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015334 if test "${lt_cv_aix_libpath+set}" = set; then
15335 aix_libpath=$lt_cv_aix_libpath
15336else
15337 if ${lt_cv_aix_libpath_+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339else
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015341/* end confdefs.h. */
15342
15343int
15344main ()
15345{
15346
15347 ;
15348 return 0;
15349}
15350_ACEOF
15351if ac_fn_c_try_link "$LINENO"; then :
15352
cristyda16f162011-02-19 23:52:17 +000015353 lt_aix_libpath_sed='
15354 /Import File Strings/,/^$/ {
15355 /^0/ {
15356 s/^0 *\([^ ]*\) *$/\1/
15357 p
15358 }
15359 }'
15360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361 # Check for a 64-bit object if we didn't find anything.
15362 if test -z "$lt_cv_aix_libpath_"; then
15363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15364 fi
cristy73bd4a52010-10-05 11:24:23 +000015365fi
15366rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015368 if test -z "$lt_cv_aix_libpath_"; then
15369 lt_cv_aix_libpath_="/usr/lib:/lib"
15370 fi
15371
15372fi
15373
15374 aix_libpath=$lt_cv_aix_libpath_
15375fi
cristy73bd4a52010-10-05 11:24:23 +000015376
15377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15378 # Warning - without using the other run time loading flags,
15379 # -berok will link without error, but may produce a broken library.
15380 no_undefined_flag=' ${wl}-bernotok'
15381 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015382 if test "$with_gnu_ld" = yes; then
15383 # We only use this code for GNU lds that support --whole-archive.
15384 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15385 else
15386 # Exported symbols can be pulled into shared objects from archives
15387 whole_archive_flag_spec='$convenience'
15388 fi
cristy73bd4a52010-10-05 11:24:23 +000015389 archive_cmds_need_lc=yes
15390 # This is similar to how AIX traditionally builds its shared libraries.
15391 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'
15392 fi
15393 fi
15394 ;;
15395
15396 amigaos*)
15397 case $host_cpu in
15398 powerpc)
15399 # see comment about AmigaOS4 .so support
15400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15401 archive_expsym_cmds=''
15402 ;;
15403 m68k)
15404 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)'
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 hardcode_minus_L=yes
15407 ;;
15408 esac
15409 ;;
15410
15411 bsdi[45]*)
15412 export_dynamic_flag_spec=-rdynamic
15413 ;;
15414
15415 cygwin* | mingw* | pw32* | cegcc*)
15416 # When not using gcc, we currently assume that we are using
15417 # Microsoft Visual C++.
15418 # hardcode_libdir_flag_spec is actually meaningless, as there is
15419 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015420 case $cc_basename in
15421 cl*)
15422 # Native MSVC
15423 hardcode_libdir_flag_spec=' '
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=yes
15426 file_list_spec='@'
15427 # Tell ltmain to make .lib files, not .a files.
15428 libext=lib
15429 # Tell ltmain to make .dll files, not .so files.
15430 shrext_cmds=".dll"
15431 # FIXME: Setting linknames here is a bad hack.
15432 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15435 else
15436 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15437 fi~
15438 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15439 linknames='
15440 # The linker will not automatically build a static lib if we build a DLL.
15441 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15442 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015443 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15445 # Don't use ranlib
15446 old_postinstall_cmds='chmod 644 $oldlib'
15447 postlink_cmds='lt_outputfile="@OUTPUT@"~
15448 lt_tool_outputfile="@TOOL_OUTPUT@"~
15449 case $lt_outputfile in
15450 *.exe|*.EXE) ;;
15451 *)
15452 lt_outputfile="$lt_outputfile.exe"
15453 lt_tool_outputfile="$lt_tool_outputfile.exe"
15454 ;;
15455 esac~
15456 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15457 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15458 $RM "$lt_outputfile.manifest";
15459 fi'
15460 ;;
15461 *)
15462 # Assume MSVC wrapper
15463 hardcode_libdir_flag_spec=' '
15464 allow_undefined_flag=unsupported
15465 # Tell ltmain to make .lib files, not .a files.
15466 libext=lib
15467 # Tell ltmain to make .dll files, not .so files.
15468 shrext_cmds=".dll"
15469 # FIXME: Setting linknames here is a bad hack.
15470 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15471 # The linker will automatically build a .lib file if we build a DLL.
15472 old_archive_from_new_cmds='true'
15473 # FIXME: Should let the user specify the lib program.
15474 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15475 enable_shared_with_static_runtimes=yes
15476 ;;
15477 esac
cristy73bd4a52010-10-05 11:24:23 +000015478 ;;
15479
15480 darwin* | rhapsody*)
15481
15482
15483 archive_cmds_need_lc=no
15484 hardcode_direct=no
15485 hardcode_automatic=yes
15486 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015487 if test "$lt_cv_ld_force_load" = "yes"; then
15488 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 +000015489
cristy0c60a692010-11-04 01:09:47 +000015490 else
15491 whole_archive_flag_spec=''
15492 fi
cristy73bd4a52010-10-05 11:24:23 +000015493 link_all_deplibs=yes
15494 allow_undefined_flag="$_lt_dar_allow_undefined"
15495 case $cc_basename in
15496 ifort*) _lt_dar_can_shared=yes ;;
15497 *) _lt_dar_can_shared=$GCC ;;
15498 esac
15499 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015500 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015501 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15502 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15503 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}"
15504 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}"
15505
15506 else
15507 ld_shlibs=no
15508 fi
15509
15510 ;;
15511
15512 dgux*)
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_libdir_flag_spec='-L$libdir'
15515 hardcode_shlibpath_var=no
15516 ;;
15517
cristy73bd4a52010-10-05 11:24:23 +000015518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15519 # support. Future versions do this automatically, but an explicit c++rt0.o
15520 # does not break anything, and helps significantly (at the cost of a little
15521 # extra space).
15522 freebsd2.2*)
15523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15524 hardcode_libdir_flag_spec='-R$libdir'
15525 hardcode_direct=yes
15526 hardcode_shlibpath_var=no
15527 ;;
15528
15529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015530 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532 hardcode_direct=yes
15533 hardcode_minus_L=yes
15534 hardcode_shlibpath_var=no
15535 ;;
15536
15537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15538 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015540 hardcode_libdir_flag_spec='-R$libdir'
15541 hardcode_direct=yes
15542 hardcode_shlibpath_var=no
15543 ;;
15544
15545 hpux9*)
15546 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015547 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 +000015548 else
15549 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'
15550 fi
15551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15552 hardcode_libdir_separator=:
15553 hardcode_direct=yes
15554
15555 # hardcode_minus_L: Not really in the search PATH,
15556 # but as the default location of the library.
15557 hardcode_minus_L=yes
15558 export_dynamic_flag_spec='${wl}-E'
15559 ;;
15560
15561 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015562 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015563 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 +000015564 else
15565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15566 fi
15567 if test "$with_gnu_ld" = no; then
15568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015569 hardcode_libdir_separator=:
15570 hardcode_direct=yes
15571 hardcode_direct_absolute=yes
15572 export_dynamic_flag_spec='${wl}-E'
15573 # hardcode_minus_L: Not really in the search PATH,
15574 # but as the default location of the library.
15575 hardcode_minus_L=yes
15576 fi
15577 ;;
15578
15579 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015581 case $host_cpu in
15582 hppa*64*)
15583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584 ;;
15585 ia64*)
cristyda16f162011-02-19 23:52:17 +000015586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015587 ;;
15588 *)
cristyda16f162011-02-19 23:52:17 +000015589 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 +000015590 ;;
15591 esac
15592 else
15593 case $host_cpu in
15594 hppa*64*)
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 ;;
15597 ia64*)
15598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15599 ;;
15600 *)
cristy0c60a692010-11-04 01:09:47 +000015601
15602 # Older versions of the 11.00 compiler do not understand -b yet
15603 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15605$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015606if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015607 $as_echo_n "(cached) " >&6
15608else
15609 lt_cv_prog_compiler__b=no
15610 save_LDFLAGS="$LDFLAGS"
15611 LDFLAGS="$LDFLAGS -b"
15612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15614 # The linker can only warn and ignore the option if not recognized
15615 # So say no if there are warnings
15616 if test -s conftest.err; then
15617 # Append any errors to the config.log.
15618 cat conftest.err 1>&5
15619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15621 if diff conftest.exp conftest.er2 >/dev/null; then
15622 lt_cv_prog_compiler__b=yes
15623 fi
15624 else
15625 lt_cv_prog_compiler__b=yes
15626 fi
15627 fi
15628 $RM -r conftest*
15629 LDFLAGS="$save_LDFLAGS"
15630
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15633$as_echo "$lt_cv_prog_compiler__b" >&6; }
15634
15635if test x"$lt_cv_prog_compiler__b" = xyes; then
15636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15637else
15638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15639fi
15640
cristy73bd4a52010-10-05 11:24:23 +000015641 ;;
15642 esac
15643 fi
15644 if test "$with_gnu_ld" = no; then
15645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15646 hardcode_libdir_separator=:
15647
15648 case $host_cpu in
15649 hppa*64*|ia64*)
15650 hardcode_direct=no
15651 hardcode_shlibpath_var=no
15652 ;;
15653 *)
15654 hardcode_direct=yes
15655 hardcode_direct_absolute=yes
15656 export_dynamic_flag_spec='${wl}-E'
15657
15658 # hardcode_minus_L: Not really in the search PATH,
15659 # but as the default location of the library.
15660 hardcode_minus_L=yes
15661 ;;
15662 esac
15663 fi
15664 ;;
15665
15666 irix5* | irix6* | nonstopux*)
15667 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015668 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 +000015669 # Try to use the -exported_symbol ld option, if it does not
15670 # work, assume that -exports_file does not work either and
15671 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015672 # This should be the same for all languages, so no per-tag cache variable.
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15674$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15675if ${lt_cv_irix_exported_symbol+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677else
15678 save_LDFLAGS="$LDFLAGS"
15679 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015681/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015682int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015683_ACEOF
15684if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015685 lt_cv_irix_exported_symbol=yes
15686else
15687 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015691 LDFLAGS="$save_LDFLAGS"
15692fi
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15694$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15695 if test "$lt_cv_irix_exported_symbol" = yes; then
15696 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'
15697 fi
cristy73bd4a52010-10-05 11:24:23 +000015698 else
cristy0c60a692010-11-04 01:09:47 +000015699 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'
15700 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 +000015701 fi
15702 archive_cmds_need_lc='no'
15703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15704 hardcode_libdir_separator=:
15705 inherit_rpath=yes
15706 link_all_deplibs=yes
15707 ;;
15708
15709 netbsd*)
15710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15712 else
15713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15714 fi
15715 hardcode_libdir_flag_spec='-R$libdir'
15716 hardcode_direct=yes
15717 hardcode_shlibpath_var=no
15718 ;;
15719
15720 newsos6)
15721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_direct=yes
15723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator=:
15725 hardcode_shlibpath_var=no
15726 ;;
15727
15728 *nto* | *qnx*)
15729 ;;
15730
15731 openbsd*)
15732 if test -f /usr/libexec/ld.so; then
15733 hardcode_direct=yes
15734 hardcode_shlibpath_var=no
15735 hardcode_direct_absolute=yes
15736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15740 export_dynamic_flag_spec='${wl}-E'
15741 else
15742 case $host_os in
15743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_libdir_flag_spec='-R$libdir'
15746 ;;
15747 *)
15748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15750 ;;
15751 esac
15752 fi
15753 else
15754 ld_shlibs=no
15755 fi
15756 ;;
15757
15758 os2*)
15759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_minus_L=yes
15761 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015762 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 +000015763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15764 ;;
15765
15766 osf3*)
15767 if test "$GCC" = yes; then
15768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015769 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 +000015770 else
15771 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015772 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 +000015773 fi
15774 archive_cmds_need_lc='no'
15775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15776 hardcode_libdir_separator=:
15777 ;;
15778
15779 osf4* | osf5*) # as osf3* with the addition of -msym flag
15780 if test "$GCC" = yes; then
15781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015782 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 +000015783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15784 else
15785 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015786 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 +000015787 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 +000015788 $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 +000015789
15790 # Both c and cxx compiler support -rpath directly
15791 hardcode_libdir_flag_spec='-rpath $libdir'
15792 fi
15793 archive_cmds_need_lc='no'
15794 hardcode_libdir_separator=:
15795 ;;
15796
15797 solaris*)
15798 no_undefined_flag=' -z defs'
15799 if test "$GCC" = yes; then
15800 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015801 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 +000015802 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 +000015803 $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 +000015804 else
15805 case `$CC -V 2>&1` in
15806 *"Compilers 5.0"*)
15807 wlarc=''
15808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15811 ;;
15812 *)
15813 wlarc='${wl}'
15814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15817 ;;
15818 esac
15819 fi
15820 hardcode_libdir_flag_spec='-R$libdir'
15821 hardcode_shlibpath_var=no
15822 case $host_os in
15823 solaris2.[0-5] | solaris2.[0-5].*) ;;
15824 *)
15825 # The compiler driver will combine and reorder linker options,
15826 # but understands `-z linker_flag'. GCC discards it without `$wl',
15827 # but is careful enough not to reorder.
15828 # Supported since Solaris 2.6 (maybe 2.5.1?)
15829 if test "$GCC" = yes; then
15830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15831 else
15832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15833 fi
15834 ;;
15835 esac
15836 link_all_deplibs=yes
15837 ;;
15838
15839 sunos4*)
15840 if test "x$host_vendor" = xsequent; then
15841 # Use $CC to link under sequent, because it throws in some extra .o
15842 # files that make .init and .fini sections work.
15843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15844 else
15845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15846 fi
15847 hardcode_libdir_flag_spec='-L$libdir'
15848 hardcode_direct=yes
15849 hardcode_minus_L=yes
15850 hardcode_shlibpath_var=no
15851 ;;
15852
15853 sysv4)
15854 case $host_vendor in
15855 sni)
15856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857 hardcode_direct=yes # is this really true???
15858 ;;
15859 siemens)
15860 ## LD is ld it makes a PLAMLIB
15861 ## CC just makes a GrossModule.
15862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15863 reload_cmds='$CC -r -o $output$reload_objs'
15864 hardcode_direct=no
15865 ;;
15866 motorola)
15867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15869 ;;
15870 esac
15871 runpath_var='LD_RUN_PATH'
15872 hardcode_shlibpath_var=no
15873 ;;
15874
15875 sysv4.3*)
15876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_shlibpath_var=no
15878 export_dynamic_flag_spec='-Bexport'
15879 ;;
15880
15881 sysv4*MP*)
15882 if test -d /usr/nec; then
15883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_shlibpath_var=no
15885 runpath_var=LD_RUN_PATH
15886 hardcode_runpath_var=yes
15887 ld_shlibs=yes
15888 fi
15889 ;;
15890
15891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15892 no_undefined_flag='${wl}-z,text'
15893 archive_cmds_need_lc=no
15894 hardcode_shlibpath_var=no
15895 runpath_var='LD_RUN_PATH'
15896
15897 if test "$GCC" = yes; then
15898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 else
15901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 fi
15904 ;;
15905
15906 sysv5* | sco3.2v5* | sco5v6*)
15907 # Note: We can NOT use -z defs as we might desire, because we do not
15908 # link with -lc, and that would cause any symbols used from libc to
15909 # always be unresolved, which means just about no library would
15910 # ever link correctly. If we're not using GNU ld we use -z text
15911 # though, which does catch some bad symbols but isn't as heavy-handed
15912 # as -z defs.
15913 no_undefined_flag='${wl}-z,text'
15914 allow_undefined_flag='${wl}-z,nodefs'
15915 archive_cmds_need_lc=no
15916 hardcode_shlibpath_var=no
15917 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15918 hardcode_libdir_separator=':'
15919 link_all_deplibs=yes
15920 export_dynamic_flag_spec='${wl}-Bexport'
15921 runpath_var='LD_RUN_PATH'
15922
15923 if test "$GCC" = yes; then
15924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 else
15927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 fi
15930 ;;
15931
15932 uts4*)
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_libdir_flag_spec='-L$libdir'
15935 hardcode_shlibpath_var=no
15936 ;;
15937
15938 *)
15939 ld_shlibs=no
15940 ;;
15941 esac
15942
15943 if test x$host_vendor = xsni; then
15944 case $host in
15945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15946 export_dynamic_flag_spec='${wl}-Blargedynsym'
15947 ;;
15948 esac
15949 fi
15950 fi
15951
15952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15953$as_echo "$ld_shlibs" >&6; }
15954test "$ld_shlibs" = no && can_build_shared=no
15955
15956with_gnu_ld=$with_gnu_ld
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972#
15973# Do we need to explicitly link libc?
15974#
15975case "x$archive_cmds_need_lc" in
15976x|xyes)
15977 # Assume -lc should be added
15978 archive_cmds_need_lc=yes
15979
15980 if test "$enable_shared" = yes && test "$GCC" = yes; then
15981 case $archive_cmds in
15982 *'~'*)
15983 # FIXME: we may have to deal with multi-command sequences.
15984 ;;
15985 '$CC '*)
15986 # Test whether the compiler implicitly links with -lc since on some
15987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15988 # to ld, don't add -lc before -lgcc.
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015991if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015992 $as_echo_n "(cached) " >&6
15993else
15994 $RM conftest*
15995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015996
cristy0c60a692010-11-04 01:09:47 +000015997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015998 (eval $ac_compile) 2>&5
15999 ac_status=$?
16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16001 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016002 soname=conftest
16003 lib=conftest
16004 libobjs=conftest.$ac_objext
16005 deplibs=
16006 wl=$lt_prog_compiler_wl
16007 pic_flag=$lt_prog_compiler_pic
16008 compiler_flags=-v
16009 linker_flags=-v
16010 verstring=
16011 output_objdir=.
16012 libname=conftest
16013 lt_save_allow_undefined_flag=$allow_undefined_flag
16014 allow_undefined_flag=
16015 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 +000016016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16017 ac_status=$?
16018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16019 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016020 then
16021 lt_cv_archive_cmds_need_lc=no
16022 else
16023 lt_cv_archive_cmds_need_lc=yes
16024 fi
16025 allow_undefined_flag=$lt_save_allow_undefined_flag
16026 else
16027 cat conftest.err 1>&5
16028 fi
16029 $RM conftest*
16030
16031fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16033$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016035 ;;
16036 esac
16037 fi
16038 ;;
16039esac
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
cristy73bd4a52010-10-05 11:24:23 +000016192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16193$as_echo_n "checking dynamic linker characteristics... " >&6; }
16194
16195if test "$GCC" = yes; then
16196 case $host_os in
16197 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16198 *) lt_awk_arg="/^libraries:/" ;;
16199 esac
cristy0c60a692010-11-04 01:09:47 +000016200 case $host_os in
16201 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16202 *) lt_sed_strip_eq="s,=/,/,g" ;;
16203 esac
16204 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16205 case $lt_search_path_spec in
16206 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016207 # if the path contains ";" then we assume it to be the separator
16208 # otherwise default to the standard path separator (i.e. ":") - it is
16209 # assumed that no part of a normal pathname contains ";" but that should
16210 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016211 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16212 ;;
16213 *)
16214 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16215 ;;
16216 esac
cristy73bd4a52010-10-05 11:24:23 +000016217 # Ok, now we have the path, separated by spaces, we can step through it
16218 # and add multilib dir if necessary.
16219 lt_tmp_lt_search_path_spec=
16220 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16221 for lt_sys_path in $lt_search_path_spec; do
16222 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16223 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16224 else
16225 test -d "$lt_sys_path" && \
16226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16227 fi
16228 done
cristy0c60a692010-11-04 01:09:47 +000016229 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016230BEGIN {RS=" "; FS="/|\n";} {
16231 lt_foo="";
16232 lt_count=0;
16233 for (lt_i = NF; lt_i > 0; lt_i--) {
16234 if ($lt_i != "" && $lt_i != ".") {
16235 if ($lt_i == "..") {
16236 lt_count++;
16237 } else {
16238 if (lt_count == 0) {
16239 lt_foo="/" $lt_i lt_foo;
16240 } else {
16241 lt_count--;
16242 }
16243 }
16244 }
16245 }
16246 if (lt_foo != "") { lt_freq[lt_foo]++; }
16247 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16248}'`
cristy0c60a692010-11-04 01:09:47 +000016249 # AWK program above erroneously prepends '/' to C:/dos/paths
16250 # for these hosts.
16251 case $host_os in
16252 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16253 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16254 esac
16255 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016256else
16257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16258fi
16259library_names_spec=
16260libname_spec='lib$name'
16261soname_spec=
16262shrext_cmds=".so"
16263postinstall_cmds=
16264postuninstall_cmds=
16265finish_cmds=
16266finish_eval=
16267shlibpath_var=
16268shlibpath_overrides_runpath=unknown
16269version_type=none
16270dynamic_linker="$host_os ld.so"
16271sys_lib_dlsearch_path_spec="/lib /usr/lib"
16272need_lib_prefix=unknown
16273hardcode_into_libs=no
16274
16275# when you set need_version to no, make sure it does not cause -set_version
16276# flags to be left without arguments
16277need_version=unknown
16278
16279case $host_os in
16280aix3*)
cristy99bd5232011-12-07 14:38:20 +000016281 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16283 shlibpath_var=LIBPATH
16284
16285 # AIX 3 has no versioning support, so we append a major version to the name.
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 ;;
16288
16289aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016290 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016291 need_lib_prefix=no
16292 need_version=no
16293 hardcode_into_libs=yes
16294 if test "$host_cpu" = ia64; then
16295 # AIX 5 supports IA64
16296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 else
16299 # With GCC up to 2.95.x, collect2 would create an import file
16300 # for dependence libraries. The import file would start with
16301 # the line `#! .'. This would cause the generated library to
16302 # depend on `.', always an invalid library. This was fixed in
16303 # development snapshots of GCC prior to 3.0.
16304 case $host_os in
16305 aix4 | aix4.[01] | aix4.[01].*)
16306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16307 echo ' yes '
16308 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16309 :
16310 else
16311 can_build_shared=no
16312 fi
16313 ;;
16314 esac
16315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16316 # soname into executable. Probably we can add versioning support to
16317 # collect2, so additional links can be useful in future.
16318 if test "$aix_use_runtimelinking" = yes; then
16319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16320 # instead of lib<name>.a to let people know that these are not
16321 # typical AIX shared libraries.
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 else
16324 # We preserve .a as extension for shared libraries through AIX4.2
16325 # and later when we are not doing run time linking.
16326 library_names_spec='${libname}${release}.a $libname.a'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 fi
16329 shlibpath_var=LIBPATH
16330 fi
16331 ;;
16332
16333amigaos*)
16334 case $host_cpu in
16335 powerpc)
16336 # Since July 2007 AmigaOS4 officially supports .so libraries.
16337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339 ;;
16340 m68k)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016343 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 +000016344 ;;
16345 esac
16346 ;;
16347
16348beos*)
16349 library_names_spec='${libname}${shared_ext}'
16350 dynamic_linker="$host_os ld.so"
16351 shlibpath_var=LIBRARY_PATH
16352 ;;
16353
16354bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016355 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16363 # the default ld.so.conf also contains /usr/contrib/lib and
16364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16365 # libtool to hard-code these into programs
16366 ;;
16367
16368cygwin* | mingw* | pw32* | cegcc*)
16369 version_type=windows
16370 shrext_cmds=".dll"
16371 need_version=no
16372 need_lib_prefix=no
16373
cristyda16f162011-02-19 23:52:17 +000016374 case $GCC,$cc_basename in
16375 yes,*)
16376 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016377 library_names_spec='$libname.dll.a'
16378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379 postinstall_cmds='base_file=`basename \${file}`~
16380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16381 dldir=$destdir/`dirname \$dlpath`~
16382 test -d \$dldir || mkdir -p \$dldir~
16383 $install_prog $dir/$dlname \$dldir/$dlname~
16384 chmod a+x \$dldir/$dlname~
16385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16387 fi'
16388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16389 dlpath=$dir/\$dldll~
16390 $RM \$dlpath'
16391 shlibpath_overrides_runpath=yes
16392
16393 case $host_os in
16394 cygwin*)
16395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016397
16398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016399 ;;
16400 mingw* | cegcc*)
16401 # MinGW DLLs use traditional 'lib' prefix
16402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016403 ;;
16404 pw32*)
16405 # pw32 DLLs use 'pw' prefix rather than 'lib'
16406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16407 ;;
16408 esac
cristyda16f162011-02-19 23:52:17 +000016409 dynamic_linker='Win32 ld.exe'
16410 ;;
16411
16412 *,cl*)
16413 # Native MSVC
16414 libname_spec='$name'
16415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16416 library_names_spec='${libname}.dll.lib'
16417
16418 case $build_os in
16419 mingw*)
16420 sys_lib_search_path_spec=
16421 lt_save_ifs=$IFS
16422 IFS=';'
16423 for lt_path in $LIB
16424 do
16425 IFS=$lt_save_ifs
16426 # Let DOS variable expansion print the short 8.3 style file name.
16427 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16428 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16429 done
16430 IFS=$lt_save_ifs
16431 # Convert to MSYS style.
16432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16433 ;;
16434 cygwin*)
16435 # Convert to unix form, then to dos form, then back to unix form
16436 # but this time dos style (no spaces!) so that the unix form looks
16437 # like /cygdrive/c/PROGRA~1:/cygdr...
16438 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16439 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16440 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16441 ;;
16442 *)
16443 sys_lib_search_path_spec="$LIB"
16444 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16445 # It is most probably a Windows format PATH.
16446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16447 else
16448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16449 fi
16450 # FIXME: find the short name or the path components, as spaces are
16451 # common. (e.g. "Program Files" -> "PROGRA~1")
16452 ;;
16453 esac
16454
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname'
16461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16462 dlpath=$dir/\$dldll~
16463 $RM \$dlpath'
16464 shlibpath_overrides_runpath=yes
16465 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016466 ;;
16467
16468 *)
cristyda16f162011-02-19 23:52:17 +000016469 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016470 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016471 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016472 ;;
16473 esac
cristy73bd4a52010-10-05 11:24:23 +000016474 # FIXME: first we should search . and the directory the executable is in
16475 shlibpath_var=PATH
16476 ;;
16477
16478darwin* | rhapsody*)
16479 dynamic_linker="$host_os dyld"
16480 version_type=darwin
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16484 soname_spec='${libname}${release}${major}$shared_ext'
16485 shlibpath_overrides_runpath=yes
16486 shlibpath_var=DYLD_LIBRARY_PATH
16487 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16488
16489 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16491 ;;
16492
16493dgux*)
cristy99bd5232011-12-07 14:38:20 +000016494 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 ;;
16501
cristy73bd4a52010-10-05 11:24:23 +000016502freebsd* | dragonfly*)
16503 # DragonFly does not have aout. When/if they implement a new
16504 # versioning mechanism, adjust this.
16505 if test -x /usr/bin/objformat; then
16506 objformat=`/usr/bin/objformat`
16507 else
16508 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016509 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016510 *) objformat=elf ;;
16511 esac
16512 fi
16513 version_type=freebsd-$objformat
16514 case $version_type in
16515 freebsd-elf*)
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16517 need_version=no
16518 need_lib_prefix=no
16519 ;;
16520 freebsd-*)
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16522 need_version=yes
16523 ;;
16524 esac
16525 shlibpath_var=LD_LIBRARY_PATH
16526 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016527 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016528 shlibpath_overrides_runpath=yes
16529 ;;
16530 freebsd3.[01]* | freebsdelf3.[01]*)
16531 shlibpath_overrides_runpath=yes
16532 hardcode_into_libs=yes
16533 ;;
16534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16536 shlibpath_overrides_runpath=no
16537 hardcode_into_libs=yes
16538 ;;
16539 *) # from 4.6 on, and DragonFly
16540 shlibpath_overrides_runpath=yes
16541 hardcode_into_libs=yes
16542 ;;
16543 esac
16544 ;;
16545
16546gnu*)
cristy99bd5232011-12-07 14:38:20 +000016547 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016553 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016554 hardcode_into_libs=yes
16555 ;;
16556
cristy0c60a692010-11-04 01:09:47 +000016557haiku*)
cristy99bd5232011-12-07 14:38:20 +000016558 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016559 need_lib_prefix=no
16560 need_version=no
16561 dynamic_linker="$host_os runtime_loader"
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes
16566 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16567 hardcode_into_libs=yes
16568 ;;
16569
cristy73bd4a52010-10-05 11:24:23 +000016570hpux9* | hpux10* | hpux11*)
16571 # Give a soname corresponding to the major version so that dld.sl refuses to
16572 # link against other versions.
16573 version_type=sunos
16574 need_lib_prefix=no
16575 need_version=no
16576 case $host_cpu in
16577 ia64*)
16578 shrext_cmds='.so'
16579 hardcode_into_libs=yes
16580 dynamic_linker="$host_os dld.so"
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 if test "X$HPUX_IA64_MODE" = X32; then
16586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16587 else
16588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16589 fi
16590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591 ;;
16592 hppa*64*)
16593 shrext_cmds='.sl'
16594 hardcode_into_libs=yes
16595 dynamic_linker="$host_os dld.sl"
16596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16602 ;;
16603 *)
16604 shrext_cmds='.sl'
16605 dynamic_linker="$host_os dld.sl"
16606 shlibpath_var=SHLIB_PATH
16607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 ;;
16611 esac
cristy0c60a692010-11-04 01:09:47 +000016612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016613 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016614 # or fails outright, so override atomically:
16615 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016616 ;;
16617
16618interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 hardcode_into_libs=yes
16628 ;;
16629
16630irix5* | irix6* | nonstopux*)
16631 case $host_os in
16632 nonstopux*) version_type=nonstopux ;;
16633 *)
16634 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016635 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016636 else
16637 version_type=irix
16638 fi ;;
16639 esac
16640 need_lib_prefix=no
16641 need_version=no
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16644 case $host_os in
16645 irix5* | nonstopux*)
16646 libsuff= shlibsuff=
16647 ;;
16648 *)
16649 case $LD in # libtool.m4 will add one of these switches to LD
16650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16651 libsuff= shlibsuff= libmagic=32-bit;;
16652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16653 libsuff=32 shlibsuff=N32 libmagic=N32;;
16654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16656 *) libsuff= shlibsuff= libmagic=never-match;;
16657 esac
16658 ;;
16659 esac
16660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16661 shlibpath_overrides_runpath=no
16662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16664 hardcode_into_libs=yes
16665 ;;
16666
16667# No shared lib support for Linux oldld, aout, or coff.
16668linux*oldld* | linux*aout* | linux*coff*)
16669 dynamic_linker=no
16670 ;;
16671
cristy99bd5232011-12-07 14:38:20 +000016672# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016673linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016674 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016682
cristy73bd4a52010-10-05 11:24:23 +000016683 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016684 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016685 $as_echo_n "(cached) " >&6
16686else
16687 lt_cv_shlibpath_overrides_runpath=no
16688 save_LDFLAGS=$LDFLAGS
16689 save_libdir=$libdir
16690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016693/* end confdefs.h. */
16694
16695int
16696main ()
16697{
16698
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703if ac_fn_c_try_link "$LINENO"; then :
16704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016705 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016706fi
16707fi
16708rm -f core conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016710 LDFLAGS=$save_LDFLAGS
16711 libdir=$save_libdir
16712
16713fi
16714
16715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016716
16717 # This implies no fast_install, which is unacceptable.
16718 # Some rework will be needed to allow for fast_install
16719 # before this can be enabled.
16720 hardcode_into_libs=yes
16721
16722 # Add ABI-specific directories to the system library path.
16723 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16724
16725 # Append ld.so.conf contents to the search path
16726 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016727 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 +000016728 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016729
cristy73bd4a52010-10-05 11:24:23 +000016730 fi
16731
16732 # We used to test for /lib/ld.so.1 and disable shared libraries on
16733 # powerpc, because MkLinux only supported shared libraries with the
16734 # GNU dynamic linker. Since this was broken with cross compilers,
16735 # most powerpc-linux boxes support dynamic linking these days and
16736 # people can always --disable-shared, the test was removed, and we
16737 # assume the GNU/Linux dynamic linker is in use.
16738 dynamic_linker='GNU/Linux ld.so'
16739 ;;
16740
16741netbsd*)
16742 version_type=sunos
16743 need_lib_prefix=no
16744 need_version=no
16745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16748 dynamic_linker='NetBSD (a.out) ld.so'
16749 else
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 dynamic_linker='NetBSD ld.elf_so'
16753 fi
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 hardcode_into_libs=yes
16757 ;;
16758
16759newsos6)
cristy99bd5232011-12-07 14:38:20 +000016760 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 ;;
16765
16766*nto* | *qnx*)
16767 version_type=qnx
16768 need_lib_prefix=no
16769 need_version=no
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=no
16774 hardcode_into_libs=yes
16775 dynamic_linker='ldqnx.so'
16776 ;;
16777
16778openbsd*)
16779 version_type=sunos
16780 sys_lib_dlsearch_path_spec="/usr/lib"
16781 need_lib_prefix=no
16782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16783 case $host_os in
16784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16785 *) need_version=no ;;
16786 esac
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16791 case $host_os in
16792 openbsd2.[89] | openbsd2.[89].*)
16793 shlibpath_overrides_runpath=no
16794 ;;
16795 *)
16796 shlibpath_overrides_runpath=yes
16797 ;;
16798 esac
16799 else
16800 shlibpath_overrides_runpath=yes
16801 fi
16802 ;;
16803
16804os2*)
16805 libname_spec='$name'
16806 shrext_cmds=".dll"
16807 need_lib_prefix=no
16808 library_names_spec='$libname${shared_ext} $libname.a'
16809 dynamic_linker='OS/2 ld.exe'
16810 shlibpath_var=LIBPATH
16811 ;;
16812
16813osf3* | osf4* | osf5*)
16814 version_type=osf
16815 need_lib_prefix=no
16816 need_version=no
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16822 ;;
16823
16824rdos*)
16825 dynamic_linker=no
16826 ;;
16827
16828solaris*)
cristy99bd5232011-12-07 14:38:20 +000016829 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16837 # ldd complains unless libraries are executable
16838 postinstall_cmds='chmod +x $lib'
16839 ;;
16840
16841sunos4*)
16842 version_type=sunos
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 if test "$with_gnu_ld" = yes; then
16848 need_lib_prefix=no
16849 fi
16850 need_version=yes
16851 ;;
16852
16853sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016854 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 case $host_vendor in
16859 sni)
16860 shlibpath_overrides_runpath=no
16861 need_lib_prefix=no
16862 runpath_var=LD_RUN_PATH
16863 ;;
16864 siemens)
16865 need_lib_prefix=no
16866 ;;
16867 motorola)
16868 need_lib_prefix=no
16869 need_version=no
16870 shlibpath_overrides_runpath=no
16871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16872 ;;
16873 esac
16874 ;;
16875
16876sysv4*MP*)
16877 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016878 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16880 soname_spec='$libname${shared_ext}.$major'
16881 shlibpath_var=LD_LIBRARY_PATH
16882 fi
16883 ;;
16884
16885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16886 version_type=freebsd-elf
16887 need_lib_prefix=no
16888 need_version=no
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath=yes
16893 hardcode_into_libs=yes
16894 if test "$with_gnu_ld" = yes; then
16895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16896 else
16897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16898 case $host_os in
16899 sco3.2v5*)
16900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16901 ;;
16902 esac
16903 fi
16904 sys_lib_dlsearch_path_spec='/usr/lib'
16905 ;;
16906
16907tpf*)
16908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016909 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016910 need_lib_prefix=no
16911 need_version=no
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=no
16915 hardcode_into_libs=yes
16916 ;;
16917
16918uts4*)
cristy99bd5232011-12-07 14:38:20 +000016919 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 ;;
16924
16925*)
16926 dynamic_linker=no
16927 ;;
16928esac
16929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16930$as_echo "$dynamic_linker" >&6; }
16931test "$dynamic_linker" = no && can_build_shared=no
16932
16933variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16934if test "$GCC" = yes; then
16935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16936fi
16937
16938if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16940fi
16941if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16943fi
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
cristy0c60a692010-11-04 01:09:47 +000017031
17032
17033
17034
17035
cristy73bd4a52010-10-05 11:24:23 +000017036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17037$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17038hardcode_action=
17039if test -n "$hardcode_libdir_flag_spec" ||
17040 test -n "$runpath_var" ||
17041 test "X$hardcode_automatic" = "Xyes" ; then
17042
17043 # We can hardcode non-existent directories.
17044 if test "$hardcode_direct" != no &&
17045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17046 # have to relink, otherwise we might link with an installed library
17047 # when we should be linking with a yet-to-be-installed one
17048 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17049 test "$hardcode_minus_L" != no; then
17050 # Linking always hardcodes the temporary library directory.
17051 hardcode_action=relink
17052 else
17053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17054 hardcode_action=immediate
17055 fi
17056else
17057 # We cannot hardcode anything, or else we can only hardcode existing
17058 # directories.
17059 hardcode_action=unsupported
17060fi
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17062$as_echo "$hardcode_action" >&6; }
17063
17064if test "$hardcode_action" = relink ||
17065 test "$inherit_rpath" = yes; then
17066 # Fast installation is not supported
17067 enable_fast_install=no
17068elif test "$shlibpath_overrides_runpath" = yes ||
17069 test "$enable_shared" = no; then
17070 # Fast installation is not necessary
17071 enable_fast_install=needless
17072fi
17073
17074
17075
17076
17077
17078
17079 if test "x$enable_dlopen" != xyes; then
17080 enable_dlopen=unknown
17081 enable_dlopen_self=unknown
17082 enable_dlopen_self_static=unknown
17083else
17084 lt_cv_dlopen=no
17085 lt_cv_dlopen_libs=
17086
17087 case $host_os in
17088 beos*)
17089 lt_cv_dlopen="load_add_on"
17090 lt_cv_dlopen_libs=
17091 lt_cv_dlopen_self=yes
17092 ;;
17093
17094 mingw* | pw32* | cegcc*)
17095 lt_cv_dlopen="LoadLibrary"
17096 lt_cv_dlopen_libs=
17097 ;;
17098
17099 cygwin*)
17100 lt_cv_dlopen="dlopen"
17101 lt_cv_dlopen_libs=
17102 ;;
17103
17104 darwin*)
17105 # if libdl is installed we need to link against it
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17107$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017108if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017109 $as_echo_n "(cached) " >&6
17110else
17111 ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldl $LIBS"
17113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114/* end confdefs.h. */
17115
17116/* Override any GCC internal prototype to avoid an error.
17117 Use char because int might match the return type of a GCC
17118 builtin and then its argument prototype would still apply. */
17119#ifdef __cplusplus
17120extern "C"
17121#endif
17122char dlopen ();
17123int
17124main ()
17125{
17126return dlopen ();
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131if ac_fn_c_try_link "$LINENO"; then :
17132 ac_cv_lib_dl_dlopen=yes
17133else
17134 ac_cv_lib_dl_dlopen=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138LIBS=$ac_check_lib_save_LIBS
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17141$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017142if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17144else
17145
17146 lt_cv_dlopen="dyld"
17147 lt_cv_dlopen_libs=
17148 lt_cv_dlopen_self=yes
17149
17150fi
17151
17152 ;;
17153
17154 *)
17155 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017156if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017157 lt_cv_dlopen="shl_load"
17158else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17160$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017161if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017162 $as_echo_n "(cached) " >&6
17163else
17164 ac_check_lib_save_LIBS=$LIBS
17165LIBS="-ldld $LIBS"
17166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h. */
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char shl_load ();
17176int
17177main ()
17178{
17179return shl_load ();
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"; then :
17185 ac_cv_lib_dld_shl_load=yes
17186else
17187 ac_cv_lib_dld_shl_load=no
17188fi
17189rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191LIBS=$ac_check_lib_save_LIBS
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17194$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017195if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17197else
17198 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017199if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017200 lt_cv_dlopen="dlopen"
17201else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17203$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017204if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017205 $as_echo_n "(cached) " >&6
17206else
17207 ac_check_lib_save_LIBS=$LIBS
17208LIBS="-ldl $LIBS"
17209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h. */
17211
17212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char dlopen ();
17219int
17220main ()
17221{
17222return dlopen ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227if ac_fn_c_try_link "$LINENO"; then :
17228 ac_cv_lib_dl_dlopen=yes
17229else
17230 ac_cv_lib_dl_dlopen=no
17231fi
17232rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234LIBS=$ac_check_lib_save_LIBS
17235fi
17236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17237$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017238if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17240else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17242$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017243if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017244 $as_echo_n "(cached) " >&6
17245else
17246 ac_check_lib_save_LIBS=$LIBS
17247LIBS="-lsvld $LIBS"
17248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h. */
17250
17251/* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254#ifdef __cplusplus
17255extern "C"
17256#endif
17257char dlopen ();
17258int
17259main ()
17260{
17261return dlopen ();
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_svld_dlopen=yes
17268else
17269 ac_cv_lib_svld_dlopen=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273LIBS=$ac_check_lib_save_LIBS
17274fi
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17276$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017277if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17279else
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17281$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017282if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017283 $as_echo_n "(cached) " >&6
17284else
17285 ac_check_lib_save_LIBS=$LIBS
17286LIBS="-ldld $LIBS"
17287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288/* end confdefs.h. */
17289
17290/* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293#ifdef __cplusplus
17294extern "C"
17295#endif
17296char dld_link ();
17297int
17298main ()
17299{
17300return dld_link ();
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305if ac_fn_c_try_link "$LINENO"; then :
17306 ac_cv_lib_dld_dld_link=yes
17307else
17308 ac_cv_lib_dld_dld_link=no
17309fi
17310rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312LIBS=$ac_check_lib_save_LIBS
17313fi
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17315$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017316if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017317 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17318fi
17319
17320
17321fi
17322
17323
17324fi
17325
17326
17327fi
17328
17329
17330fi
17331
17332
17333fi
17334
17335 ;;
17336 esac
17337
17338 if test "x$lt_cv_dlopen" != xno; then
17339 enable_dlopen=yes
17340 else
17341 enable_dlopen=no
17342 fi
17343
17344 case $lt_cv_dlopen in
17345 dlopen)
17346 save_CPPFLAGS="$CPPFLAGS"
17347 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17348
17349 save_LDFLAGS="$LDFLAGS"
17350 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17351
17352 save_LIBS="$LIBS"
17353 LIBS="$lt_cv_dlopen_libs $LIBS"
17354
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17356$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017357if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017358 $as_echo_n "(cached) " >&6
17359else
17360 if test "$cross_compiling" = yes; then :
17361 lt_cv_dlopen_self=cross
17362else
17363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17364 lt_status=$lt_dlunknown
17365 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017366#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017367#include "confdefs.h"
17368
17369#if HAVE_DLFCN_H
17370#include <dlfcn.h>
17371#endif
17372
17373#include <stdio.h>
17374
17375#ifdef RTLD_GLOBAL
17376# define LT_DLGLOBAL RTLD_GLOBAL
17377#else
17378# ifdef DL_GLOBAL
17379# define LT_DLGLOBAL DL_GLOBAL
17380# else
17381# define LT_DLGLOBAL 0
17382# endif
17383#endif
17384
17385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17386 find out it does not work in some platform. */
17387#ifndef LT_DLLAZY_OR_NOW
17388# ifdef RTLD_LAZY
17389# define LT_DLLAZY_OR_NOW RTLD_LAZY
17390# else
17391# ifdef DL_LAZY
17392# define LT_DLLAZY_OR_NOW DL_LAZY
17393# else
17394# ifdef RTLD_NOW
17395# define LT_DLLAZY_OR_NOW RTLD_NOW
17396# else
17397# ifdef DL_NOW
17398# define LT_DLLAZY_OR_NOW DL_NOW
17399# else
17400# define LT_DLLAZY_OR_NOW 0
17401# endif
17402# endif
17403# endif
17404# endif
17405#endif
17406
cristy0c60a692010-11-04 01:09:47 +000017407/* When -fvisbility=hidden is used, assume the code has been annotated
17408 correspondingly for the symbols needed. */
17409#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017410int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017411#endif
17412
cristyda16f162011-02-19 23:52:17 +000017413int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017414int main ()
17415{
17416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17417 int status = $lt_dlunknown;
17418
17419 if (self)
17420 {
17421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017422 else
17423 {
17424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425 else puts (dlerror ());
17426 }
cristy73bd4a52010-10-05 11:24:23 +000017427 /* dlclose (self); */
17428 }
17429 else
17430 puts (dlerror ());
17431
17432 return status;
17433}
17434_LT_EOF
17435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17436 (eval $ac_link) 2>&5
17437 ac_status=$?
17438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17440 (./conftest; exit; ) >&5 2>/dev/null
17441 lt_status=$?
17442 case x$lt_status in
17443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17446 esac
17447 else :
17448 # compilation failed
17449 lt_cv_dlopen_self=no
17450 fi
17451fi
17452rm -fr conftest*
17453
17454
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17457$as_echo "$lt_cv_dlopen_self" >&6; }
17458
17459 if test "x$lt_cv_dlopen_self" = xyes; then
17460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17462$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017463if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017464 $as_echo_n "(cached) " >&6
17465else
17466 if test "$cross_compiling" = yes; then :
17467 lt_cv_dlopen_self_static=cross
17468else
17469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17470 lt_status=$lt_dlunknown
17471 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017472#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017473#include "confdefs.h"
17474
17475#if HAVE_DLFCN_H
17476#include <dlfcn.h>
17477#endif
17478
17479#include <stdio.h>
17480
17481#ifdef RTLD_GLOBAL
17482# define LT_DLGLOBAL RTLD_GLOBAL
17483#else
17484# ifdef DL_GLOBAL
17485# define LT_DLGLOBAL DL_GLOBAL
17486# else
17487# define LT_DLGLOBAL 0
17488# endif
17489#endif
17490
17491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17492 find out it does not work in some platform. */
17493#ifndef LT_DLLAZY_OR_NOW
17494# ifdef RTLD_LAZY
17495# define LT_DLLAZY_OR_NOW RTLD_LAZY
17496# else
17497# ifdef DL_LAZY
17498# define LT_DLLAZY_OR_NOW DL_LAZY
17499# else
17500# ifdef RTLD_NOW
17501# define LT_DLLAZY_OR_NOW RTLD_NOW
17502# else
17503# ifdef DL_NOW
17504# define LT_DLLAZY_OR_NOW DL_NOW
17505# else
17506# define LT_DLLAZY_OR_NOW 0
17507# endif
17508# endif
17509# endif
17510# endif
17511#endif
17512
cristy0c60a692010-11-04 01:09:47 +000017513/* When -fvisbility=hidden is used, assume the code has been annotated
17514 correspondingly for the symbols needed. */
17515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017516int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017517#endif
17518
cristyda16f162011-02-19 23:52:17 +000017519int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017520int main ()
17521{
17522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17523 int status = $lt_dlunknown;
17524
17525 if (self)
17526 {
17527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017528 else
17529 {
17530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17531 else puts (dlerror ());
17532 }
cristy73bd4a52010-10-05 11:24:23 +000017533 /* dlclose (self); */
17534 }
17535 else
17536 puts (dlerror ());
17537
17538 return status;
17539}
17540_LT_EOF
17541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17542 (eval $ac_link) 2>&5
17543 ac_status=$?
17544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17546 (./conftest; exit; ) >&5 2>/dev/null
17547 lt_status=$?
17548 case x$lt_status in
17549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17552 esac
17553 else :
17554 # compilation failed
17555 lt_cv_dlopen_self_static=no
17556 fi
17557fi
17558rm -fr conftest*
17559
17560
17561fi
17562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17563$as_echo "$lt_cv_dlopen_self_static" >&6; }
17564 fi
17565
17566 CPPFLAGS="$save_CPPFLAGS"
17567 LDFLAGS="$save_LDFLAGS"
17568 LIBS="$save_LIBS"
17569 ;;
17570 esac
17571
17572 case $lt_cv_dlopen_self in
17573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17574 *) enable_dlopen_self=unknown ;;
17575 esac
17576
17577 case $lt_cv_dlopen_self_static in
17578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17579 *) enable_dlopen_self_static=unknown ;;
17580 esac
17581fi
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599striplib=
17600old_striplib=
17601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17602$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17603if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17607$as_echo "yes" >&6; }
17608else
17609# FIXME - insert some real tests, host_os isn't really good enough
17610 case $host_os in
17611 darwin*)
17612 if test -n "$STRIP" ; then
17613 striplib="$STRIP -x"
17614 old_striplib="$STRIP -S"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17616$as_echo "yes" >&6; }
17617 else
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619$as_echo "no" >&6; }
17620 fi
17621 ;;
17622 *)
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624$as_echo "no" >&6; }
17625 ;;
17626 esac
17627fi
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640 # Report which library types will actually be built
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17642$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17644$as_echo "$can_build_shared" >&6; }
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17647$as_echo_n "checking whether to build shared libraries... " >&6; }
17648 test "$can_build_shared" = "no" && enable_shared=no
17649
17650 # On AIX, shared libraries and static libraries use the same namespace, and
17651 # are all built from PIC.
17652 case $host_os in
17653 aix3*)
17654 test "$enable_shared" = yes && enable_static=no
17655 if test -n "$RANLIB"; then
17656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17657 postinstall_cmds='$RANLIB $lib'
17658 fi
17659 ;;
17660
17661 aix[4-9]*)
17662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17663 test "$enable_shared" = yes && enable_static=no
17664 fi
17665 ;;
17666 esac
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17668$as_echo "$enable_shared" >&6; }
17669
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17671$as_echo_n "checking whether to build static libraries... " >&6; }
17672 # Make sure either enable_shared or enable_static is yes.
17673 test "$enable_shared" = yes || enable_static=yes
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17675$as_echo "$enable_static" >&6; }
17676
17677
17678
17679
17680fi
17681ac_ext=c
17682ac_cpp='$CPP $CPPFLAGS'
17683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685ac_compiler_gnu=$ac_cv_c_compiler_gnu
17686
17687CC="$lt_save_CC"
17688
cristy0c60a692010-11-04 01:09:47 +000017689 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17690 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17691 (test "X$CXX" != "Xg++"))) ; then
17692 ac_ext=cpp
17693ac_cpp='$CXXCPP $CPPFLAGS'
17694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17698$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17699if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017700 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017701 $as_echo_n "(cached) " >&6
17702else
17703 # Double quotes because CXXCPP needs to be expanded
17704 for CXXCPP in "$CXX -E" "/lib/cpp"
17705 do
17706 ac_preproc_ok=false
17707for ac_cxx_preproc_warn_flag in '' yes
17708do
17709 # Use a header file that comes with gcc, so configuring glibc
17710 # with a fresh cross-compiler works.
17711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 # <limits.h> exists even on freestanding compilers.
17713 # On the NeXT, cc -E runs the code through the compiler's parser,
17714 # not just through cpp. "Syntax error" is here to catch this case.
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h. */
17717#ifdef __STDC__
17718# include <limits.h>
17719#else
17720# include <assert.h>
17721#endif
17722 Syntax error
17723_ACEOF
17724if ac_fn_cxx_try_cpp "$LINENO"; then :
17725
17726else
17727 # Broken: fails on valid input.
17728continue
17729fi
cristyda16f162011-02-19 23:52:17 +000017730rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017731
17732 # OK, works on sane cases. Now check whether nonexistent headers
17733 # can be detected and how.
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735/* end confdefs.h. */
17736#include <ac_nonexistent.h>
17737_ACEOF
17738if ac_fn_cxx_try_cpp "$LINENO"; then :
17739 # Broken: success on invalid input.
17740continue
17741else
17742 # Passes both tests.
17743ac_preproc_ok=:
17744break
17745fi
cristyda16f162011-02-19 23:52:17 +000017746rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017747
17748done
17749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017750rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017751if $ac_preproc_ok; then :
17752 break
17753fi
17754
17755 done
17756 ac_cv_prog_CXXCPP=$CXXCPP
17757
17758fi
17759 CXXCPP=$ac_cv_prog_CXXCPP
17760else
17761 ac_cv_prog_CXXCPP=$CXXCPP
17762fi
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17764$as_echo "$CXXCPP" >&6; }
17765ac_preproc_ok=false
17766for ac_cxx_preproc_warn_flag in '' yes
17767do
17768 # Use a header file that comes with gcc, so configuring glibc
17769 # with a fresh cross-compiler works.
17770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771 # <limits.h> exists even on freestanding compilers.
17772 # On the NeXT, cc -E runs the code through the compiler's parser,
17773 # not just through cpp. "Syntax error" is here to catch this case.
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h. */
17776#ifdef __STDC__
17777# include <limits.h>
17778#else
17779# include <assert.h>
17780#endif
17781 Syntax error
17782_ACEOF
17783if ac_fn_cxx_try_cpp "$LINENO"; then :
17784
17785else
17786 # Broken: fails on valid input.
17787continue
17788fi
cristyda16f162011-02-19 23:52:17 +000017789rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017790
17791 # OK, works on sane cases. Now check whether nonexistent headers
17792 # can be detected and how.
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h. */
17795#include <ac_nonexistent.h>
17796_ACEOF
17797if ac_fn_cxx_try_cpp "$LINENO"; then :
17798 # Broken: success on invalid input.
17799continue
17800else
17801 # Passes both tests.
17802ac_preproc_ok=:
17803break
17804fi
cristyda16f162011-02-19 23:52:17 +000017805rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017806
17807done
17808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017809rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017810if $ac_preproc_ok; then :
17811
17812else
17813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17815as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17816See \`config.log' for more details" "$LINENO" 5; }
17817fi
17818
17819ac_ext=c
17820ac_cpp='$CPP $CPPFLAGS'
17821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823ac_compiler_gnu=$ac_cv_c_compiler_gnu
17824
17825else
17826 _lt_caught_CXX_error=yes
17827fi
cristy73bd4a52010-10-05 11:24:23 +000017828
17829ac_ext=cpp
17830ac_cpp='$CXXCPP $CPPFLAGS'
17831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17834
17835archive_cmds_need_lc_CXX=no
17836allow_undefined_flag_CXX=
17837always_export_symbols_CXX=no
17838archive_expsym_cmds_CXX=
17839compiler_needs_object_CXX=no
17840export_dynamic_flag_spec_CXX=
17841hardcode_direct_CXX=no
17842hardcode_direct_absolute_CXX=no
17843hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017844hardcode_libdir_separator_CXX=
17845hardcode_minus_L_CXX=no
17846hardcode_shlibpath_var_CXX=unsupported
17847hardcode_automatic_CXX=no
17848inherit_rpath_CXX=no
17849module_cmds_CXX=
17850module_expsym_cmds_CXX=
17851link_all_deplibs_CXX=unknown
17852old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017853reload_flag_CXX=$reload_flag
17854reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017855no_undefined_flag_CXX=
17856whole_archive_flag_spec_CXX=
17857enable_shared_with_static_runtimes_CXX=no
17858
17859# Source file extension for C++ test sources.
17860ac_ext=cpp
17861
17862# Object file extension for compiled C++ test sources.
17863objext=o
17864objext_CXX=$objext
17865
17866# No sense in running all these tests if we already determined that
17867# the CXX compiler isn't working. Some variables (like enable_shared)
17868# are currently assumed to apply to all compilers on this platform,
17869# and will be corrupted by setting them based on a non-working compiler.
17870if test "$_lt_caught_CXX_error" != yes; then
17871 # Code to be used in simple compile tests
17872 lt_simple_compile_test_code="int some_variable = 0;"
17873
17874 # Code to be used in simple link tests
17875 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17876
17877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17878
17879
17880
17881
17882
17883
17884# If no C compiler was specified, use CC.
17885LTCC=${LTCC-"$CC"}
17886
17887# If no C compiler flags were specified, use CFLAGS.
17888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17889
17890# Allow CC to be a program name with arguments.
17891compiler=$CC
17892
17893
17894 # save warnings/boilerplate of simple test code
17895 ac_outfile=conftest.$ac_objext
17896echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17897eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17898_lt_compiler_boilerplate=`cat conftest.err`
17899$RM conftest*
17900
17901 ac_outfile=conftest.$ac_objext
17902echo "$lt_simple_link_test_code" >conftest.$ac_ext
17903eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17904_lt_linker_boilerplate=`cat conftest.err`
17905$RM -r conftest*
17906
17907
17908 # Allow CC to be a program name with arguments.
17909 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017910 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017911 lt_save_LD=$LD
17912 lt_save_GCC=$GCC
17913 GCC=$GXX
17914 lt_save_with_gnu_ld=$with_gnu_ld
17915 lt_save_path_LD=$lt_cv_path_LD
17916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17918 else
17919 $as_unset lt_cv_prog_gnu_ld
17920 fi
17921 if test -n "${lt_cv_path_LDCXX+set}"; then
17922 lt_cv_path_LD=$lt_cv_path_LDCXX
17923 else
17924 $as_unset lt_cv_path_LD
17925 fi
17926 test -z "${LDCXX+set}" || LD=$LDCXX
17927 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017928 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017929 compiler=$CC
17930 compiler_CXX=$CC
17931 for cc_temp in $compiler""; do
17932 case $cc_temp in
17933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17935 \-*) ;;
17936 *) break;;
17937 esac
17938done
cristy0c60a692010-11-04 01:09:47 +000017939cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017940
17941
17942 if test -n "$compiler"; then
17943 # We don't want -fno-exception when compiling C++ code, so set the
17944 # no_builtin_flag separately
17945 if test "$GXX" = yes; then
17946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17947 else
17948 lt_prog_compiler_no_builtin_flag_CXX=
17949 fi
17950
17951 if test "$GXX" = yes; then
17952 # Set up default GNU C++ configuration
17953
17954
17955
17956# Check whether --with-gnu-ld was given.
17957if test "${with_gnu_ld+set}" = set; then :
17958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17959else
17960 with_gnu_ld=no
17961fi
17962
17963ac_prog=ld
17964if test "$GCC" = yes; then
17965 # Check if gcc -print-prog-name=ld gives a path.
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17967$as_echo_n "checking for ld used by $CC... " >&6; }
17968 case $host in
17969 *-*-mingw*)
17970 # gcc leaves a trailing carriage return which upsets mingw
17971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17972 *)
17973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17974 esac
17975 case $ac_prog in
17976 # Accept absolute paths.
17977 [\\/]* | ?:[\\/]*)
17978 re_direlt='/[^/][^/]*/\.\./'
17979 # Canonicalize the pathname of ld
17980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17983 done
17984 test -z "$LD" && LD="$ac_prog"
17985 ;;
17986 "")
17987 # If it fails, then pretend we aren't using GCC.
17988 ac_prog=ld
17989 ;;
17990 *)
17991 # If it is relative, then search for the first ld in PATH.
17992 with_gnu_ld=unknown
17993 ;;
17994 esac
17995elif test "$with_gnu_ld" = yes; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17997$as_echo_n "checking for GNU ld... " >&6; }
17998else
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18000$as_echo_n "checking for non-GNU ld... " >&6; }
18001fi
cristyda16f162011-02-19 23:52:17 +000018002if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018003 $as_echo_n "(cached) " >&6
18004else
18005 if test -z "$LD"; then
18006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18007 for ac_dir in $PATH; do
18008 IFS="$lt_save_ifs"
18009 test -z "$ac_dir" && ac_dir=.
18010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18011 lt_cv_path_LD="$ac_dir/$ac_prog"
18012 # Check to see if the program is GNU ld. I'd rather use --version,
18013 # but apparently some variants of GNU ld only accept -v.
18014 # Break only if it was the GNU/non-GNU ld that we prefer.
18015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18016 *GNU* | *'with BFD'*)
18017 test "$with_gnu_ld" != no && break
18018 ;;
18019 *)
18020 test "$with_gnu_ld" != yes && break
18021 ;;
18022 esac
18023 fi
18024 done
18025 IFS="$lt_save_ifs"
18026else
18027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18028fi
18029fi
18030
18031LD="$lt_cv_path_LD"
18032if test -n "$LD"; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18034$as_echo "$LD" >&6; }
18035else
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037$as_echo "no" >&6; }
18038fi
cristy98dddb52010-11-04 00:30:15 +000018039test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018042if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018043 $as_echo_n "(cached) " >&6
18044else
18045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18046case `$LD -v 2>&1 </dev/null` in
18047*GNU* | *'with BFD'*)
18048 lt_cv_prog_gnu_ld=yes
18049 ;;
18050*)
18051 lt_cv_prog_gnu_ld=no
18052 ;;
18053esac
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18056$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18057with_gnu_ld=$lt_cv_prog_gnu_ld
18058
18059
18060
18061
18062
18063
18064
18065 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18066 # archiving commands below assume that GNU ld is being used.
18067 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018068 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18069 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 +000018070
18071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18073
18074 # If archive_cmds runs LD, not CC, wlarc should be empty
18075 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18076 # investigate it a little bit more. (MM)
18077 wlarc='${wl}'
18078
18079 # ancient GNU ld didn't support --whole-archive et. al.
18080 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18081 $GREP 'no-whole-archive' > /dev/null; then
18082 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18083 else
18084 whole_archive_flag_spec_CXX=
18085 fi
18086 else
18087 with_gnu_ld=no
18088 wlarc=
18089
18090 # A generic and very simple default shared library creation
18091 # command for GNU C++ for the case where it uses the native
18092 # linker, instead of GNU ld. If possible, this setting should
18093 # overridden to take advantage of the native linker features on
18094 # the platform it is being used on.
18095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18096 fi
18097
18098 # Commands to make compiler produce verbose output that lists
18099 # what "hidden" libraries, object files and flags are used when
18100 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018102
18103 else
18104 GXX=no
18105 with_gnu_ld=no
18106 wlarc=
18107 fi
18108
18109 # PORTME: fill in a description of your system's C++ link characteristics
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18112 ld_shlibs_CXX=yes
18113 case $host_os in
18114 aix3*)
18115 # FIXME: insert proper C++ library support
18116 ld_shlibs_CXX=no
18117 ;;
18118 aix[4-9]*)
18119 if test "$host_cpu" = ia64; then
18120 # On IA64, the linker does run time linking by default, so we don't
18121 # have to do anything special.
18122 aix_use_runtimelinking=no
18123 exp_sym_flag='-Bexport'
18124 no_entry_flag=""
18125 else
18126 aix_use_runtimelinking=no
18127
18128 # Test if we are trying to use run time linking or normal
18129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18130 # need to do runtime linking.
18131 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18132 for ld_flag in $LDFLAGS; do
18133 case $ld_flag in
18134 *-brtl*)
18135 aix_use_runtimelinking=yes
18136 break
18137 ;;
18138 esac
18139 done
18140 ;;
18141 esac
18142
18143 exp_sym_flag='-bexport'
18144 no_entry_flag='-bnoentry'
18145 fi
18146
18147 # When large executables or shared objects are built, AIX ld can
18148 # have problems creating the table of contents. If linking a library
18149 # or program results in "error TOC overflow" add -mminimal-toc to
18150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18152
18153 archive_cmds_CXX=''
18154 hardcode_direct_CXX=yes
18155 hardcode_direct_absolute_CXX=yes
18156 hardcode_libdir_separator_CXX=':'
18157 link_all_deplibs_CXX=yes
18158 file_list_spec_CXX='${wl}-f,'
18159
18160 if test "$GXX" = yes; then
18161 case $host_os in aix4.[012]|aix4.[012].*)
18162 # We only want to do this on AIX 4.2 and lower, the check
18163 # below for broken collect2 doesn't work under 4.3+
18164 collect2name=`${CC} -print-prog-name=collect2`
18165 if test -f "$collect2name" &&
18166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18167 then
18168 # We have reworked collect2
18169 :
18170 else
18171 # We have old collect2
18172 hardcode_direct_CXX=unsupported
18173 # It fails to find uninstalled libraries when the uninstalled
18174 # path is not listed in the libpath. Setting hardcode_minus_L
18175 # to unsupported forces relinking
18176 hardcode_minus_L_CXX=yes
18177 hardcode_libdir_flag_spec_CXX='-L$libdir'
18178 hardcode_libdir_separator_CXX=
18179 fi
18180 esac
18181 shared_flag='-shared'
18182 if test "$aix_use_runtimelinking" = yes; then
18183 shared_flag="$shared_flag "'${wl}-G'
18184 fi
18185 else
18186 # not using gcc
18187 if test "$host_cpu" = ia64; then
18188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18189 # chokes on -Wl,-G. The following line is correct:
18190 shared_flag='-G'
18191 else
18192 if test "$aix_use_runtimelinking" = yes; then
18193 shared_flag='${wl}-G'
18194 else
18195 shared_flag='${wl}-bM:SRE'
18196 fi
18197 fi
18198 fi
18199
18200 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18201 # It seems that -bexpall does not export symbols beginning with
18202 # underscore (_), so it is better to generate a list of symbols to
18203 # export.
18204 always_export_symbols_CXX=yes
18205 if test "$aix_use_runtimelinking" = yes; then
18206 # Warning - without using the other runtime loading flags (-brtl),
18207 # -berok will link without error, but may produce a broken library.
18208 allow_undefined_flag_CXX='-berok'
18209 # Determine the default libpath from the value encoded in an empty
18210 # executable.
cristyda16f162011-02-19 23:52:17 +000018211 if test "${lt_cv_aix_libpath+set}" = set; then
18212 aix_libpath=$lt_cv_aix_libpath
18213else
18214 if ${lt_cv_aix_libpath__CXX+:} false; then :
18215 $as_echo_n "(cached) " >&6
18216else
18217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018218/* end confdefs.h. */
18219
18220int
18221main ()
18222{
18223
18224 ;
18225 return 0;
18226}
18227_ACEOF
18228if ac_fn_cxx_try_link "$LINENO"; then :
18229
cristyda16f162011-02-19 23:52:17 +000018230 lt_aix_libpath_sed='
18231 /Import File Strings/,/^$/ {
18232 /^0/ {
18233 s/^0 *\([^ ]*\) *$/\1/
18234 p
18235 }
18236 }'
18237 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18238 # Check for a 64-bit object if we didn't find anything.
18239 if test -z "$lt_cv_aix_libpath__CXX"; then
18240 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18241 fi
cristy73bd4a52010-10-05 11:24:23 +000018242fi
18243rm -f core conftest.err conftest.$ac_objext \
18244 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018245 if test -z "$lt_cv_aix_libpath__CXX"; then
18246 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18247 fi
18248
18249fi
18250
18251 aix_libpath=$lt_cv_aix_libpath__CXX
18252fi
cristy73bd4a52010-10-05 11:24:23 +000018253
18254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18255
cristy0c60a692010-11-04 01:09:47 +000018256 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 +000018257 else
18258 if test "$host_cpu" = ia64; then
18259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18260 allow_undefined_flag_CXX="-z nodefs"
18261 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"
18262 else
18263 # Determine the default libpath from the value encoded in an
18264 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018265 if test "${lt_cv_aix_libpath+set}" = set; then
18266 aix_libpath=$lt_cv_aix_libpath
18267else
18268 if ${lt_cv_aix_libpath__CXX+:} false; then :
18269 $as_echo_n "(cached) " >&6
18270else
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018272/* end confdefs.h. */
18273
18274int
18275main ()
18276{
18277
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282if ac_fn_cxx_try_link "$LINENO"; then :
18283
cristyda16f162011-02-19 23:52:17 +000018284 lt_aix_libpath_sed='
18285 /Import File Strings/,/^$/ {
18286 /^0/ {
18287 s/^0 *\([^ ]*\) *$/\1/
18288 p
18289 }
18290 }'
18291 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18292 # Check for a 64-bit object if we didn't find anything.
18293 if test -z "$lt_cv_aix_libpath__CXX"; then
18294 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18295 fi
cristy73bd4a52010-10-05 11:24:23 +000018296fi
18297rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018299 if test -z "$lt_cv_aix_libpath__CXX"; then
18300 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18301 fi
18302
18303fi
18304
18305 aix_libpath=$lt_cv_aix_libpath__CXX
18306fi
cristy73bd4a52010-10-05 11:24:23 +000018307
18308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18309 # Warning - without using the other run time loading flags,
18310 # -berok will link without error, but may produce a broken library.
18311 no_undefined_flag_CXX=' ${wl}-bernotok'
18312 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018313 if test "$with_gnu_ld" = yes; then
18314 # We only use this code for GNU lds that support --whole-archive.
18315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18316 else
18317 # Exported symbols can be pulled into shared objects from archives
18318 whole_archive_flag_spec_CXX='$convenience'
18319 fi
cristy73bd4a52010-10-05 11:24:23 +000018320 archive_cmds_need_lc_CXX=yes
18321 # This is similar to how AIX traditionally builds its shared
18322 # libraries.
18323 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'
18324 fi
18325 fi
18326 ;;
18327
18328 beos*)
18329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18330 allow_undefined_flag_CXX=unsupported
18331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18332 # support --undefined. This deserves some investigation. FIXME
18333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18334 else
18335 ld_shlibs_CXX=no
18336 fi
18337 ;;
18338
18339 chorus*)
18340 case $cc_basename in
18341 *)
18342 # FIXME: insert proper C++ library support
18343 ld_shlibs_CXX=no
18344 ;;
18345 esac
18346 ;;
18347
18348 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018349 case $GXX,$cc_basename in
18350 ,cl* | no,cl*)
18351 # Native MSVC
18352 # hardcode_libdir_flag_spec is actually meaningless, as there is
18353 # no search path for DLLs.
18354 hardcode_libdir_flag_spec_CXX=' '
18355 allow_undefined_flag_CXX=unsupported
18356 always_export_symbols_CXX=yes
18357 file_list_spec_CXX='@'
18358 # Tell ltmain to make .lib files, not .a files.
18359 libext=lib
18360 # Tell ltmain to make .dll files, not .so files.
18361 shrext_cmds=".dll"
18362 # FIXME: Setting linknames here is a bad hack.
18363 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18365 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18366 else
18367 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18368 fi~
18369 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18370 linknames='
18371 # The linker will not automatically build a static lib if we build a DLL.
18372 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18373 enable_shared_with_static_runtimes_CXX=yes
18374 # Don't use ranlib
18375 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18376 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18377 lt_tool_outputfile="@TOOL_OUTPUT@"~
18378 case $lt_outputfile in
18379 *.exe|*.EXE) ;;
18380 *)
18381 lt_outputfile="$lt_outputfile.exe"
18382 lt_tool_outputfile="$lt_tool_outputfile.exe"
18383 ;;
18384 esac~
18385 func_to_tool_file "$lt_outputfile"~
18386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18388 $RM "$lt_outputfile.manifest";
18389 fi'
18390 ;;
18391 *)
18392 # g++
18393 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18394 # as there is no search path for DLLs.
18395 hardcode_libdir_flag_spec_CXX='-L$libdir'
18396 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18397 allow_undefined_flag_CXX=unsupported
18398 always_export_symbols_CXX=no
18399 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018400
cristyda16f162011-02-19 23:52:17 +000018401 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18402 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'
18403 # If the export-symbols file already is a .def file (1st line
18404 # is EXPORTS), use it as is; otherwise, prepend...
18405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18406 cp $export_symbols $output_objdir/$soname.def;
18407 else
18408 echo EXPORTS > $output_objdir/$soname.def;
18409 cat $export_symbols >> $output_objdir/$soname.def;
18410 fi~
18411 $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'
18412 else
18413 ld_shlibs_CXX=no
18414 fi
18415 ;;
18416 esac
18417 ;;
cristy73bd4a52010-10-05 11:24:23 +000018418 darwin* | rhapsody*)
18419
18420
18421 archive_cmds_need_lc_CXX=no
18422 hardcode_direct_CXX=no
18423 hardcode_automatic_CXX=yes
18424 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018425 if test "$lt_cv_ld_force_load" = "yes"; then
18426 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 +000018427
cristy0c60a692010-11-04 01:09:47 +000018428 else
18429 whole_archive_flag_spec_CXX=''
18430 fi
cristy73bd4a52010-10-05 11:24:23 +000018431 link_all_deplibs_CXX=yes
18432 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18433 case $cc_basename in
18434 ifort*) _lt_dar_can_shared=yes ;;
18435 *) _lt_dar_can_shared=$GCC ;;
18436 esac
18437 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018438 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018439 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}"
18440 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18441 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}"
18442 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}"
18443 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18444 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}"
18445 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}"
18446 fi
18447
18448 else
18449 ld_shlibs_CXX=no
18450 fi
18451
18452 ;;
18453
18454 dgux*)
18455 case $cc_basename in
18456 ec++*)
18457 # FIXME: insert proper C++ library support
18458 ld_shlibs_CXX=no
18459 ;;
18460 ghcx*)
18461 # Green Hills C++ Compiler
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18464 ;;
18465 *)
18466 # FIXME: insert proper C++ library support
18467 ld_shlibs_CXX=no
18468 ;;
18469 esac
18470 ;;
18471
cristy99bd5232011-12-07 14:38:20 +000018472 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018473 # C++ shared libraries reported to be fairly broken before
18474 # switch to ELF
18475 ld_shlibs_CXX=no
18476 ;;
18477
18478 freebsd-elf*)
18479 archive_cmds_need_lc_CXX=no
18480 ;;
18481
18482 freebsd* | dragonfly*)
18483 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18484 # conventions
18485 ld_shlibs_CXX=yes
18486 ;;
18487
18488 gnu*)
18489 ;;
18490
cristy0c60a692010-11-04 01:09:47 +000018491 haiku*)
18492 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18493 link_all_deplibs_CXX=yes
18494 ;;
18495
cristy73bd4a52010-10-05 11:24:23 +000018496 hpux9*)
18497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18498 hardcode_libdir_separator_CXX=:
18499 export_dynamic_flag_spec_CXX='${wl}-E'
18500 hardcode_direct_CXX=yes
18501 hardcode_minus_L_CXX=yes # Not in the search PATH,
18502 # but as the default
18503 # location of the library.
18504
18505 case $cc_basename in
18506 CC*)
18507 # FIXME: insert proper C++ library support
18508 ld_shlibs_CXX=no
18509 ;;
18510 aCC*)
18511 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'
18512 # Commands to make compiler produce verbose output that lists
18513 # what "hidden" libraries, object files and flags are used when
18514 # linking a shared library.
18515 #
18516 # There doesn't appear to be a way to prevent this compiler from
18517 # explicitly linking system object files so we need to strip them
18518 # from the output so that they don't get included in the library
18519 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018520 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 +000018521 ;;
18522 *)
18523 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018524 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 +000018525 else
18526 # FIXME: insert proper C++ library support
18527 ld_shlibs_CXX=no
18528 fi
18529 ;;
18530 esac
18531 ;;
18532
18533 hpux10*|hpux11*)
18534 if test $with_gnu_ld = no; then
18535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18536 hardcode_libdir_separator_CXX=:
18537
18538 case $host_cpu in
18539 hppa*64*|ia64*)
18540 ;;
18541 *)
18542 export_dynamic_flag_spec_CXX='${wl}-E'
18543 ;;
18544 esac
18545 fi
18546 case $host_cpu in
18547 hppa*64*|ia64*)
18548 hardcode_direct_CXX=no
18549 hardcode_shlibpath_var_CXX=no
18550 ;;
18551 *)
18552 hardcode_direct_CXX=yes
18553 hardcode_direct_absolute_CXX=yes
18554 hardcode_minus_L_CXX=yes # Not in the search PATH,
18555 # but as the default
18556 # location of the library.
18557 ;;
18558 esac
18559
18560 case $cc_basename in
18561 CC*)
18562 # FIXME: insert proper C++ library support
18563 ld_shlibs_CXX=no
18564 ;;
18565 aCC*)
18566 case $host_cpu in
18567 hppa*64*)
18568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18569 ;;
18570 ia64*)
18571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18572 ;;
18573 *)
18574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18575 ;;
18576 esac
18577 # Commands to make compiler produce verbose output that lists
18578 # what "hidden" libraries, object files and flags are used when
18579 # linking a shared library.
18580 #
18581 # There doesn't appear to be a way to prevent this compiler from
18582 # explicitly linking system object files so we need to strip them
18583 # from the output so that they don't get included in the library
18584 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018585 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 +000018586 ;;
18587 *)
18588 if test "$GXX" = yes; then
18589 if test $with_gnu_ld = no; then
18590 case $host_cpu in
18591 hppa*64*)
18592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18593 ;;
18594 ia64*)
cristyda16f162011-02-19 23:52:17 +000018595 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 +000018596 ;;
18597 *)
cristyda16f162011-02-19 23:52:17 +000018598 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 +000018599 ;;
18600 esac
18601 fi
18602 else
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 fi
18606 ;;
18607 esac
18608 ;;
18609
18610 interix[3-9]*)
18611 hardcode_direct_CXX=no
18612 hardcode_shlibpath_var_CXX=no
18613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18614 export_dynamic_flag_spec_CXX='${wl}-E'
18615 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18616 # Instead, shared libraries are loaded at an image base (0x10000000 by
18617 # default) and relocated if they conflict, which is a slow very memory
18618 # consuming and fragmenting process. To avoid this, we pick a random,
18619 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18620 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18621 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'
18622 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'
18623 ;;
18624 irix5* | irix6*)
18625 case $cc_basename in
18626 CC*)
18627 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018628 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 +000018629
18630 # Archives containing C++ object files must be created using
18631 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18632 # necessary to make sure instantiated templates are included
18633 # in the archive.
18634 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18635 ;;
18636 *)
18637 if test "$GXX" = yes; then
18638 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018639 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 +000018640 else
cristyda16f162011-02-19 23:52:17 +000018641 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 +000018642 fi
18643 fi
18644 link_all_deplibs_CXX=yes
18645 ;;
18646 esac
18647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18648 hardcode_libdir_separator_CXX=:
18649 inherit_rpath_CXX=yes
18650 ;;
18651
cristy0c60a692010-11-04 01:09:47 +000018652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018653 case $cc_basename in
18654 KCC*)
18655 # Kuck and Associates, Inc. (KAI) C++ Compiler
18656
18657 # KCC will only create a shared library if the output file
18658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18659 # to its proper name (with version) after linking.
18660 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'
18661 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'
18662 # Commands to make compiler produce verbose output that lists
18663 # what "hidden" libraries, object files and flags are used when
18664 # linking a shared library.
18665 #
18666 # There doesn't appear to be a way to prevent this compiler from
18667 # explicitly linking system object files so we need to strip them
18668 # from the output so that they don't get included in the library
18669 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018670 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 +000018671
18672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18674
18675 # Archives containing C++ object files must be created using
18676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18678 ;;
18679 icpc* | ecpc* )
18680 # Intel C++
18681 with_gnu_ld=yes
18682 # version 8.0 and above of icpc choke on multiply defined symbols
18683 # if we add $predep_objects and $postdep_objects, however 7.1 and
18684 # earlier do not add the objects themselves.
18685 case `$CC -V 2>&1` in
18686 *"Version 7."*)
18687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18688 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'
18689 ;;
18690 *) # Version 8.0 or newer
18691 tmp_idyn=
18692 case $host_cpu in
18693 ia64*) tmp_idyn=' -i_dynamic';;
18694 esac
18695 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18696 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'
18697 ;;
18698 esac
18699 archive_cmds_need_lc_CXX=no
18700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18703 ;;
18704 pgCC* | pgcpp*)
18705 # Portland Group C++ compiler
18706 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018707 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018708 prelink_cmds_CXX='tpldir=Template.dir~
18709 rm -rf $tpldir~
18710 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018711 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018712 old_archive_cmds_CXX='tpldir=Template.dir~
18713 rm -rf $tpldir~
18714 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018715 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018716 $RANLIB $oldlib'
18717 archive_cmds_CXX='tpldir=Template.dir~
18718 rm -rf $tpldir~
18719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018720 $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 +000018721 archive_expsym_cmds_CXX='tpldir=Template.dir~
18722 rm -rf $tpldir~
18723 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018724 $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 +000018725 ;;
cristy0c60a692010-11-04 01:09:47 +000018726 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18728 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'
18729 ;;
18730 esac
18731
18732 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018734 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 +000018735 ;;
18736 cxx*)
18737 # Compaq C++
18738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18739 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'
18740
18741 runpath_var=LD_RUN_PATH
18742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18743 hardcode_libdir_separator_CXX=:
18744
18745 # Commands to make compiler produce verbose output that lists
18746 # what "hidden" libraries, object files and flags are used when
18747 # linking a shared library.
18748 #
18749 # There doesn't appear to be a way to prevent this compiler from
18750 # explicitly linking system object files so we need to strip them
18751 # from the output so that they don't get included in the library
18752 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018753 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 +000018754 ;;
cristy0c60a692010-11-04 01:09:47 +000018755 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018756 # IBM XL 8.0 on PPC, with GNU ld
18757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18759 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18760 if test "x$supports_anon_versioning" = xyes; then
18761 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18763 echo "local: *; };" >> $output_objdir/$libname.ver~
18764 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18765 fi
18766 ;;
18767 *)
18768 case `$CC -V 2>&1 | sed 5q` in
18769 *Sun\ C*)
18770 # Sun C++ 5.9
18771 no_undefined_flag_CXX=' -zdefs'
18772 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18773 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'
18774 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018775 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 +000018776 compiler_needs_object_CXX=yes
18777
18778 # Not sure whether something based on
18779 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18780 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018781 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018782
18783 # Archives containing C++ object files must be created using
18784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18785 # necessary to make sure instantiated templates are included
18786 # in the archive.
18787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18788 ;;
18789 esac
18790 ;;
18791 esac
18792 ;;
18793
18794 lynxos*)
18795 # FIXME: insert proper C++ library support
18796 ld_shlibs_CXX=no
18797 ;;
18798
18799 m88k*)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803
18804 mvs*)
18805 case $cc_basename in
18806 cxx*)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810 *)
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
18814 esac
18815 ;;
18816
18817 netbsd*)
18818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18819 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18820 wlarc=
18821 hardcode_libdir_flag_spec_CXX='-R$libdir'
18822 hardcode_direct_CXX=yes
18823 hardcode_shlibpath_var_CXX=no
18824 fi
18825 # Workaround some broken pre-1.5 toolchains
18826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18827 ;;
18828
18829 *nto* | *qnx*)
18830 ld_shlibs_CXX=yes
18831 ;;
18832
18833 openbsd2*)
18834 # C++ shared libraries are fairly broken
18835 ld_shlibs_CXX=no
18836 ;;
18837
18838 openbsd*)
18839 if test -f /usr/libexec/ld.so; then
18840 hardcode_direct_CXX=yes
18841 hardcode_shlibpath_var_CXX=no
18842 hardcode_direct_absolute_CXX=yes
18843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18846 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18847 export_dynamic_flag_spec_CXX='${wl}-E'
18848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18849 fi
cristy0c60a692010-11-04 01:09:47 +000018850 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018851 else
18852 ld_shlibs_CXX=no
18853 fi
18854 ;;
18855
18856 osf3* | osf4* | osf5*)
18857 case $cc_basename in
18858 KCC*)
18859 # Kuck and Associates, Inc. (KAI) C++ Compiler
18860
18861 # KCC will only create a shared library if the output file
18862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18863 # to its proper name (with version) after linking.
18864 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'
18865
18866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18867 hardcode_libdir_separator_CXX=:
18868
18869 # Archives containing C++ object files must be created using
18870 # the KAI C++ compiler.
18871 case $host in
18872 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18873 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18874 esac
18875 ;;
18876 RCC*)
18877 # Rational C++ 2.4.1
18878 # FIXME: insert proper C++ library support
18879 ld_shlibs_CXX=no
18880 ;;
18881 cxx*)
18882 case $host in
18883 osf3*)
18884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018885 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 +000018886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18887 ;;
18888 *)
18889 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018890 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 +000018891 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18892 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018893 $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 +000018894 $RM $lib.exp'
18895 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18896 ;;
18897 esac
18898
18899 hardcode_libdir_separator_CXX=:
18900
18901 # Commands to make compiler produce verbose output that lists
18902 # what "hidden" libraries, object files and flags are used when
18903 # linking a shared library.
18904 #
18905 # There doesn't appear to be a way to prevent this compiler from
18906 # explicitly linking system object files so we need to strip them
18907 # from the output so that they don't get included in the library
18908 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018909 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 +000018910 ;;
18911 *)
18912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18914 case $host in
18915 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018916 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 +000018917 ;;
18918 *)
cristyda16f162011-02-19 23:52:17 +000018919 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 +000018920 ;;
18921 esac
18922
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925
18926 # Commands to make compiler produce verbose output that lists
18927 # what "hidden" libraries, object files and flags are used when
18928 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018930
18931 else
18932 # FIXME: insert proper C++ library support
18933 ld_shlibs_CXX=no
18934 fi
18935 ;;
18936 esac
18937 ;;
18938
18939 psos*)
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
18943
18944 sunos4*)
18945 case $cc_basename in
18946 CC*)
18947 # Sun C++ 4.x
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18950 ;;
18951 lcc*)
18952 # Lucid
18953 # FIXME: insert proper C++ library support
18954 ld_shlibs_CXX=no
18955 ;;
18956 *)
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18959 ;;
18960 esac
18961 ;;
18962
18963 solaris*)
18964 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018965 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018966 # Sun C++ 4.2, 5.x and Centerline C++
18967 archive_cmds_need_lc_CXX=yes
18968 no_undefined_flag_CXX=' -zdefs'
18969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18970 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18971 $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'
18972
18973 hardcode_libdir_flag_spec_CXX='-R$libdir'
18974 hardcode_shlibpath_var_CXX=no
18975 case $host_os in
18976 solaris2.[0-5] | solaris2.[0-5].*) ;;
18977 *)
18978 # The compiler driver will combine and reorder linker options,
18979 # but understands `-z linker_flag'.
18980 # Supported since Solaris 2.6 (maybe 2.5.1?)
18981 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18982 ;;
18983 esac
18984 link_all_deplibs_CXX=yes
18985
cristy0c60a692010-11-04 01:09:47 +000018986 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018987
18988 # Archives containing C++ object files must be created using
18989 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18990 # necessary to make sure instantiated templates are included
18991 # in the archive.
18992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18993 ;;
18994 gcx*)
18995 # Green Hills C++ Compiler
18996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18997
18998 # The C++ compiler must be used to create the archive.
18999 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19000 ;;
19001 *)
19002 # GNU C++ compiler with Solaris linker
19003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19004 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19005 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019006 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 +000019007 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 +000019008 $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 +000019009
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019014 else
19015 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19016 # platform.
19017 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19018 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19019 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19020
19021 # Commands to make compiler produce verbose output that lists
19022 # what "hidden" libraries, object files and flags are used when
19023 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019025 fi
19026
19027 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19028 case $host_os in
19029 solaris2.[0-5] | solaris2.[0-5].*) ;;
19030 *)
19031 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19032 ;;
19033 esac
19034 fi
19035 ;;
19036 esac
19037 ;;
19038
19039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19040 no_undefined_flag_CXX='${wl}-z,text'
19041 archive_cmds_need_lc_CXX=no
19042 hardcode_shlibpath_var_CXX=no
19043 runpath_var='LD_RUN_PATH'
19044
19045 case $cc_basename in
19046 CC*)
19047 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19048 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19049 ;;
19050 *)
19051 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19052 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19053 ;;
19054 esac
19055 ;;
19056
19057 sysv5* | sco3.2v5* | sco5v6*)
19058 # Note: We can NOT use -z defs as we might desire, because we do not
19059 # link with -lc, and that would cause any symbols used from libc to
19060 # always be unresolved, which means just about no library would
19061 # ever link correctly. If we're not using GNU ld we use -z text
19062 # though, which does catch some bad symbols but isn't as heavy-handed
19063 # as -z defs.
19064 no_undefined_flag_CXX='${wl}-z,text'
19065 allow_undefined_flag_CXX='${wl}-z,nodefs'
19066 archive_cmds_need_lc_CXX=no
19067 hardcode_shlibpath_var_CXX=no
19068 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19069 hardcode_libdir_separator_CXX=':'
19070 link_all_deplibs_CXX=yes
19071 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19072 runpath_var='LD_RUN_PATH'
19073
19074 case $cc_basename in
19075 CC*)
19076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19077 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 +000019078 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19079 '"$old_archive_cmds_CXX"
19080 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19081 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019082 ;;
19083 *)
19084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19086 ;;
19087 esac
19088 ;;
19089
19090 tandem*)
19091 case $cc_basename in
19092 NCC*)
19093 # NonStop-UX NCC 3.20
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 *)
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
19101 esac
19102 ;;
19103
19104 vxworks*)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108
19109 *)
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19112 ;;
19113 esac
19114
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19116$as_echo "$ld_shlibs_CXX" >&6; }
19117 test "$ld_shlibs_CXX" = no && can_build_shared=no
19118
19119 GCC_CXX="$GXX"
19120 LD_CXX="$LD"
19121
19122 ## CAVEAT EMPTOR:
19123 ## There is no encapsulation within the following macros, do not change
19124 ## the running order or otherwise move them around unless you know exactly
19125 ## what you are doing...
19126 # Dependencies to place before and after the object being linked:
19127predep_objects_CXX=
19128postdep_objects_CXX=
19129predeps_CXX=
19130postdeps_CXX=
19131compiler_lib_search_path_CXX=
19132
19133cat > conftest.$ac_ext <<_LT_EOF
19134class Foo
19135{
19136public:
19137 Foo (void) { a = 0; }
19138private:
19139 int a;
19140};
19141_LT_EOF
19142
cristyda16f162011-02-19 23:52:17 +000019143
19144_lt_libdeps_save_CFLAGS=$CFLAGS
19145case "$CC $CFLAGS " in #(
19146*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19147*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019148*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019149esac
19150
cristy73bd4a52010-10-05 11:24:23 +000019151if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19152 (eval $ac_compile) 2>&5
19153 ac_status=$?
19154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19155 test $ac_status = 0; }; then
19156 # Parse the compiler output and extract the necessary
19157 # objects, libraries and library flags.
19158
19159 # Sentinel used to keep track of whether or not we are before
19160 # the conftest object file.
19161 pre_test_object_deps_done=no
19162
19163 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019164 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019165
19166 -L* | -R* | -l*)
19167 # Some compilers place space between "-{L,R}" and the path.
19168 # Remove the space.
19169 if test $p = "-L" ||
19170 test $p = "-R"; then
19171 prev=$p
19172 continue
cristy73bd4a52010-10-05 11:24:23 +000019173 fi
19174
cristyda16f162011-02-19 23:52:17 +000019175 # Expand the sysroot to ease extracting the directories later.
19176 if test -z "$prev"; then
19177 case $p in
19178 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19179 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19180 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19181 esac
19182 fi
19183 case $p in
19184 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19185 esac
cristy73bd4a52010-10-05 11:24:23 +000019186 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019187 case ${prev} in
19188 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019189 # Internal compiler library paths should come after those
19190 # provided the user. The postdeps already come after the
19191 # user supplied libs so there is no need to process them.
19192 if test -z "$compiler_lib_search_path_CXX"; then
19193 compiler_lib_search_path_CXX="${prev}${p}"
19194 else
19195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19196 fi
19197 ;;
19198 # The "-l" case would never come before the object being
19199 # linked, so don't bother handling this case.
19200 esac
19201 else
19202 if test -z "$postdeps_CXX"; then
19203 postdeps_CXX="${prev}${p}"
19204 else
19205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19206 fi
19207 fi
cristyda16f162011-02-19 23:52:17 +000019208 prev=
cristy73bd4a52010-10-05 11:24:23 +000019209 ;;
19210
cristyda16f162011-02-19 23:52:17 +000019211 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019212 *.$objext)
19213 # This assumes that the test object file only shows up
19214 # once in the compiler output.
19215 if test "$p" = "conftest.$objext"; then
19216 pre_test_object_deps_done=yes
19217 continue
19218 fi
19219
19220 if test "$pre_test_object_deps_done" = no; then
19221 if test -z "$predep_objects_CXX"; then
19222 predep_objects_CXX="$p"
19223 else
19224 predep_objects_CXX="$predep_objects_CXX $p"
19225 fi
19226 else
19227 if test -z "$postdep_objects_CXX"; then
19228 postdep_objects_CXX="$p"
19229 else
19230 postdep_objects_CXX="$postdep_objects_CXX $p"
19231 fi
19232 fi
19233 ;;
19234
19235 *) ;; # Ignore the rest.
19236
19237 esac
19238 done
19239
19240 # Clean up.
19241 rm -f a.out a.exe
19242else
19243 echo "libtool.m4: error: problem compiling CXX test program"
19244fi
19245
19246$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019247CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019248
19249# PORTME: override above test on systems where it is broken
19250case $host_os in
19251interix[3-9]*)
19252 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19253 # hack all around it, let's just trust "g++" to DTRT.
19254 predep_objects_CXX=
19255 postdep_objects_CXX=
19256 postdeps_CXX=
19257 ;;
19258
19259linux*)
19260 case `$CC -V 2>&1 | sed 5q` in
19261 *Sun\ C*)
19262 # Sun C++ 5.9
19263
19264 # The more standards-conforming stlport4 library is
19265 # incompatible with the Cstd library. Avoid specifying
19266 # it if it's in CXXFLAGS. Ignore libCrun as
19267 # -library=stlport4 depends on it.
19268 case " $CXX $CXXFLAGS " in
19269 *" -library=stlport4 "*)
19270 solaris_use_stlport4=yes
19271 ;;
19272 esac
19273
19274 if test "$solaris_use_stlport4" != yes; then
19275 postdeps_CXX='-library=Cstd -library=Crun'
19276 fi
19277 ;;
19278 esac
19279 ;;
19280
19281solaris*)
19282 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019283 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019284 # The more standards-conforming stlport4 library is
19285 # incompatible with the Cstd library. Avoid specifying
19286 # it if it's in CXXFLAGS. Ignore libCrun as
19287 # -library=stlport4 depends on it.
19288 case " $CXX $CXXFLAGS " in
19289 *" -library=stlport4 "*)
19290 solaris_use_stlport4=yes
19291 ;;
19292 esac
19293
19294 # Adding this requires a known-good setup of shared libraries for
19295 # Sun compiler versions before 5.6, else PIC objects from an old
19296 # archive will be linked into the output, leading to subtle bugs.
19297 if test "$solaris_use_stlport4" != yes; then
19298 postdeps_CXX='-library=Cstd -library=Crun'
19299 fi
19300 ;;
19301 esac
19302 ;;
19303esac
19304
19305
19306case " $postdeps_CXX " in
19307*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19308esac
19309 compiler_lib_search_dirs_CXX=
19310if test -n "${compiler_lib_search_path_CXX}"; then
19311 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19312fi
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 lt_prog_compiler_wl_CXX=
19345lt_prog_compiler_pic_CXX=
19346lt_prog_compiler_static_CXX=
19347
cristy73bd4a52010-10-05 11:24:23 +000019348
19349 # C++ specific cases for pic, static, wl, etc.
19350 if test "$GXX" = yes; then
19351 lt_prog_compiler_wl_CXX='-Wl,'
19352 lt_prog_compiler_static_CXX='-static'
19353
19354 case $host_os in
19355 aix*)
19356 # All AIX code is PIC.
19357 if test "$host_cpu" = ia64; then
19358 # AIX 5 now supports IA64 processor
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 fi
19361 ;;
19362
19363 amigaos*)
19364 case $host_cpu in
19365 powerpc)
19366 # see comment about AmigaOS4 .so support
19367 lt_prog_compiler_pic_CXX='-fPIC'
19368 ;;
19369 m68k)
19370 # FIXME: we need at least 68020 code to build shared libraries, but
19371 # adding the `-m68020' flag to GCC prevents building anything better,
19372 # like `-m68040'.
19373 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19374 ;;
19375 esac
19376 ;;
19377
19378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19379 # PIC is the default for these OSes.
19380 ;;
19381 mingw* | cygwin* | os2* | pw32* | cegcc*)
19382 # This hack is so that the source file can tell whether it is being
19383 # built for inclusion in a dll (and should export symbols for example).
19384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19385 # (--disable-auto-import) libraries
19386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19387 ;;
19388 darwin* | rhapsody*)
19389 # PIC is the default on this platform
19390 # Common symbols not allowed in MH_DYLIB files
19391 lt_prog_compiler_pic_CXX='-fno-common'
19392 ;;
19393 *djgpp*)
19394 # DJGPP does not support shared libraries at all
19395 lt_prog_compiler_pic_CXX=
19396 ;;
cristy0c60a692010-11-04 01:09:47 +000019397 haiku*)
19398 # PIC is the default for Haiku.
19399 # The "-static" flag exists, but is broken.
19400 lt_prog_compiler_static_CXX=
19401 ;;
cristy73bd4a52010-10-05 11:24:23 +000019402 interix[3-9]*)
19403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19404 # Instead, we relocate shared libraries at runtime.
19405 ;;
19406 sysv4*MP*)
19407 if test -d /usr/nec; then
19408 lt_prog_compiler_pic_CXX=-Kconform_pic
19409 fi
19410 ;;
19411 hpux*)
19412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19414 # sets the default TLS model and affects inlining.
19415 case $host_cpu in
19416 hppa*64*)
19417 ;;
19418 *)
19419 lt_prog_compiler_pic_CXX='-fPIC'
19420 ;;
19421 esac
19422 ;;
19423 *qnx* | *nto*)
19424 # QNX uses GNU C++, but need to define -shared option too, otherwise
19425 # it will coredump.
19426 lt_prog_compiler_pic_CXX='-fPIC -shared'
19427 ;;
19428 *)
19429 lt_prog_compiler_pic_CXX='-fPIC'
19430 ;;
19431 esac
19432 else
19433 case $host_os in
19434 aix[4-9]*)
19435 # All AIX code is PIC.
19436 if test "$host_cpu" = ia64; then
19437 # AIX 5 now supports IA64 processor
19438 lt_prog_compiler_static_CXX='-Bstatic'
19439 else
19440 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19441 fi
19442 ;;
19443 chorus*)
19444 case $cc_basename in
19445 cxch68*)
19446 # Green Hills C++ Compiler
19447 # _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"
19448 ;;
19449 esac
19450 ;;
cristyda16f162011-02-19 23:52:17 +000019451 mingw* | cygwin* | os2* | pw32* | cegcc*)
19452 # This hack is so that the source file can tell whether it is being
19453 # built for inclusion in a dll (and should export symbols for example).
19454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19455 ;;
cristy73bd4a52010-10-05 11:24:23 +000019456 dgux*)
19457 case $cc_basename in
19458 ec++*)
19459 lt_prog_compiler_pic_CXX='-KPIC'
19460 ;;
19461 ghcx*)
19462 # Green Hills C++ Compiler
19463 lt_prog_compiler_pic_CXX='-pic'
19464 ;;
19465 *)
19466 ;;
19467 esac
19468 ;;
19469 freebsd* | dragonfly*)
19470 # FreeBSD uses GNU C++
19471 ;;
19472 hpux9* | hpux10* | hpux11*)
19473 case $cc_basename in
19474 CC*)
19475 lt_prog_compiler_wl_CXX='-Wl,'
19476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19477 if test "$host_cpu" != ia64; then
19478 lt_prog_compiler_pic_CXX='+Z'
19479 fi
19480 ;;
19481 aCC*)
19482 lt_prog_compiler_wl_CXX='-Wl,'
19483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19484 case $host_cpu in
19485 hppa*64*|ia64*)
19486 # +Z the default
19487 ;;
19488 *)
19489 lt_prog_compiler_pic_CXX='+Z'
19490 ;;
19491 esac
19492 ;;
19493 *)
19494 ;;
19495 esac
19496 ;;
19497 interix*)
19498 # This is c89, which is MS Visual C++ (no shared libs)
19499 # Anyone wants to do a port?
19500 ;;
19501 irix5* | irix6* | nonstopux*)
19502 case $cc_basename in
19503 CC*)
19504 lt_prog_compiler_wl_CXX='-Wl,'
19505 lt_prog_compiler_static_CXX='-non_shared'
19506 # CC pic flag -KPIC is the default.
19507 ;;
19508 *)
19509 ;;
19510 esac
19511 ;;
cristy0c60a692010-11-04 01:09:47 +000019512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019513 case $cc_basename in
19514 KCC*)
19515 # KAI C++ Compiler
19516 lt_prog_compiler_wl_CXX='--backend -Wl,'
19517 lt_prog_compiler_pic_CXX='-fPIC'
19518 ;;
19519 ecpc* )
19520 # old Intel C++ for x86_64 which still supported -KPIC.
19521 lt_prog_compiler_wl_CXX='-Wl,'
19522 lt_prog_compiler_pic_CXX='-KPIC'
19523 lt_prog_compiler_static_CXX='-static'
19524 ;;
19525 icpc* )
19526 # Intel C++, used to be incompatible with GCC.
19527 # ICC 10 doesn't accept -KPIC any more.
19528 lt_prog_compiler_wl_CXX='-Wl,'
19529 lt_prog_compiler_pic_CXX='-fPIC'
19530 lt_prog_compiler_static_CXX='-static'
19531 ;;
19532 pgCC* | pgcpp*)
19533 # Portland Group C++ compiler
19534 lt_prog_compiler_wl_CXX='-Wl,'
19535 lt_prog_compiler_pic_CXX='-fpic'
19536 lt_prog_compiler_static_CXX='-Bstatic'
19537 ;;
19538 cxx*)
19539 # Compaq C++
19540 # Make sure the PIC flag is empty. It appears that all Alpha
19541 # Linux and Compaq Tru64 Unix objects are PIC.
19542 lt_prog_compiler_pic_CXX=
19543 lt_prog_compiler_static_CXX='-non_shared'
19544 ;;
cristy0c60a692010-11-04 01:09:47 +000019545 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19546 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019547 lt_prog_compiler_wl_CXX='-Wl,'
19548 lt_prog_compiler_pic_CXX='-qpic'
19549 lt_prog_compiler_static_CXX='-qstaticlink'
19550 ;;
19551 *)
19552 case `$CC -V 2>&1 | sed 5q` in
19553 *Sun\ C*)
19554 # Sun C++ 5.9
19555 lt_prog_compiler_pic_CXX='-KPIC'
19556 lt_prog_compiler_static_CXX='-Bstatic'
19557 lt_prog_compiler_wl_CXX='-Qoption ld '
19558 ;;
19559 esac
19560 ;;
19561 esac
19562 ;;
19563 lynxos*)
19564 ;;
19565 m88k*)
19566 ;;
19567 mvs*)
19568 case $cc_basename in
19569 cxx*)
19570 lt_prog_compiler_pic_CXX='-W c,exportall'
19571 ;;
19572 *)
19573 ;;
19574 esac
19575 ;;
19576 netbsd*)
19577 ;;
19578 *qnx* | *nto*)
19579 # QNX uses GNU C++, but need to define -shared option too, otherwise
19580 # it will coredump.
19581 lt_prog_compiler_pic_CXX='-fPIC -shared'
19582 ;;
19583 osf3* | osf4* | osf5*)
19584 case $cc_basename in
19585 KCC*)
19586 lt_prog_compiler_wl_CXX='--backend -Wl,'
19587 ;;
19588 RCC*)
19589 # Rational C++ 2.4.1
19590 lt_prog_compiler_pic_CXX='-pic'
19591 ;;
19592 cxx*)
19593 # Digital/Compaq C++
19594 lt_prog_compiler_wl_CXX='-Wl,'
19595 # Make sure the PIC flag is empty. It appears that all Alpha
19596 # Linux and Compaq Tru64 Unix objects are PIC.
19597 lt_prog_compiler_pic_CXX=
19598 lt_prog_compiler_static_CXX='-non_shared'
19599 ;;
19600 *)
19601 ;;
19602 esac
19603 ;;
19604 psos*)
19605 ;;
19606 solaris*)
19607 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019608 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019609 # Sun C++ 4.2, 5.x and Centerline C++
19610 lt_prog_compiler_pic_CXX='-KPIC'
19611 lt_prog_compiler_static_CXX='-Bstatic'
19612 lt_prog_compiler_wl_CXX='-Qoption ld '
19613 ;;
19614 gcx*)
19615 # Green Hills C++ Compiler
19616 lt_prog_compiler_pic_CXX='-PIC'
19617 ;;
19618 *)
19619 ;;
19620 esac
19621 ;;
19622 sunos4*)
19623 case $cc_basename in
19624 CC*)
19625 # Sun C++ 4.x
19626 lt_prog_compiler_pic_CXX='-pic'
19627 lt_prog_compiler_static_CXX='-Bstatic'
19628 ;;
19629 lcc*)
19630 # Lucid
19631 lt_prog_compiler_pic_CXX='-pic'
19632 ;;
19633 *)
19634 ;;
19635 esac
19636 ;;
19637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19638 case $cc_basename in
19639 CC*)
19640 lt_prog_compiler_wl_CXX='-Wl,'
19641 lt_prog_compiler_pic_CXX='-KPIC'
19642 lt_prog_compiler_static_CXX='-Bstatic'
19643 ;;
19644 esac
19645 ;;
19646 tandem*)
19647 case $cc_basename in
19648 NCC*)
19649 # NonStop-UX NCC 3.20
19650 lt_prog_compiler_pic_CXX='-KPIC'
19651 ;;
19652 *)
19653 ;;
19654 esac
19655 ;;
19656 vxworks*)
19657 ;;
19658 *)
19659 lt_prog_compiler_can_build_shared_CXX=no
19660 ;;
19661 esac
19662 fi
19663
19664case $host_os in
19665 # For platforms which do not support PIC, -DPIC is meaningless:
19666 *djgpp*)
19667 lt_prog_compiler_pic_CXX=
19668 ;;
19669 *)
19670 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19671 ;;
19672esac
cristy73bd4a52010-10-05 11:24:23 +000019673
cristyda16f162011-02-19 23:52:17 +000019674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19675$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19676if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19677 $as_echo_n "(cached) " >&6
19678else
19679 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19680fi
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19682$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19683lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019684
19685#
19686# Check to make sure the PIC flag actually works.
19687#
19688if test -n "$lt_prog_compiler_pic_CXX"; then
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19690$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019691if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019692 $as_echo_n "(cached) " >&6
19693else
19694 lt_cv_prog_compiler_pic_works_CXX=no
19695 ac_outfile=conftest.$ac_objext
19696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19698 # Insert the option either (1) after the last *FLAGS variable, or
19699 # (2) before a word containing "conftest.", or (3) at the end.
19700 # Note that $ac_compile itself does not contain backslashes and begins
19701 # with a dollar sign (not a hyphen), so the echo should work correctly.
19702 # The option is referenced via a variable to avoid confusing sed.
19703 lt_compile=`echo "$ac_compile" | $SED \
19704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19706 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019708 (eval "$lt_compile" 2>conftest.err)
19709 ac_status=$?
19710 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019712 if (exit $ac_status) && test -s "$ac_outfile"; then
19713 # The compiler can only warn and ignore the option if not recognized
19714 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19718 lt_cv_prog_compiler_pic_works_CXX=yes
19719 fi
19720 fi
19721 $RM conftest*
19722
19723fi
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19725$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19726
19727if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19728 case $lt_prog_compiler_pic_CXX in
19729 "" | " "*) ;;
19730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19731 esac
19732else
19733 lt_prog_compiler_pic_CXX=
19734 lt_prog_compiler_can_build_shared_CXX=no
19735fi
19736
19737fi
19738
19739
19740
cristyda16f162011-02-19 23:52:17 +000019741
19742
cristy73bd4a52010-10-05 11:24:23 +000019743#
19744# Check to make sure the static flag actually works.
19745#
19746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19748$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019749if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019750 $as_echo_n "(cached) " >&6
19751else
19752 lt_cv_prog_compiler_static_works_CXX=no
19753 save_LDFLAGS="$LDFLAGS"
19754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19757 # The linker can only warn and ignore the option if not recognized
19758 # So say no if there are warnings
19759 if test -s conftest.err; then
19760 # Append any errors to the config.log.
19761 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_cv_prog_compiler_static_works_CXX=yes
19766 fi
19767 else
19768 lt_cv_prog_compiler_static_works_CXX=yes
19769 fi
19770 fi
19771 $RM -r conftest*
19772 LDFLAGS="$save_LDFLAGS"
19773
19774fi
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19776$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19777
19778if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19779 :
19780else
19781 lt_prog_compiler_static_CXX=
19782fi
19783
19784
19785
19786
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019789if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019790 $as_echo_n "(cached) " >&6
19791else
19792 lt_cv_prog_compiler_c_o_CXX=no
19793 $RM -r conftest 2>/dev/null
19794 mkdir conftest
19795 cd conftest
19796 mkdir out
19797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19798
19799 lt_compiler_flag="-o out/conftest2.$ac_objext"
19800 # Insert the option either (1) after the last *FLAGS variable, or
19801 # (2) before a word containing "conftest.", or (3) at the end.
19802 # Note that $ac_compile itself does not contain backslashes and begins
19803 # with a dollar sign (not a hyphen), so the echo should work correctly.
19804 lt_compile=`echo "$ac_compile" | $SED \
19805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19807 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019809 (eval "$lt_compile" 2>out/conftest.err)
19810 ac_status=$?
19811 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19814 then
19815 # The compiler can only warn and ignore the option if not recognized
19816 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19820 lt_cv_prog_compiler_c_o_CXX=yes
19821 fi
19822 fi
19823 chmod u+w . 2>&5
19824 $RM conftest*
19825 # SGI C++ compiler will create directory out/ii_files/ for
19826 # template instantiation
19827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19828 $RM out/* && rmdir out
19829 cd ..
19830 $RM -r conftest
19831 $RM conftest*
19832
19833fi
19834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19835$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19836
19837
19838
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019841if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019842 $as_echo_n "(cached) " >&6
19843else
19844 lt_cv_prog_compiler_c_o_CXX=no
19845 $RM -r conftest 2>/dev/null
19846 mkdir conftest
19847 cd conftest
19848 mkdir out
19849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19850
19851 lt_compiler_flag="-o out/conftest2.$ac_objext"
19852 # Insert the option either (1) after the last *FLAGS variable, or
19853 # (2) before a word containing "conftest.", or (3) at the end.
19854 # Note that $ac_compile itself does not contain backslashes and begins
19855 # with a dollar sign (not a hyphen), so the echo should work correctly.
19856 lt_compile=`echo "$ac_compile" | $SED \
19857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19859 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019861 (eval "$lt_compile" 2>out/conftest.err)
19862 ac_status=$?
19863 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19866 then
19867 # The compiler can only warn and ignore the option if not recognized
19868 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19872 lt_cv_prog_compiler_c_o_CXX=yes
19873 fi
19874 fi
19875 chmod u+w . 2>&5
19876 $RM conftest*
19877 # SGI C++ compiler will create directory out/ii_files/ for
19878 # template instantiation
19879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19880 $RM out/* && rmdir out
19881 cd ..
19882 $RM -r conftest
19883 $RM conftest*
19884
19885fi
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19888
19889
19890
19891
19892hard_links="nottested"
19893if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19894 # do not overwrite the value of need_locks provided by the user
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19896$as_echo_n "checking if we can lock with hard links... " >&6; }
19897 hard_links=yes
19898 $RM conftest*
19899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19900 touch conftest.a
19901 ln conftest.a conftest.b 2>&5 || hard_links=no
19902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19904$as_echo "$hard_links" >&6; }
19905 if test "$hard_links" = no; then
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19907$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19908 need_locks=warn
19909 fi
19910else
19911 need_locks=no
19912fi
19913
19914
19915
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19918
19919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019921 case $host_os in
19922 aix[4-9]*)
19923 # If we're using GNU nm, then we don't want the "-C" option.
19924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019925 # Also, AIX nm treats weak defined symbols like other global defined
19926 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019928 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 +000019929 else
19930 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'
19931 fi
19932 ;;
19933 pw32*)
19934 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019935 ;;
cristy73bd4a52010-10-05 11:24:23 +000019936 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019937 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019938 cl*)
19939 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19940 ;;
cristyda16f162011-02-19 23:52:17 +000019941 *)
19942 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'
19943 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19944 ;;
19945 esac
19946 ;;
cristy73bd4a52010-10-05 11:24:23 +000019947 *)
19948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019949 ;;
cristy73bd4a52010-10-05 11:24:23 +000019950 esac
cristy73bd4a52010-10-05 11:24:23 +000019951
19952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19953$as_echo "$ld_shlibs_CXX" >&6; }
19954test "$ld_shlibs_CXX" = no && can_build_shared=no
19955
19956with_gnu_ld_CXX=$with_gnu_ld
19957
19958
19959
19960
19961
19962
19963#
19964# Do we need to explicitly link libc?
19965#
19966case "x$archive_cmds_need_lc_CXX" in
19967x|xyes)
19968 # Assume -lc should be added
19969 archive_cmds_need_lc_CXX=yes
19970
19971 if test "$enable_shared" = yes && test "$GCC" = yes; then
19972 case $archive_cmds_CXX in
19973 *'~'*)
19974 # FIXME: we may have to deal with multi-command sequences.
19975 ;;
19976 '$CC '*)
19977 # Test whether the compiler implicitly links with -lc since on some
19978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19979 # to ld, don't add -lc before -lgcc.
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19981$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019982if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019983 $as_echo_n "(cached) " >&6
19984else
19985 $RM conftest*
19986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019987
cristy0c60a692010-11-04 01:09:47 +000019988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019989 (eval $ac_compile) 2>&5
19990 ac_status=$?
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019993 soname=conftest
19994 lib=conftest
19995 libobjs=conftest.$ac_objext
19996 deplibs=
19997 wl=$lt_prog_compiler_wl_CXX
19998 pic_flag=$lt_prog_compiler_pic_CXX
19999 compiler_flags=-v
20000 linker_flags=-v
20001 verstring=
20002 output_objdir=.
20003 libname=conftest
20004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20005 allow_undefined_flag_CXX=
20006 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 +000020007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20008 ac_status=$?
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020011 then
20012 lt_cv_archive_cmds_need_lc_CXX=no
20013 else
20014 lt_cv_archive_cmds_need_lc_CXX=yes
20015 fi
20016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20017 else
20018 cat conftest.err 1>&5
20019 fi
20020 $RM conftest*
20021
20022fi
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20024$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20025 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020026 ;;
20027 esac
20028 fi
20029 ;;
20030esac
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
cristy73bd4a52010-10-05 11:24:23 +000020093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20094$as_echo_n "checking dynamic linker characteristics... " >&6; }
20095
20096library_names_spec=
20097libname_spec='lib$name'
20098soname_spec=
20099shrext_cmds=".so"
20100postinstall_cmds=
20101postuninstall_cmds=
20102finish_cmds=
20103finish_eval=
20104shlibpath_var=
20105shlibpath_overrides_runpath=unknown
20106version_type=none
20107dynamic_linker="$host_os ld.so"
20108sys_lib_dlsearch_path_spec="/lib /usr/lib"
20109need_lib_prefix=unknown
20110hardcode_into_libs=no
20111
20112# when you set need_version to no, make sure it does not cause -set_version
20113# flags to be left without arguments
20114need_version=unknown
20115
20116case $host_os in
20117aix3*)
cristy99bd5232011-12-07 14:38:20 +000020118 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20120 shlibpath_var=LIBPATH
20121
20122 # AIX 3 has no versioning support, so we append a major version to the name.
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 ;;
20125
20126aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020127 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020128 need_lib_prefix=no
20129 need_version=no
20130 hardcode_into_libs=yes
20131 if test "$host_cpu" = ia64; then
20132 # AIX 5 supports IA64
20133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20134 shlibpath_var=LD_LIBRARY_PATH
20135 else
20136 # With GCC up to 2.95.x, collect2 would create an import file
20137 # for dependence libraries. The import file would start with
20138 # the line `#! .'. This would cause the generated library to
20139 # depend on `.', always an invalid library. This was fixed in
20140 # development snapshots of GCC prior to 3.0.
20141 case $host_os in
20142 aix4 | aix4.[01] | aix4.[01].*)
20143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20144 echo ' yes '
20145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20146 :
20147 else
20148 can_build_shared=no
20149 fi
20150 ;;
20151 esac
20152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20153 # soname into executable. Probably we can add versioning support to
20154 # collect2, so additional links can be useful in future.
20155 if test "$aix_use_runtimelinking" = yes; then
20156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20157 # instead of lib<name>.a to let people know that these are not
20158 # typical AIX shared libraries.
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20160 else
20161 # We preserve .a as extension for shared libraries through AIX4.2
20162 # and later when we are not doing run time linking.
20163 library_names_spec='${libname}${release}.a $libname.a'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 fi
20166 shlibpath_var=LIBPATH
20167 fi
20168 ;;
20169
20170amigaos*)
20171 case $host_cpu in
20172 powerpc)
20173 # Since July 2007 AmigaOS4 officially supports .so libraries.
20174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 ;;
20177 m68k)
20178 library_names_spec='$libname.ixlibrary $libname.a'
20179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020180 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 +000020181 ;;
20182 esac
20183 ;;
20184
20185beos*)
20186 library_names_spec='${libname}${shared_ext}'
20187 dynamic_linker="$host_os ld.so"
20188 shlibpath_var=LIBRARY_PATH
20189 ;;
20190
20191bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020192 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020193 need_version=no
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20197 shlibpath_var=LD_LIBRARY_PATH
20198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20200 # the default ld.so.conf also contains /usr/contrib/lib and
20201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20202 # libtool to hard-code these into programs
20203 ;;
20204
20205cygwin* | mingw* | pw32* | cegcc*)
20206 version_type=windows
20207 shrext_cmds=".dll"
20208 need_version=no
20209 need_lib_prefix=no
20210
cristyda16f162011-02-19 23:52:17 +000020211 case $GCC,$cc_basename in
20212 yes,*)
20213 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020214 library_names_spec='$libname.dll.a'
20215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20216 postinstall_cmds='base_file=`basename \${file}`~
20217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20218 dldir=$destdir/`dirname \$dlpath`~
20219 test -d \$dldir || mkdir -p \$dldir~
20220 $install_prog $dir/$dlname \$dldir/$dlname~
20221 chmod a+x \$dldir/$dlname~
20222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20224 fi'
20225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20226 dlpath=$dir/\$dldll~
20227 $RM \$dlpath'
20228 shlibpath_overrides_runpath=yes
20229
20230 case $host_os in
20231 cygwin*)
20232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020234
cristy73bd4a52010-10-05 11:24:23 +000020235 ;;
20236 mingw* | cegcc*)
20237 # MinGW DLLs use traditional 'lib' prefix
20238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020239 ;;
20240 pw32*)
20241 # pw32 DLLs use 'pw' prefix rather than 'lib'
20242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20243 ;;
20244 esac
cristyda16f162011-02-19 23:52:17 +000020245 dynamic_linker='Win32 ld.exe'
20246 ;;
20247
20248 *,cl*)
20249 # Native MSVC
20250 libname_spec='$name'
20251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20252 library_names_spec='${libname}.dll.lib'
20253
20254 case $build_os in
20255 mingw*)
20256 sys_lib_search_path_spec=
20257 lt_save_ifs=$IFS
20258 IFS=';'
20259 for lt_path in $LIB
20260 do
20261 IFS=$lt_save_ifs
20262 # Let DOS variable expansion print the short 8.3 style file name.
20263 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20264 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20265 done
20266 IFS=$lt_save_ifs
20267 # Convert to MSYS style.
20268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20269 ;;
20270 cygwin*)
20271 # Convert to unix form, then to dos form, then back to unix form
20272 # but this time dos style (no spaces!) so that the unix form looks
20273 # like /cygdrive/c/PROGRA~1:/cygdr...
20274 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20275 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20276 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20277 ;;
20278 *)
20279 sys_lib_search_path_spec="$LIB"
20280 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20281 # It is most probably a Windows format PATH.
20282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20283 else
20284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20285 fi
20286 # FIXME: find the short name or the path components, as spaces are
20287 # common. (e.g. "Program Files" -> "PROGRA~1")
20288 ;;
20289 esac
20290
20291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20292 postinstall_cmds='base_file=`basename \${file}`~
20293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20294 dldir=$destdir/`dirname \$dlpath`~
20295 test -d \$dldir || mkdir -p \$dldir~
20296 $install_prog $dir/$dlname \$dldir/$dlname'
20297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20298 dlpath=$dir/\$dldll~
20299 $RM \$dlpath'
20300 shlibpath_overrides_runpath=yes
20301 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020302 ;;
20303
20304 *)
cristyda16f162011-02-19 23:52:17 +000020305 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020307 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020308 ;;
20309 esac
cristy73bd4a52010-10-05 11:24:23 +000020310 # FIXME: first we should search . and the directory the executable is in
20311 shlibpath_var=PATH
20312 ;;
20313
20314darwin* | rhapsody*)
20315 dynamic_linker="$host_os dyld"
20316 version_type=darwin
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20320 soname_spec='${libname}${release}${major}$shared_ext'
20321 shlibpath_overrides_runpath=yes
20322 shlibpath_var=DYLD_LIBRARY_PATH
20323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20324
20325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20326 ;;
20327
20328dgux*)
cristy99bd5232011-12-07 14:38:20 +000020329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 ;;
20336
cristy73bd4a52010-10-05 11:24:23 +000020337freebsd* | dragonfly*)
20338 # DragonFly does not have aout. When/if they implement a new
20339 # versioning mechanism, adjust this.
20340 if test -x /usr/bin/objformat; then
20341 objformat=`/usr/bin/objformat`
20342 else
20343 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020344 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020345 *) objformat=elf ;;
20346 esac
20347 fi
20348 version_type=freebsd-$objformat
20349 case $version_type in
20350 freebsd-elf*)
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20352 need_version=no
20353 need_lib_prefix=no
20354 ;;
20355 freebsd-*)
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20357 need_version=yes
20358 ;;
20359 esac
20360 shlibpath_var=LD_LIBRARY_PATH
20361 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020362 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020363 shlibpath_overrides_runpath=yes
20364 ;;
20365 freebsd3.[01]* | freebsdelf3.[01]*)
20366 shlibpath_overrides_runpath=yes
20367 hardcode_into_libs=yes
20368 ;;
20369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20371 shlibpath_overrides_runpath=no
20372 hardcode_into_libs=yes
20373 ;;
20374 *) # from 4.6 on, and DragonFly
20375 shlibpath_overrides_runpath=yes
20376 hardcode_into_libs=yes
20377 ;;
20378 esac
20379 ;;
20380
20381gnu*)
cristy99bd5232011-12-07 14:38:20 +000020382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020383 need_lib_prefix=no
20384 need_version=no
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20386 soname_spec='${libname}${release}${shared_ext}$major'
20387 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020388 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020389 hardcode_into_libs=yes
20390 ;;
20391
cristy0c60a692010-11-04 01:09:47 +000020392haiku*)
cristy99bd5232011-12-07 14:38:20 +000020393 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020394 need_lib_prefix=no
20395 need_version=no
20396 dynamic_linker="$host_os runtime_loader"
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LIBRARY_PATH
20400 shlibpath_overrides_runpath=yes
20401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20402 hardcode_into_libs=yes
20403 ;;
20404
cristy73bd4a52010-10-05 11:24:23 +000020405hpux9* | hpux10* | hpux11*)
20406 # Give a soname corresponding to the major version so that dld.sl refuses to
20407 # link against other versions.
20408 version_type=sunos
20409 need_lib_prefix=no
20410 need_version=no
20411 case $host_cpu in
20412 ia64*)
20413 shrext_cmds='.so'
20414 hardcode_into_libs=yes
20415 dynamic_linker="$host_os dld.so"
20416 shlibpath_var=LD_LIBRARY_PATH
20417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 if test "X$HPUX_IA64_MODE" = X32; then
20421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20422 else
20423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20424 fi
20425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20426 ;;
20427 hppa*64*)
20428 shrext_cmds='.sl'
20429 hardcode_into_libs=yes
20430 dynamic_linker="$host_os dld.sl"
20431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20437 ;;
20438 *)
20439 shrext_cmds='.sl'
20440 dynamic_linker="$host_os dld.sl"
20441 shlibpath_var=SHLIB_PATH
20442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 ;;
20446 esac
cristy0c60a692010-11-04 01:09:47 +000020447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020448 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020449 # or fails outright, so override atomically:
20450 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020451 ;;
20452
20453interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020454 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020455 need_lib_prefix=no
20456 need_version=no
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=no
20462 hardcode_into_libs=yes
20463 ;;
20464
20465irix5* | irix6* | nonstopux*)
20466 case $host_os in
20467 nonstopux*) version_type=nonstopux ;;
20468 *)
20469 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020471 else
20472 version_type=irix
20473 fi ;;
20474 esac
20475 need_lib_prefix=no
20476 need_version=no
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20479 case $host_os in
20480 irix5* | nonstopux*)
20481 libsuff= shlibsuff=
20482 ;;
20483 *)
20484 case $LD in # libtool.m4 will add one of these switches to LD
20485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20486 libsuff= shlibsuff= libmagic=32-bit;;
20487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20488 libsuff=32 shlibsuff=N32 libmagic=N32;;
20489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20491 *) libsuff= shlibsuff= libmagic=never-match;;
20492 esac
20493 ;;
20494 esac
20495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20496 shlibpath_overrides_runpath=no
20497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20499 hardcode_into_libs=yes
20500 ;;
20501
20502# No shared lib support for Linux oldld, aout, or coff.
20503linux*oldld* | linux*aout* | linux*coff*)
20504 dynamic_linker=no
20505 ;;
20506
cristy99bd5232011-12-07 14:38:20 +000020507# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020508linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020509 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020510 need_lib_prefix=no
20511 need_version=no
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20515 shlibpath_var=LD_LIBRARY_PATH
20516 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020517
cristy73bd4a52010-10-05 11:24:23 +000020518 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020519 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020520 $as_echo_n "(cached) " >&6
20521else
20522 lt_cv_shlibpath_overrides_runpath=no
20523 save_LDFLAGS=$LDFLAGS
20524 save_libdir=$libdir
20525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020528/* end confdefs.h. */
20529
20530int
20531main ()
20532{
20533
20534 ;
20535 return 0;
20536}
20537_ACEOF
20538if ac_fn_cxx_try_link "$LINENO"; then :
20539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020540 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020541fi
20542fi
20543rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020545 LDFLAGS=$save_LDFLAGS
20546 libdir=$save_libdir
20547
20548fi
20549
20550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020551
20552 # This implies no fast_install, which is unacceptable.
20553 # Some rework will be needed to allow for fast_install
20554 # before this can be enabled.
20555 hardcode_into_libs=yes
20556
20557 # Add ABI-specific directories to the system library path.
20558 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20559
20560 # Append ld.so.conf contents to the search path
20561 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020562 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 +000020563 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020564
cristy73bd4a52010-10-05 11:24:23 +000020565 fi
20566
20567 # We used to test for /lib/ld.so.1 and disable shared libraries on
20568 # powerpc, because MkLinux only supported shared libraries with the
20569 # GNU dynamic linker. Since this was broken with cross compilers,
20570 # most powerpc-linux boxes support dynamic linking these days and
20571 # people can always --disable-shared, the test was removed, and we
20572 # assume the GNU/Linux dynamic linker is in use.
20573 dynamic_linker='GNU/Linux ld.so'
20574 ;;
20575
20576netbsd*)
20577 version_type=sunos
20578 need_lib_prefix=no
20579 need_version=no
20580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20583 dynamic_linker='NetBSD (a.out) ld.so'
20584 else
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 dynamic_linker='NetBSD ld.elf_so'
20588 fi
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=yes
20591 hardcode_into_libs=yes
20592 ;;
20593
20594newsos6)
cristy99bd5232011-12-07 14:38:20 +000020595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes
20599 ;;
20600
20601*nto* | *qnx*)
20602 version_type=qnx
20603 need_lib_prefix=no
20604 need_version=no
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 shlibpath_overrides_runpath=no
20609 hardcode_into_libs=yes
20610 dynamic_linker='ldqnx.so'
20611 ;;
20612
20613openbsd*)
20614 version_type=sunos
20615 sys_lib_dlsearch_path_spec="/usr/lib"
20616 need_lib_prefix=no
20617 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20618 case $host_os in
20619 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20620 *) need_version=no ;;
20621 esac
20622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20624 shlibpath_var=LD_LIBRARY_PATH
20625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20626 case $host_os in
20627 openbsd2.[89] | openbsd2.[89].*)
20628 shlibpath_overrides_runpath=no
20629 ;;
20630 *)
20631 shlibpath_overrides_runpath=yes
20632 ;;
20633 esac
20634 else
20635 shlibpath_overrides_runpath=yes
20636 fi
20637 ;;
20638
20639os2*)
20640 libname_spec='$name'
20641 shrext_cmds=".dll"
20642 need_lib_prefix=no
20643 library_names_spec='$libname${shared_ext} $libname.a'
20644 dynamic_linker='OS/2 ld.exe'
20645 shlibpath_var=LIBPATH
20646 ;;
20647
20648osf3* | osf4* | osf5*)
20649 version_type=osf
20650 need_lib_prefix=no
20651 need_version=no
20652 soname_spec='${libname}${release}${shared_ext}$major'
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20656 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20657 ;;
20658
20659rdos*)
20660 dynamic_linker=no
20661 ;;
20662
20663solaris*)
cristy99bd5232011-12-07 14:38:20 +000020664 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020665 need_lib_prefix=no
20666 need_version=no
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 shlibpath_var=LD_LIBRARY_PATH
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20672 # ldd complains unless libraries are executable
20673 postinstall_cmds='chmod +x $lib'
20674 ;;
20675
20676sunos4*)
20677 version_type=sunos
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20679 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20680 shlibpath_var=LD_LIBRARY_PATH
20681 shlibpath_overrides_runpath=yes
20682 if test "$with_gnu_ld" = yes; then
20683 need_lib_prefix=no
20684 fi
20685 need_version=yes
20686 ;;
20687
20688sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020689 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 shlibpath_var=LD_LIBRARY_PATH
20693 case $host_vendor in
20694 sni)
20695 shlibpath_overrides_runpath=no
20696 need_lib_prefix=no
20697 runpath_var=LD_RUN_PATH
20698 ;;
20699 siemens)
20700 need_lib_prefix=no
20701 ;;
20702 motorola)
20703 need_lib_prefix=no
20704 need_version=no
20705 shlibpath_overrides_runpath=no
20706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20707 ;;
20708 esac
20709 ;;
20710
20711sysv4*MP*)
20712 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20715 soname_spec='$libname${shared_ext}.$major'
20716 shlibpath_var=LD_LIBRARY_PATH
20717 fi
20718 ;;
20719
20720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20721 version_type=freebsd-elf
20722 need_lib_prefix=no
20723 need_version=no
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 shlibpath_overrides_runpath=yes
20728 hardcode_into_libs=yes
20729 if test "$with_gnu_ld" = yes; then
20730 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20731 else
20732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20733 case $host_os in
20734 sco3.2v5*)
20735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20736 ;;
20737 esac
20738 fi
20739 sys_lib_dlsearch_path_spec='/usr/lib'
20740 ;;
20741
20742tpf*)
20743 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020744 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020745 need_lib_prefix=no
20746 need_version=no
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=no
20750 hardcode_into_libs=yes
20751 ;;
20752
20753uts4*)
cristy99bd5232011-12-07 14:38:20 +000020754 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 ;;
20759
20760*)
20761 dynamic_linker=no
20762 ;;
20763esac
20764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20765$as_echo "$dynamic_linker" >&6; }
20766test "$dynamic_linker" = no && can_build_shared=no
20767
20768variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20769if test "$GCC" = yes; then
20770 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20771fi
20772
20773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20774 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20775fi
20776if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20777 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20778fi
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
cristy0c60a692010-11-04 01:09:47 +000020815
20816
cristy73bd4a52010-10-05 11:24:23 +000020817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20818$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20819hardcode_action_CXX=
20820if test -n "$hardcode_libdir_flag_spec_CXX" ||
20821 test -n "$runpath_var_CXX" ||
20822 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20823
20824 # We can hardcode non-existent directories.
20825 if test "$hardcode_direct_CXX" != no &&
20826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20827 # have to relink, otherwise we might link with an installed library
20828 # when we should be linking with a yet-to-be-installed one
20829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20830 test "$hardcode_minus_L_CXX" != no; then
20831 # Linking always hardcodes the temporary library directory.
20832 hardcode_action_CXX=relink
20833 else
20834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20835 hardcode_action_CXX=immediate
20836 fi
20837else
20838 # We cannot hardcode anything, or else we can only hardcode existing
20839 # directories.
20840 hardcode_action_CXX=unsupported
20841fi
20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20843$as_echo "$hardcode_action_CXX" >&6; }
20844
20845if test "$hardcode_action_CXX" = relink ||
20846 test "$inherit_rpath_CXX" = yes; then
20847 # Fast installation is not supported
20848 enable_fast_install=no
20849elif test "$shlibpath_overrides_runpath" = yes ||
20850 test "$enable_shared" = no; then
20851 # Fast installation is not necessary
20852 enable_fast_install=needless
20853fi
20854
20855
20856
20857
20858
20859
20860
20861 fi # test -n "$compiler"
20862
20863 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020864 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020865 LDCXX=$LD
20866 LD=$lt_save_LD
20867 GCC=$lt_save_GCC
20868 with_gnu_ld=$lt_save_with_gnu_ld
20869 lt_cv_path_LDCXX=$lt_cv_path_LD
20870 lt_cv_path_LD=$lt_save_path_LD
20871 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20872 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20873fi # test "$_lt_caught_CXX_error" != yes
20874
20875ac_ext=c
20876ac_cpp='$CPP $CPPFLAGS'
20877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
cristy99bd5232011-12-07 14:38:20 +000020893
20894
cristy73bd4a52010-10-05 11:24:23 +000020895 ac_config_commands="$ac_config_commands libtool"
20896
20897
20898
20899
20900# Only expand once:
20901
20902
20903
cristy3ed852e2009-09-05 21:47:34 +000020904
20905
cristy3ed852e2009-09-05 21:47:34 +000020906# Check to see if building shared libraries
20907libtool_build_shared_libs='no'
20908if test "$enable_shared" = 'yes'; then
20909 libtool_build_shared_libs='yes'
20910fi
20911
20912# Check to see if building static libraries
20913libtool_build_static_libs='no'
20914if test "$enable_static" = 'yes'; then
20915 libtool_build_static_libs='yes'
20916fi
20917
cristy73bd4a52010-10-05 11:24:23 +000020918 if test "${libtool_build_shared_libs}" = 'yes'; then
20919 WITH_SHARED_LIBS_TRUE=
20920 WITH_SHARED_LIBS_FALSE='#'
20921else
20922 WITH_SHARED_LIBS_TRUE='#'
20923 WITH_SHARED_LIBS_FALSE=
20924fi
20925
cristy3ed852e2009-09-05 21:47:34 +000020926#
20927# Enable support for building loadable modules
20928#
cristyaf4cbf32012-10-16 23:47:41 +000020929build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020930
20931# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020932if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020933 withval=$with_modules; with_modules=$withval
20934else
cristy5a1cefd2010-01-06 20:42:35 +000020935 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020936fi
20937
20938
20939# Only allow building loadable modules if we are building shared libraries
20940if test "$with_modules" != 'no' ; then
20941 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020942 { $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 +000020943$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020944 build_modules='no'
20945 else
20946 build_modules='yes'
20947 fi
cristy3ed852e2009-09-05 21:47:34 +000020948fi
cristyc6722092012-10-14 00:19:31 +000020949if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020950
cristy8b350f62009-11-15 23:12:43 +000020951$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020952
cristyfa161182012-12-19 15:45:28 +000020953 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020954fi
cristyc6722092012-10-14 00:19:31 +000020955 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020956 WITH_MODULES_TRUE=
20957 WITH_MODULES_FALSE='#'
20958else
20959 WITH_MODULES_TRUE='#'
20960 WITH_MODULES_FALSE=
20961fi
20962
cristy3ed852e2009-09-05 21:47:34 +000020963
cristy3ed852e2009-09-05 21:47:34 +000020964# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020965# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020966# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020967if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20969else
20970 enable_delegate_build='no'
20971fi
20972
20973
20974# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020975if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020976 enableval=$enable_deprecated; enable_deprecated=$enableval
20977else
20978 enable_deprecated='no'
20979fi
20980
20981
20982if test "$enable_deprecated" = 'yes'; then
20983
cristy8b350f62009-11-15 23:12:43 +000020984$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020985
20986else
20987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20988fi
20989
20990# Build a version of ImageMagick which operates uninstalled.
20991# Used to build distributions located via MAGICK_HOME / executable path
20992# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020993if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 enableval=$enable_installed; enable_installed=$enableval
20995else
20996 enable_installed='yes'
20997fi
20998
20999
21000if test "$enable_installed" = 'yes'; then
21001
cristy8b350f62009-11-15 23:12:43 +000021002$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021003
21004else
21005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21006fi
21007
21008# Permit enciphering and deciphering image pixels.
21009# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021010if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021011 enableval=$enable_cipher; enable_cipher=$enableval
21012else
21013 enable_cipher='yes'
21014fi
21015
21016
21017if test "$enable_cipher" = 'yes'; then
21018
cristy8b350f62009-11-15 23:12:43 +000021019$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021020
21021fi
21022
cristy6e3607c2011-09-13 13:59:17 +000021023# Build a zero-configuration version of ImageMagick.
21024# Check whether --enable-zero-configuration was given.
21025if test "${enable_zero_configuration+set}" = set; then :
21026 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021027else
cristy6e3607c2011-09-13 13:59:17 +000021028 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021029fi
21030
21031
cristy6e3607c2011-09-13 13:59:17 +000021032if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021033
cristy6e3607c2011-09-13 13:59:17 +000021034$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021035
cristy81af5702011-09-13 14:20:58 +000021036 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021037fi
21038
21039# Build a high dynamic range version of ImageMagick.
21040# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021041if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 enableval=$enable_hdri; enable_hdri=$enableval
21043else
cristy191c0b72012-08-12 16:29:52 +000021044 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021045fi
21046
21047
21048MAGICK_HDRI=""
21049if test "$enable_hdri" = 'yes'; then
21050 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021051 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021052 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021053else
21054 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021055fi
21056
cristye52f12f2012-12-31 15:32:36 +000021057cat >>confdefs.h <<_ACEOF
21058#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21059_ACEOF
21060
21061MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21062CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021063CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021064
cristy3ed852e2009-09-05 21:47:34 +000021065# Build a version of ImageMagick with assert statements.
21066# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021067if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 enableval=$enable_assert; enable_assert=$enableval
21069else
21070 enable_assert='yes'
21071fi
21072
21073
21074if test "$enable_assert" = 'no'; then
21075
cristy8b350f62009-11-15 23:12:43 +000021076$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021077
21078fi
21079
cristya448bd22011-10-14 12:38:13 +000021080# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021081
21082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21083$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21084 # Check whether --enable-maintainer-mode was given.
21085if test "${enable_maintainer_mode+set}" = set; then :
21086 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21087else
21088 USE_MAINTAINER_MODE=no
21089fi
21090
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21092$as_echo "$USE_MAINTAINER_MODE" >&6; }
21093 if test $USE_MAINTAINER_MODE = yes; then
21094 MAINTAINER_MODE_TRUE=
21095 MAINTAINER_MODE_FALSE='#'
21096else
21097 MAINTAINER_MODE_TRUE='#'
21098 MAINTAINER_MODE_FALSE=
21099fi
21100
21101 MAINT=$MAINTAINER_MODE_TRUE
21102
21103
cristy3ed852e2009-09-05 21:47:34 +000021104
cristy944e51f2013-04-16 18:45:02 +000021105# Enable hugepages support
21106# Check whether --enable-hugepages was given.
21107if test "${enable_hugepages+set}" = set; then :
21108 enableval=$enable_hugepages; enable_hugepages=$enableval
21109else
21110 enable_hugepages='no'
21111fi
21112
21113
cristy3ed852e2009-09-05 21:47:34 +000021114# Enable ccmalloc memory debugging support
21115# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021116if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021117 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21118else
21119 enable_ccmalloc='no'
21120fi
21121
21122
21123# Enable Electric Fence memory debugging support
21124# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 enableval=$enable_efence; enable_efence=$enableval
21127else
21128 enable_efence='no'
21129fi
21130
21131
21132# Enable prof-based profiling support
21133# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021134if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021135 enableval=$enable_prof; enable_prof=$enableval
21136else
21137 enable_prof='no'
21138fi
21139
21140
21141# Enable gprof-based profiling support
21142# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021143if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 enableval=$enable_gprof; enable_gprof=$enableval
21145else
21146 enable_gprof='no'
21147fi
21148
21149
21150# Enable gcov-based profiling support
21151# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021152if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021153 enableval=$enable_gcov; enable_gcov=$enableval
21154else
21155 enable_gcov='no'
21156fi
21157
21158
21159enable_profiling='no'
21160if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21161 enable_profiling='yes'
21162 if test "$libtool_build_shared_libs" = 'yes'; then
21163 echo "Warning: Can not profile code using shared libraries"
21164 fi
21165fi
21166
21167# Magick API method prefix
21168
21169# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021170if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021171 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021172else
cristyfc3d0222012-02-07 15:05:57 +000021173 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021174fi
21175
21176
cristyfc3d0222012-02-07 15:05:57 +000021177if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021178
21179cat >>confdefs.h <<_ACEOF
21180#define NAMESPACE_PREFIX $with_method_prefix
21181_ACEOF
21182
cristyfc3d0222012-02-07 15:05:57 +000021183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021184fi
21185
cristy71d8c202012-03-20 17:05:01 +000021186# Enable legacy support (default no)
21187# Check whether --enable-legacy-support was given.
21188if test "${enable_legacy_support+set}" = set; then :
21189 enableval=$enable_legacy_support; with_legacy_support=$enableval
21190else
21191 with_legacy_support='no'
21192fi
21193
21194 if test "$with_legacy_support" != 'no'; then
21195 LEGACY_SUPPORT_TRUE=
21196 LEGACY_SUPPORT_FALSE='#'
21197else
21198 LEGACY_SUPPORT_TRUE='#'
21199 LEGACY_SUPPORT_FALSE=
21200fi
21201
21202
cristy3ed852e2009-09-05 21:47:34 +000021203# Number of bits in a Quantum
21204
21205# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 withval=$with_quantum_depth; with_quantum_depth=$withval
21208else
21209 with_quantum_depth=16
21210fi
21211
21212
21213if test "$with_quantum_depth" != '8'; then
21214 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21215fi
21216
21217case "${with_quantum_depth}" in
21218 8 ) ;;
21219 16 ) ;;
21220 32 ) ;;
21221 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021222 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021223esac
21224QUANTUM_DEPTH="$with_quantum_depth"
21225
21226cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021227#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021228_ACEOF
21229
cristya371edf2013-02-06 13:42:17 +000021230MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021231CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021232CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021233
cristy01ff9f32012-12-01 18:15:29 +000021234# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021235MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021236if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021237 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021238fi
cristy01ff9f32012-12-01 18:15:29 +000021239
21240
cristy3ed852e2009-09-05 21:47:34 +000021241# Set pixel cache threshold
21242
21243# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021244if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021245 withval=$with_cache; with_cache=$withval
21246else
21247 with_cache=''
21248fi
21249
21250
21251if test "$with_cache" != ''; then
21252
21253cat >>confdefs.h <<_ACEOF
21254#define PixelCacheThreshold $with_cache
21255_ACEOF
21256
21257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21258fi
21259
21260# Disable/Enable support for full delegate paths
21261
21262# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021263if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 withval=$with_frozenpaths; with_frozenpaths=$withval
21265else
21266 with_frozenpaths='no'
21267fi
21268
21269
21270# Enable build/install of Magick++
21271
21272# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21275else
21276 with_magick_plus_plus='yes'
21277fi
21278
21279
cristy3a75f062012-09-08 23:29:40 +000021280# Encode the this name into the shared library.
21281
21282# Check whether --with-package-release-name was given.
21283if test "${with_package_release_name+set}" = set; then :
21284 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21285fi
21286
21287
21288
cristy3ed852e2009-09-05 21:47:34 +000021289# Disable build/install of PerlMagick.
21290
21291# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021292if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021293 withval=$with_perl; with_perl=$withval
21294else
cristyb5f4e2f2010-04-25 00:49:11 +000021295 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021296fi
21297
21298
21299# Options to pass when configuring PerlMagick
21300
21301# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021302if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021303 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021304fi
21305
21306
cristy3ed852e2009-09-05 21:47:34 +000021307
21308# Enable umem, object-caching memory allocation library.
21309
21310# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021311if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 withval=$with_umem; with_umem=$withval
21313else
21314 with_umem='no'
21315fi
21316
21317if test "$with_umem" != 'yes' ; then
21318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21319fi
21320
21321#
21322# Specify path to shared libstdc++ if not in normal location
21323#
21324
21325# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021326if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021327 withval=$with_libstdc; with_libstdc=$withval
21328else
21329 with_libstdc=''
21330fi
21331
21332
21333if test "$with_libstdc" != ''; then
21334 if test -d "$with_libstdc"; then
21335 LIBSTDCLDFLAGS="-L$with_libstdc"
21336 fi
21337fi
21338
21339
21340# Does gcc required -traditional?
21341if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021343$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021344if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 $as_echo_n "(cached) " >&6
21346else
21347 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021349/* end confdefs.h. */
21350#include <sgtty.h>
21351Autoconf TIOCGETP
21352_ACEOF
21353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021354 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 ac_cv_prog_gcc_traditional=yes
21356else
21357 ac_cv_prog_gcc_traditional=no
21358fi
21359rm -f conftest*
21360
21361
21362 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021364/* end confdefs.h. */
21365#include <termio.h>
21366Autoconf TCGETA
21367_ACEOF
21368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021369 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 ac_cv_prog_gcc_traditional=yes
21371fi
21372rm -f conftest*
21373
21374 fi
21375fi
cristy8b350f62009-11-15 23:12:43 +000021376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021377$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21378 if test $ac_cv_prog_gcc_traditional = yes; then
21379 CC="$CC -traditional"
21380 fi
21381fi
21382
21383
21384########
21385#
21386# Set defines required to build DLLs and modules using MinGW
21387#
21388########
21389# These options are set for multi-thread DLL module build
21390# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21391# module: _DLL
21392# executable/Magick++: _DLL _MAGICKMOD_
21393MODULE_EXTRA_CPPFLAGS=''
21394LIBRARY_EXTRA_CPPFLAGS=''
21395if test "${native_win32_build}" = 'yes'; then
21396 if test "${libtool_build_shared_libs}" = 'yes'; then
21397 CPPFLAGS="$CPPFLAGS -D_DLL"
21398 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21399 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21400 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021401 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021402 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21403 else
21404 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21405 fi
21406 else
21407 CPPFLAGS="$CPPFLAGS -D_LIB"
21408 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21409 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21410 fi
21411 if test "$with_threads" = 'yes'; then
21412 CPPFLAGS="$CPPFLAGS -D_MT"
21413 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21414 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21415 fi
21416fi
21417
21418
21419
21420# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021423if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 $as_echo_n "(cached) " >&6
21425else
cristy8b350f62009-11-15 23:12:43 +000021426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021427/* end confdefs.h. */
21428#include <stdlib.h>
21429#include <stdarg.h>
21430#include <string.h>
21431#include <float.h>
21432
21433int
21434main ()
21435{
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021441if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 ac_cv_header_stdc=yes
21443else
cristy8b350f62009-11-15 23:12:43 +000021444 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021445fi
cristy3ed852e2009-09-05 21:47:34 +000021446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447
21448if test $ac_cv_header_stdc = yes; then
21449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021451/* end confdefs.h. */
21452#include <string.h>
21453
21454_ACEOF
21455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021456 $EGREP "memchr" >/dev/null 2>&1; then :
21457
cristy3ed852e2009-09-05 21:47:34 +000021458else
21459 ac_cv_header_stdc=no
21460fi
21461rm -f conftest*
21462
21463fi
21464
21465if test $ac_cv_header_stdc = yes; then
21466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021468/* end confdefs.h. */
21469#include <stdlib.h>
21470
21471_ACEOF
21472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021473 $EGREP "free" >/dev/null 2>&1; then :
21474
cristy3ed852e2009-09-05 21:47:34 +000021475else
21476 ac_cv_header_stdc=no
21477fi
21478rm -f conftest*
21479
21480fi
21481
21482if test $ac_cv_header_stdc = yes; then
21483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021484 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 :
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488/* end confdefs.h. */
21489#include <ctype.h>
21490#include <stdlib.h>
21491#if ((' ' & 0x0FF) == 0x020)
21492# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21493# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21494#else
21495# define ISLOWER(c) \
21496 (('a' <= (c) && (c) <= 'i') \
21497 || ('j' <= (c) && (c) <= 'r') \
21498 || ('s' <= (c) && (c) <= 'z'))
21499# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21500#endif
21501
21502#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21503int
21504main ()
21505{
21506 int i;
21507 for (i = 0; i < 256; i++)
21508 if (XOR (islower (i), ISLOWER (i))
21509 || toupper (i) != TOUPPER (i))
21510 return 2;
21511 return 0;
21512}
21513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021514if ac_fn_c_try_run "$LINENO"; then :
21515
cristy3ed852e2009-09-05 21:47:34 +000021516else
cristy8b350f62009-11-15 23:12:43 +000021517 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021518fi
cristy8b350f62009-11-15 23:12:43 +000021519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21520 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021521fi
21522
cristy3ed852e2009-09-05 21:47:34 +000021523fi
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_header_stdc" >&6; }
21527if test $ac_cv_header_stdc = yes; then
21528
cristy8b350f62009-11-15 23:12:43 +000021529$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531fi
21532
21533if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021534 { $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 +000021535 header files. Compilation cannot proceed. Please install the ANSI C
21536 headers and rerun this script." >&5
21537$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21538 header files. Compilation cannot proceed. Please install the ANSI C
21539 headers and rerun this script." >&2;};
21540fi
cristya0b81c32010-01-22 02:54:33 +000021541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21543$as_echo_n "checking whether to enable assertions... " >&6; }
21544 # Check whether --enable-assert was given.
21545if test "${enable_assert+set}" = set; then :
21546 enableval=$enable_assert; ac_enable_assert=$enableval
21547 if test "x$enableval" = xno; then :
21548
21549$as_echo "#define NDEBUG 1" >>confdefs.h
21550
21551elif test "x$enableval" != xyes; then :
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21553$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21554 ac_enable_assert=yes
21555fi
21556else
21557 ac_enable_assert=yes
21558fi
21559
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21561$as_echo "$ac_enable_assert" >&6; }
21562
cristy3ed852e2009-09-05 21:47:34 +000021563ac_header_dirent=no
21564for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21565 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021567$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021568if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 $as_echo_n "(cached) " >&6
21570else
cristy8b350f62009-11-15 23:12:43 +000021571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021572/* end confdefs.h. */
21573#include <sys/types.h>
21574#include <$ac_hdr>
21575
21576int
21577main ()
21578{
21579if ((DIR *) 0)
21580return 0;
21581 ;
21582 return 0;
21583}
21584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021586 eval "$as_ac_Header=yes"
21587else
cristy8b350f62009-11-15 23:12:43 +000021588 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021589fi
cristy3ed852e2009-09-05 21:47:34 +000021590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21591fi
cristy8b350f62009-11-15 23:12:43 +000021592eval ac_res=\$$as_ac_Header
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021596 cat >>confdefs.h <<_ACEOF
21597#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21598_ACEOF
21599
21600ac_header_dirent=$ac_hdr; break
21601fi
21602
21603done
21604# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21605if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021608if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 $as_echo_n "(cached) " >&6
21610else
21611 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021613/* end confdefs.h. */
21614
21615/* Override any GCC internal prototype to avoid an error.
21616 Use char because int might match the return type of a GCC
21617 builtin and then its argument prototype would still apply. */
21618#ifdef __cplusplus
21619extern "C"
21620#endif
21621char opendir ();
21622int
21623main ()
21624{
21625return opendir ();
21626 ;
21627 return 0;
21628}
21629_ACEOF
21630for ac_lib in '' dir; do
21631 if test -z "$ac_lib"; then
21632 ac_res="none required"
21633 else
21634 ac_res=-l$ac_lib
21635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21636 fi
cristy8b350f62009-11-15 23:12:43 +000021637 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021638 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021639fi
cristy8b350f62009-11-15 23:12:43 +000021640rm -f core conftest.err conftest.$ac_objext \
21641 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021642 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 break
21644fi
21645done
cristyda16f162011-02-19 23:52:17 +000021646if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021647
cristy3ed852e2009-09-05 21:47:34 +000021648else
21649 ac_cv_search_opendir=no
21650fi
21651rm conftest.$ac_ext
21652LIBS=$ac_func_search_save_LIBS
21653fi
cristy8b350f62009-11-15 23:12:43 +000021654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo "$ac_cv_search_opendir" >&6; }
21656ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021657if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21659
21660fi
21661
21662else
cristy8b350f62009-11-15 23:12:43 +000021663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 $as_echo_n "(cached) " >&6
21667else
21668 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021670/* end confdefs.h. */
21671
21672/* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21675#ifdef __cplusplus
21676extern "C"
21677#endif
21678char opendir ();
21679int
21680main ()
21681{
21682return opendir ();
21683 ;
21684 return 0;
21685}
21686_ACEOF
21687for ac_lib in '' x; do
21688 if test -z "$ac_lib"; then
21689 ac_res="none required"
21690 else
21691 ac_res=-l$ac_lib
21692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21693 fi
cristy8b350f62009-11-15 23:12:43 +000021694 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy8b350f62009-11-15 23:12:43 +000021697rm -f core conftest.err conftest.$ac_objext \
21698 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021699 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 break
21701fi
21702done
cristyda16f162011-02-19 23:52:17 +000021703if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021704
cristy3ed852e2009-09-05 21:47:34 +000021705else
21706 ac_cv_search_opendir=no
21707fi
21708rm conftest.$ac_ext
21709LIBS=$ac_func_search_save_LIBS
21710fi
cristy8b350f62009-11-15 23:12:43 +000021711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo "$ac_cv_search_opendir" >&6; }
21713ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021714if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21716
21717fi
21718
21719fi
21720
21721
21722# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021723for 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 +000021724do :
21725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 cat >>confdefs.h <<_ACEOF
21729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730_ACEOF
21731
21732fi
21733
21734done
21735
21736
21737########
21738#
21739# Checks for typedefs, structures, and compiler characteristics.
21740#
21741########
21742
cristy8b350f62009-11-15 23:12:43 +000021743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021744$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021745if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021746 $as_echo_n "(cached) " >&6
21747else
cristy8b350f62009-11-15 23:12:43 +000021748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749/* end confdefs.h. */
21750
cristy14fefe52012-05-21 00:59:18 +000021751 #include <stdbool.h>
21752 #ifndef bool
21753 "error: bool is not defined"
21754 #endif
21755 #ifndef false
21756 "error: false is not defined"
21757 #endif
21758 #if false
21759 "error: false is not 0"
21760 #endif
21761 #ifndef true
21762 "error: true is not defined"
21763 #endif
21764 #if true != 1
21765 "error: true is not 1"
21766 #endif
21767 #ifndef __bool_true_false_are_defined
21768 "error: __bool_true_false_are_defined is not defined"
21769 #endif
cristy3ed852e2009-09-05 21:47:34 +000021770
cristy14fefe52012-05-21 00:59:18 +000021771 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021772
cristy14fefe52012-05-21 00:59:18 +000021773 char a[true == 1 ? 1 : -1];
21774 char b[false == 0 ? 1 : -1];
21775 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21776 char d[(bool) 0.5 == true ? 1 : -1];
21777 /* See body of main program for 'e'. */
21778 char f[(_Bool) 0.0 == false ? 1 : -1];
21779 char g[true];
21780 char h[sizeof (_Bool)];
21781 char i[sizeof s.t];
21782 enum { j = false, k = true, l = false * true, m = true * 256 };
21783 /* The following fails for
21784 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21785 _Bool n[m];
21786 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21787 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21788 /* Catch a bug in an HP-UX C compiler. See
21789 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21790 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21791 */
21792 _Bool q = true;
21793 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021794
21795int
21796main ()
21797{
21798
cristy14fefe52012-05-21 00:59:18 +000021799 bool e = &s;
21800 *pq |= q;
21801 *pq |= ! q;
21802 /* Refer to every declared value, to avoid compiler optimizations. */
21803 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21804 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021805
21806 ;
21807 return 0;
21808}
21809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021810if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 ac_cv_header_stdbool_h=yes
21812else
cristy8b350f62009-11-15 23:12:43 +000021813 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021814fi
cristy3ed852e2009-09-05 21:47:34 +000021815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816fi
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021819 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021820if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021821
21822cat >>confdefs.h <<_ACEOF
21823#define HAVE__BOOL 1
21824_ACEOF
21825
21826
21827fi
21828
cristy14fefe52012-05-21 00:59:18 +000021829
cristy3ed852e2009-09-05 21:47:34 +000021830if test $ac_cv_header_stdbool_h = yes; then
21831
cristy8b350f62009-11-15 23:12:43 +000021832$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021833
21834fi
21835
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021838if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 $as_echo_n "(cached) " >&6
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021842/* end confdefs.h. */
21843
21844int
21845main ()
21846{
21847
21848volatile int x;
21849int * volatile y = (int *) 0;
21850return !x && !y;
21851 ;
21852 return 0;
21853}
21854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021855if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 ac_cv_c_volatile=yes
21857else
cristy8b350f62009-11-15 23:12:43 +000021858 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021859fi
cristy3ed852e2009-09-05 21:47:34 +000021860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861fi
cristy8b350f62009-11-15 23:12:43 +000021862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021863$as_echo "$ac_cv_c_volatile" >&6; }
21864if test $ac_cv_c_volatile = no; then
21865
cristy8b350f62009-11-15 23:12:43 +000021866$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021867
21868fi
21869
cristy8b350f62009-11-15 23:12:43 +000021870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021871$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021872if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 $as_echo_n "(cached) " >&6
21874else
cristy8b350f62009-11-15 23:12:43 +000021875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021876/* end confdefs.h. */
21877#define x(y) #y
21878
21879char *s = x(teststring);
21880_ACEOF
21881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021882 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_c_stringize=no
21884else
21885 ac_cv_c_stringize=yes
21886fi
21887rm -f conftest*
21888
21889fi
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo "$ac_cv_c_stringize" >&6; }
21892if test $ac_cv_c_stringize = yes; then
21893
cristy8b350f62009-11-15 23:12:43 +000021894$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021895
21896fi
21897
cristy8b350f62009-11-15 23:12:43 +000021898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021900if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021901 $as_echo_n "(cached) " >&6
21902else
cristy8b350f62009-11-15 23:12:43 +000021903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021904/* end confdefs.h. */
21905#include <sys/types.h>
21906#include <sys/stat.h>
21907
21908#if defined S_ISBLK && defined S_IFDIR
21909extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21910#endif
21911
21912#if defined S_ISBLK && defined S_IFCHR
21913extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21914#endif
21915
21916#if defined S_ISLNK && defined S_IFREG
21917extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21918#endif
21919
21920#if defined S_ISSOCK && defined S_IFREG
21921extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21922#endif
21923
21924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 ac_cv_header_stat_broken=no
21927else
cristy8b350f62009-11-15 23:12:43 +000021928 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021929fi
cristy3ed852e2009-09-05 21:47:34 +000021930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931fi
cristy8b350f62009-11-15 23:12:43 +000021932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021933$as_echo "$ac_cv_header_stat_broken" >&6; }
21934if test $ac_cv_header_stat_broken = yes; then
21935
cristy8b350f62009-11-15 23:12:43 +000021936$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021937
21938fi
21939
cristy8b350f62009-11-15 23:12:43 +000021940{ $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 +000021941$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021942if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 $as_echo_n "(cached) " >&6
21944else
cristy8b350f62009-11-15 23:12:43 +000021945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021946/* end confdefs.h. */
21947#include <sys/types.h>
21948#include <sys/time.h>
21949#include <time.h>
21950
21951int
21952main ()
21953{
21954if ((struct tm *) 0)
21955return 0;
21956 ;
21957 return 0;
21958}
21959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021960if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 ac_cv_header_time=yes
21962else
cristy8b350f62009-11-15 23:12:43 +000021963 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021964fi
cristy3ed852e2009-09-05 21:47:34 +000021965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966fi
cristy8b350f62009-11-15 23:12:43 +000021967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo "$ac_cv_header_time" >&6; }
21969if test $ac_cv_header_time = yes; then
21970
cristy8b350f62009-11-15 23:12:43 +000021971$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021972
21973fi
21974
cristy8b350f62009-11-15 23:12:43 +000021975{ $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 +000021976$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021977if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
cristy8b350f62009-11-15 23:12:43 +000021980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021981/* end confdefs.h. */
21982#include <sys/types.h>
21983#include <time.h>
21984
21985int
21986main ()
21987{
21988struct tm tm;
21989 int *p = &tm.tm_sec;
21990 return !p;
21991 ;
21992 return 0;
21993}
21994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021996 ac_cv_struct_tm=time.h
21997else
cristy8b350f62009-11-15 23:12:43 +000021998 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021999fi
cristy3ed852e2009-09-05 21:47:34 +000022000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001fi
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo "$ac_cv_struct_tm" >&6; }
22004if test $ac_cv_struct_tm = sys/time.h; then
22005
cristy8b350f62009-11-15 23:12:43 +000022006$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022007
22008fi
22009
cristy92703d82010-04-26 00:18:18 +000022010ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22011#include <$ac_cv_struct_tm>
22012
22013"
cristyda16f162011-02-19 23:52:17 +000022014if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022015
22016cat >>confdefs.h <<_ACEOF
22017#define HAVE_STRUCT_TM_TM_ZONE 1
22018_ACEOF
22019
22020
22021fi
22022
22023if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22024
22025$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22026
22027else
22028 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22029"
cristyda16f162011-02-19 23:52:17 +000022030if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022031 ac_have_decl=1
22032else
22033 ac_have_decl=0
22034fi
22035
22036cat >>confdefs.h <<_ACEOF
22037#define HAVE_DECL_TZNAME $ac_have_decl
22038_ACEOF
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22041$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022042if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022043 $as_echo_n "(cached) " >&6
22044else
22045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046/* end confdefs.h. */
22047#include <time.h>
22048#if !HAVE_DECL_TZNAME
22049extern char *tzname[];
22050#endif
22051
22052int
22053main ()
22054{
22055return tzname[0][0];
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060if ac_fn_c_try_link "$LINENO"; then :
22061 ac_cv_var_tzname=yes
22062else
22063 ac_cv_var_tzname=no
22064fi
22065rm -f core conftest.err conftest.$ac_objext \
22066 conftest$ac_exeext conftest.$ac_ext
22067fi
22068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22069$as_echo "$ac_cv_var_tzname" >&6; }
22070 if test $ac_cv_var_tzname = yes; then
22071
22072$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22073
22074 fi
22075fi
22076
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022079if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022080 $as_echo_n "(cached) " >&6
22081else
22082 echo '#! /bin/cat
22083exit 69
22084' >conftest
22085chmod u+x conftest
22086(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22087if test $? -ne 69; then
22088 ac_cv_sys_interpreter=yes
22089else
22090 ac_cv_sys_interpreter=no
22091fi
22092rm -f conftest
22093fi
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$ac_cv_sys_interpreter" >&6; }
22096interpval=$ac_cv_sys_interpreter
22097
22098
cristye80f9cb2013-01-09 01:09:31 +000022099#
22100# Checks for language qualifiers and semantics.
22101#
22102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22103$as_echo_n "checking whether char is unsigned... " >&6; }
22104if ${ac_cv_c_char_unsigned+:} false; then :
22105 $as_echo_n "(cached) " >&6
22106else
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108/* end confdefs.h. */
22109$ac_includes_default
22110int
22111main ()
22112{
22113static int test_array [1 - 2 * !(((char) -1) < 0)];
22114test_array [0] = 0;
22115return test_array [0];
22116
22117 ;
22118 return 0;
22119}
22120_ACEOF
22121if ac_fn_c_try_compile "$LINENO"; then :
22122 ac_cv_c_char_unsigned=no
22123else
22124 ac_cv_c_char_unsigned=yes
22125fi
22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22129$as_echo "$ac_cv_c_char_unsigned" >&6; }
22130if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22131 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22132
22133fi
22134
22135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22136$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22137if ${ac_cv_c_const+:} false; then :
22138 $as_echo_n "(cached) " >&6
22139else
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141/* end confdefs.h. */
22142
22143int
22144main ()
22145{
22146
22147#ifndef __cplusplus
22148 /* Ultrix mips cc rejects this sort of thing. */
22149 typedef int charset[2];
22150 const charset cs = { 0, 0 };
22151 /* SunOS 4.1.1 cc rejects this. */
22152 char const *const *pcpcc;
22153 char **ppc;
22154 /* NEC SVR4.0.2 mips cc rejects this. */
22155 struct point {int x, y;};
22156 static struct point const zero = {0,0};
22157 /* AIX XL C 1.02.0.0 rejects this.
22158 It does not let you subtract one const X* pointer from another in
22159 an arm of an if-expression whose if-part is not a constant
22160 expression */
22161 const char *g = "string";
22162 pcpcc = &g + (g ? g-g : 0);
22163 /* HPUX 7.0 cc rejects these. */
22164 ++pcpcc;
22165 ppc = (char**) pcpcc;
22166 pcpcc = (char const *const *) ppc;
22167 { /* SCO 3.2v4 cc rejects this sort of thing. */
22168 char tx;
22169 char *t = &tx;
22170 char const *s = 0 ? (char *) 0 : (char const *) 0;
22171
22172 *t++ = 0;
22173 if (s) return 0;
22174 }
22175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22176 int x[] = {25, 17};
22177 const int *foo = &x[0];
22178 ++foo;
22179 }
22180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22181 typedef const int *iptr;
22182 iptr p = 0;
22183 ++p;
22184 }
22185 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22187 struct s { int j; const int *ap[3]; } bx;
22188 struct s *b = &bx; b->j = 5;
22189 }
22190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22191 const int foo = 10;
22192 if (!foo) return 0;
22193 }
22194 return !cs[0] && !zero.x;
22195#endif
22196
22197 ;
22198 return 0;
22199}
22200_ACEOF
22201if ac_fn_c_try_compile "$LINENO"; then :
22202 ac_cv_c_const=yes
22203else
22204 ac_cv_c_const=no
22205fi
22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207fi
22208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22209$as_echo "$ac_cv_c_const" >&6; }
22210if test $ac_cv_c_const = no; then
22211
22212$as_echo "#define const /**/" >>confdefs.h
22213
22214fi
22215
cristy8b350f62009-11-15 23:12:43 +000022216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022217$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022218if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022219 $as_echo_n "(cached) " >&6
22220else
22221 ac_cv_c_inline=no
22222for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225#ifndef __cplusplus
22226typedef int foo_t;
22227static $ac_kw foo_t static_foo () {return 0; }
22228$ac_kw foo_t foo () {return 0; }
22229#endif
22230
22231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022234fi
cristy3ed852e2009-09-05 21:47:34 +000022235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 test "$ac_cv_c_inline" != no && break
22237done
22238
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$ac_cv_c_inline" >&6; }
22242
cristy3ed852e2009-09-05 21:47:34 +000022243case $ac_cv_c_inline in
22244 inline | yes) ;;
22245 *)
22246 case $ac_cv_c_inline in
22247 no) ac_val=;;
22248 *) ac_val=$ac_cv_c_inline;;
22249 esac
22250 cat >>confdefs.h <<_ACEOF
22251#ifndef __cplusplus
22252#define inline $ac_val
22253#endif
22254_ACEOF
22255 ;;
22256esac
22257
cristy8b350f62009-11-15 23:12:43 +000022258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 ac_cv_c_restrict=no
22264 # The order here caters to the fact that C++ does not require restrict.
22265 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022267/* end confdefs.h. */
22268typedef int * int_ptr;
22269 int foo (int_ptr $ac_kw ip) {
22270 return ip[0];
22271 }
22272int
22273main ()
22274{
22275int s[1];
22276 int * $ac_kw t = s;
22277 t[0] = 0;
22278 return foo(t)
22279 ;
22280 return 0;
22281}
22282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022284 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022285fi
cristy3ed852e2009-09-05 21:47:34 +000022286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 test "$ac_cv_c_restrict" != no && break
22288 done
22289
22290fi
cristy8b350f62009-11-15 23:12:43 +000022291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022292$as_echo "$ac_cv_c_restrict" >&6; }
22293
cristy3ed852e2009-09-05 21:47:34 +000022294 case $ac_cv_c_restrict in
22295 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022296 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022297 ;;
22298 *) cat >>confdefs.h <<_ACEOF
22299#define restrict $ac_cv_c_restrict
22300_ACEOF
22301 ;;
22302 esac
22303
cristye80f9cb2013-01-09 01:09:31 +000022304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22305$as_echo_n "checking for working volatile... " >&6; }
22306if ${ac_cv_c_volatile+:} false; then :
22307 $as_echo_n "(cached) " >&6
22308else
22309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22310/* end confdefs.h. */
22311
22312int
22313main ()
22314{
22315
22316volatile int x;
22317int * volatile y = (int *) 0;
22318return !x && !y;
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323if ac_fn_c_try_compile "$LINENO"; then :
22324 ac_cv_c_volatile=yes
22325else
22326 ac_cv_c_volatile=no
22327fi
22328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329fi
22330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22331$as_echo "$ac_cv_c_volatile" >&6; }
22332if test $ac_cv_c_volatile = no; then
22333
22334$as_echo "#define volatile /**/" >>confdefs.h
22335
22336fi
22337
cristy3ed852e2009-09-05 21:47:34 +000022338
22339# If words are stored with the most significant byte first (like
22340# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022342$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022343if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022344 $as_echo_n "(cached) " >&6
22345else
22346 ac_cv_c_bigendian=unknown
22347 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022349/* end confdefs.h. */
22350#ifndef __APPLE_CC__
22351 not a universal capable compiler
22352 #endif
22353 typedef int dummy;
22354
22355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022357
22358 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022359 # there are at least two -arch flags with different values.
22360 ac_arch=
22361 ac_prev=
22362 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22363 if test -n "$ac_prev"; then
22364 case $ac_word in
22365 i?86 | x86_64 | ppc | ppc64)
22366 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22367 ac_arch=$ac_word
22368 else
22369 ac_cv_c_bigendian=universal
22370 break
22371 fi
22372 ;;
22373 esac
22374 ac_prev=
22375 elif test "x$ac_word" = "x-arch"; then
22376 ac_prev=arch
22377 fi
22378 done
cristy3ed852e2009-09-05 21:47:34 +000022379fi
cristy3ed852e2009-09-05 21:47:34 +000022380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 if test $ac_cv_c_bigendian = unknown; then
22382 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022384/* end confdefs.h. */
22385#include <sys/types.h>
22386 #include <sys/param.h>
22387
22388int
22389main ()
22390{
22391#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22392 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22393 && LITTLE_ENDIAN)
22394 bogus endian macros
22395 #endif
22396
22397 ;
22398 return 0;
22399}
22400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022401if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022402 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022404/* end confdefs.h. */
22405#include <sys/types.h>
22406 #include <sys/param.h>
22407
22408int
22409main ()
22410{
22411#if BYTE_ORDER != BIG_ENDIAN
22412 not big endian
22413 #endif
22414
22415 ;
22416 return 0;
22417}
22418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022419if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 ac_cv_c_bigendian=yes
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022423fi
cristy3ed852e2009-09-05 21:47:34 +000022424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022425fi
cristy3ed852e2009-09-05 21:47:34 +000022426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 if test $ac_cv_c_bigendian = unknown; then
22429 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022431/* end confdefs.h. */
22432#include <limits.h>
22433
22434int
22435main ()
22436{
22437#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22438 bogus endian macros
22439 #endif
22440
22441 ;
22442 return 0;
22443}
22444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022445if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022448/* end confdefs.h. */
22449#include <limits.h>
22450
22451int
22452main ()
22453{
22454#ifndef _BIG_ENDIAN
22455 not big endian
22456 #endif
22457
22458 ;
22459 return 0;
22460}
22461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022463 ac_cv_c_bigendian=yes
22464else
cristy8b350f62009-11-15 23:12:43 +000022465 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022466fi
cristy3ed852e2009-09-05 21:47:34 +000022467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy3ed852e2009-09-05 21:47:34 +000022469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 if test $ac_cv_c_bigendian = unknown; then
22472 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022473 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022476/* end confdefs.h. */
22477short int ascii_mm[] =
22478 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22479 short int ascii_ii[] =
22480 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22481 int use_ascii (int i) {
22482 return ascii_mm[i] + ascii_ii[i];
22483 }
22484 short int ebcdic_ii[] =
22485 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22486 short int ebcdic_mm[] =
22487 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22488 int use_ebcdic (int i) {
22489 return ebcdic_mm[i] + ebcdic_ii[i];
22490 }
22491 extern int foo;
22492
22493int
22494main ()
22495{
22496return use_ascii (foo) == use_ebcdic (foo);
22497 ;
22498 return 0;
22499}
22500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022501if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22503 ac_cv_c_bigendian=yes
22504 fi
22505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22506 if test "$ac_cv_c_bigendian" = unknown; then
22507 ac_cv_c_bigendian=no
22508 else
22509 # finding both strings is unlikely to happen, but who knows?
22510 ac_cv_c_bigendian=unknown
22511 fi
22512 fi
cristy3ed852e2009-09-05 21:47:34 +000022513fi
cristy3ed852e2009-09-05 21:47:34 +000022514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515else
cristy8b350f62009-11-15 23:12:43 +000022516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022517/* end confdefs.h. */
22518$ac_includes_default
22519int
22520main ()
22521{
22522
22523 /* Are we little or big endian? From Harbison&Steele. */
22524 union
22525 {
22526 long int l;
22527 char c[sizeof (long int)];
22528 } u;
22529 u.l = 1;
22530 return u.c[sizeof (long int) - 1] == 1;
22531
22532 ;
22533 return 0;
22534}
22535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022536if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 ac_cv_c_bigendian=no
22538else
cristy8b350f62009-11-15 23:12:43 +000022539 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022543fi
22544
cristy3ed852e2009-09-05 21:47:34 +000022545 fi
22546fi
cristy8b350f62009-11-15 23:12:43 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022548$as_echo "$ac_cv_c_bigendian" >&6; }
22549 case $ac_cv_c_bigendian in #(
22550 yes)
cristy8b350f62009-11-15 23:12:43 +000022551 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022552;; #(
22553 no)
22554 ;; #(
22555 universal)
22556
cristy8b350f62009-11-15 23:12:43 +000022557$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022558
22559 ;; #(
22560 *)
cristy98dddb52010-11-04 00:30:15 +000022561 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022562 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022563 esac
22564
22565
cristy501c8042011-05-26 17:46:28 +000022566# Define to a suitable type, if standard headers do not define it.
22567ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22568case $ac_cv_c_int8_t in #(
22569 no|yes) ;; #(
22570 *)
cristy3ed852e2009-09-05 21:47:34 +000022571
22572cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022573#define int8_t $ac_cv_c_int8_t
22574_ACEOF
22575;;
22576esac
22577
22578ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22579case $ac_cv_c_int16_t in #(
22580 no|yes) ;; #(
22581 *)
22582
22583cat >>confdefs.h <<_ACEOF
22584#define int16_t $ac_cv_c_int16_t
22585_ACEOF
22586;;
22587esac
22588
22589ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22590case $ac_cv_c_int32_t in #(
22591 no|yes) ;; #(
22592 *)
22593
22594cat >>confdefs.h <<_ACEOF
22595#define int32_t $ac_cv_c_int32_t
22596_ACEOF
22597;;
22598esac
22599
22600ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22601case $ac_cv_c_int64_t in #(
22602 no|yes) ;; #(
22603 *)
22604
22605cat >>confdefs.h <<_ACEOF
22606#define int64_t $ac_cv_c_int64_t
22607_ACEOF
22608;;
22609esac
22610
22611
cristy045228a2013-06-23 11:00:16 +000022612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22613$as_echo_n "checking for unsigned long long int... " >&6; }
22614if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022615 $as_echo_n "(cached) " >&6
22616else
cristy045228a2013-06-23 11:00:16 +000022617 ac_cv_type_unsigned_long_long_int=yes
22618 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022620/* end confdefs.h. */
22621
22622 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022623 implementations with broken preprocessors. Perhaps this can
22624 be revisited in 2012. In the meantime, code should not expect
22625 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022626 /* Test literals. */
22627 long long int ll = 9223372036854775807ll;
22628 long long int nll = -9223372036854775807LL;
22629 unsigned long long int ull = 18446744073709551615ULL;
22630 /* Test constant expressions. */
22631 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022632 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022633 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022634 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022635 int i = 63;
22636int
22637main ()
22638{
22639/* Test availability of runtime routines for shift and division. */
22640 long long int llmax = 9223372036854775807ll;
22641 unsigned long long int ullmax = 18446744073709551615ull;
22642 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022643 | (llmax / ll) | (llmax % ll)
22644 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22645 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022646 ;
22647 return 0;
22648}
22649
22650_ACEOF
22651if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022652
22653else
22654 ac_cv_type_unsigned_long_long_int=no
22655fi
22656rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658 fi
22659fi
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22661$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22662 if test $ac_cv_type_unsigned_long_long_int = yes; then
22663
22664$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22665
22666 fi
22667
22668
22669
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22671$as_echo_n "checking for long long int... " >&6; }
22672if ${ac_cv_type_long_long_int+:} false; then :
22673 $as_echo_n "(cached) " >&6
22674else
cristy501c8042011-05-26 17:46:28 +000022675 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022676 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022677 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22678 if test $ac_cv_type_long_long_int = yes; then
22679 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022680 :
cristy501c8042011-05-26 17:46:28 +000022681else
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683/* end confdefs.h. */
22684#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022685 #ifndef LLONG_MAX
22686 # define HALF \
22687 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22688 # define LLONG_MAX (HALF - 1 + HALF)
22689 #endif
cristy501c8042011-05-26 17:46:28 +000022690int
22691main ()
22692{
22693long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022694 int i;
22695 for (i = 0; ; i++)
22696 {
22697 long long int m = n << i;
22698 if (m >> i != n)
22699 return 1;
22700 if (LLONG_MAX / 2 < m)
22701 break;
22702 }
22703 return 0;
cristy501c8042011-05-26 17:46:28 +000022704 ;
22705 return 0;
22706}
22707_ACEOF
22708if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022709
cristy501c8042011-05-26 17:46:28 +000022710else
22711 ac_cv_type_long_long_int=no
22712fi
22713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22714 conftest.$ac_objext conftest.beam conftest.$ac_ext
22715fi
22716
cristy5ed9c6e2013-07-14 21:20:31 +000022717 fi
cristy045228a2013-06-23 11:00:16 +000022718 fi
cristy501c8042011-05-26 17:46:28 +000022719fi
22720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22721$as_echo "$ac_cv_type_long_long_int" >&6; }
22722 if test $ac_cv_type_long_long_int = yes; then
22723
22724$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22725
22726 fi
22727
22728
22729
22730 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22731if test "x$ac_cv_type_intmax_t" = xyes; then :
22732
22733$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22734
22735else
22736 test $ac_cv_type_long_long_int = yes \
22737 && ac_type='long long int' \
22738 || ac_type='long int'
22739
22740cat >>confdefs.h <<_ACEOF
22741#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022742_ACEOF
22743
22744fi
22745
22746
cristy501c8042011-05-26 17:46:28 +000022747
22748 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22749if test "x$ac_cv_type_intptr_t" = xyes; then :
22750
22751$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022752
cristy3ed852e2009-09-05 21:47:34 +000022753else
cristy501c8042011-05-26 17:46:28 +000022754 for ac_type in 'int' 'long int' 'long long int'; do
22755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756/* end confdefs.h. */
22757$ac_includes_default
22758int
22759main ()
22760{
22761static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022762test_array [0] = 0;
22763return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022764
22765 ;
22766 return 0;
22767}
22768_ACEOF
22769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022770
22771cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022772#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022773_ACEOF
22774
cristy501c8042011-05-26 17:46:28 +000022775 ac_type=
22776fi
22777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778 test -z "$ac_type" && break
22779 done
cristy3ed852e2009-09-05 21:47:34 +000022780fi
22781
22782
cristy3ed852e2009-09-05 21:47:34 +000022783
cristy501c8042011-05-26 17:46:28 +000022784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22785$as_echo_n "checking for long double... " >&6; }
22786if ${ac_cv_type_long_double+:} false; then :
22787 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022788else
cristy501c8042011-05-26 17:46:28 +000022789 if test "$GCC" = yes; then
22790 ac_cv_type_long_double=yes
22791 else
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793/* end confdefs.h. */
22794/* The Stardent Vistra knows sizeof (long double), but does
22795 not support it. */
22796 long double foo = 0.0L;
22797int
22798main ()
22799{
22800static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22801 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022802test_array [0] = 0;
22803return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022804
cristy501c8042011-05-26 17:46:28 +000022805 ;
22806 return 0;
22807}
cristy3ed852e2009-09-05 21:47:34 +000022808_ACEOF
cristy501c8042011-05-26 17:46:28 +000022809if ac_fn_c_try_compile "$LINENO"; then :
22810 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022811else
cristy501c8042011-05-26 17:46:28 +000022812 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy501c8042011-05-26 17:46:28 +000022814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815 fi
cristy3ed852e2009-09-05 21:47:34 +000022816fi
cristy501c8042011-05-26 17:46:28 +000022817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22818$as_echo "$ac_cv_type_long_double" >&6; }
22819 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022820
cristy501c8042011-05-26 17:46:28 +000022821$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022822
cristy501c8042011-05-26 17:46:28 +000022823 fi
22824
cristy3ed852e2009-09-05 21:47:34 +000022825
cristy8b350f62009-11-15 23:12:43 +000022826 { $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 +000022827$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022828if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022829 $as_echo_n "(cached) " >&6
22830else
cristy8b350f62009-11-15 23:12:43 +000022831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022832/* end confdefs.h. */
22833#include <float.h>
22834 long double const a[] =
22835 {
22836 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22837 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22838 };
22839 long double
22840 f (long double x)
22841 {
22842 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22843 + (x ? f (x) : 'c'));
22844 }
22845
22846int
22847main ()
22848{
22849static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22850 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22851 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22852 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22853 && (int) LDBL_EPSILON == 0
22854 )];
cristy14fefe52012-05-21 00:59:18 +000022855test_array [0] = 0;
22856return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022857
22858 ;
22859 return 0;
22860}
22861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022862if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022863 ac_cv_type_long_double_wider=yes
22864else
cristy8b350f62009-11-15 23:12:43 +000022865 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022866fi
cristy3ed852e2009-09-05 21:47:34 +000022867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868fi
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo "$ac_cv_type_long_double_wider" >&6; }
22871 if test $ac_cv_type_long_double_wider = yes; then
22872
cristy8b350f62009-11-15 23:12:43 +000022873$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022874
22875 fi
22876
22877
cristy045228a2013-06-23 11:00:16 +000022878
cristy501c8042011-05-26 17:46:28 +000022879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22880$as_echo_n "checking for long long int... " >&6; }
22881if ${ac_cv_type_long_long_int+:} false; then :
22882 $as_echo_n "(cached) " >&6
22883else
cristy501c8042011-05-26 17:46:28 +000022884 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022885 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022886 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22887 if test $ac_cv_type_long_long_int = yes; then
22888 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022889 :
cristy501c8042011-05-26 17:46:28 +000022890else
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022894 #ifndef LLONG_MAX
22895 # define HALF \
22896 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22897 # define LLONG_MAX (HALF - 1 + HALF)
22898 #endif
cristy501c8042011-05-26 17:46:28 +000022899int
22900main ()
22901{
22902long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022903 int i;
22904 for (i = 0; ; i++)
22905 {
22906 long long int m = n << i;
22907 if (m >> i != n)
22908 return 1;
22909 if (LLONG_MAX / 2 < m)
22910 break;
22911 }
22912 return 0;
cristy501c8042011-05-26 17:46:28 +000022913 ;
22914 return 0;
22915}
22916_ACEOF
22917if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022918
cristy501c8042011-05-26 17:46:28 +000022919else
22920 ac_cv_type_long_long_int=no
22921fi
22922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22923 conftest.$ac_objext conftest.beam conftest.$ac_ext
22924fi
22925
cristy5ed9c6e2013-07-14 21:20:31 +000022926 fi
cristy045228a2013-06-23 11:00:16 +000022927 fi
cristy501c8042011-05-26 17:46:28 +000022928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22930$as_echo "$ac_cv_type_long_long_int" >&6; }
22931 if test $ac_cv_type_long_long_int = yes; then
22932
22933$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22934
22935 fi
22936
22937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22938$as_echo_n "checking for mbstate_t... " >&6; }
22939if ${ac_cv_type_mbstate_t+:} false; then :
22940 $as_echo_n "(cached) " >&6
22941else
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943/* end confdefs.h. */
22944$ac_includes_default
22945# include <wchar.h>
22946int
22947main ()
22948{
22949mbstate_t x; return sizeof x;
22950 ;
22951 return 0;
22952}
22953_ACEOF
22954if ac_fn_c_try_compile "$LINENO"; then :
22955 ac_cv_type_mbstate_t=yes
22956else
22957 ac_cv_type_mbstate_t=no
22958fi
22959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960fi
22961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22962$as_echo "$ac_cv_type_mbstate_t" >&6; }
22963 if test $ac_cv_type_mbstate_t = yes; then
22964
22965$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22966
22967 else
22968
22969$as_echo "#define mbstate_t int" >>confdefs.h
22970
22971 fi
22972ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22973if test "x$ac_cv_type_mode_t" = xyes; then :
22974
22975else
22976
22977cat >>confdefs.h <<_ACEOF
22978#define mode_t int
22979_ACEOF
22980
22981fi
22982
22983ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22984if test "x$ac_cv_type_off_t" = xyes; then :
22985
22986else
22987
22988cat >>confdefs.h <<_ACEOF
22989#define off_t long int
22990_ACEOF
22991
22992fi
22993
22994ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22995if test "x$ac_cv_type_pid_t" = xyes; then :
22996
22997else
22998
22999cat >>confdefs.h <<_ACEOF
23000#define pid_t int
23001_ACEOF
23002
23003fi
23004
23005ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23006if test "x$ac_cv_type_size_t" = xyes; then :
23007
23008else
23009
23010cat >>confdefs.h <<_ACEOF
23011#define size_t unsigned int
23012_ACEOF
23013
23014fi
23015
23016ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23017if test "x$ac_cv_type_ssize_t" = xyes; then :
23018
23019else
23020
23021cat >>confdefs.h <<_ACEOF
23022#define ssize_t int
23023_ACEOF
23024
23025fi
23026
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23028$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23029if ${ac_cv_type_uid_t+:} false; then :
23030 $as_echo_n "(cached) " >&6
23031else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033/* end confdefs.h. */
23034#include <sys/types.h>
23035
23036_ACEOF
23037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23038 $EGREP "uid_t" >/dev/null 2>&1; then :
23039 ac_cv_type_uid_t=yes
23040else
23041 ac_cv_type_uid_t=no
23042fi
23043rm -f conftest*
23044
23045fi
23046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23047$as_echo "$ac_cv_type_uid_t" >&6; }
23048if test $ac_cv_type_uid_t = no; then
23049
23050$as_echo "#define uid_t int" >>confdefs.h
23051
23052
23053$as_echo "#define gid_t int" >>confdefs.h
23054
23055fi
23056
23057ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23058case $ac_cv_c_uint8_t in #(
23059 no|yes) ;; #(
23060 *)
23061
23062$as_echo "#define _UINT8_T 1" >>confdefs.h
23063
23064
23065cat >>confdefs.h <<_ACEOF
23066#define uint8_t $ac_cv_c_uint8_t
23067_ACEOF
23068;;
23069 esac
23070
23071ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23072case $ac_cv_c_uint16_t in #(
23073 no|yes) ;; #(
23074 *)
23075
23076
23077cat >>confdefs.h <<_ACEOF
23078#define uint16_t $ac_cv_c_uint16_t
23079_ACEOF
23080;;
23081 esac
23082
23083ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23084case $ac_cv_c_uint32_t in #(
23085 no|yes) ;; #(
23086 *)
23087
23088$as_echo "#define _UINT32_T 1" >>confdefs.h
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define uint32_t $ac_cv_c_uint32_t
23093_ACEOF
23094;;
23095 esac
23096
23097ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23098case $ac_cv_c_uint64_t in #(
23099 no|yes) ;; #(
23100 *)
23101
23102$as_echo "#define _UINT64_T 1" >>confdefs.h
23103
23104
23105cat >>confdefs.h <<_ACEOF
23106#define uint64_t $ac_cv_c_uint64_t
23107_ACEOF
23108;;
23109 esac
23110
23111
cristy501c8042011-05-26 17:46:28 +000023112
23113 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23114if test "x$ac_cv_type_uintmax_t" = xyes; then :
23115
23116$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23117
23118else
23119 test $ac_cv_type_unsigned_long_long_int = yes \
23120 && ac_type='unsigned long long int' \
23121 || ac_type='unsigned long int'
23122
23123cat >>confdefs.h <<_ACEOF
23124#define uintmax_t $ac_type
23125_ACEOF
23126
23127fi
23128
23129
23130
23131 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23132if test "x$ac_cv_type_uintptr_t" = xyes; then :
23133
23134$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23135
23136else
23137 for ac_type in 'unsigned int' 'unsigned long int' \
23138 'unsigned long long int'; do
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140/* end confdefs.h. */
23141$ac_includes_default
23142int
23143main ()
23144{
23145static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023146test_array [0] = 0;
23147return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023148
23149 ;
23150 return 0;
23151}
23152_ACEOF
23153if ac_fn_c_try_compile "$LINENO"; then :
23154
23155cat >>confdefs.h <<_ACEOF
23156#define uintptr_t $ac_type
23157_ACEOF
23158
23159 ac_type=
23160fi
23161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 test -z "$ac_type" && break
23163 done
23164fi
23165
23166
23167
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23169$as_echo_n "checking for unsigned long long int... " >&6; }
23170if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23171 $as_echo_n "(cached) " >&6
23172else
cristy045228a2013-06-23 11:00:16 +000023173 ac_cv_type_unsigned_long_long_int=yes
23174 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023176/* end confdefs.h. */
23177
23178 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023179 implementations with broken preprocessors. Perhaps this can
23180 be revisited in 2012. In the meantime, code should not expect
23181 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023182 /* Test literals. */
23183 long long int ll = 9223372036854775807ll;
23184 long long int nll = -9223372036854775807LL;
23185 unsigned long long int ull = 18446744073709551615ULL;
23186 /* Test constant expressions. */
23187 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023188 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023189 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023190 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023191 int i = 63;
23192int
23193main ()
23194{
23195/* Test availability of runtime routines for shift and division. */
23196 long long int llmax = 9223372036854775807ll;
23197 unsigned long long int ullmax = 18446744073709551615ull;
23198 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023199 | (llmax / ll) | (llmax % ll)
23200 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23201 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023202 ;
23203 return 0;
23204}
23205
23206_ACEOF
23207if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023208
cristy501c8042011-05-26 17:46:28 +000023209else
23210 ac_cv_type_unsigned_long_long_int=no
23211fi
23212rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023214 fi
cristy501c8042011-05-26 17:46:28 +000023215fi
23216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23217$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23218 if test $ac_cv_type_unsigned_long_long_int = yes; then
23219
23220$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23221
23222 fi
23223
23224
cristyfec31822013-05-23 12:32:12 +000023225# Float_t and double_t are intended to be the the most efficient type.
23226ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23227"
23228if test "x$ac_cv_type_float_t" = xyes; then :
23229
23230cat >>confdefs.h <<_ACEOF
23231#define HAVE_FLOAT_T 1
23232_ACEOF
23233
23234
23235fi
23236
23237ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23238"
23239if test "x$ac_cv_type_double_t" = xyes; then :
23240
23241cat >>confdefs.h <<_ACEOF
23242#define HAVE_DOUBLE_T 1
23243_ACEOF
23244
23245
23246fi
23247
23248# The cast to long int works around a bug in the HP C Compiler
23249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251# This bug is HP SR number 8606223364.
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23253$as_echo_n "checking size of float_t... " >&6; }
23254if ${ac_cv_sizeof_float_t+:} false; then :
23255 $as_echo_n "(cached) " >&6
23256else
23257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23258"; then :
23259
23260else
23261 if test "$ac_cv_type_float_t" = yes; then
23262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23264as_fn_error 77 "cannot compute sizeof (float_t)
23265See \`config.log' for more details" "$LINENO" 5; }
23266 else
23267 ac_cv_sizeof_float_t=0
23268 fi
23269fi
23270
23271fi
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23273$as_echo "$ac_cv_sizeof_float_t" >&6; }
23274
23275
23276
23277cat >>confdefs.h <<_ACEOF
23278#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23279_ACEOF
23280
23281
23282# The cast to long int works around a bug in the HP C Compiler
23283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285# This bug is HP SR number 8606223364.
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23287$as_echo_n "checking size of double_t... " >&6; }
23288if ${ac_cv_sizeof_double_t+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290else
23291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23292"; then :
23293
23294else
23295 if test "$ac_cv_type_double_t" = yes; then
23296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23298as_fn_error 77 "cannot compute sizeof (double_t)
23299See \`config.log' for more details" "$LINENO" 5; }
23300 else
23301 ac_cv_sizeof_double_t=0
23302 fi
23303fi
23304
23305fi
23306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23307$as_echo "$ac_cv_sizeof_double_t" >&6; }
23308
23309
23310
23311cat >>confdefs.h <<_ACEOF
23312#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23313_ACEOF
23314
23315
23316
cristy9b86f202012-11-28 21:55:35 +000023317# Get size of float, double and long double for comparaison.
23318# The cast to long int works around a bug in the HP C Compiler
23319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23321# This bug is HP SR number 8606223364.
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23323$as_echo_n "checking size of float... " >&6; }
23324if ${ac_cv_sizeof_float+:} false; then :
23325 $as_echo_n "(cached) " >&6
23326else
23327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23328
23329else
23330 if test "$ac_cv_type_float" = yes; then
23331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23333as_fn_error 77 "cannot compute sizeof (float)
23334See \`config.log' for more details" "$LINENO" 5; }
23335 else
23336 ac_cv_sizeof_float=0
23337 fi
23338fi
23339
23340fi
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23342$as_echo "$ac_cv_sizeof_float" >&6; }
23343
23344
23345
23346cat >>confdefs.h <<_ACEOF
23347#define SIZEOF_FLOAT $ac_cv_sizeof_float
23348_ACEOF
23349
23350
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23356$as_echo_n "checking size of double... " >&6; }
23357if ${ac_cv_sizeof_double+:} false; then :
23358 $as_echo_n "(cached) " >&6
23359else
23360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23361
23362else
23363 if test "$ac_cv_type_double" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23366as_fn_error 77 "cannot compute sizeof (double)
23367See \`config.log' for more details" "$LINENO" 5; }
23368 else
23369 ac_cv_sizeof_double=0
23370 fi
23371fi
23372
23373fi
23374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23375$as_echo "$ac_cv_sizeof_double" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23381_ACEOF
23382
23383
cristyfec31822013-05-23 12:32:12 +000023384# The cast to long int works around a bug in the HP C Compiler
23385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387# This bug is HP SR number 8606223364.
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23389$as_echo_n "checking size of long double... " >&6; }
23390if ${ac_cv_sizeof_long_double+:} false; then :
23391 $as_echo_n "(cached) " >&6
23392else
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23394
23395else
23396 if test "$ac_cv_type_long_double" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23399as_fn_error 77 "cannot compute sizeof (long double)
23400See \`config.log' for more details" "$LINENO" 5; }
23401 else
23402 ac_cv_sizeof_long_double=0
23403 fi
23404fi
23405
23406fi
23407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23408$as_echo "$ac_cv_sizeof_long_double" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23414_ACEOF
23415
23416
cristyf0cf9a22012-10-24 12:05:01 +000023417
cristy3ed852e2009-09-05 21:47:34 +000023418# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23419# The cast to long int works around a bug in the HP C Compiler
23420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 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 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430else
cristy8b350f62009-11-15 23:12:43 +000023431 if test "$ac_cv_type_signed_short" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023434as_fn_error 77 "cannot compute sizeof (signed short)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_signed_short=0
23438 fi
23439fi
cristy8b350f62009-11-15 23:12:43 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23449_ACEOF
23450
23451
23452
23453# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023460if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
cristy8b350f62009-11-15 23:12:43 +000023463 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 +000023464
cristy3ed852e2009-09-05 21:47:34 +000023465else
cristy8b350f62009-11-15 23:12:43 +000023466 if test "$ac_cv_type_unsigned_short" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023469as_fn_error 77 "cannot compute sizeof (unsigned short)
23470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023471 else
23472 ac_cv_sizeof_unsigned_short=0
23473 fi
23474fi
cristy8b350f62009-11-15 23:12:43 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23479
23480
23481
23482cat >>confdefs.h <<_ACEOF
23483#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23484_ACEOF
23485
23486
23487
23488# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023495if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 $as_echo_n "(cached) " >&6
23497else
cristy8b350f62009-11-15 23:12:43 +000023498 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 +000023499
cristy3ed852e2009-09-05 21:47:34 +000023500else
cristy8b350f62009-11-15 23:12:43 +000023501 if test "$ac_cv_type_signed_int" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023504as_fn_error 77 "cannot compute sizeof (signed int)
23505See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023506 else
23507 ac_cv_sizeof_signed_int=0
23508 fi
23509fi
cristy8b350f62009-11-15 23:12:43 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511fi
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23519_ACEOF
23520
23521
23522
23523# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23524# The cast to long int works around a bug in the HP C Compiler
23525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023529$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023530if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 $as_echo_n "(cached) " >&6
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 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 +000023534
cristy3ed852e2009-09-05 21:47:34 +000023535else
cristy8b350f62009-11-15 23:12:43 +000023536 if test "$ac_cv_type_unsigned_int" = yes; then
23537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023539as_fn_error 77 "cannot compute sizeof (unsigned int)
23540See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023541 else
23542 ac_cv_sizeof_unsigned_int=0
23543 fi
23544fi
cristy8b350f62009-11-15 23:12:43 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546fi
cristy8b350f62009-11-15 23:12:43 +000023547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23549
23550
23551
23552cat >>confdefs.h <<_ACEOF
23553#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23554_ACEOF
23555
23556
23557
23558# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23559# The cast to long int works around a bug in the HP C Compiler
23560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23562# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023565if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023566 $as_echo_n "(cached) " >&6
23567else
cristy8b350f62009-11-15 23:12:43 +000023568 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 +000023569
cristy3ed852e2009-09-05 21:47:34 +000023570else
cristy8b350f62009-11-15 23:12:43 +000023571 if test "$ac_cv_type_signed_long" = yes; then
23572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023574as_fn_error 77 "cannot compute sizeof (signed long)
23575See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023576 else
23577 ac_cv_sizeof_signed_long=0
23578 fi
23579fi
cristy8b350f62009-11-15 23:12:43 +000023580
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23584
23585
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23589_ACEOF
23590
23591
23592
23593# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023600if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023601 $as_echo_n "(cached) " >&6
23602else
cristy8b350f62009-11-15 23:12:43 +000023603 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 +000023604
cristy3ed852e2009-09-05 21:47:34 +000023605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$ac_cv_type_unsigned_long" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023609as_fn_error 77 "cannot compute sizeof (unsigned long)
23610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023611 else
23612 ac_cv_sizeof_unsigned_long=0
23613 fi
23614fi
cristy8b350f62009-11-15 23:12:43 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23624_ACEOF
23625
23626
23627
23628# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23629# 'signed long long' is not supported then the value defined is zero.
23630# The cast to long int works around a bug in the HP C Compiler
23631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23633# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023636if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023637 $as_echo_n "(cached) " >&6
23638else
cristy8b350f62009-11-15 23:12:43 +000023639 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 +000023640
cristy3ed852e2009-09-05 21:47:34 +000023641else
cristy8b350f62009-11-15 23:12:43 +000023642 if test "$ac_cv_type_signed_long_long" = yes; then
23643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023645as_fn_error 77 "cannot compute sizeof (signed long long)
23646See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023647 else
23648 ac_cv_sizeof_signed_long_long=0
23649 fi
23650fi
cristy8b350f62009-11-15 23:12:43 +000023651
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23655
23656
23657
23658cat >>confdefs.h <<_ACEOF
23659#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23660_ACEOF
23661
23662
23663
23664# Obtain size of a 'unsigned long long' and define as
23665# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23666# supported then the value defined is zero.
23667# The cast to long int works around a bug in the HP C Compiler
23668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023672$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023673if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023674 $as_echo_n "(cached) " >&6
23675else
cristy8b350f62009-11-15 23:12:43 +000023676 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 +000023677
cristy3ed852e2009-09-05 21:47:34 +000023678else
cristy8b350f62009-11-15 23:12:43 +000023679 if test "$ac_cv_type_unsigned_long_long" = yes; then
23680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023682as_fn_error 77 "cannot compute sizeof (unsigned long long)
23683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023684 else
23685 ac_cv_sizeof_unsigned_long_long=0
23686 fi
23687fi
cristy8b350f62009-11-15 23:12:43 +000023688
cristy3ed852e2009-09-05 21:47:34 +000023689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23692
23693
23694
23695cat >>confdefs.h <<_ACEOF
23696#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23697_ACEOF
23698
23699
23700
cristyfec31822013-05-23 12:32:12 +000023701# Obtain size of off_t and define as SIZEOF_OFF_T
23702# The cast to long int works around a bug in the HP C Compiler
23703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23705# This bug is HP SR number 8606223364.
23706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23707$as_echo_n "checking size of off_t... " >&6; }
23708if ${ac_cv_sizeof_off_t+:} false; then :
23709 $as_echo_n "(cached) " >&6
23710else
23711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23712
23713else
23714 if test "$ac_cv_type_off_t" = yes; then
23715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23717as_fn_error 77 "cannot compute sizeof (off_t)
23718See \`config.log' for more details" "$LINENO" 5; }
23719 else
23720 ac_cv_sizeof_off_t=0
23721 fi
23722fi
23723
23724fi
23725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23726$as_echo "$ac_cv_sizeof_off_t" >&6; }
23727
23728
23729
23730cat >>confdefs.h <<_ACEOF
23731#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23732_ACEOF
23733
23734
23735
23736# Obtain size of size_t and define as SIZEOF_SIZE_T
23737# The cast to long int works around a bug in the HP C Compiler
23738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23740# This bug is HP SR number 8606223364.
23741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23742$as_echo_n "checking size of size_t... " >&6; }
23743if ${ac_cv_sizeof_size_t+:} false; then :
23744 $as_echo_n "(cached) " >&6
23745else
23746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23747
23748else
23749 if test "$ac_cv_type_size_t" = yes; then
23750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23752as_fn_error 77 "cannot compute sizeof (size_t)
23753See \`config.log' for more details" "$LINENO" 5; }
23754 else
23755 ac_cv_sizeof_size_t=0
23756 fi
23757fi
23758
23759fi
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23761$as_echo "$ac_cv_sizeof_size_t" >&6; }
23762
23763
23764
23765cat >>confdefs.h <<_ACEOF
23766#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23767_ACEOF
23768
23769
23770
23771# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23772# The cast to long int works around a bug in the HP C Compiler
23773# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23774# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23775# This bug is HP SR number 8606223364.
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23777$as_echo_n "checking size of ssize_t... " >&6; }
23778if ${ac_cv_sizeof_ssize_t+:} false; then :
23779 $as_echo_n "(cached) " >&6
23780else
23781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23782
23783else
23784 if test "$ac_cv_type_ssize_t" = yes; then
23785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23787as_fn_error 77 "cannot compute sizeof (ssize_t)
23788See \`config.log' for more details" "$LINENO" 5; }
23789 else
23790 ac_cv_sizeof_ssize_t=0
23791 fi
23792fi
23793
23794fi
23795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23796$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23797
23798
23799
23800cat >>confdefs.h <<_ACEOF
23801#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23802_ACEOF
23803
23804
23805
cristy3ed852e2009-09-05 21:47:34 +000023806# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23807# The cast to long int works around a bug in the HP C Compiler
23808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23810# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023813if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 $as_echo_n "(cached) " >&6
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 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 +000023817
cristy3ed852e2009-09-05 21:47:34 +000023818else
cristy8b350f62009-11-15 23:12:43 +000023819 if test "$ac_cv_type_unsigned_intp" = yes; then
23820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023822as_fn_error 77 "cannot compute sizeof (unsigned int*)
23823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023824 else
23825 ac_cv_sizeof_unsigned_intp=0
23826 fi
23827fi
cristy8b350f62009-11-15 23:12:43 +000023828
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23832
23833
23834
23835cat >>confdefs.h <<_ACEOF
23836#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23837_ACEOF
23838
23839
23840
23841#
23842# Compute sized types for current CPU and compiler options.
23843#
23844
cristy8b350f62009-11-15 23:12:43 +000023845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking for signed 8-bit type... " >&6; }
23847INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23849$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023850
23851
cristy8b350f62009-11-15 23:12:43 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23854UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23856$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023857
23858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for signed 16-bit type... " >&6; }
23861INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23863$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23868UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23870$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for signed 32-bit type... " >&6; }
23875INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023876INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023877if test $ac_cv_sizeof_signed_int -eq 4; then
23878 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023879 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023880elif test $ac_cv_sizeof_signed_long -eq 4; then
23881 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023882 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristyad38abe2012-12-23 23:03:21 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23885$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023886
23887
cristy6d5e20f2011-04-25 13:48:54 +000023888
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23891UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023892UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023893if test $ac_cv_sizeof_unsigned_int -eq 4; then
23894 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023895 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023896elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23897 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023898 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023899fi
cristyad38abe2012-12-23 23:03:21 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23901$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023902
23903
cristy6d5e20f2011-04-25 13:48:54 +000023904
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking for signed 64-bit type... " >&6; }
23907INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023908INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023909if test $ac_cv_sizeof_signed_long -eq 8; then
23910 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023911 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023912elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23913 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023914 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023915fi
cristy3a99dcf2011-12-17 01:29:40 +000023916case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023917 mingw* )
23918 INT64_F='"I64"'
23919 ;;
23920esac
cristyad38abe2012-12-23 23:03:21 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23922$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023923
23924
cristy6d5e20f2011-04-25 13:48:54 +000023925
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23928UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023929UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023930if test $ac_cv_sizeof_unsigned_long -eq 8; then
23931 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023932 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023933elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23934 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023935 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023936fi
cristy3a99dcf2011-12-17 01:29:40 +000023937case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023938 mingw* )
23939 UINT64_F='"I64"'
23940 ;;
23941esac
cristyad38abe2012-12-23 23:03:21 +000023942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23943$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023944
23945
cristy6d5e20f2011-04-25 13:48:54 +000023946
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking for unsigned maximum type... " >&6; }
23949UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023950UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023951if test "$UINT64_T" != 'none'; then
23952 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023953 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023954elif test "$UINT32_T" != 'none'; then
23955 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023956 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023957fi
cristyad38abe2012-12-23 23:03:21 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23959$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023960
23961
cristy6d5e20f2011-04-25 13:48:54 +000023962
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo_n "checking for pointer difference type... " >&6; }
23965UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023966UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023967if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23968 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023969 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023970elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23971 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023972 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023973fi
cristyad38abe2012-12-23 23:03:21 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23975$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023976
23977
cristy6d5e20f2011-04-25 13:48:54 +000023978
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023982/* end confdefs.h. */
23983
23984int
23985main ()
23986{
23987{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23988 ;
23989 return 0;
23990}
23991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023992if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23994$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023995else
cristyad38abe2012-12-23 23:03:21 +000023996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23997$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024001/* end confdefs.h. */
24002
24003int
24004main ()
24005{
24006{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24007 ;
24008 return 0;
24009}
24010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024011if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24013$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024014
cristy8b350f62009-11-15 23:12:43 +000024015$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024016
24017else
cristyad38abe2012-12-23 23:03:21 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024020
cristy8b350f62009-11-15 23:12:43 +000024021$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024022
24023fi
cristy3ed852e2009-09-05 21:47:34 +000024024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025fi
cristy3ed852e2009-09-05 21:47:34 +000024026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027
24028########
24029#
24030# Check for functions
24031#
24032########
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024035if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024036 $as_echo_n "(cached) " >&6
24037else
cristy8b350f62009-11-15 23:12:43 +000024038 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024039 ac_cv_func_closedir_void=yes
24040else
cristy8b350f62009-11-15 23:12:43 +000024041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024042/* end confdefs.h. */
24043$ac_includes_default
24044#include <$ac_header_dirent>
24045#ifndef __cplusplus
24046int closedir ();
24047#endif
24048
24049int
24050main ()
24051{
24052return closedir (opendir (".")) != 0;
24053 ;
24054 return 0;
24055}
24056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024057if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024058 ac_cv_func_closedir_void=no
24059else
cristy8b350f62009-11-15 23:12:43 +000024060 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024061fi
cristy8b350f62009-11-15 23:12:43 +000024062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24063 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024064fi
24065
cristy3ed852e2009-09-05 21:47:34 +000024066fi
cristy8b350f62009-11-15 23:12:43 +000024067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024068$as_echo "$ac_cv_func_closedir_void" >&6; }
24069if test $ac_cv_func_closedir_void = yes; then
24070
cristy8b350f62009-11-15 23:12:43 +000024071$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024072
24073fi
24074
cristycd4c5312009-11-22 01:19:08 +000024075
24076
24077
24078 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024079do :
24080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024081ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24082"
cristy98dddb52010-11-04 00:30:15 +000024083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024084 cat >>confdefs.h <<_ACEOF
24085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24086_ACEOF
24087
24088fi
24089
24090done
24091
cristycd4c5312009-11-22 01:19:08 +000024092
24093
24094
24095
24096
24097
24098
cristy3ed852e2009-09-05 21:47:34 +000024099for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024100do :
24101 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024102if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024103 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024104#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024105_ACEOF
24106
24107fi
24108done
24109
cristy8b350f62009-11-15 23:12:43 +000024110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024111$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024112if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024113 $as_echo_n "(cached) " >&6
24114else
cristy8b350f62009-11-15 23:12:43 +000024115 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024116 ac_cv_func_mmap_fixed_mapped=no
24117else
cristy8b350f62009-11-15 23:12:43 +000024118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024119/* end confdefs.h. */
24120$ac_includes_default
24121/* malloc might have been renamed as rpl_malloc. */
24122#undef malloc
24123
24124/* Thanks to Mike Haertel and Jim Avera for this test.
24125 Here is a matrix of mmap possibilities:
24126 mmap private not fixed
24127 mmap private fixed at somewhere currently unmapped
24128 mmap private fixed at somewhere already mapped
24129 mmap shared not fixed
24130 mmap shared fixed at somewhere currently unmapped
24131 mmap shared fixed at somewhere already mapped
24132 For private mappings, we should verify that changes cannot be read()
24133 back from the file, nor mmap's back from the file at a different
24134 address. (There have been systems where private was not correctly
24135 implemented like the infamous i386 svr4.0, and systems where the
24136 VM page cache was not coherent with the file system buffer cache
24137 like early versions of FreeBSD and possibly contemporary NetBSD.)
24138 For shared mappings, we should conversely verify that changes get
24139 propagated back to all the places they're supposed to be.
24140
24141 Grep wants private fixed already mapped.
24142 The main things grep needs to know about mmap are:
24143 * does it exist and is it safe to write into the mmap'd area
24144 * how to use it (BSD variants) */
24145
24146#include <fcntl.h>
24147#include <sys/mman.h>
24148
24149#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24150char *malloc ();
24151#endif
24152
24153/* This mess was copied from the GNU getpagesize.h. */
24154#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024155# ifdef _SC_PAGESIZE
24156# define getpagesize() sysconf(_SC_PAGESIZE)
24157# else /* no _SC_PAGESIZE */
24158# ifdef HAVE_SYS_PARAM_H
24159# include <sys/param.h>
24160# ifdef EXEC_PAGESIZE
24161# define getpagesize() EXEC_PAGESIZE
24162# else /* no EXEC_PAGESIZE */
24163# ifdef NBPG
24164# define getpagesize() NBPG * CLSIZE
24165# ifndef CLSIZE
24166# define CLSIZE 1
24167# endif /* no CLSIZE */
24168# else /* no NBPG */
24169# ifdef NBPC
24170# define getpagesize() NBPC
24171# else /* no NBPC */
24172# ifdef PAGESIZE
24173# define getpagesize() PAGESIZE
24174# endif /* PAGESIZE */
24175# endif /* no NBPC */
24176# endif /* no NBPG */
24177# endif /* no EXEC_PAGESIZE */
24178# else /* no HAVE_SYS_PARAM_H */
24179# define getpagesize() 8192 /* punt totally */
24180# endif /* no HAVE_SYS_PARAM_H */
24181# endif /* no _SC_PAGESIZE */
24182
24183#endif /* no HAVE_GETPAGESIZE */
24184
24185int
24186main ()
24187{
24188 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024189 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024190 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024191 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024192
24193 pagesize = getpagesize ();
24194
24195 /* First, make a file with some known garbage in it. */
24196 data = (char *) malloc (pagesize);
24197 if (!data)
24198 return 1;
24199 for (i = 0; i < pagesize; ++i)
24200 *(data + i) = rand ();
24201 umask (0);
24202 fd = creat ("conftest.mmap", 0600);
24203 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024204 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024205 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024206 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024207 close (fd);
24208
cristycd4c5312009-11-22 01:19:08 +000024209 /* Next, check that the tail of a page is zero-filled. File must have
24210 non-zero length, otherwise we risk SIGBUS for entire page. */
24211 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24212 if (fd2 < 0)
24213 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024214 cdata2 = "";
24215 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024216 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024217 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024218 if (data2 == MAP_FAILED)
24219 return 6;
24220 for (i = 0; i < pagesize; ++i)
24221 if (*(data2 + i))
24222 return 7;
24223 close (fd2);
24224 if (munmap (data2, pagesize))
24225 return 8;
24226
cristy3ed852e2009-09-05 21:47:34 +000024227 /* Next, try to mmap the file at a fixed address which already has
24228 something else allocated at it. If we can, also make sure that
24229 we see the same garbage. */
24230 fd = open ("conftest.mmap", O_RDWR);
24231 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024232 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024233 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24234 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024235 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024236 for (i = 0; i < pagesize; ++i)
24237 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024238 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024239
24240 /* Finally, make sure that changes to the mapped area do not
24241 percolate back to the file as seen by read(). (This is a bug on
24242 some variants of i386 svr4.0.) */
24243 for (i = 0; i < pagesize; ++i)
24244 *(data2 + i) = *(data2 + i) + 1;
24245 data3 = (char *) malloc (pagesize);
24246 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024247 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024248 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024249 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024250 for (i = 0; i < pagesize; ++i)
24251 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024252 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024253 close (fd);
24254 return 0;
24255}
24256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024257if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024258 ac_cv_func_mmap_fixed_mapped=yes
24259else
cristy8b350f62009-11-15 23:12:43 +000024260 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024261fi
cristy8b350f62009-11-15 23:12:43 +000024262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24263 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024264fi
24265
cristy3ed852e2009-09-05 21:47:34 +000024266fi
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24269if test $ac_cv_func_mmap_fixed_mapped = yes; then
24270
cristy8b350f62009-11-15 23:12:43 +000024271$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024272
24273fi
cristycd4c5312009-11-22 01:19:08 +000024274rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024275
cristy3ed852e2009-09-05 21:47:34 +000024276for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024277do :
24278 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024279if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024280 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024281#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024282_ACEOF
24283
24284fi
24285
24286done
24287
cristy3ed852e2009-09-05 21:47:34 +000024288for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024289do :
24290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024293 cat >>confdefs.h <<_ACEOF
24294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24295_ACEOF
24296
24297fi
24298done
24299
24300if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024303if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024304 $as_echo_n "(cached) " >&6
24305else
cristy8b350f62009-11-15 23:12:43 +000024306 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 ac_cv_func_fork_works=cross
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024310/* end confdefs.h. */
24311$ac_includes_default
24312int
24313main ()
24314{
24315
24316 /* By Ruediger Kuhlmann. */
24317 return fork () < 0;
24318
24319 ;
24320 return 0;
24321}
24322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024323if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024324 ac_cv_func_fork_works=yes
24325else
cristy8b350f62009-11-15 23:12:43 +000024326 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024327fi
cristy8b350f62009-11-15 23:12:43 +000024328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24329 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024330fi
24331
cristy3ed852e2009-09-05 21:47:34 +000024332fi
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo "$ac_cv_func_fork_works" >&6; }
24335
24336else
24337 ac_cv_func_fork_works=$ac_cv_func_fork
24338fi
24339if test "x$ac_cv_func_fork_works" = xcross; then
24340 case $host in
24341 *-*-amigaos* | *-*-msdosdjgpp*)
24342 # Override, as these systems have only a dummy fork() stub
24343 ac_cv_func_fork_works=no
24344 ;;
24345 *)
24346 ac_cv_func_fork_works=yes
24347 ;;
24348 esac
cristy8b350f62009-11-15 23:12:43 +000024349 { $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 +000024350$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24351fi
24352ac_cv_func_vfork_works=$ac_cv_func_vfork
24353if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024355$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024356if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024357 $as_echo_n "(cached) " >&6
24358else
cristy8b350f62009-11-15 23:12:43 +000024359 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 ac_cv_func_vfork_works=cross
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024363/* end confdefs.h. */
24364/* Thanks to Paul Eggert for this test. */
24365$ac_includes_default
24366#include <sys/wait.h>
24367#ifdef HAVE_VFORK_H
24368# include <vfork.h>
24369#endif
24370/* On some sparc systems, changes by the child to local and incoming
24371 argument registers are propagated back to the parent. The compiler
24372 is told about this with #include <vfork.h>, but some compilers
24373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24374 static variable whose address is put into a register that is
24375 clobbered by the vfork. */
24376static void
24377#ifdef __cplusplus
24378sparc_address_test (int arg)
24379# else
24380sparc_address_test (arg) int arg;
24381#endif
24382{
24383 static pid_t child;
24384 if (!child) {
24385 child = vfork ();
24386 if (child < 0) {
24387 perror ("vfork");
24388 _exit(2);
24389 }
24390 if (!child) {
24391 arg = getpid();
24392 write(-1, "", 0);
24393 _exit (arg);
24394 }
24395 }
24396}
24397
24398int
24399main ()
24400{
24401 pid_t parent = getpid ();
24402 pid_t child;
24403
24404 sparc_address_test (0);
24405
24406 child = vfork ();
24407
24408 if (child == 0) {
24409 /* Here is another test for sparc vfork register problems. This
24410 test uses lots of local variables, at least as many local
24411 variables as main has allocated so far including compiler
24412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24414 reuse the register of parent for one of the local variables,
24415 since it will think that parent can't possibly be used any more
24416 in this routine. Assigning to the local variable will thus
24417 munge parent in the parent process. */
24418 pid_t
24419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24421 /* Convince the compiler that p..p7 are live; otherwise, it might
24422 use the same hardware register for all 8 local variables. */
24423 if (p != p1 || p != p2 || p != p3 || p != p4
24424 || p != p5 || p != p6 || p != p7)
24425 _exit(1);
24426
24427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24428 from child file descriptors. If the child closes a descriptor
24429 before it execs or exits, this munges the parent's descriptor
24430 as well. Test for this by closing stdout in the child. */
24431 _exit(close(fileno(stdout)) != 0);
24432 } else {
24433 int status;
24434 struct stat st;
24435
24436 while (wait(&status) != child)
24437 ;
24438 return (
24439 /* Was there some problem with vforking? */
24440 child < 0
24441
24442 /* Did the child fail? (This shouldn't happen.) */
24443 || status
24444
24445 /* Did the vfork/compiler bug occur? */
24446 || parent != getpid()
24447
24448 /* Did the file descriptor bug occur? */
24449 || fstat(fileno(stdout), &st) != 0
24450 );
24451 }
24452}
24453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024454if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024455 ac_cv_func_vfork_works=yes
24456else
cristy8b350f62009-11-15 23:12:43 +000024457 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024458fi
cristy8b350f62009-11-15 23:12:43 +000024459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24460 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024461fi
24462
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy8b350f62009-11-15 23:12:43 +000024464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024465$as_echo "$ac_cv_func_vfork_works" >&6; }
24466
24467fi;
24468if test "x$ac_cv_func_fork_works" = xcross; then
24469 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024470 { $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 +000024471$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24472fi
24473
24474if test "x$ac_cv_func_vfork_works" = xyes; then
24475
cristy8b350f62009-11-15 23:12:43 +000024476$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024477
24478else
24479
cristy8b350f62009-11-15 23:12:43 +000024480$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024481
24482fi
24483if test "x$ac_cv_func_fork_works" = xyes; then
24484
cristy8b350f62009-11-15 23:12:43 +000024485$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024486
24487fi
24488
cristy8b350f62009-11-15 23:12:43 +000024489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024490$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024491if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024492 $as_echo_n "(cached) " >&6
24493else
cristy8b350f62009-11-15 23:12:43 +000024494 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024495 ac_cv_func_memcmp_working=no
24496else
cristy8b350f62009-11-15 23:12:43 +000024497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024498/* end confdefs.h. */
24499$ac_includes_default
24500int
24501main ()
24502{
24503
24504 /* Some versions of memcmp are not 8-bit clean. */
24505 char c0 = '\100', c1 = '\200', c2 = '\201';
24506 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24507 return 1;
24508
24509 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24510 or more and with at least one buffer not starting on a 4-byte boundary.
24511 William Lewis provided this test program. */
24512 {
24513 char foo[21];
24514 char bar[21];
24515 int i;
24516 for (i = 0; i < 4; i++)
24517 {
24518 char *a = foo + i;
24519 char *b = bar + i;
24520 strcpy (a, "--------01111111");
24521 strcpy (b, "--------10000000");
24522 if (memcmp (a, b, 16) >= 0)
24523 return 1;
24524 }
24525 return 0;
24526 }
24527
24528 ;
24529 return 0;
24530}
24531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024532if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024533 ac_cv_func_memcmp_working=yes
24534else
cristy8b350f62009-11-15 23:12:43 +000024535 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy8b350f62009-11-15 23:12:43 +000024537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24538 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024539fi
24540
cristy3ed852e2009-09-05 21:47:34 +000024541fi
cristy8b350f62009-11-15 23:12:43 +000024542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024543$as_echo "$ac_cv_func_memcmp_working" >&6; }
24544test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24545 *" memcmp.$ac_objext "* ) ;;
24546 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24547 ;;
24548esac
24549
24550
cristy3ed852e2009-09-05 21:47:34 +000024551for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024552do :
24553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024556 cat >>confdefs.h <<_ACEOF
24557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24558_ACEOF
24559
24560fi
24561
24562done
24563
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024566if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024567 $as_echo_n "(cached) " >&6
24568else
24569 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24570 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24571 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024573/* end confdefs.h. */
24574$ac_includes_default
24575#ifdef HAVE_SYS_SELECT_H
24576# include <sys/select.h>
24577#endif
24578#ifdef HAVE_SYS_SOCKET_H
24579# include <sys/socket.h>
24580#endif
24581
24582int
24583main ()
24584{
24585extern int select ($ac_arg1,
24586 $ac_arg234, $ac_arg234, $ac_arg234,
24587 $ac_arg5);
24588 ;
24589 return 0;
24590}
24591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024592if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024593 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024594fi
cristy3ed852e2009-09-05 21:47:34 +000024595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 done
24597 done
24598done
24599# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024600: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024601
24602fi
cristy8b350f62009-11-15 23:12:43 +000024603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024604$as_echo "$ac_cv_func_select_args" >&6; }
24605ac_save_IFS=$IFS; IFS=','
24606set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24607IFS=$ac_save_IFS
24608shift
24609
24610cat >>confdefs.h <<_ACEOF
24611#define SELECT_TYPE_ARG1 $1
24612_ACEOF
24613
24614
24615cat >>confdefs.h <<_ACEOF
24616#define SELECT_TYPE_ARG234 ($2)
24617_ACEOF
24618
24619
24620cat >>confdefs.h <<_ACEOF
24621#define SELECT_TYPE_ARG5 ($3)
24622_ACEOF
24623
24624rm -f conftest*
24625
cristyda16f162011-02-19 23:52:17 +000024626if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 $as_echo_n "(cached) " >&6
24628else
24629 ac_cv_func_setvbuf_reversed=no
24630fi
24631
24632
cristy8b350f62009-11-15 23:12:43 +000024633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024634$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024635if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024636 $as_echo_n "(cached) " >&6
24637else
cristy8b350f62009-11-15 23:12:43 +000024638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024639/* end confdefs.h. */
24640#include <sys/types.h>
24641#include <signal.h>
24642
24643int
24644main ()
24645{
24646return *(signal (0, 0)) (0) == 1;
24647 ;
24648 return 0;
24649}
24650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 ac_cv_type_signal=int
24653else
cristy8b350f62009-11-15 23:12:43 +000024654 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024655fi
cristy3ed852e2009-09-05 21:47:34 +000024656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657fi
cristy8b350f62009-11-15 23:12:43 +000024658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024659$as_echo "$ac_cv_type_signal" >&6; }
24660
24661cat >>confdefs.h <<_ACEOF
24662#define RETSIGTYPE $ac_cv_type_signal
24663_ACEOF
24664
24665
cristy8b350f62009-11-15 23:12:43 +000024666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024668if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 $as_echo_n "(cached) " >&6
24670else
cristy8b350f62009-11-15 23:12:43 +000024671 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 ac_cv_func_strtod=no
24673else
cristy8b350f62009-11-15 23:12:43 +000024674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024675/* end confdefs.h. */
24676
24677$ac_includes_default
24678#ifndef strtod
24679double strtod ();
24680#endif
24681int
24682main()
24683{
24684 {
24685 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24686 char *string = " +69";
24687 char *term;
24688 double value;
24689 value = strtod (string, &term);
24690 if (value != 69 || term != (string + 4))
24691 return 1;
24692 }
24693
24694 {
24695 /* Under Solaris 2.4, strtod returns the wrong value for the
24696 terminating character under some conditions. */
24697 char *string = "NaN";
24698 char *term;
24699 strtod (string, &term);
24700 if (term != string && *(term - 1) == 0)
24701 return 1;
24702 }
24703 return 0;
24704}
24705
24706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024707if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 ac_cv_func_strtod=yes
24709else
cristy8b350f62009-11-15 23:12:43 +000024710 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024711fi
cristy8b350f62009-11-15 23:12:43 +000024712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24713 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024714fi
24715
cristy3ed852e2009-09-05 21:47:34 +000024716fi
cristy8b350f62009-11-15 23:12:43 +000024717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024718$as_echo "$ac_cv_func_strtod" >&6; }
24719if test $ac_cv_func_strtod = no; then
24720 case " $LIBOBJS " in
24721 *" strtod.$ac_objext "* ) ;;
24722 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24723 ;;
24724esac
24725
cristy8b350f62009-11-15 23:12:43 +000024726ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024727if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024728
cristy3ed852e2009-09-05 21:47:34 +000024729fi
24730
cristy3ed852e2009-09-05 21:47:34 +000024731if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024734if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 $as_echo_n "(cached) " >&6
24736else
24737 ac_check_lib_save_LIBS=$LIBS
24738LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024740/* end confdefs.h. */
24741
24742/* Override any GCC internal prototype to avoid an error.
24743 Use char because int might match the return type of a GCC
24744 builtin and then its argument prototype would still apply. */
24745#ifdef __cplusplus
24746extern "C"
24747#endif
24748char pow ();
24749int
24750main ()
24751{
24752return pow ();
24753 ;
24754 return 0;
24755}
24756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 ac_cv_lib_m_pow=yes
24759else
cristy8b350f62009-11-15 23:12:43 +000024760 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024761fi
cristy8b350f62009-11-15 23:12:43 +000024762rm -f core conftest.err conftest.$ac_objext \
24763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024764LIBS=$ac_check_lib_save_LIBS
24765fi
cristy8b350f62009-11-15 23:12:43 +000024766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024768if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 POW_LIB=-lm
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024772$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24773fi
24774
24775fi
24776
24777fi
24778
cristy7d4a1d62011-10-13 15:54:12 +000024779ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24780if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24781 ac_have_decl=1
24782else
24783 ac_have_decl=0
24784fi
24785
24786cat >>confdefs.h <<_ACEOF
24787#define HAVE_DECL_STRERROR_R $ac_have_decl
24788_ACEOF
24789
24790for ac_func in strerror_r
24791do :
24792 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24793if test "x$ac_cv_func_strerror_r" = xyes; then :
24794 cat >>confdefs.h <<_ACEOF
24795#define HAVE_STRERROR_R 1
24796_ACEOF
24797
24798fi
24799done
24800
24801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24802$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24803if ${ac_cv_func_strerror_r_char_p+:} false; then :
24804 $as_echo_n "(cached) " >&6
24805else
24806
24807 ac_cv_func_strerror_r_char_p=no
24808 if test $ac_cv_have_decl_strerror_r = yes; then
24809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24810/* end confdefs.h. */
24811$ac_includes_default
24812int
24813main ()
24814{
24815
24816 char buf[100];
24817 char x = *strerror_r (0, buf, sizeof buf);
24818 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024819 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024820
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825if ac_fn_c_try_compile "$LINENO"; then :
24826 ac_cv_func_strerror_r_char_p=yes
24827fi
24828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 else
24830 # strerror_r is not declared. Choose between
24831 # systems that have relatively inaccessible declarations for the
24832 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24833 # former has a strerror_r that returns char*, while the latter
24834 # has a strerror_r that returns `int'.
24835 # This test should segfault on the DEC system.
24836 if test "$cross_compiling" = yes; then :
24837 :
24838else
24839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24840/* end confdefs.h. */
24841$ac_includes_default
24842 extern char *strerror_r ();
24843int
24844main ()
24845{
24846char buf[100];
24847 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024848 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024849 ;
24850 return 0;
24851}
24852_ACEOF
24853if ac_fn_c_try_run "$LINENO"; then :
24854 ac_cv_func_strerror_r_char_p=yes
24855fi
24856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24857 conftest.$ac_objext conftest.beam conftest.$ac_ext
24858fi
24859
24860 fi
24861
24862fi
24863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24864$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24865if test $ac_cv_func_strerror_r_char_p = yes; then
24866
24867$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24868
24869fi
24870
cristy3ed852e2009-09-05 21:47:34 +000024871for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024872do :
24873 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024874if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024876#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024877_ACEOF
24878
cristy8b350f62009-11-15 23:12:43 +000024879ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024880if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024881
cristy8b350f62009-11-15 23:12:43 +000024882$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024883
24884fi
24885
24886fi
24887done
24888
24889
24890
cristy161b9262010-03-20 19:34:32 +000024891#
24892# Find math library
24893#
24894MATH_LIBS=''
24895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24896$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024897if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024898 $as_echo_n "(cached) " >&6
24899else
24900 ac_check_lib_save_LIBS=$LIBS
24901LIBS="-lm $LIBS"
24902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24903/* end confdefs.h. */
24904
24905/* Override any GCC internal prototype to avoid an error.
24906 Use char because int might match the return type of a GCC
24907 builtin and then its argument prototype would still apply. */
24908#ifdef __cplusplus
24909extern "C"
24910#endif
24911char sqrt ();
24912int
24913main ()
24914{
24915return sqrt ();
24916 ;
24917 return 0;
24918}
24919_ACEOF
24920if ac_fn_c_try_link "$LINENO"; then :
24921 ac_cv_lib_m_sqrt=yes
24922else
24923 ac_cv_lib_m_sqrt=no
24924fi
24925rm -f core conftest.err conftest.$ac_objext \
24926 conftest$ac_exeext conftest.$ac_ext
24927LIBS=$ac_check_lib_save_LIBS
24928fi
24929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24930$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024931if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024932 MATH_LIBS="-lm"
24933fi
24934
24935LIBS="$MATH_LIBS $LIBS"
24936
24937
cristy85572162013-01-04 19:19:32 +000024938#
24939# Find socket library
24940#
cristy8a5d7f42013-01-06 15:24:33 +000024941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24942$as_echo_n "checking for library containing gethostbyname... " >&6; }
24943if ${ac_cv_search_gethostbyname+:} false; then :
24944 $as_echo_n "(cached) " >&6
24945else
24946 ac_func_search_save_LIBS=$LIBS
24947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948/* end confdefs.h. */
24949
24950/* Override any GCC internal prototype to avoid an error.
24951 Use char because int might match the return type of a GCC
24952 builtin and then its argument prototype would still apply. */
24953#ifdef __cplusplus
24954extern "C"
24955#endif
24956char gethostbyname ();
24957int
24958main ()
24959{
24960return gethostbyname ();
24961 ;
24962 return 0;
24963}
24964_ACEOF
24965for ac_lib in '' resolv nsl; do
24966 if test -z "$ac_lib"; then
24967 ac_res="none required"
24968 else
24969 ac_res=-l$ac_lib
24970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24971 fi
24972 if ac_fn_c_try_link "$LINENO"; then :
24973 ac_cv_search_gethostbyname=$ac_res
24974fi
24975rm -f core conftest.err conftest.$ac_objext \
24976 conftest$ac_exeext
24977 if ${ac_cv_search_gethostbyname+:} false; then :
24978 break
24979fi
24980done
24981if ${ac_cv_search_gethostbyname+:} false; then :
24982
24983else
24984 ac_cv_search_gethostbyname=no
24985fi
24986rm conftest.$ac_ext
24987LIBS=$ac_func_search_save_LIBS
24988fi
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24990$as_echo "$ac_cv_search_gethostbyname" >&6; }
24991ac_res=$ac_cv_search_gethostbyname
24992if test "$ac_res" != no; then :
24993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24994
24995fi
24996
cristy85572162013-01-04 19:19:32 +000024997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24998$as_echo_n "checking for library containing socket... " >&6; }
24999if ${ac_cv_search_socket+:} false; then :
25000 $as_echo_n "(cached) " >&6
25001else
25002 ac_func_search_save_LIBS=$LIBS
25003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25004/* end confdefs.h. */
25005
25006/* Override any GCC internal prototype to avoid an error.
25007 Use char because int might match the return type of a GCC
25008 builtin and then its argument prototype would still apply. */
25009#ifdef __cplusplus
25010extern "C"
25011#endif
25012char socket ();
25013int
25014main ()
25015{
25016return socket ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
25021for ac_lib in '' socket; do
25022 if test -z "$ac_lib"; then
25023 ac_res="none required"
25024 else
25025 ac_res=-l$ac_lib
25026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25027 fi
25028 if ac_fn_c_try_link "$LINENO"; then :
25029 ac_cv_search_socket=$ac_res
25030fi
25031rm -f core conftest.err conftest.$ac_objext \
25032 conftest$ac_exeext
25033 if ${ac_cv_search_socket+:} false; then :
25034 break
25035fi
25036done
25037if ${ac_cv_search_socket+:} false; then :
25038
25039else
25040 ac_cv_search_socket=no
25041fi
25042rm conftest.$ac_ext
25043LIBS=$ac_func_search_save_LIBS
25044fi
25045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25046$as_echo "$ac_cv_search_socket" >&6; }
25047ac_res=$ac_cv_search_socket
25048if test "$ac_res" != no; then :
25049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25050
cristy85572162013-01-04 19:19:32 +000025051
cristy8a5d7f42013-01-06 15:24:33 +000025052$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025053
cristy03f187e2013-01-24 00:22:19 +000025054 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025055
25056fi
25057
25058
25059for 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 +000025060do :
25061 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25062ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025063if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025064 cat >>confdefs.h <<_ACEOF
25065#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25066_ACEOF
25067
25068fi
25069done
25070
25071
cristye43a45e2009-09-28 14:49:00 +000025072#
25073# Check for clock_gettime().
25074#
cristy8b350f62009-11-15 23:12:43 +000025075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025076$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025077if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025078 $as_echo_n "(cached) " >&6
25079else
25080 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025082/* end confdefs.h. */
25083
25084/* Override any GCC internal prototype to avoid an error.
25085 Use char because int might match the return type of a GCC
25086 builtin and then its argument prototype would still apply. */
25087#ifdef __cplusplus
25088extern "C"
25089#endif
25090char clock_gettime ();
25091int
25092main ()
25093{
25094return clock_gettime ();
25095 ;
25096 return 0;
25097}
25098_ACEOF
25099for ac_lib in '' rt; do
25100 if test -z "$ac_lib"; then
25101 ac_res="none required"
25102 else
25103 ac_res=-l$ac_lib
25104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25105 fi
cristy8b350f62009-11-15 23:12:43 +000025106 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025107 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025108fi
cristy8b350f62009-11-15 23:12:43 +000025109rm -f core conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025111 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025112 break
25113fi
25114done
cristyda16f162011-02-19 23:52:17 +000025115if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025116
cristye43a45e2009-09-28 14:49:00 +000025117else
25118 ac_cv_search_clock_gettime=no
25119fi
25120rm conftest.$ac_ext
25121LIBS=$ac_func_search_save_LIBS
25122fi
cristy8b350f62009-11-15 23:12:43 +000025123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025124$as_echo "$ac_cv_search_clock_gettime" >&6; }
25125ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025126if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25128
25129
cristy8b350f62009-11-15 23:12:43 +000025130$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025131
cristy8b350f62009-11-15 23:12:43 +000025132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025133$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025135/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025136
25137 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025138int
25139main ()
25140{
25141clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025142 ;
25143 return 0;
25144}
25145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025146if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025147
cristyad38abe2012-12-23 23:03:21 +000025148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25149$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025150
cristy8b350f62009-11-15 23:12:43 +000025151$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025152
25153
25154else
cristyad38abe2012-12-23 23:03:21 +000025155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25156$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025157
25158fi
cristye43a45e2009-09-28 14:49:00 +000025159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160
25161else
25162
cristy8b350f62009-11-15 23:12:43 +000025163 for ac_func in gettimeofday ftime
25164do :
25165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25166ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025167if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025168 cat >>confdefs.h <<_ACEOF
25169#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25170_ACEOF
25171 break
25172fi
25173done
25174
25175
25176
25177fi
25178
25179
cristy3ed852e2009-09-05 21:47:34 +000025180########
25181#
25182# Check for function prototypes
25183#
25184########
25185
cristy8b350f62009-11-15 23:12:43 +000025186ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025187#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025188"
cristyda16f162011-02-19 23:52:17 +000025189if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025190 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025191else
cristy8b350f62009-11-15 23:12:43 +000025192 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025193fi
25194
cristy3ed852e2009-09-05 21:47:34 +000025195cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025196#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025198ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025199#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025200"
cristyda16f162011-02-19 23:52:17 +000025201if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025202 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025203else
cristy8b350f62009-11-15 23:12:43 +000025204 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025205fi
25206
cristy3ed852e2009-09-05 21:47:34 +000025207cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025208#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025209_ACEOF
25210
25211
cristy8b350f62009-11-15 23:12:43 +000025212ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025213#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025214"
cristyda16f162011-02-19 23:52:17 +000025215if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025216 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025217else
cristy8b350f62009-11-15 23:12:43 +000025218 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025219fi
25220
cristy3ed852e2009-09-05 21:47:34 +000025221cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025222#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025223_ACEOF
25224
25225
cristy8b350f62009-11-15 23:12:43 +000025226ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025227#include <stdio.h>
25228#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025229"
cristyda16f162011-02-19 23:52:17 +000025230if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025231 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025232else
cristy8b350f62009-11-15 23:12:43 +000025233 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025234fi
25235
cristy3ed852e2009-09-05 21:47:34 +000025236cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025237#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025238_ACEOF
25239
25240
cristy3ed852e2009-09-05 21:47:34 +000025241########
25242#
25243# C++ Support Tests (For Magick++)
25244#
25245########
25246have_magick_plus_plus='no'
25247if test "$with_magick_plus_plus" = 'yes'; then
25248 OLIBS="$LIBS"
25249 LIBS=''
25250 ac_ext=cpp
25251ac_cpp='$CXXCPP $CPPFLAGS'
25252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25255
25256
25257 # Full set of headers used...
25258 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25259 # functional iomanip iosfwd iostream iterator list string strstream utility
25260 ac_ext=cpp
25261ac_cpp='$CXXCPP $CPPFLAGS'
25262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25265
25266 ac_ext=cpp
25267ac_cpp='$CXXCPP $CPPFLAGS'
25268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25271if test -z "$CXX"; then
25272 if test -n "$CCC"; then
25273 CXX=$CCC
25274 else
25275 if test -n "$ac_tool_prefix"; then
25276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25277 do
25278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025282if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 $as_echo_n "(cached) " >&6
25284else
25285 if test -n "$CXX"; then
25286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25287else
25288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25289for as_dir in $PATH
25290do
25291 IFS=$as_save_IFS
25292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297 break 2
25298 fi
25299done
cristy8b350f62009-11-15 23:12:43 +000025300 done
cristy3ed852e2009-09-05 21:47:34 +000025301IFS=$as_save_IFS
25302
25303fi
25304fi
25305CXX=$ac_cv_prog_CXX
25306if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025308$as_echo "$CXX" >&6; }
25309else
cristy8b350f62009-11-15 23:12:43 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311$as_echo "no" >&6; }
25312fi
25313
25314
25315 test -n "$CXX" && break
25316 done
25317fi
25318if test -z "$CXX"; then
25319 ac_ct_CXX=$CXX
25320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25321do
25322 # Extract the first word of "$ac_prog", so it can be a program name with args.
25323set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025326if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 $as_echo_n "(cached) " >&6
25328else
25329 if test -n "$ac_ct_CXX"; then
25330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25331else
25332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25333for as_dir in $PATH
25334do
25335 IFS=$as_save_IFS
25336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025339 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025341 break 2
25342 fi
25343done
cristy8b350f62009-11-15 23:12:43 +000025344 done
cristy3ed852e2009-09-05 21:47:34 +000025345IFS=$as_save_IFS
25346
25347fi
25348fi
25349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25350if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025352$as_echo "$ac_ct_CXX" >&6; }
25353else
cristy8b350f62009-11-15 23:12:43 +000025354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025355$as_echo "no" >&6; }
25356fi
25357
25358
25359 test -n "$ac_ct_CXX" && break
25360done
25361
25362 if test "x$ac_ct_CXX" = x; then
25363 CXX="g++"
25364 else
25365 case $cross_compiling:$ac_tool_warned in
25366yes:)
cristy8b350f62009-11-15 23:12:43 +000025367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25369ac_tool_warned=yes ;;
25370esac
25371 CXX=$ac_ct_CXX
25372 fi
25373fi
25374
25375 fi
25376fi
25377# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025379set X $ac_compile
25380ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025381for ac_option in --version -v -V -qversion; do
25382 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025383case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25386esac
cristy8b350f62009-11-15 23:12:43 +000025387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25388$as_echo "$ac_try_echo"; } >&5
25389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025390 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025391 if test -s conftest.err; then
25392 sed '10a\
25393... rest of stderr output deleted ...
25394 10q' conftest.err >conftest.er1
25395 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025396 fi
cristycd4c5312009-11-22 01:19:08 +000025397 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }
25400done
cristy3ed852e2009-09-05 21:47:34 +000025401
cristy8b350f62009-11-15 23:12:43 +000025402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025404if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 $as_echo_n "(cached) " >&6
25406else
cristy8b350f62009-11-15 23:12:43 +000025407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025408/* end confdefs.h. */
25409
25410int
25411main ()
25412{
25413#ifndef __GNUC__
25414 choke me
25415#endif
25416
25417 ;
25418 return 0;
25419}
25420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025421if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 ac_compiler_gnu=yes
25423else
cristy8b350f62009-11-15 23:12:43 +000025424 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025425fi
cristy3ed852e2009-09-05 21:47:34 +000025426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25428
25429fi
cristy8b350f62009-11-15 23:12:43 +000025430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25432if test $ac_compiler_gnu = yes; then
25433 GXX=yes
25434else
25435 GXX=
25436fi
25437ac_test_CXXFLAGS=${CXXFLAGS+set}
25438ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025441if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 $as_echo_n "(cached) " >&6
25443else
25444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25445 ac_cxx_werror_flag=yes
25446 ac_cv_prog_cxx_g=no
25447 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025449/* end confdefs.h. */
25450
25451int
25452main ()
25453{
25454
25455 ;
25456 return 0;
25457}
25458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025459if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 ac_cv_prog_cxx_g=yes
25461else
cristy8b350f62009-11-15 23:12:43 +000025462 CXXFLAGS=""
25463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025464/* end confdefs.h. */
25465
25466int
25467main ()
25468{
25469
25470 ;
25471 return 0;
25472}
25473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025474if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025475
cristy8b350f62009-11-15 23:12:43 +000025476else
25477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025478 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025480/* end confdefs.h. */
25481
25482int
25483main ()
25484{
25485
25486 ;
25487 return 0;
25488}
25489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025490if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025491 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025492fi
cristy3ed852e2009-09-05 21:47:34 +000025493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494fi
cristy3ed852e2009-09-05 21:47:34 +000025495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25496fi
cristy3ed852e2009-09-05 21:47:34 +000025497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25499fi
cristy8b350f62009-11-15 23:12:43 +000025500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025501$as_echo "$ac_cv_prog_cxx_g" >&6; }
25502if test "$ac_test_CXXFLAGS" = set; then
25503 CXXFLAGS=$ac_save_CXXFLAGS
25504elif test $ac_cv_prog_cxx_g = yes; then
25505 if test "$GXX" = yes; then
25506 CXXFLAGS="-g -O2"
25507 else
25508 CXXFLAGS="-g"
25509 fi
25510else
25511 if test "$GXX" = yes; then
25512 CXXFLAGS="-O2"
25513 else
25514 CXXFLAGS=
25515 fi
25516fi
25517ac_ext=cpp
25518ac_cpp='$CXXCPP $CPPFLAGS'
25519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25522
cristy73bd4a52010-10-05 11:24:23 +000025523depcc="$CXX" am_compiler_list=
25524
25525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25526$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025527if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025528 $as_echo_n "(cached) " >&6
25529else
25530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25531 # We make a subdir and do the tests there. Otherwise we can end up
25532 # making bogus files that we don't know about and never remove. For
25533 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025534 # making a dummy file named 'D' -- because '-MD' means "put the output
25535 # in D".
cristy7247bba2012-02-05 16:37:27 +000025536 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025537 mkdir conftest.dir
25538 # Copy depcomp to subdir because otherwise we won't find it if we're
25539 # using a relative directory.
25540 cp "$am_depcomp" conftest.dir
25541 cd conftest.dir
25542 # We will build objects and dependencies in a subdirectory because
25543 # it helps to detect inapplicable dependency modes. For instance
25544 # both Tru64's cc and ICC support -MD to output dependencies as a
25545 # side effect of compilation, but ICC will put the dependencies in
25546 # the current directory while Tru64 will put them in the object
25547 # directory.
25548 mkdir sub
25549
25550 am_cv_CXX_dependencies_compiler_type=none
25551 if test "$am_compiler_list" = ""; then
25552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25553 fi
25554 am__universal=false
25555 case " $depcc " in #(
25556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25557 esac
25558
25559 for depmode in $am_compiler_list; do
25560 # Setup a source with many dependencies, because some compilers
25561 # like to wrap large dependency lists on column 80 (with \), and
25562 # we should not choose a depcomp mode which is confused by this.
25563 #
25564 # We need to recreate these files for each test, as the compiler may
25565 # overwrite some of them when testing with obscure command lines.
25566 # This happens at least with the AIX C compiler.
25567 : > sub/conftest.c
25568 for i in 1 2 3 4 5 6; do
25569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025570 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25571 # Solaris 10 /bin/sh.
25572 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025573 done
25574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25575
cristyc0890a62012-07-19 00:18:20 +000025576 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025577 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025578 # handle '-M -o', and we need to detect this. Also, some Intel
25579 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025580 am__obj=sub/conftest.${OBJEXT-o}
25581 am__minus_obj="-o $am__obj"
25582 case $depmode in
25583 gcc)
25584 # This depmode causes a compiler race in universal mode.
25585 test "$am__universal" = false || continue
25586 ;;
25587 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025588 # After this tag, mechanisms are not by side-effect, so they'll
25589 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025590 if test "x$enable_dependency_tracking" = xyes; then
25591 continue
25592 else
25593 break
25594 fi
25595 ;;
cristy7247bba2012-02-05 16:37:27 +000025596 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025597 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025598 # not run yet. These depmodes are late enough in the game, and
25599 # so weak that their functioning should not be impacted.
25600 am__obj=conftest.${OBJEXT-o}
25601 am__minus_obj=
25602 ;;
25603 none) break ;;
25604 esac
25605 if depmode=$depmode \
25606 source=sub/conftest.c object=$am__obj \
25607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25609 >/dev/null 2>conftest.err &&
25610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25614 # icc doesn't choke on unknown options, it will just issue warnings
25615 # or remarks (even with -Werror). So we grep stderr for any message
25616 # that says an option was ignored or not supported.
25617 # When given -MP, icc 7.0 and 7.1 complain thusly:
25618 # icc: Command line warning: ignoring option '-M'; no argument required
25619 # The diagnosis changed in icc 8.0:
25620 # icc: Command line remark: option '-MP' not supported
25621 if (grep 'ignoring option' conftest.err ||
25622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25623 am_cv_CXX_dependencies_compiler_type=$depmode
25624 break
25625 fi
25626 fi
25627 done
25628
25629 cd ..
25630 rm -rf conftest.dir
25631else
25632 am_cv_CXX_dependencies_compiler_type=none
25633fi
25634
25635fi
25636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25637$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25638CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25639
25640 if
25641 test "x$enable_dependency_tracking" != xno \
25642 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25643 am__fastdepCXX_TRUE=
25644 am__fastdepCXX_FALSE='#'
25645else
25646 am__fastdepCXX_TRUE='#'
25647 am__fastdepCXX_FALSE=
25648fi
25649
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25652$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025653if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025654 $as_echo_n "(cached) " >&6
25655else
25656
25657 ac_ext=cpp
25658ac_cpp='$CXXCPP $CPPFLAGS'
25659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25662
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664/* end confdefs.h. */
25665
25666int f(int x){return 1;}
25667int f(char x){return 1;}
25668int f(bool x){return 1;}
25669
25670int
25671main ()
25672{
25673bool b = true; return f(b);
25674 ;
25675 return 0;
25676}
25677_ACEOF
25678if ac_fn_cxx_try_compile "$LINENO"; then :
25679 ax_cv_cxx_bool=yes
25680else
25681 ax_cv_cxx_bool=no
25682fi
25683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684 ac_ext=cpp
25685ac_cpp='$CXXCPP $CPPFLAGS'
25686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25689
25690
25691fi
25692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25693$as_echo "$ax_cv_cxx_bool" >&6; }
25694if test "$ax_cv_cxx_bool" = yes; then
25695
25696$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25697
25698fi
25699
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25701$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025702if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025703 $as_echo_n "(cached) " >&6
25704else
25705
25706 ac_ext=cpp
25707ac_cpp='$CXXCPP $CPPFLAGS'
25708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25711
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713/* end confdefs.h. */
25714namespace Outer { namespace Inner { int i = 0; }}
25715int
25716main ()
25717{
25718using namespace Outer::Inner; return i;
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723if ac_fn_cxx_try_compile "$LINENO"; then :
25724 ax_cv_cxx_namespaces=yes
25725else
25726 ax_cv_cxx_namespaces=no
25727fi
25728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25729 ac_ext=cpp
25730ac_cpp='$CXXCPP $CPPFLAGS'
25731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25734
25735
25736fi
25737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25738$as_echo "$ax_cv_cxx_namespaces" >&6; }
25739if test "$ax_cv_cxx_namespaces" = yes; then
25740
25741$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25742
25743fi
25744
25745
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25747$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025748if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025749 $as_echo_n "(cached) " >&6
25750else
25751
25752 ac_ext=cpp
25753ac_cpp='$CXXCPP $CPPFLAGS'
25754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25757
25758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759/* end confdefs.h. */
25760#include <iostream>
25761 std::istream& is = std::cin;
25762int
25763main ()
25764{
25765
25766 ;
25767 return 0;
25768}
25769_ACEOF
25770if ac_fn_cxx_try_compile "$LINENO"; then :
25771 ax_cv_cxx_have_std_namespace=yes
25772else
25773 ax_cv_cxx_have_std_namespace=no
25774fi
25775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25776 ac_ext=cpp
25777ac_cpp='$CXXCPP $CPPFLAGS'
25778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25781
25782
25783fi
25784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25785$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25786 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25787
25788$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25789
25790 fi
25791
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25793$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025794if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025795 $as_echo_n "(cached) " >&6
25796else
25797
25798
25799 ac_ext=cpp
25800ac_cpp='$CXXCPP $CPPFLAGS'
25801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25804
25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806/* end confdefs.h. */
25807#include <iostream>
25808#include <map>
25809#include <iomanip>
25810#include <cmath>
25811#ifdef HAVE_NAMESPACES
25812using namespace std;
25813#endif
25814int
25815main ()
25816{
25817return 0;
25818 ;
25819 return 0;
25820}
25821_ACEOF
25822if ac_fn_cxx_try_compile "$LINENO"; then :
25823 ac_cv_cxx_have_std_libs=yes
25824else
25825 ac_cv_cxx_have_std_libs=no
25826fi
25827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828 ac_ext=cpp
25829ac_cpp='$CXXCPP $CPPFLAGS'
25830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25833
25834
25835fi
25836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25837$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25838if test "$ac_cv_cxx_have_std_libs" = yes; then
25839
25840$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25841
25842fi
25843
cristy3ed852e2009-09-05 21:47:34 +000025844
25845 OPENMP_CXXFLAGS=
25846 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025847if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025848 enableval=$enable_openmp;
25849fi
25850
25851 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25853$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025854if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025855 $as_echo_n "(cached) " >&6
25856else
cristy8b350f62009-11-15 23:12:43 +000025857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025859
25860#ifndef _OPENMP
25861 choke me
25862#endif
25863#include <omp.h>
25864int main () { return omp_get_num_threads (); }
25865
25866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025867if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 ac_cv_prog_cxx_openmp='none needed'
25869else
cristy8b350f62009-11-15 23:12:43 +000025870 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025871 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25872 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025873 ac_save_CXXFLAGS=$CXXFLAGS
25874 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025877
25878#ifndef _OPENMP
25879 choke me
25880#endif
25881#include <omp.h>
25882int main () { return omp_get_num_threads (); }
25883
25884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025885if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025886 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025887fi
cristy8b350f62009-11-15 23:12:43 +000025888rm -f core conftest.err conftest.$ac_objext \
25889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025890 CXXFLAGS=$ac_save_CXXFLAGS
25891 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25892 break
25893 fi
25894 done
25895fi
cristy8b350f62009-11-15 23:12:43 +000025896rm -f core conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898fi
cristy8b350f62009-11-15 23:12:43 +000025899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25901 case $ac_cv_prog_cxx_openmp in #(
25902 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025903 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025904 *)
cristy8b350f62009-11-15 23:12:43 +000025905 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025906 esac
25907 fi
25908
25909
25910 ac_ext=c
25911ac_cpp='$CPP $CPPFLAGS'
25912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25914ac_compiler_gnu=$ac_cv_c_compiler_gnu
25915
25916
cristy8b350f62009-11-15 23:12:43 +000025917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025918$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25919 if \
cristy964cb7f2010-04-25 23:18:00 +000025920 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025921 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025922 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025923 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025924 have_magick_plus_plus='yes'
25925 else
25926 have_magick_plus_plus='no (failed tests)'
25927 fi
cristyad38abe2012-12-23 23:03:21 +000025928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25929$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025930 LIBS="$OLIBS"
25931fi
cristy73bd4a52010-10-05 11:24:23 +000025932 if test "$have_magick_plus_plus" = 'yes'; then
25933 WITH_MAGICK_PLUS_PLUS_TRUE=
25934 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25935else
25936 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25937 WITH_MAGICK_PLUS_PLUS_FALSE=
25938fi
25939
cristy3ed852e2009-09-05 21:47:34 +000025940
25941# Only check for delegate libraries in subdirectories if requested.
25942if test "$enable_delegate_build" != 'no'; then
25943 # Check for delegate sub-directories and add -I & -L options as required.
25944 # This presumes that delegates are installed as detailed in the ImageMagick
25945 # README. If delegates are installed in a standard location where the
25946 # compiler will automatically find them then these options should not be
25947 # required.
25948
25949 #
25950 # Most delegates have includes in the same directory as the library, but not all...
25951 #
25952 # Includes
cristy2542fc62011-12-06 17:50:25 +000025953 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025954 if test -d "$builddir/$dir"; then
25955 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25956 else
25957 if test -d "$srcdirfull/$dir"; then
25958 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25959 fi
25960 fi
25961 done
25962
25963 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025964 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025965 if test -d "$builddir/$dir/.libs"; then
25966 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25967 else
25968 if test -d "$srcdirfull/$dir/.libs"; then
25969 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25970 fi
25971 fi
25972 if test -d "$builddir/$dir"; then
25973 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25974 else
25975 if test -d "$srcdirfull/$dir"; then
25976 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25977 fi
25978 fi
25979 done
25980fi
25981
25982# Assume that delegate headers reside under same directory as ImageMagick
25983# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025984MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025985
25986#
25987# Find the X11 RGB database
25988#
cristy8b350f62009-11-15 23:12:43 +000025989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 $as_echo_n "(cached) " >&6
25993else
25994 # Look for the header file in a standard set of common directories.
25995# Check X11 before X11Rn because it is often a symlink to the current release.
25996 for ac_dir in \
25997 /lib/usr/lib/X11 \
25998 /usr/X11/lib \
25999 /usr/X11R4/lib \
26000 /usr/X11R5/lib \
26001 /usr/X11R6/lib \
26002 /usr/X11R7/lib \
26003 /usr/X386/lib \
26004 /usr/XFree86/lib/X11 \
26005 /usr/athena/lib \
26006 /usr/lib \
26007 /usr/lib/X11 \
26008 /usr/lib/X11R4 \
26009 /usr/lib/X11R5 \
26010 /usr/lib/X11R6 \
26011 /usr/lib/X11R7 \
26012 /usr/local/X11/lib \
26013 /usr/local/X11R4/lib \
26014 /usr/local/X11R5/lib \
26015 /usr/local/X11R6/lib \
26016 /usr/local/lib \
26017 /usr/local/lib/X11 \
26018 /usr/local/lib/X11R4 \
26019 /usr/local/lib/X11R5 \
26020 /usr/local/lib/X11R6 \
26021 /usr/local/lib/X11R7 \
26022 /usr/local/x11r5/lib \
26023 /usr/lpp/Xamples/lib \
26024 /usr/openwin/lib \
26025 /usr/openwin/share/lib \
26026 /usr/unsupported/lib \
26027 /usr/x386/lib \
26028 ; do
26029 if test -f "$ac_dir/X11/rgb.txt"; then
26030 im_cv_x_configure="$ac_dir/X11/"
26031 break
26032 elif test -f "$ac_dir/rgb.txt"; then
26033 im_cv_x_configure="$ac_dir/"
26034 break
26035 fi
26036
26037 done
26038fi
cristy8b350f62009-11-15 23:12:43 +000026039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026040$as_echo "$im_cv_x_configure" >&6; }
26041X11_CONFIGURE_PATH="$im_cv_x_configure"
26042case "${build_os}" in
26043 mingw* )
26044 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26045 ;;
26046esac
26047
26048cat >>confdefs.h <<_ACEOF
26049#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26050_ACEOF
26051
26052
26053#
26054# Find OpenMP library
26055#
26056GOMP_LIBS=''
26057if test "$enable_openmp" != 'no'; then
26058 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026059 # Open64 (passes for GCC but uses different OpenMP implementation)
26060 if test "x$GOMP_LIBS" = x ; then
26061 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26063$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26064if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26065 $as_echo_n "(cached) " >&6
26066else
26067 ac_check_lib_save_LIBS=$LIBS
26068LIBS="-lopenmp $LIBS"
26069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070/* end confdefs.h. */
26071
26072/* Override any GCC internal prototype to avoid an error.
26073 Use char because int might match the return type of a GCC
26074 builtin and then its argument prototype would still apply. */
26075#ifdef __cplusplus
26076extern "C"
26077#endif
26078char omp_get_num_procs ();
26079int
26080main ()
26081{
26082return omp_get_num_procs ();
26083 ;
26084 return 0;
26085}
26086_ACEOF
26087if ac_fn_c_try_link "$LINENO"; then :
26088 ac_cv_lib_openmp_omp_get_num_procs=yes
26089else
26090 ac_cv_lib_openmp_omp_get_num_procs=no
26091fi
26092rm -f core conftest.err conftest.$ac_objext \
26093 conftest$ac_exeext conftest.$ac_ext
26094LIBS=$ac_check_lib_save_LIBS
26095fi
26096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26097$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26098if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26099 GOMP_LIBS="-lopenmp"
26100fi
26101
26102 fi
26103 fi
26104 # GCC
26105 if test "x$GOMP_LIBS" = x ; then
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026107$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 $as_echo_n "(cached) " >&6
26110else
26111 ac_check_lib_save_LIBS=$LIBS
26112LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114/* end confdefs.h. */
26115
26116/* Override any GCC internal prototype to avoid an error.
26117 Use char because int might match the return type of a GCC
26118 builtin and then its argument prototype would still apply. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122char GOMP_parallel_start ();
26123int
26124main ()
26125{
26126return GOMP_parallel_start ();
26127 ;
26128 return 0;
26129}
26130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 ac_cv_lib_gomp_GOMP_parallel_start=yes
26133else
cristy8b350f62009-11-15 23:12:43 +000026134 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138LIBS=$ac_check_lib_save_LIBS
26139fi
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026142if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 GOMP_LIBS="-lgomp"
26144fi
cristy18307f12011-12-30 01:20:16 +000026145
26146 fi
cristy3ed852e2009-09-05 21:47:34 +000026147 else
cristy18307f12011-12-30 01:20:16 +000026148 # Sun CC
26149 if test "x$GOMP_LIBS" = x ; then
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026151$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026152if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 $as_echo_n "(cached) " >&6
26154else
26155 ac_check_lib_save_LIBS=$LIBS
26156LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026158/* end confdefs.h. */
26159
26160/* Override any GCC internal prototype to avoid an error.
26161 Use char because int might match the return type of a GCC
26162 builtin and then its argument prototype would still apply. */
26163#ifdef __cplusplus
26164extern "C"
26165#endif
26166char sunw_mp_register_warn ();
26167int
26168main ()
26169{
26170return sunw_mp_register_warn ();
26171 ;
26172 return 0;
26173}
26174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26177else
cristy8b350f62009-11-15 23:12:43 +000026178 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026179fi
cristy8b350f62009-11-15 23:12:43 +000026180rm -f core conftest.err conftest.$ac_objext \
26181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026182LIBS=$ac_check_lib_save_LIBS
26183fi
cristy8b350f62009-11-15 23:12:43 +000026184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026185$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026186if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026187 GOMP_LIBS="-lmtsk"
26188fi
cristy18307f12011-12-30 01:20:16 +000026189
26190 fi
26191 # AIX xlc
26192 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026195if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026196 $as_echo_n "(cached) " >&6
26197else
26198 ac_check_lib_save_LIBS=$LIBS
26199LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026201/* end confdefs.h. */
26202
26203/* Override any GCC internal prototype to avoid an error.
26204 Use char because int might match the return type of a GCC
26205 builtin and then its argument prototype would still apply. */
26206#ifdef __cplusplus
26207extern "C"
26208#endif
26209char _xlsmpFlush ();
26210int
26211main ()
26212{
26213return _xlsmpFlush ();
26214 ;
26215 return 0;
26216}
26217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026218if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026219 ac_cv_lib_xlsmp__xlsmpFlush=yes
26220else
cristy8b350f62009-11-15 23:12:43 +000026221 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026222fi
cristy8b350f62009-11-15 23:12:43 +000026223rm -f core conftest.err conftest.$ac_objext \
26224 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026225LIBS=$ac_check_lib_save_LIBS
26226fi
cristy8b350f62009-11-15 23:12:43 +000026227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026228$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026230 GOMP_LIBS="-lxlsmp"
26231fi
cristy18307f12011-12-30 01:20:16 +000026232
26233 fi
26234 # SGI IRIX 6.5 MIPSpro C/C++
26235 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026237$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026238if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026239 $as_echo_n "(cached) " >&6
26240else
26241 ac_check_lib_save_LIBS=$LIBS
26242LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026244/* end confdefs.h. */
26245
26246/* Override any GCC internal prototype to avoid an error.
26247 Use char because int might match the return type of a GCC
26248 builtin and then its argument prototype would still apply. */
26249#ifdef __cplusplus
26250extern "C"
26251#endif
26252char mp_destroy ();
26253int
26254main ()
26255{
26256return mp_destroy ();
26257 ;
26258 return 0;
26259}
26260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026262 ac_cv_lib_mp_mp_destroy=yes
26263else
cristy8b350f62009-11-15 23:12:43 +000026264 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026265fi
cristy8b350f62009-11-15 23:12:43 +000026266rm -f core conftest.err conftest.$ac_objext \
26267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026268LIBS=$ac_check_lib_save_LIBS
26269fi
cristy8b350f62009-11-15 23:12:43 +000026270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026272if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026273 GOMP_LIBS="-lmp"
26274fi
cristy18307f12011-12-30 01:20:16 +000026275
26276 fi
cristy3ed852e2009-09-05 21:47:34 +000026277 fi
26278 LIBS="$GOMP_LIBS $LIBS"
26279fi
26280
26281
26282#
26283# Find Posix threads library
26284#
26285THREAD_LIBS=''
26286if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26287
26288 if test "x$PTHREAD_LIBS" = "x"; then
26289 case "${host_cpu}-${host_os}" in
26290 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026291
26292
26293
26294ac_ext=c
26295ac_cpp='$CPP $CPPFLAGS'
26296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26298ac_compiler_gnu=$ac_cv_c_compiler_gnu
26299
26300magick_pthread_lib_ok=no
26301
26302LIB=-lc_r
26303save_LIBS="$LIBS"
26304LIBS="$LIBS $LIB"
26305
26306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26307$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309/* end confdefs.h. */
26310#include <pthread.h>
26311int
26312main ()
26313{
26314 pthread_t th;
26315 pthread_join(th, 0);
26316 pthread_attr_init(0);
26317 pthread_cleanup_push(0, 0);
26318 pthread_create(0,0,0,0);
26319 pthread_cleanup_pop(0);
26320 ;
26321 return 0;
26322}
26323_ACEOF
26324if ac_fn_c_try_link "$LINENO"; then :
26325 magick_pthread_lib_ok=yes
26326fi
26327rm -f core conftest.err conftest.$ac_objext \
26328 conftest$ac_exeext conftest.$ac_ext
26329
26330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26331$as_echo "${magick_pthread_lib_ok}" >&6; }
26332if test "$magick_pthread_lib_ok" = yes
26333then
26334 PTHREAD_LIBS=-lc_r
26335 :
26336else
26337
26338 :
26339fi
26340
26341LIBS="$save_LIBS"
26342
26343ac_ext=c
26344ac_cpp='$CPP $CPPFLAGS'
26345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347ac_compiler_gnu=$ac_cv_c_compiler_gnu
26348
26349 ;;
cristy3ed852e2009-09-05 21:47:34 +000026350 esac
26351 fi
26352
26353 for lib in pthread pthreads; do
26354 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026355
26356
26357
26358ac_ext=c
26359ac_cpp='$CPP $CPPFLAGS'
26360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26362ac_compiler_gnu=$ac_cv_c_compiler_gnu
26363
26364magick_pthread_lib_ok=no
26365
26366LIB=-l$lib
26367save_LIBS="$LIBS"
26368LIBS="$LIBS $LIB"
26369
26370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26371$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373/* end confdefs.h. */
26374#include <pthread.h>
26375int
26376main ()
26377{
26378 pthread_t th;
26379 pthread_join(th, 0);
26380 pthread_attr_init(0);
26381 pthread_cleanup_push(0, 0);
26382 pthread_create(0,0,0,0);
26383 pthread_cleanup_pop(0);
26384 ;
26385 return 0;
26386}
26387_ACEOF
26388if ac_fn_c_try_link "$LINENO"; then :
26389 magick_pthread_lib_ok=yes
26390fi
26391rm -f core conftest.err conftest.$ac_objext \
26392 conftest$ac_exeext conftest.$ac_ext
26393
26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26395$as_echo "${magick_pthread_lib_ok}" >&6; }
26396if test "$magick_pthread_lib_ok" = yes
26397then
26398 PTHREAD_LIBS=-l$lib
26399 :
26400else
26401
26402 :
26403fi
26404
26405LIBS="$save_LIBS"
26406
26407ac_ext=c
26408ac_cpp='$CPP $CPPFLAGS'
26409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26411ac_compiler_gnu=$ac_cv_c_compiler_gnu
26412
26413
cristy3ed852e2009-09-05 21:47:34 +000026414 fi
26415 done
26416
26417 THREAD_LIBS="$PTHREAD_LIBS"
26418 LIBS="$LIBS $THREAD_LIBS"
26419fi
26420
26421
26422#
26423# Check for umem.
26424#
26425have_umem='no'
26426UMEM_LIBS=''
26427if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026429$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26431$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026432 failed=0
26433 passed=0
cristy8b350f62009-11-15 23:12:43 +000026434 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026435if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026436 passed=`expr $passed + 1`
26437else
26438 failed=`expr $failed + 1`
26439fi
26440
26441
cristy8b350f62009-11-15 23:12:43 +000026442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026444if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 $as_echo_n "(cached) " >&6
26446else
26447 ac_check_lib_save_LIBS=$LIBS
26448LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026450/* end confdefs.h. */
26451
26452/* Override any GCC internal prototype to avoid an error.
26453 Use char because int might match the return type of a GCC
26454 builtin and then its argument prototype would still apply. */
26455#ifdef __cplusplus
26456extern "C"
26457#endif
26458char umem_alloc ();
26459int
26460main ()
26461{
26462return umem_alloc ();
26463 ;
26464 return 0;
26465}
26466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026467if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026468 ac_cv_lib_umem_umem_alloc=yes
26469else
cristy8b350f62009-11-15 23:12:43 +000026470 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026471fi
cristy8b350f62009-11-15 23:12:43 +000026472rm -f core conftest.err conftest.$ac_objext \
26473 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026474LIBS=$ac_check_lib_save_LIBS
26475fi
cristy8b350f62009-11-15 23:12:43 +000026476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026477$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026478if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026479 passed=`expr $passed + 1`
26480else
26481 failed=`expr $failed + 1`
26482fi
26483
cristy8b350f62009-11-15 23:12:43 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026486if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 $as_echo_n "(cached) " >&6
26488else
26489 ac_check_lib_save_LIBS=$LIBS
26490LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026492/* end confdefs.h. */
26493
26494/* Override any GCC internal prototype to avoid an error.
26495 Use char because int might match the return type of a GCC
26496 builtin and then its argument prototype would still apply. */
26497#ifdef __cplusplus
26498extern "C"
26499#endif
26500char umem_free ();
26501int
26502main ()
26503{
26504return umem_free ();
26505 ;
26506 return 0;
26507}
26508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 ac_cv_lib_umem_umem_free=yes
26511else
cristy8b350f62009-11-15 23:12:43 +000026512 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026513fi
cristy8b350f62009-11-15 23:12:43 +000026514rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516LIBS=$ac_check_lib_save_LIBS
26517fi
cristy8b350f62009-11-15 23:12:43 +000026518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026519$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026520if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 passed=`expr $passed + 1`
26522else
26523 failed=`expr $failed + 1`
26524fi
26525
cristy8b350f62009-11-15 23:12:43 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026527$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26528 if test $passed -gt 0; then
26529 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26531$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026532 have_umem='no (failed tests)'
26533 else
26534 UMEM_LIBS='-lumem'
26535 LIBS="$UMEM_LIBS $LIBS"
26536
cristy8b350f62009-11-15 23:12:43 +000026537$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026538
cristyad38abe2012-12-23 23:03:21 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26540$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026541 have_umem='yes'
26542 fi
26543 else
cristyad38abe2012-12-23 23:03:21 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26545$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026546 fi
26547fi
cristy73bd4a52010-10-05 11:24:23 +000026548 if test "$have_umem" = 'yes'; then
26549 HasUMEM_TRUE=
26550 HasUMEM_FALSE='#'
26551else
26552 HasUMEM_TRUE='#'
26553 HasUMEM_FALSE=
26554fi
26555
cristy3ed852e2009-09-05 21:47:34 +000026556
26557
26558#
26559# Add support for ccmalloc memory debugging library if requested
26560#
26561have_ccmalloc='no'
26562CCMALLOC_LIBS=''
26563if test "$enable_ccmalloc" = 'yes'; then
26564 # Extract the first word of "ccmalloc", so it can be a program name with args.
26565set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026568if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026569 $as_echo_n "(cached) " >&6
26570else
26571 case $CCMALLOCDelegate in
26572 [\\/]* | ?:[\\/]*)
26573 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26574 ;;
26575 *)
26576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26577for as_dir in $PATH
26578do
26579 IFS=$as_save_IFS
26580 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026583 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585 break 2
26586 fi
26587done
cristy8b350f62009-11-15 23:12:43 +000026588 done
cristy3ed852e2009-09-05 21:47:34 +000026589IFS=$as_save_IFS
26590
26591 ;;
26592esac
26593fi
26594CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26595if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026597$as_echo "$CCMALLOCDelegate" >&6; }
26598else
cristy8b350f62009-11-15 23:12:43 +000026599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026600$as_echo "no" >&6; }
26601fi
26602
26603
26604 if test -n "$CCMALLOCDelegate"; then
26605 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26606 OLIBS="$LIBS"
26607 # Assume that gcc is used with ccmalloc.
26608 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026610$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026611if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 $as_echo_n "(cached) " >&6
26613else
26614 ac_check_lib_save_LIBS=$LIBS
26615LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026617/* end confdefs.h. */
26618
26619/* Override any GCC internal prototype to avoid an error.
26620 Use char because int might match the return type of a GCC
26621 builtin and then its argument prototype would still apply. */
26622#ifdef __cplusplus
26623extern "C"
26624#endif
26625char ccmalloc_malloc ();
26626int
26627main ()
26628{
26629return ccmalloc_malloc ();
26630 ;
26631 return 0;
26632}
26633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026634if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026635 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26636else
cristy8b350f62009-11-15 23:12:43 +000026637 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026638fi
cristy8b350f62009-11-15 23:12:43 +000026639rm -f core conftest.err conftest.$ac_objext \
26640 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026641LIBS=$ac_check_lib_save_LIBS
26642fi
cristy8b350f62009-11-15 23:12:43 +000026643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026645if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026646 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26647fi
26648
26649 if test -n "$CCMALLOC_LIBS"; then
26650 LIBS="$OLIBS"
26651 LIBS="$LIBS $CCMALLOC_LIBS"
26652 have_ccmalloc='yes'
26653 else
26654 LIBS="$OLIBS"
26655 fi
26656 fi
26657fi
26658
26659#
cristy944e51f2013-04-16 18:45:02 +000026660# Add support for 'huge pages' if requested
26661#
26662if test "x$enable_hugepages" != "xno"; then :
26663
26664
26665$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26666
26667
26668fi
26669
26670#
cristy3ed852e2009-09-05 21:47:34 +000026671# Add support for efence memory debugging library if requested
26672#
26673if test "$enable_efence" = 'yes'; then
26674 EFENCE_LIBS='-lefence'
26675 LIBS="$EFENCE_LIBS $LIBS"
26676fi
26677
cristy3ed852e2009-09-05 21:47:34 +000026678
26679#
26680# Check for BZLIB
26681#
26682
26683
26684# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026685if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026686 withval=$with_bzlib; with_bzlib=$withval
26687else
26688 with_bzlib='yes'
26689fi
26690
26691
26692if test "$with_bzlib" != 'yes'; then
26693 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26694fi
26695
26696have_bzlib='no'
26697if test "$with_bzlib" != 'no'; then
26698 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26700$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26704$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026705 failed=0
26706 passed=0
26707 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026708 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026709if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026710 passed=`expr $passed + 1`
26711else
26712 failed=`expr $failed + 1`
26713fi
26714
26715
cristy8b350f62009-11-15 23:12:43 +000026716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026717$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026718if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026719 $as_echo_n "(cached) " >&6
26720else
26721 ac_check_lib_save_LIBS=$LIBS
26722LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026724/* end confdefs.h. */
26725
26726/* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
26729#ifdef __cplusplus
26730extern "C"
26731#endif
26732char BZ2_bzDecompress ();
26733int
26734main ()
26735{
26736return BZ2_bzDecompress ();
26737 ;
26738 return 0;
26739}
26740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26743else
cristy8b350f62009-11-15 23:12:43 +000026744 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026745fi
cristy8b350f62009-11-15 23:12:43 +000026746rm -f core conftest.err conftest.$ac_objext \
26747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026748LIBS=$ac_check_lib_save_LIBS
26749fi
cristy8b350f62009-11-15 23:12:43 +000026750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026752if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026753 found_libbz=`expr $found_libbz + 1`
26754fi
26755
26756 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026758$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026759if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026760 $as_echo_n "(cached) " >&6
26761else
26762 ac_check_lib_save_LIBS=$LIBS
26763LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026765/* end confdefs.h. */
26766
26767/* Override any GCC internal prototype to avoid an error.
26768 Use char because int might match the return type of a GCC
26769 builtin and then its argument prototype would still apply. */
26770#ifdef __cplusplus
26771extern "C"
26772#endif
26773char _imp__BZ2_decompress ();
26774int
26775main ()
26776{
26777return _imp__BZ2_decompress ();
26778 ;
26779 return 0;
26780}
26781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026783 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26784else
cristy8b350f62009-11-15 23:12:43 +000026785 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026786fi
cristy8b350f62009-11-15 23:12:43 +000026787rm -f core conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026789LIBS=$ac_check_lib_save_LIBS
26790fi
cristy8b350f62009-11-15 23:12:43 +000026791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026792$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026793if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026794 found_libbz=`expr $found_libbz + 1`
26795fi
26796
26797 fi
26798 if test $found_libbz -gt 0; then
26799 passed=`expr $passed + 1`
26800 else
26801 failed=`expr $failed + 1`
26802 fi
cristy8b350f62009-11-15 23:12:43 +000026803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo_n "checking if BZLIB package is complete... " >&6; }
26805 if test $passed -gt 0; then
26806 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26808$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026809 have_bzlib='no (failed tests)'
26810 else
26811 BZLIB_LIBS='-lbz2'
26812 LIBS="$BZLIB_LIBS $LIBS"
26813
cristy8b350f62009-11-15 23:12:43 +000026814$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026815
cristyad38abe2012-12-23 23:03:21 +000026816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26817$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026818 have_bzlib='yes'
26819 fi
26820 else
cristyad38abe2012-12-23 23:03:21 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026823 fi
26824fi
cristy73bd4a52010-10-05 11:24:23 +000026825 if test "$have_bzlib" = 'yes'; then
26826 BZLIB_DELEGATE_TRUE=
26827 BZLIB_DELEGATE_FALSE='#'
26828else
26829 BZLIB_DELEGATE_TRUE='#'
26830 BZLIB_DELEGATE_FALSE=
26831fi
26832
cristy3ed852e2009-09-05 21:47:34 +000026833
26834
26835#
26836# Find the X11 include and library directories.
26837#
26838IPC_LIBS=''
26839X11_LIBS=''
26840XEXT_LIBS=''
26841XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026843$as_echo_n "checking for X... " >&6; }
26844
26845
26846# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026847if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026848 withval=$with_x;
26849fi
26850
26851# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26852if test "x$with_x" = xno; then
26853 # The user explicitly disabled X.
26854 have_x=disabled
26855else
26856 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026857 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026858 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026859 $as_echo_n "(cached) " >&6
26860else
26861 # One or both of the vars are not set, and there is no cached value.
26862ac_x_includes=no ac_x_libraries=no
26863rm -f -r conftest.dir
26864if mkdir conftest.dir; then
26865 cd conftest.dir
26866 cat >Imakefile <<'_ACEOF'
26867incroot:
26868 @echo incroot='${INCROOT}'
26869usrlibdir:
26870 @echo usrlibdir='${USRLIBDIR}'
26871libdir:
26872 @echo libdir='${LIBDIR}'
26873_ACEOF
26874 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026875 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026876 for ac_var in incroot usrlibdir libdir; do
26877 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26878 done
26879 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26880 for ac_extension in a so sl dylib la dll; do
26881 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26882 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26883 ac_im_usrlibdir=$ac_im_libdir; break
26884 fi
26885 done
26886 # Screen out bogus values from the imake configuration. They are
26887 # bogus both because they are the default anyway, and because
26888 # using them would break gcc on systems where it needs fixed includes.
26889 case $ac_im_incroot in
26890 /usr/include) ac_x_includes= ;;
26891 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26892 esac
26893 case $ac_im_usrlibdir in
26894 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26895 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26896 esac
26897 fi
26898 cd ..
26899 rm -f -r conftest.dir
26900fi
26901
26902# Standard set of common directories for X headers.
26903# Check X11 before X11Rn because it is often a symlink to the current release.
26904ac_x_header_dirs='
26905/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026906/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026907/usr/X11R6/include
26908/usr/X11R5/include
26909/usr/X11R4/include
26910
26911/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026912/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026913/usr/include/X11R6
26914/usr/include/X11R5
26915/usr/include/X11R4
26916
26917/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026918/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026919/usr/local/X11R6/include
26920/usr/local/X11R5/include
26921/usr/local/X11R4/include
26922
26923/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026924/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026925/usr/local/include/X11R6
26926/usr/local/include/X11R5
26927/usr/local/include/X11R4
26928
26929/usr/X386/include
26930/usr/x386/include
26931/usr/XFree86/include/X11
26932
26933/usr/include
26934/usr/local/include
26935/usr/unsupported/include
26936/usr/athena/include
26937/usr/local/x11r5/include
26938/usr/lpp/Xamples/include
26939
26940/usr/openwin/include
26941/usr/openwin/share/include'
26942
26943if test "$ac_x_includes" = no; then
26944 # Guess where to find include files, by looking for Xlib.h.
26945 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026947/* end confdefs.h. */
26948#include <X11/Xlib.h>
26949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026950if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026951 # We can compile using X headers with no special include directory.
26952ac_x_includes=
26953else
cristyc7083c12009-10-14 03:16:55 +000026954 for ac_dir in $ac_x_header_dirs; do
26955 if test -r "$ac_dir/X11/Xlib.h"; then
26956 ac_x_includes=$ac_dir
26957 break
26958 fi
26959done
26960fi
cristyda16f162011-02-19 23:52:17 +000026961rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026962fi # $ac_x_includes = no
26963
26964if test "$ac_x_libraries" = no; then
26965 # Check for the libraries.
26966 # See if we find them without any special options.
26967 # Don't add to $LIBS permanently.
26968 ac_save_LIBS=$LIBS
26969 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026971/* end confdefs.h. */
26972#include <X11/Xlib.h>
26973int
26974main ()
26975{
26976XrmInitialize ()
26977 ;
26978 return 0;
26979}
26980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026981if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026982 LIBS=$ac_save_LIBS
26983# We can link X programs with no special library path.
26984ac_x_libraries=
26985else
cristy8b350f62009-11-15 23:12:43 +000026986 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026987for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26988do
26989 # Don't even attempt the hair of trying to link an X program!
26990 for ac_extension in a so sl dylib la dll; do
26991 if test -r "$ac_dir/libX11.$ac_extension"; then
26992 ac_x_libraries=$ac_dir
26993 break 2
26994 fi
26995 done
26996done
26997fi
cristy8b350f62009-11-15 23:12:43 +000026998rm -f core conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027000fi # $ac_x_libraries = no
27001
27002case $ac_x_includes,$ac_x_libraries in #(
27003 no,* | *,no | *\'*)
27004 # Didn't find X, or a directory has "'" in its name.
27005 ac_cv_have_x="have_x=no";; #(
27006 *)
27007 # Record where we found X for the cache.
27008 ac_cv_have_x="have_x=yes\
27009 ac_x_includes='$ac_x_includes'\
27010 ac_x_libraries='$ac_x_libraries'"
27011esac
27012fi
27013;; #(
27014 *) have_x=yes;;
27015 esac
27016 eval "$ac_cv_have_x"
27017fi # $with_x != no
27018
27019if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027021$as_echo "$have_x" >&6; }
27022 no_x=yes
27023else
27024 # If each of the values was on the command line, it overrides each guess.
27025 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27026 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27027 # Update the cache value to reflect the command line values.
27028 ac_cv_have_x="have_x=yes\
27029 ac_x_includes='$x_includes'\
27030 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027032$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27033fi
27034
cristy3ed852e2009-09-05 21:47:34 +000027035if test "$no_x" = yes; then
27036 # Not all programs may use this symbol, but it does not hurt to define it.
27037
cristy8b350f62009-11-15 23:12:43 +000027038$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027039
27040 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27041else
27042 if test -n "$x_includes"; then
27043 X_CFLAGS="$X_CFLAGS -I$x_includes"
27044 fi
27045
27046 # It would also be nice to do this for all -L options, not just this one.
27047 if test -n "$x_libraries"; then
27048 X_LIBS="$X_LIBS -L$x_libraries"
27049 # For Solaris; some versions of Sun CC require a space after -R and
27050 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027052$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27053 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27054 ac_xsave_c_werror_flag=$ac_c_werror_flag
27055 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027057/* end confdefs.h. */
27058
27059int
27060main ()
27061{
27062
27063 ;
27064 return 0;
27065}
27066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027067if ac_fn_c_try_link "$LINENO"; then :
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo "no" >&6; }
27070 X_LIBS="$X_LIBS -R$x_libraries"
27071else
cristy8b350f62009-11-15 23:12:43 +000027072 LIBS="$ac_xsave_LIBS -R $x_libraries"
27073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074/* end confdefs.h. */
27075
27076int
27077main ()
27078{
27079
27080 ;
27081 return 0;
27082}
27083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027084if ac_fn_c_try_link "$LINENO"; then :
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "yes" >&6; }
27087 X_LIBS="$X_LIBS -R $x_libraries"
27088else
cristy8b350f62009-11-15 23:12:43 +000027089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027090$as_echo "neither works" >&6; }
27091fi
cristy8b350f62009-11-15 23:12:43 +000027092rm -f core conftest.err conftest.$ac_objext \
27093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027094fi
cristy8b350f62009-11-15 23:12:43 +000027095rm -f core conftest.err conftest.$ac_objext \
27096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027097 ac_c_werror_flag=$ac_xsave_c_werror_flag
27098 LIBS=$ac_xsave_LIBS
27099 fi
27100
27101 # Check for system-dependent libraries X programs must link with.
27102 # Do this before checking for the system-independent R6 libraries
27103 # (-lICE), since we may need -lsocket or whatever for X linking.
27104
27105 if test "$ISC" = yes; then
27106 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27107 else
27108 # Martyn Johnson says this is needed for Ultrix, if the X
27109 # libraries were built with DECnet support. And Karl Berry says
27110 # the Alpha needs dnet_stub (dnet does not exist).
27111 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114
27115/* Override any GCC internal prototype to avoid an error.
27116 Use char because int might match the return type of a GCC
27117 builtin and then its argument prototype would still apply. */
27118#ifdef __cplusplus
27119extern "C"
27120#endif
27121char XOpenDisplay ();
27122int
27123main ()
27124{
27125return XOpenDisplay ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027131
cristy8b350f62009-11-15 23:12:43 +000027132else
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027134$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027135if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 $as_echo_n "(cached) " >&6
27137else
27138 ac_check_lib_save_LIBS=$LIBS
27139LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027141/* end confdefs.h. */
27142
27143/* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
27146#ifdef __cplusplus
27147extern "C"
27148#endif
27149char dnet_ntoa ();
27150int
27151main ()
27152{
27153return dnet_ntoa ();
27154 ;
27155 return 0;
27156}
27157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027158if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027159 ac_cv_lib_dnet_dnet_ntoa=yes
27160else
cristy8b350f62009-11-15 23:12:43 +000027161 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027162fi
cristy8b350f62009-11-15 23:12:43 +000027163rm -f core conftest.err conftest.$ac_objext \
27164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027165LIBS=$ac_check_lib_save_LIBS
27166fi
cristy8b350f62009-11-15 23:12:43 +000027167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27171fi
27172
27173 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 $as_echo_n "(cached) " >&6
27178else
27179 ac_check_lib_save_LIBS=$LIBS
27180LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027182/* end confdefs.h. */
27183
27184/* Override any GCC internal prototype to avoid an error.
27185 Use char because int might match the return type of a GCC
27186 builtin and then its argument prototype would still apply. */
27187#ifdef __cplusplus
27188extern "C"
27189#endif
27190char dnet_ntoa ();
27191int
27192main ()
27193{
27194return dnet_ntoa ();
27195 ;
27196 return 0;
27197}
27198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27201else
cristy8b350f62009-11-15 23:12:43 +000027202 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027203fi
cristy8b350f62009-11-15 23:12:43 +000027204rm -f core conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206LIBS=$ac_check_lib_save_LIBS
27207fi
cristy8b350f62009-11-15 23:12:43 +000027208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027210if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27212fi
27213
27214 fi
27215fi
cristy8b350f62009-11-15 23:12:43 +000027216rm -f core conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218 LIBS="$ac_xsave_LIBS"
27219
27220 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27221 # to get the SysV transport functions.
27222 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27223 # needs -lnsl.
27224 # The nsl library prevents programs from opening the X display
27225 # on Irix 5.2, according to T.E. Dickey.
27226 # The functions gethostbyname, getservbyname, and inet_addr are
27227 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027228 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027229if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027230
cristy3ed852e2009-09-05 21:47:34 +000027231fi
27232
cristy3ed852e2009-09-05 21:47:34 +000027233 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027236if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 $as_echo_n "(cached) " >&6
27238else
27239 ac_check_lib_save_LIBS=$LIBS
27240LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027242/* end confdefs.h. */
27243
27244/* Override any GCC internal prototype to avoid an error.
27245 Use char because int might match the return type of a GCC
27246 builtin and then its argument prototype would still apply. */
27247#ifdef __cplusplus
27248extern "C"
27249#endif
27250char gethostbyname ();
27251int
27252main ()
27253{
27254return gethostbyname ();
27255 ;
27256 return 0;
27257}
27258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 ac_cv_lib_nsl_gethostbyname=yes
27261else
cristy8b350f62009-11-15 23:12:43 +000027262 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027263fi
cristy8b350f62009-11-15 23:12:43 +000027264rm -f core conftest.err conftest.$ac_objext \
27265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027266LIBS=$ac_check_lib_save_LIBS
27267fi
cristy8b350f62009-11-15 23:12:43 +000027268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027269$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027270if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27272fi
27273
27274 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027276$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027277if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 $as_echo_n "(cached) " >&6
27279else
27280 ac_check_lib_save_LIBS=$LIBS
27281LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027283/* end confdefs.h. */
27284
27285/* Override any GCC internal prototype to avoid an error.
27286 Use char because int might match the return type of a GCC
27287 builtin and then its argument prototype would still apply. */
27288#ifdef __cplusplus
27289extern "C"
27290#endif
27291char gethostbyname ();
27292int
27293main ()
27294{
27295return gethostbyname ();
27296 ;
27297 return 0;
27298}
27299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 ac_cv_lib_bsd_gethostbyname=yes
27302else
cristy8b350f62009-11-15 23:12:43 +000027303 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027304fi
cristy8b350f62009-11-15 23:12:43 +000027305rm -f core conftest.err conftest.$ac_objext \
27306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027307LIBS=$ac_check_lib_save_LIBS
27308fi
cristy8b350f62009-11-15 23:12:43 +000027309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027311if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27313fi
27314
27315 fi
27316 fi
27317
27318 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27319 # socket/setsockopt and other routines are undefined under SCO ODT
27320 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27321 # on later versions), says Simon Leinen: it contains gethostby*
27322 # variants that don't use the name server (or something). -lsocket
27323 # must be given before -lnsl if both are needed. We assume that
27324 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027325 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027326if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027327
cristy3ed852e2009-09-05 21:47:34 +000027328fi
27329
cristy3ed852e2009-09-05 21:47:34 +000027330 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027332$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027333if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027334 $as_echo_n "(cached) " >&6
27335else
27336 ac_check_lib_save_LIBS=$LIBS
27337LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027339/* end confdefs.h. */
27340
27341/* Override any GCC internal prototype to avoid an error.
27342 Use char because int might match the return type of a GCC
27343 builtin and then its argument prototype would still apply. */
27344#ifdef __cplusplus
27345extern "C"
27346#endif
27347char connect ();
27348int
27349main ()
27350{
27351return connect ();
27352 ;
27353 return 0;
27354}
27355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027357 ac_cv_lib_socket_connect=yes
27358else
cristy8b350f62009-11-15 23:12:43 +000027359 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027360fi
cristy8b350f62009-11-15 23:12:43 +000027361rm -f core conftest.err conftest.$ac_objext \
27362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027363LIBS=$ac_check_lib_save_LIBS
27364fi
cristy8b350f62009-11-15 23:12:43 +000027365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027366$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027367if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027368 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27369fi
27370
27371 fi
27372
27373 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027374 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027375if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027376
cristy3ed852e2009-09-05 21:47:34 +000027377fi
27378
cristy3ed852e2009-09-05 21:47:34 +000027379 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027382if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 $as_echo_n "(cached) " >&6
27384else
27385 ac_check_lib_save_LIBS=$LIBS
27386LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388/* end confdefs.h. */
27389
27390/* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27393#ifdef __cplusplus
27394extern "C"
27395#endif
27396char remove ();
27397int
27398main ()
27399{
27400return remove ();
27401 ;
27402 return 0;
27403}
27404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 ac_cv_lib_posix_remove=yes
27407else
cristy8b350f62009-11-15 23:12:43 +000027408 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027409fi
cristy8b350f62009-11-15 23:12:43 +000027410rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412LIBS=$ac_check_lib_save_LIBS
27413fi
cristy8b350f62009-11-15 23:12:43 +000027414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027416if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27418fi
27419
27420 fi
27421
27422 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027423 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027424if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027425
cristy3ed852e2009-09-05 21:47:34 +000027426fi
27427
cristy3ed852e2009-09-05 21:47:34 +000027428 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027431if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 $as_echo_n "(cached) " >&6
27433else
27434 ac_check_lib_save_LIBS=$LIBS
27435LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027437/* end confdefs.h. */
27438
27439/* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
27442#ifdef __cplusplus
27443extern "C"
27444#endif
27445char shmat ();
27446int
27447main ()
27448{
27449return shmat ();
27450 ;
27451 return 0;
27452}
27453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 ac_cv_lib_ipc_shmat=yes
27456else
cristy8b350f62009-11-15 23:12:43 +000027457 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027458fi
cristy8b350f62009-11-15 23:12:43 +000027459rm -f core conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461LIBS=$ac_check_lib_save_LIBS
27462fi
cristy8b350f62009-11-15 23:12:43 +000027463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027465if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27467fi
27468
27469 fi
27470 fi
27471
27472 # Check for libraries that X11R6 Xt/Xaw programs need.
27473 ac_save_LDFLAGS=$LDFLAGS
27474 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27475 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27476 # check for ICE first), but we must link in the order -lSM -lICE or
27477 # we get undefined symbols. So assume we have SM if we have ICE.
27478 # These have to be linked with before -lX11, unlike the other
27479 # libraries we check for below, so use a different variable.
27480 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027483if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 $as_echo_n "(cached) " >&6
27485else
27486 ac_check_lib_save_LIBS=$LIBS
27487LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027489/* end confdefs.h. */
27490
27491/* Override any GCC internal prototype to avoid an error.
27492 Use char because int might match the return type of a GCC
27493 builtin and then its argument prototype would still apply. */
27494#ifdef __cplusplus
27495extern "C"
27496#endif
27497char IceConnectionNumber ();
27498int
27499main ()
27500{
27501return IceConnectionNumber ();
27502 ;
27503 return 0;
27504}
27505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 ac_cv_lib_ICE_IceConnectionNumber=yes
27508else
cristy8b350f62009-11-15 23:12:43 +000027509 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027510fi
cristy8b350f62009-11-15 23:12:43 +000027511rm -f core conftest.err conftest.$ac_objext \
27512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027513LIBS=$ac_check_lib_save_LIBS
27514fi
cristy8b350f62009-11-15 23:12:43 +000027515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027516$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027517if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027518 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27519fi
27520
27521 LDFLAGS=$ac_save_LDFLAGS
27522
27523fi
27524
27525if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27527$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027529$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27531$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027532 LDFLAGS="$LDFLAGS $X_LIBS"
27533 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27534 LIBS="$X11_LIBS $LIBS"
27535 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27536
27537
cristy8b350f62009-11-15 23:12:43 +000027538$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027539
27540 #
27541 # Check for X11 shared memory extension
27542 #
27543 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027544 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027545if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 have_shmctl='yes'
27547fi
27548
27549 if test "$have_shmctl" != 'yes'; then
27550 PERSIST_LIBS=$LIBS
27551 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027553/* end confdefs.h. */
27554
27555/* Override any GCC internal prototype to avoid an error.
27556 Use char because int might match the return type of a GCC
27557 builtin and then its argument prototype would still apply. */
27558#ifdef __cplusplus
27559extern "C"
27560#endif
27561char shmctl ();
27562int
27563main ()
27564{
27565return shmctl ();
27566 ;
27567 return 0;
27568}
27569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027572fi
cristy8b350f62009-11-15 23:12:43 +000027573rm -f core conftest.err conftest.$ac_objext \
27574 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027575 LIBS=$PERSIST_LIBS
27576 fi
27577
27578 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027581if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 $as_echo_n "(cached) " >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027587/* end confdefs.h. */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char XShmAttach ();
27596int
27597main ()
27598{
27599return XShmAttach ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 ac_cv_lib_Xext_XShmAttach=yes
27606else
cristy8b350f62009-11-15 23:12:43 +000027607 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027608fi
cristy8b350f62009-11-15 23:12:43 +000027609rm -f core conftest.err conftest.$ac_objext \
27610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611LIBS=$ac_check_lib_save_LIBS
27612fi
cristy8b350f62009-11-15 23:12:43 +000027613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027617$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027618
27619fi
27620
27621 fi
27622
27623 #
27624 # Check for X11 shape extension
27625 #
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027628if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 $as_echo_n "(cached) " >&6
27630else
27631 ac_check_lib_save_LIBS=$LIBS
27632LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027634/* end confdefs.h. */
27635
27636/* Override any GCC internal prototype to avoid an error.
27637 Use char because int might match the return type of a GCC
27638 builtin and then its argument prototype would still apply. */
27639#ifdef __cplusplus
27640extern "C"
27641#endif
27642char XShapeCombineMask ();
27643int
27644main ()
27645{
27646return XShapeCombineMask ();
27647 ;
27648 return 0;
27649}
27650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027651if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 ac_cv_lib_Xext_XShapeCombineMask=yes
27653else
cristy8b350f62009-11-15 23:12:43 +000027654 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027655fi
cristy8b350f62009-11-15 23:12:43 +000027656rm -f core conftest.err conftest.$ac_objext \
27657 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027658LIBS=$ac_check_lib_save_LIBS
27659fi
cristy8b350f62009-11-15 23:12:43 +000027660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027661$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027662if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027664$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027665
27666fi
27667
cristy8b350f62009-11-15 23:12:43 +000027668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 $as_echo_n "(cached) " >&6
27672else
27673 ac_check_lib_save_LIBS=$LIBS
27674LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027676/* end confdefs.h. */
27677
27678/* Override any GCC internal prototype to avoid an error.
27679 Use char because int might match the return type of a GCC
27680 builtin and then its argument prototype would still apply. */
27681#ifdef __cplusplus
27682extern "C"
27683#endif
27684char XtSetEventDispatcher ();
27685int
27686main ()
27687{
27688return XtSetEventDispatcher ();
27689 ;
27690 return 0;
27691}
27692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027693if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027694 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27695else
cristy8b350f62009-11-15 23:12:43 +000027696 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027697fi
cristy8b350f62009-11-15 23:12:43 +000027698rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027700LIBS=$ac_check_lib_save_LIBS
27701fi
cristy8b350f62009-11-15 23:12:43 +000027702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027703$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027704if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027705 XT_LIBS='-lXt'
27706fi
27707
27708 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27709fi
27710if test "$no_x" != 'yes'; then
27711 have_x='yes'
27712else
27713 have_x='no'
27714fi
cristy73bd4a52010-10-05 11:24:23 +000027715 if test "$have_x" = 'yes'; then
27716 X11_DELEGATE_TRUE=
27717 X11_DELEGATE_FALSE='#'
27718else
27719 X11_DELEGATE_TRUE='#'
27720 X11_DELEGATE_FALSE=
27721fi
27722
cristy3ed852e2009-09-05 21:47:34 +000027723
27724
27725
27726
27727#
27728# Check for ZLIB
27729#
27730
27731# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027732if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 withval=$with_zlib; with_zlib=$withval
27734else
27735 with_zlib='yes'
27736fi
27737
27738
27739if test "$with_zlib" != 'yes'; then
27740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27741fi
27742
27743have_zlib='no'
27744ZLIB_LIBS=''
27745if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27751$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027752 ZLIB_LIBS=''
27753 failed=0
27754 passed=0
cristy8b350f62009-11-15 23:12:43 +000027755 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027756if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 passed=`expr $passed + 1`
27758else
27759 failed=`expr $failed + 1`
27760fi
27761
27762
cristy8b350f62009-11-15 23:12:43 +000027763 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027764if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 passed=`expr $passed + 1`
27766else
27767 failed=`expr $failed + 1`
27768fi
27769
27770
cristy8b350f62009-11-15 23:12:43 +000027771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027772$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027773if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027774 $as_echo_n "(cached) " >&6
27775else
27776 ac_check_lib_save_LIBS=$LIBS
27777LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027779/* end confdefs.h. */
27780
27781/* Override any GCC internal prototype to avoid an error.
27782 Use char because int might match the return type of a GCC
27783 builtin and then its argument prototype would still apply. */
27784#ifdef __cplusplus
27785extern "C"
27786#endif
27787char compress ();
27788int
27789main ()
27790{
27791return compress ();
27792 ;
27793 return 0;
27794}
27795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 ac_cv_lib_z_compress=yes
27798else
cristy8b350f62009-11-15 23:12:43 +000027799 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027800fi
cristy8b350f62009-11-15 23:12:43 +000027801rm -f core conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027803LIBS=$ac_check_lib_save_LIBS
27804fi
cristy8b350f62009-11-15 23:12:43 +000027805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027806$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027807if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 passed=`expr $passed + 1`
27809else
27810 failed=`expr $failed + 1`
27811fi
27812
cristy8b350f62009-11-15 23:12:43 +000027813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027814$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027815if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 $as_echo_n "(cached) " >&6
27817else
27818 ac_check_lib_save_LIBS=$LIBS
27819LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027821/* end confdefs.h. */
27822
27823/* Override any GCC internal prototype to avoid an error.
27824 Use char because int might match the return type of a GCC
27825 builtin and then its argument prototype would still apply. */
27826#ifdef __cplusplus
27827extern "C"
27828#endif
27829char uncompress ();
27830int
27831main ()
27832{
27833return uncompress ();
27834 ;
27835 return 0;
27836}
27837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 ac_cv_lib_z_uncompress=yes
27840else
cristy8b350f62009-11-15 23:12:43 +000027841 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027842fi
cristy8b350f62009-11-15 23:12:43 +000027843rm -f core conftest.err conftest.$ac_objext \
27844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845LIBS=$ac_check_lib_save_LIBS
27846fi
cristy8b350f62009-11-15 23:12:43 +000027847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027849if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
cristy8b350f62009-11-15 23:12:43 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027856$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027857if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027858 $as_echo_n "(cached) " >&6
27859else
27860 ac_check_lib_save_LIBS=$LIBS
27861LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027863/* end confdefs.h. */
27864
27865/* Override any GCC internal prototype to avoid an error.
27866 Use char because int might match the return type of a GCC
27867 builtin and then its argument prototype would still apply. */
27868#ifdef __cplusplus
27869extern "C"
27870#endif
27871char deflate ();
27872int
27873main ()
27874{
27875return deflate ();
27876 ;
27877 return 0;
27878}
27879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027881 ac_cv_lib_z_deflate=yes
27882else
cristy8b350f62009-11-15 23:12:43 +000027883 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027884fi
cristy8b350f62009-11-15 23:12:43 +000027885rm -f core conftest.err conftest.$ac_objext \
27886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027887LIBS=$ac_check_lib_save_LIBS
27888fi
cristy8b350f62009-11-15 23:12:43 +000027889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027890$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027891if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027892 passed=`expr $passed + 1`
27893else
27894 failed=`expr $failed + 1`
27895fi
27896
cristy8b350f62009-11-15 23:12:43 +000027897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 $as_echo_n "(cached) " >&6
27901else
27902 ac_check_lib_save_LIBS=$LIBS
27903LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027905/* end confdefs.h. */
27906
27907/* Override any GCC internal prototype to avoid an error.
27908 Use char because int might match the return type of a GCC
27909 builtin and then its argument prototype would still apply. */
27910#ifdef __cplusplus
27911extern "C"
27912#endif
27913char inflate ();
27914int
27915main ()
27916{
27917return inflate ();
27918 ;
27919 return 0;
27920}
27921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 ac_cv_lib_z_inflate=yes
27924else
cristy8b350f62009-11-15 23:12:43 +000027925 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027926fi
cristy8b350f62009-11-15 23:12:43 +000027927rm -f core conftest.err conftest.$ac_objext \
27928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027929LIBS=$ac_check_lib_save_LIBS
27930fi
cristy8b350f62009-11-15 23:12:43 +000027931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027932$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027933if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027934 passed=`expr $passed + 1`
27935else
27936 failed=`expr $failed + 1`
27937fi
27938
cristy8b350f62009-11-15 23:12:43 +000027939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 $as_echo_n "(cached) " >&6
27943else
27944 ac_check_lib_save_LIBS=$LIBS
27945LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027947/* end confdefs.h. */
27948
27949/* Override any GCC internal prototype to avoid an error.
27950 Use char because int might match the return type of a GCC
27951 builtin and then its argument prototype would still apply. */
27952#ifdef __cplusplus
27953extern "C"
27954#endif
27955char gzseek ();
27956int
27957main ()
27958{
27959return gzseek ();
27960 ;
27961 return 0;
27962}
27963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 ac_cv_lib_z_gzseek=yes
27966else
cristy8b350f62009-11-15 23:12:43 +000027967 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027968fi
cristy8b350f62009-11-15 23:12:43 +000027969rm -f core conftest.err conftest.$ac_objext \
27970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027971LIBS=$ac_check_lib_save_LIBS
27972fi
cristy8b350f62009-11-15 23:12:43 +000027973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 passed=`expr $passed + 1`
27977else
27978 failed=`expr $failed + 1`
27979fi
27980
cristy8b350f62009-11-15 23:12:43 +000027981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027982$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027983if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027984 $as_echo_n "(cached) " >&6
27985else
27986 ac_check_lib_save_LIBS=$LIBS
27987LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027989/* end confdefs.h. */
27990
27991/* Override any GCC internal prototype to avoid an error.
27992 Use char because int might match the return type of a GCC
27993 builtin and then its argument prototype would still apply. */
27994#ifdef __cplusplus
27995extern "C"
27996#endif
27997char gztell ();
27998int
27999main ()
28000{
28001return gztell ();
28002 ;
28003 return 0;
28004}
28005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028007 ac_cv_lib_z_gztell=yes
28008else
cristy8b350f62009-11-15 23:12:43 +000028009 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028010fi
cristy8b350f62009-11-15 23:12:43 +000028011rm -f core conftest.err conftest.$ac_objext \
28012 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028013LIBS=$ac_check_lib_save_LIBS
28014fi
cristy8b350f62009-11-15 23:12:43 +000028015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028016$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028017if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028018 passed=`expr $passed + 1`
28019else
28020 failed=`expr $failed + 1`
28021fi
28022
cristy8b350f62009-11-15 23:12:43 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo_n "checking if ZLIB package is complete... " >&6; }
28025 if test $passed -gt 0; then
28026 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28028$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028029 have_zlib='no (failed tests)'
28030 else
28031 ZLIB_LIBS='-lz'
28032 LIBS="$ZLIB_LIBS $LIBS"
28033
cristy8b350f62009-11-15 23:12:43 +000028034$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028035
cristyad38abe2012-12-23 23:03:21 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28037$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028038 have_zlib='yes'
28039 fi
28040 else
cristyad38abe2012-12-23 23:03:21 +000028041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28042$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028043 fi
28044fi
cristy73bd4a52010-10-05 11:24:23 +000028045 if test "$have_zlib" = 'yes'; then
28046 ZLIB_DELEGATE_TRUE=
28047 ZLIB_DELEGATE_FALSE='#'
28048else
28049 ZLIB_DELEGATE_TRUE='#'
28050 ZLIB_DELEGATE_FALSE=
28051fi
28052
cristy3ed852e2009-09-05 21:47:34 +000028053
28054
cristy5eef09f2012-10-16 12:08:28 +000028055# whether modules are built or not.
28056with_ltdl='yes'
28057have_ltdl='no'
28058LTDL_LIBS=''
28059if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28061$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28063$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28065$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028066 failed=0
28067 passed=0
28068 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28069if test "x$ac_cv_header_ltdl_h" = xyes; then :
28070 passed=`expr $passed + 1`
28071else
28072 failed=`expr $failed + 1`
28073fi
28074
28075
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28077$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28078if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28079 $as_echo_n "(cached) " >&6
28080else
28081 ac_check_lib_save_LIBS=$LIBS
28082LIBS="-lltdl $LIBS"
28083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28084/* end confdefs.h. */
28085
28086/* Override any GCC internal prototype to avoid an error.
28087 Use char because int might match the return type of a GCC
28088 builtin and then its argument prototype would still apply. */
28089#ifdef __cplusplus
28090extern "C"
28091#endif
28092char lt_dlinit ();
28093int
28094main ()
28095{
28096return lt_dlinit ();
28097 ;
28098 return 0;
28099}
28100_ACEOF
28101if ac_fn_c_try_link "$LINENO"; then :
28102 ac_cv_lib_ltdl_lt_dlinit=yes
28103else
28104 ac_cv_lib_ltdl_lt_dlinit=no
28105fi
28106rm -f core conftest.err conftest.$ac_objext \
28107 conftest$ac_exeext conftest.$ac_ext
28108LIBS=$ac_check_lib_save_LIBS
28109fi
28110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28111$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28112if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28113 passed=`expr $passed + 1`
28114else
28115 failed=`expr $failed + 1`
28116fi
28117
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28119$as_echo_n "checking if libltdl package is complete... " >&6; }
28120 if test $passed -gt 0 ; then
28121 if test $failed -gt 0 ; then
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28123$as_echo "no -- some components failed test" >&6; }
28124 have_ltdl='no (failed tests)'
28125 else
28126 LTDL_LIBS='-lltdl'
28127 LIBS="$LTDL_LIBS $LIBS"
28128
28129$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28130
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28132$as_echo "yes" >&6; }
28133 have_ltdl='yes'
28134 fi
28135 else
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28137$as_echo "no" >&6; }
28138 fi
cristyaf4cbf32012-10-16 23:47:41 +000028139 if test "$have_ltdl" != 'yes' ; then
28140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28142as_fn_error 1 "libltdl is required for modules build
28143See \`config.log' for more details" "$LINENO" 5; }
28144 fi
cristy5eef09f2012-10-16 12:08:28 +000028145fi
28146 if test "$have_ltdl" != 'no'; then
28147 WITH_LTDL_TRUE=
28148 WITH_LTDL_FALSE='#'
28149else
28150 WITH_LTDL_TRUE='#'
28151 WITH_LTDL_FALSE=
28152fi
28153
28154
cristy3ed852e2009-09-05 21:47:34 +000028155#
28156# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28157#
28158LIB_DL=''
28159if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028161$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028162if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028163 $as_echo_n "(cached) " >&6
28164else
28165 ac_check_lib_save_LIBS=$LIBS
28166LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028168/* end confdefs.h. */
28169
28170/* Override any GCC internal prototype to avoid an error.
28171 Use char because int might match the return type of a GCC
28172 builtin and then its argument prototype would still apply. */
28173#ifdef __cplusplus
28174extern "C"
28175#endif
28176char dlopen ();
28177int
28178main ()
28179{
28180return dlopen ();
28181 ;
28182 return 0;
28183}
28184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028185if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 ac_cv_lib_dl_dlopen=yes
28187else
cristy8b350f62009-11-15 23:12:43 +000028188 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028189fi
cristy8b350f62009-11-15 23:12:43 +000028190rm -f core conftest.err conftest.$ac_objext \
28191 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028192LIBS=$ac_check_lib_save_LIBS
28193fi
cristy8b350f62009-11-15 23:12:43 +000028194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028195$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028196if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028197 LIB_DL='-ldl'
28198fi
28199
28200 LIBS="$LIB_DL $LIBS"
28201fi
28202
28203
28204
28205#
28206# Check for Autotrace delegate library.
28207#
28208
28209# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028210if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 withval=$with_autotrace; with_autotrace=$withval
28212else
28213 with_autotrace='no'
28214fi
28215
28216
28217if test "$with_autotrace" != 'yes'; then
28218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28219fi
28220
28221have_autotrace='no'
28222AUTOTRACE_CFLAGS=""
28223AUTOTRACE_LIBS=""
28224AUTOTRACE_PKG=""
28225if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28227$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028228
28229pkg_failed=no
28230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28231$as_echo_n "checking for AUTOTRACE... " >&6; }
28232
28233if test -n "$AUTOTRACE_CFLAGS"; then
28234 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28235 elif test -n "$PKG_CONFIG"; then
28236 if test -n "$PKG_CONFIG" && \
28237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28238 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28239 ac_status=$?
28240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28241 test $ac_status = 0; }; then
28242 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28243else
28244 pkg_failed=yes
28245fi
28246 else
28247 pkg_failed=untried
28248fi
28249if test -n "$AUTOTRACE_LIBS"; then
28250 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28251 elif test -n "$PKG_CONFIG"; then
28252 if test -n "$PKG_CONFIG" && \
28253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28254 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28255 ac_status=$?
28256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28257 test $ac_status = 0; }; then
28258 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28259else
28260 pkg_failed=yes
28261fi
28262 else
28263 pkg_failed=untried
28264fi
28265
28266
28267
28268if test $pkg_failed = yes; then
28269
28270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28271 _pkg_short_errors_supported=yes
28272else
28273 _pkg_short_errors_supported=no
28274fi
28275 if test $_pkg_short_errors_supported = yes; then
28276 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28277 else
28278 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28279 fi
28280 # Put the nasty error message in config.log where it belongs
28281 echo "$AUTOTRACE_PKG_ERRORS" >&5
28282
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28284$as_echo "no" >&6; }
28285 have_autotrace=no
28286elif test $pkg_failed = untried; then
28287 have_autotrace=no
28288else
28289 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28290 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28292$as_echo "yes" >&6; }
28293 have_autotrace=yes
28294fi
cristyad38abe2012-12-23 23:03:21 +000028295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28296$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028297fi
28298
28299if test "$have_autotrace" = 'yes'; then
28300 failed=0
28301
cristy8b350f62009-11-15 23:12:43 +000028302$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028303
cristyc6722092012-10-14 00:19:31 +000028304 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028305 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028306 fi
28307fi
28308
cristy73bd4a52010-10-05 11:24:23 +000028309 if test "$have_autotrace" = 'yes'; then
28310 AUTOTRACE_DELEGATE_TRUE=
28311 AUTOTRACE_DELEGATE_FALSE='#'
28312else
28313 AUTOTRACE_DELEGATE_TRUE='#'
28314 AUTOTRACE_DELEGATE_FALSE=
28315fi
28316
cristy3ed852e2009-09-05 21:47:34 +000028317
28318
28319
28320
28321#
28322# Check for Display Postscript delegate library.
28323#
28324
28325# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028326if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 withval=$with_dps; with_dps=$withval
28328else
28329 with_dps='yes'
28330fi
28331
28332
28333if test "$with_dps" != 'yes'; then
28334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28335fi
28336
28337have_dps='no'
28338DPS_LIBS=''
28339if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28341$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28345$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028346 failed=0
28347 passed=0
28348 PERSIST_CPPFLAGS="$CPPFLAGS"
28349 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028350 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 +000028351if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 passed=`expr $passed + 1`
28353else
28354 failed=`expr $failed + 1`
28355fi
28356
28357
28358 # DPS issues:
28359 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28360 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28361 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28362 # ImageMagick itself doesn't use -lXt.
28363 have_libdps='no'
28364 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028367if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 $as_echo_n "(cached) " >&6
28369else
28370 ac_check_lib_save_LIBS=$LIBS
28371LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028373/* end confdefs.h. */
28374
28375/* Override any GCC internal prototype to avoid an error.
28376 Use char because int might match the return type of a GCC
28377 builtin and then its argument prototype would still apply. */
28378#ifdef __cplusplus
28379extern "C"
28380#endif
28381char DPSInitialize ();
28382int
28383main ()
28384{
28385return DPSInitialize ();
28386 ;
28387 return 0;
28388}
28389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028391 ac_cv_lib_dps_DPSInitialize=yes
28392else
cristy8b350f62009-11-15 23:12:43 +000028393 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028394fi
cristy8b350f62009-11-15 23:12:43 +000028395rm -f core conftest.err conftest.$ac_objext \
28396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028397LIBS=$ac_check_lib_save_LIBS
28398fi
cristy8b350f62009-11-15 23:12:43 +000028399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028400$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028401if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 have_libdps='yes'
28403else
28404 have_libdps='no'
28405fi
28406
28407 if test "$have_libdps" != 'yes'; then
28408 # Unset cache variable so we can try again.
28409 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028411$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028412if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028413 $as_echo_n "(cached) " >&6
28414else
28415 ac_check_lib_save_LIBS=$LIBS
28416LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028418/* end confdefs.h. */
28419
28420/* Override any GCC internal prototype to avoid an error.
28421 Use char because int might match the return type of a GCC
28422 builtin and then its argument prototype would still apply. */
28423#ifdef __cplusplus
28424extern "C"
28425#endif
28426char DPSInitialize ();
28427int
28428main ()
28429{
28430return DPSInitialize ();
28431 ;
28432 return 0;
28433}
28434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 ac_cv_lib_dps_DPSInitialize=yes
28437else
cristy8b350f62009-11-15 23:12:43 +000028438 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028439fi
cristy8b350f62009-11-15 23:12:43 +000028440rm -f core conftest.err conftest.$ac_objext \
28441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028442LIBS=$ac_check_lib_save_LIBS
28443fi
cristy8b350f62009-11-15 23:12:43 +000028444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028445$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028446if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028447 have_libdps='yes'
28448else
28449 have_libdps='no'
28450fi
28451
28452 if test "$have_libdps" = 'yes'; then
28453 LIBDPS_XT='-lXt'
28454 fi
28455 fi
28456 if test "$have_libdps" = 'yes'; then
28457 passed=`expr $passed + 1`
28458 else
28459 failed=`expr $failed + 1`
28460 fi
cristy8b350f62009-11-15 23:12:43 +000028461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028462$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028463if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028464 $as_echo_n "(cached) " >&6
28465else
28466 ac_check_lib_save_LIBS=$LIBS
28467LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028469/* end confdefs.h. */
28470
28471/* Override any GCC internal prototype to avoid an error.
28472 Use char because int might match the return type of a GCC
28473 builtin and then its argument prototype would still apply. */
28474#ifdef __cplusplus
28475extern "C"
28476#endif
28477char XDPSPixelsPerPoint ();
28478int
28479main ()
28480{
28481return XDPSPixelsPerPoint ();
28482 ;
28483 return 0;
28484}
28485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028486if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028487 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28488else
cristy8b350f62009-11-15 23:12:43 +000028489 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028490fi
cristy8b350f62009-11-15 23:12:43 +000028491rm -f core conftest.err conftest.$ac_objext \
28492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028493LIBS=$ac_check_lib_save_LIBS
28494fi
cristy8b350f62009-11-15 23:12:43 +000028495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028496$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028497if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 passed=`expr $passed + 1`
28499else
28500 failed=`expr $failed + 1`
28501fi
28502
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo_n "checking if DPS package is complete... " >&6; }
28505 if test $passed -gt 0; then
28506 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28508$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028509 have_dps='no (failed tests)'
28510 CPPFLAGS="$PERSIST_CPPFLAGS"
28511 else
28512 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28513 LIBS="$DPS_LIBS $LIBS"
28514
cristy8b350f62009-11-15 23:12:43 +000028515$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028516
cristyad38abe2012-12-23 23:03:21 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28518$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028519 have_dps='yes'
28520 fi
28521 else
cristyad38abe2012-12-23 23:03:21 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28523$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028524 CPPFLAGS=$PERSIST_CPPFLAGS
28525 fi
28526fi
cristy73bd4a52010-10-05 11:24:23 +000028527 if test "$have_dps" = 'yes'; then
28528 DPS_DELEGATE_TRUE=
28529 DPS_DELEGATE_FALSE='#'
28530else
28531 DPS_DELEGATE_TRUE='#'
28532 DPS_DELEGATE_FALSE=
28533fi
28534
cristy3ed852e2009-09-05 21:47:34 +000028535
28536
28537
28538#
28539# Check for DJVU delegate library.
28540#
28541
28542# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028543if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028544 withval=$with_djvu; with_djvu=$withval
28545else
28546 with_djvu='yes'
28547fi
28548
28549
28550if test "$with_djvu" != 'yes'; then
28551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28552fi
28553
28554have_djvu='no'
28555DJVU_LIBS=''
28556if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28558$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28562$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028563 failed=0
28564 passed=0
cristy8b350f62009-11-15 23:12:43 +000028565 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028566if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028567 passed=`expr $passed + 1`
28568else
28569 failed=`expr $failed + 1`
28570fi
28571
28572
cristy8b350f62009-11-15 23:12:43 +000028573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028574$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028575if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028576 $as_echo_n "(cached) " >&6
28577else
28578 ac_check_lib_save_LIBS=$LIBS
28579LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028581/* end confdefs.h. */
28582
28583/* Override any GCC internal prototype to avoid an error.
28584 Use char because int might match the return type of a GCC
28585 builtin and then its argument prototype would still apply. */
28586#ifdef __cplusplus
28587extern "C"
28588#endif
28589char ddjvu_context_create ();
28590int
28591main ()
28592{
28593return ddjvu_context_create ();
28594 ;
28595 return 0;
28596}
28597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028598if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28600else
cristy8b350f62009-11-15 23:12:43 +000028601 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028602fi
cristy8b350f62009-11-15 23:12:43 +000028603rm -f core conftest.err conftest.$ac_objext \
28604 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028605LIBS=$ac_check_lib_save_LIBS
28606fi
cristy8b350f62009-11-15 23:12:43 +000028607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028608$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028609if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028610 passed=`expr $passed + 1`
28611else
28612 failed=`expr $failed + 1`
28613fi
28614
cristy8b350f62009-11-15 23:12:43 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo_n "checking if DJVU package is complete... " >&6; }
28617 if test $passed -gt 0; then
28618 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28620$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028621 have_djvu='no (failed tests)'
28622 else
28623 DJVU_LIBS='-ldjvulibre'
28624 LIBS="$DJVU_LIBS $LIBS"
28625
cristy8b350f62009-11-15 23:12:43 +000028626$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028627
cristyad38abe2012-12-23 23:03:21 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28629$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028630 have_djvu='yes'
28631 fi
28632 else
cristyad38abe2012-12-23 23:03:21 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28634$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028635 fi
28636fi
cristy73bd4a52010-10-05 11:24:23 +000028637 if test "$have_djvu" = 'yes'; then
28638 DJVU_DELEGATE_TRUE=
28639 DJVU_DELEGATE_FALSE='#'
28640else
28641 DJVU_DELEGATE_TRUE='#'
28642 DJVU_DELEGATE_FALSE=
28643fi
28644
cristy3ed852e2009-09-05 21:47:34 +000028645
28646
28647
28648#
cristy430a7312010-01-21 20:44:04 +000028649# Set DejaVu font directory.
28650#
28651
28652# Check whether --with-dejavu-font-dir was given.
28653if test "${with_dejavu_font_dir+set}" = set; then :
28654 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28655else
28656 with_dejavu_font_dir='default'
28657fi
28658
28659
28660if test "$with_dejavu_font_dir" != 'default'; then
28661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28662fi
28663
28664
28665#
cristy3ed852e2009-09-05 21:47:34 +000028666# Check for FFTW delegate library.
28667#
28668
28669# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028670if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028671 withval=$with_fftw; with_fftw=$withval
28672else
28673 with_fftw='yes'
28674fi
28675
28676
28677if test "$with_fftw" != 'yes'; then
28678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28679fi
28680
cristy81beccd2011-10-03 18:17:24 +000028681have_fftw='no'
28682FFTW_LIBS=''
28683if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28685$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28687$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28689$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028690 failed=0
28691 passed=0
28692 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28693if test "x$ac_cv_header_fftw3_h" = xyes; then :
28694 passed=`expr $passed + 1`
28695else
28696 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028697fi
28698
cristy81beccd2011-10-03 18:17:24 +000028699
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28701$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28702if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28703 $as_echo_n "(cached) " >&6
28704else
28705 ac_check_lib_save_LIBS=$LIBS
28706LIBS="-lfftw3 $LIBS"
28707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28708/* end confdefs.h. */
28709
28710/* Override any GCC internal prototype to avoid an error.
28711 Use char because int might match the return type of a GCC
28712 builtin and then its argument prototype would still apply. */
28713#ifdef __cplusplus
28714extern "C"
28715#endif
28716char fftw_execute ();
28717int
28718main ()
28719{
28720return fftw_execute ();
28721 ;
28722 return 0;
28723}
28724_ACEOF
28725if ac_fn_c_try_link "$LINENO"; then :
28726 ac_cv_lib_fftw3_fftw_execute=yes
28727else
28728 ac_cv_lib_fftw3_fftw_execute=no
28729fi
28730rm -f core conftest.err conftest.$ac_objext \
28731 conftest$ac_exeext conftest.$ac_ext
28732LIBS=$ac_check_lib_save_LIBS
28733fi
28734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28735$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28736if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28737 passed=`expr $passed + 1`
28738else
28739 failed=`expr $failed + 1`
28740fi
28741
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28743$as_echo_n "checking if FFTW package is complete... " >&6; }
28744 if test $passed -gt 0; then
28745 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28747$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028748 have_fftw='no (failed tests)'
28749 else
28750 FFTW_LIBS='-lfftw3'
28751 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028752
cristy8b350f62009-11-15 23:12:43 +000028753$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028754
cristyad38abe2012-12-23 23:03:21 +000028755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28756$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028757 have_fftw='yes'
28758 fi
28759 else
cristyad38abe2012-12-23 23:03:21 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28761$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028762 fi
28763fi
cristy73bd4a52010-10-05 11:24:23 +000028764 if test "$have_fftw" = 'yes'; then
28765 FFTW_DELEGATE_TRUE=
28766 FFTW_DELEGATE_FALSE='#'
28767else
28768 FFTW_DELEGATE_TRUE='#'
28769 FFTW_DELEGATE_FALSE=
28770fi
28771
cristy3ed852e2009-09-05 21:47:34 +000028772
28773
28774
28775#
28776# Check for FlashPIX delegate library.
28777#
28778
28779# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028780if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028781 withval=$with_fpx; with_fpx=$withval
28782else
28783 with_fpx='yes'
28784fi
28785
28786
28787if test "$with_fpx" != 'yes'; then
28788 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28789fi
28790
28791have_fpx='no'
28792FPX_LIBS=''
28793if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28795$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28799$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028800 failed=0
28801 passed=0
28802 ac_ext=cpp
28803ac_cpp='$CXXCPP $CPPFLAGS'
28804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28807
28808
cristy8b350f62009-11-15 23:12:43 +000028809ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028810if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028811 passed=`expr $passed + 1`
28812else
28813 failed=`expr $failed + 1`
28814fi
28815
28816
cristy8b350f62009-11-15 23:12:43 +000028817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028818$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028819if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 $as_echo_n "(cached) " >&6
28821else
28822 ac_check_lib_save_LIBS=$LIBS
28823LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028825/* end confdefs.h. */
28826
28827/* Override any GCC internal prototype to avoid an error.
28828 Use char because int might match the return type of a GCC
28829 builtin and then its argument prototype would still apply. */
28830#ifdef __cplusplus
28831extern "C"
28832#endif
28833char FPX_OpenImageByFilename ();
28834int
28835main ()
28836{
28837return FPX_OpenImageByFilename ();
28838 ;
28839 return 0;
28840}
28841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028842if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28844else
cristy8b350f62009-11-15 23:12:43 +000028845 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028846fi
cristy8b350f62009-11-15 23:12:43 +000028847rm -f core conftest.err conftest.$ac_objext \
28848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028849LIBS=$ac_check_lib_save_LIBS
28850fi
cristy8b350f62009-11-15 23:12:43 +000028851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028852$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028853if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 passed=`expr $passed + 1`
28855else
28856 failed=`expr $failed + 1`
28857fi
28858
28859 ac_ext=c
28860ac_cpp='$CPP $CPPFLAGS'
28861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863ac_compiler_gnu=$ac_cv_c_compiler_gnu
28864
cristy8b350f62009-11-15 23:12:43 +000028865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028866$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28867 if test $passed -gt 0; then
28868 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28870$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028871 have_fpx='no (failed tests)'
28872 else
28873 FPX_LIBS='-lfpx'
28874
cristy8b350f62009-11-15 23:12:43 +000028875$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028876
cristyad38abe2012-12-23 23:03:21 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28878$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028879 have_fpx='yes'
28880 PERLMAINCC="$CXX"
28881 fi
28882 else
cristyad38abe2012-12-23 23:03:21 +000028883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28884$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028885 fi
28886fi
cristy73bd4a52010-10-05 11:24:23 +000028887 if test "$have_fpx" = 'yes'; then
28888 FPX_DELEGATE_TRUE=
28889 FPX_DELEGATE_FALSE='#'
28890else
28891 FPX_DELEGATE_TRUE='#'
28892 FPX_DELEGATE_FALSE=
28893fi
28894
cristy3ed852e2009-09-05 21:47:34 +000028895
28896
28897
28898#
28899# Check for fontconfig delegate library.
28900#
28901
28902# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028903if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 withval=$with_fontconfig; with_fontconfig=$withval
28905else
cristyfc3d0222012-02-07 15:05:57 +000028906 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028907fi
28908
28909
28910if test "$with_fontconfig" != 'yes'; then
28911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28912fi
28913
28914have_fontconfig='no'
28915FONTCONFIG_CFLAGS=""
28916FONTCONFIG_LIBS=""
28917FONTCONFIG_PKG=""
28918if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28920$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028921
28922pkg_failed=no
28923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28924$as_echo_n "checking for FONTCONFIG... " >&6; }
28925
28926if test -n "$FONTCONFIG_CFLAGS"; then
28927 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28928 elif test -n "$PKG_CONFIG"; then
28929 if test -n "$PKG_CONFIG" && \
28930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28931 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28932 ac_status=$?
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; then
28935 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28936else
28937 pkg_failed=yes
28938fi
28939 else
28940 pkg_failed=untried
28941fi
28942if test -n "$FONTCONFIG_LIBS"; then
28943 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28944 elif test -n "$PKG_CONFIG"; then
28945 if test -n "$PKG_CONFIG" && \
28946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28947 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28948 ac_status=$?
28949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28950 test $ac_status = 0; }; then
28951 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28952else
28953 pkg_failed=yes
28954fi
28955 else
28956 pkg_failed=untried
28957fi
28958
28959
28960
28961if test $pkg_failed = yes; then
28962
28963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28964 _pkg_short_errors_supported=yes
28965else
28966 _pkg_short_errors_supported=no
28967fi
28968 if test $_pkg_short_errors_supported = yes; then
28969 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28970 else
28971 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28972 fi
28973 # Put the nasty error message in config.log where it belongs
28974 echo "$FONTCONFIG_PKG_ERRORS" >&5
28975
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28977$as_echo "no" >&6; }
28978 have_fontconfig=no
28979elif test $pkg_failed = untried; then
28980 have_fontconfig=no
28981else
28982 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28983 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28985$as_echo "yes" >&6; }
28986 have_fontconfig=yes
28987fi
cristyad38abe2012-12-23 23:03:21 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28989$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028990fi
28991
28992if test "$have_fontconfig" = 'yes'; then
28993
cristy8b350f62009-11-15 23:12:43 +000028994$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028995
cristyc6722092012-10-14 00:19:31 +000028996 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028997 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028998 fi
cristy3ed852e2009-09-05 21:47:34 +000028999fi
29000
cristy73bd4a52010-10-05 11:24:23 +000029001 if test "$have_fontconfig" = 'yes'; then
29002 FONTCONFIG_DELEGATE_TRUE=
29003 FONTCONFIG_DELEGATE_FALSE='#'
29004else
29005 FONTCONFIG_DELEGATE_TRUE='#'
29006 FONTCONFIG_DELEGATE_FALSE=
29007fi
29008
cristy3ed852e2009-09-05 21:47:34 +000029009
29010
29011
29012
29013#
cristy03f187e2013-01-24 00:22:19 +000029014# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029015#
29016
29017# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029018if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029019 withval=$with_freetype; with_freetype=$withval
29020else
29021 with_freetype='yes'
29022fi
29023
29024
cristy3ed852e2009-09-05 21:47:34 +000029025if test "$with_freetype" != 'yes'; then
29026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29027fi
29028
cristy81beccd2011-10-03 18:17:24 +000029029have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029030FREETYPE_CFLAGS=""
29031FREETYPE_LIBS=""
29032FREETYPE_PKG=""
29033if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29035$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029036
29037pkg_failed=no
29038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29039$as_echo_n "checking for FREETYPE... " >&6; }
29040
29041if test -n "$FREETYPE_CFLAGS"; then
29042 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29043 elif test -n "$PKG_CONFIG"; then
29044 if test -n "$PKG_CONFIG" && \
29045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29046 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29047 ac_status=$?
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; then
29050 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29051else
29052 pkg_failed=yes
29053fi
29054 else
29055 pkg_failed=untried
29056fi
29057if test -n "$FREETYPE_LIBS"; then
29058 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29059 elif test -n "$PKG_CONFIG"; then
29060 if test -n "$PKG_CONFIG" && \
29061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29062 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29063 ac_status=$?
29064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29065 test $ac_status = 0; }; then
29066 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29067else
29068 pkg_failed=yes
29069fi
29070 else
29071 pkg_failed=untried
29072fi
29073
29074
29075
29076if test $pkg_failed = yes; then
29077
29078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29079 _pkg_short_errors_supported=yes
29080else
29081 _pkg_short_errors_supported=no
29082fi
29083 if test $_pkg_short_errors_supported = yes; then
29084 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29085 else
29086 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29087 fi
29088 # Put the nasty error message in config.log where it belongs
29089 echo "$FREETYPE_PKG_ERRORS" >&5
29090
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29092$as_echo "no" >&6; }
29093 have_freetype=no
29094elif test $pkg_failed = untried; then
29095 have_freetype=no
29096else
29097 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29098 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29100$as_echo "yes" >&6; }
29101 have_freetype=yes
29102fi
cristyad38abe2012-12-23 23:03:21 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29104$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029105fi
29106
cristy03f187e2013-01-24 00:22:19 +000029107if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029108
cristy8b350f62009-11-15 23:12:43 +000029109$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029110
cristy03f187e2013-01-24 00:22:19 +000029111 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029112fi
cristy03f187e2013-01-24 00:22:19 +000029113
cristy73bd4a52010-10-05 11:24:23 +000029114 if test "$have_freetype" = 'yes'; then
29115 FREETYPE_DELEGATE_TRUE=
29116 FREETYPE_DELEGATE_FALSE='#'
29117else
29118 FREETYPE_DELEGATE_TRUE='#'
29119 FREETYPE_DELEGATE_FALSE=
29120fi
29121
cristy3ed852e2009-09-05 21:47:34 +000029122
29123
29124
cristy03f187e2013-01-24 00:22:19 +000029125
cristy3ed852e2009-09-05 21:47:34 +000029126#
29127# Check for Ghostscript library or framework.
29128#
29129# Test for iapi.h & test for gsapi_new_instance in -lgs
29130# or -framework Ghostscript
29131
29132
29133# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029134if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029135 withval=$with_gslib; with_gslib=$withval
29136else
29137 with_gslib='no'
29138fi
29139
29140
cristyb7931f12009-09-25 10:22:21 +000029141gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029142if test "$with_gslib" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29144fi
29145
29146have_gslib='no'
29147GS_LIBS=''
29148if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029152$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29154$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029155 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029156 failed=0
29157 passed=0
cristy8b350f62009-11-15 23:12:43 +000029158 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 +000029159if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029160 passed=`expr $passed + 1`
29161else
29162 failed=`expr $failed + 1`
29163fi
29164
29165
cristy8b350f62009-11-15 23:12:43 +000029166 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 +000029167if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029168 passed=`expr $passed + 1`
29169else
29170 failed=`expr $failed + 1`
29171fi
29172
29173
cristy73bd4a52010-10-05 11:24:23 +000029174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29175$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029176if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029177 $as_echo_n "(cached) " >&6
29178else
29179 ac_check_framework_save_LIBS=$LIBS
29180LIBS="-framework Ghostscript $LIBS"
29181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29182/* end confdefs.h. */
29183
29184/* Override any GCC internal prototype to avoid an error.
29185 Use char because int might match the return type of a GCC
29186 builtin and then its argument prototype would still apply. */
29187#ifdef __cplusplus
29188extern "C"
29189#endif
29190char gsapi_new_instance ();
29191int
29192main ()
29193{
29194return gsapi_new_instance ();
29195 ;
29196 return 0;
29197}
29198_ACEOF
29199if ac_fn_c_try_link "$LINENO"; then :
29200 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29201else
29202 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29203fi
29204rm -f core conftest.err conftest.$ac_objext \
29205 conftest$ac_exeext conftest.$ac_ext
29206LIBS=$ac_check_framework_save_LIBS
29207fi
29208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29209$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29210if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29211 framework=`expr $framework + 1`
29212else
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029215if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 $as_echo_n "(cached) " >&6
29217else
29218 ac_check_lib_save_LIBS=$LIBS
29219LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029221/* end confdefs.h. */
29222
29223/* Override any GCC internal prototype to avoid an error.
29224 Use char because int might match the return type of a GCC
29225 builtin and then its argument prototype would still apply. */
29226#ifdef __cplusplus
29227extern "C"
29228#endif
29229char gsapi_new_instance ();
29230int
29231main ()
29232{
29233return gsapi_new_instance ();
29234 ;
29235 return 0;
29236}
29237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 ac_cv_lib_gs_gsapi_new_instance=yes
29240else
cristy8b350f62009-11-15 23:12:43 +000029241 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029242fi
cristy8b350f62009-11-15 23:12:43 +000029243rm -f core conftest.err conftest.$ac_objext \
29244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029245LIBS=$ac_check_lib_save_LIBS
29246fi
cristy8b350f62009-11-15 23:12:43 +000029247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029248$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029249if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029250 passed=`expr $passed + 1`
29251else
29252 failed=`expr $failed + 1`
29253fi
cristy73bd4a52010-10-05 11:24:23 +000029254
29255fi
cristy8b350f62009-11-15 23:12:43 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029257$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29258 if test $passed -gt 0; then
29259 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29261$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029262 have_gslib='no (failed tests)'
29263 else
29264 if test $framework -gt 0; then
29265 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029266 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29268$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029269 else
cristyad38abe2012-12-23 23:03:21 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29271$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029272 GS_LIBS='-lgs'
29273 fi
29274 LIBS="$GS_LIBS $LIBS"
29275
cristy8b350f62009-11-15 23:12:43 +000029276$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029277
29278 have_gslib='yes'
29279 fi
29280 else
cristyad38abe2012-12-23 23:03:21 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29282$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029283 fi
29284fi
cristy73bd4a52010-10-05 11:24:23 +000029285 if test "$have_gslib" = 'yes'; then
29286 GS_DELEGATE_TRUE=
29287 GS_DELEGATE_FALSE='#'
29288else
29289 GS_DELEGATE_TRUE='#'
29290 GS_DELEGATE_FALSE=
29291fi
29292
cristy3ed852e2009-09-05 21:47:34 +000029293
29294
29295# Set default font search path
29296
29297# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029298if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029299 withval=$with_fontpath; with_fontpath=$withval
29300else
29301 with_fontpath=''
29302fi
29303
29304
29305if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29306 with_fontpath=''
29307else
29308
29309cat >>confdefs.h <<_ACEOF
29310#define MAGICK_FONT_PATH "$with_fontpath"
29311_ACEOF
29312
29313fi
29314if test "$with_fontpath=" != ''; then
29315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29316fi
29317
29318# Set Ghostscript font directory
29319
29320# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029321if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029322 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29323else
29324 with_gs_font_dir='default'
29325fi
29326
29327
29328if test "$with_gs_font_dir" != 'default'; then
29329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29330fi
29331
29332
29333#
29334# Check for GVC delegate library.
29335#
29336
29337# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029338if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 withval=$with_gvc; with_gvc=$withval
29340else
cristy1b70dc82012-07-01 23:15:05 +000029341 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029342fi
29343
29344
29345if test "$with_gvc" != 'yes'; then
29346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29347fi
29348
29349GVC_PKG=""
29350if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29352$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029353
29354pkg_failed=no
29355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29356$as_echo_n "checking for GVC... " >&6; }
29357
29358if test -n "$GVC_CFLAGS"; then
29359 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29360 elif test -n "$PKG_CONFIG"; then
29361 if test -n "$PKG_CONFIG" && \
29362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29363 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29364 ac_status=$?
29365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29366 test $ac_status = 0; }; then
29367 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29368else
29369 pkg_failed=yes
29370fi
29371 else
29372 pkg_failed=untried
29373fi
29374if test -n "$GVC_LIBS"; then
29375 pkg_cv_GVC_LIBS="$GVC_LIBS"
29376 elif test -n "$PKG_CONFIG"; then
29377 if test -n "$PKG_CONFIG" && \
29378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29379 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29380 ac_status=$?
29381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29382 test $ac_status = 0; }; then
29383 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29384else
29385 pkg_failed=yes
29386fi
29387 else
29388 pkg_failed=untried
29389fi
29390
29391
29392
29393if test $pkg_failed = yes; then
29394
29395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29396 _pkg_short_errors_supported=yes
29397else
29398 _pkg_short_errors_supported=no
29399fi
29400 if test $_pkg_short_errors_supported = yes; then
29401 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29402 else
29403 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29404 fi
29405 # Put the nasty error message in config.log where it belongs
29406 echo "$GVC_PKG_ERRORS" >&5
29407
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29409$as_echo "no" >&6; }
29410 have_gvc=no
29411elif test $pkg_failed = untried; then
29412 have_gvc=no
29413else
29414 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29415 GVC_LIBS=$pkg_cv_GVC_LIBS
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29417$as_echo "yes" >&6; }
29418 have_gvc=yes
29419fi
cristyad38abe2012-12-23 23:03:21 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29421$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029422fi
29423
29424if test "$have_gvc" = 'yes'; then
29425
cristy8b350f62009-11-15 23:12:43 +000029426$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029427
cristyc6722092012-10-14 00:19:31 +000029428 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029429 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29430 fi
29431fi
29432
cristy73bd4a52010-10-05 11:24:23 +000029433 if test "$have_gvc" = 'yes'; then
29434 GVC_DELEGATE_TRUE=
29435 GVC_DELEGATE_FALSE='#'
29436else
29437 GVC_DELEGATE_TRUE='#'
29438 GVC_DELEGATE_FALSE=
29439fi
29440
cristy3ed852e2009-09-05 21:47:34 +000029441
29442
29443
29444
29445#
29446# Check for JBIG delegate library.
29447#
29448
29449
29450# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029451if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029452 withval=$with_jbig; with_jbig=$withval
29453else
29454 with_jbig='yes'
29455fi
29456
29457
29458have_jbig='no'
29459JBIG_LIBS=''
29460if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29462$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029464$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29466$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029467 failed=0
29468 passed=0
cristy8b350f62009-11-15 23:12:43 +000029469 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029470if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029471 passed=`expr $passed + 1`
29472else
29473 failed=`expr $failed + 1`
29474fi
29475
29476
cristy8b350f62009-11-15 23:12:43 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029479if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029480 $as_echo_n "(cached) " >&6
29481else
29482 ac_check_lib_save_LIBS=$LIBS
29483LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029485/* end confdefs.h. */
29486
29487/* Override any GCC internal prototype to avoid an error.
29488 Use char because int might match the return type of a GCC
29489 builtin and then its argument prototype would still apply. */
29490#ifdef __cplusplus
29491extern "C"
29492#endif
29493char jbg_dec_init ();
29494int
29495main ()
29496{
29497return jbg_dec_init ();
29498 ;
29499 return 0;
29500}
29501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029503 ac_cv_lib_jbig_jbg_dec_init=yes
29504else
cristy8b350f62009-11-15 23:12:43 +000029505 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029506fi
cristy8b350f62009-11-15 23:12:43 +000029507rm -f core conftest.err conftest.$ac_objext \
29508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029509LIBS=$ac_check_lib_save_LIBS
29510fi
cristy8b350f62009-11-15 23:12:43 +000029511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029512$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029513if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029514 passed=`expr $passed + 1`
29515else
29516 failed=`expr $failed + 1`
29517fi
29518
cristy8b350f62009-11-15 23:12:43 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029520$as_echo_n "checking if JBIG package is complete... " >&6; }
29521 if test $passed -gt 0; then
29522 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29524$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029525 have_jbig='no (failed tests)'
29526 else
29527 JBIG_LIBS='-ljbig'
29528 LIBS="$JBIG_LIBS $LIBS"
29529
cristy8b350f62009-11-15 23:12:43 +000029530$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029531
cristyad38abe2012-12-23 23:03:21 +000029532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29533$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029534 have_jbig='yes'
29535 fi
29536 else
cristyad38abe2012-12-23 23:03:21 +000029537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29538$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029539 fi
29540fi
cristy73bd4a52010-10-05 11:24:23 +000029541 if test "$have_jbig" = 'yes'; then
29542 JBIG_DELEGATE_TRUE=
29543 JBIG_DELEGATE_FALSE='#'
29544else
29545 JBIG_DELEGATE_TRUE='#'
29546 JBIG_DELEGATE_FALSE=
29547fi
29548
cristy3ed852e2009-09-05 21:47:34 +000029549
29550
29551
29552#
29553# Check for JPEG delegate library.
29554#
29555
29556# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029557if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029558 withval=$with_jpeg; with_jpeg=$withval
29559else
29560 with_jpeg='yes'
29561fi
29562
29563
29564if test "$with_jpeg" != 'yes'; then
29565 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29566fi
29567
29568have_jpeg='no'
29569JPEG_LIBS=''
29570if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29572$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29576$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029577 failed=0
29578 passed=0
cristy8b350f62009-11-15 23:12:43 +000029579 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029580if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029581 passed=`expr $passed + 1`
29582else
29583 failed=`expr $failed + 1`
29584fi
29585
29586
cristy8b350f62009-11-15 23:12:43 +000029587 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029588if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029589 passed=`expr $passed + 1`
29590else
29591 failed=`expr $failed + 1`
29592fi
29593
29594
cristy8b350f62009-11-15 23:12:43 +000029595 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029596if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029597 passed=`expr $passed + 1`
29598else
29599 failed=`expr $failed + 1`
29600fi
29601
29602
cristy8b350f62009-11-15 23:12:43 +000029603 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029604if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 passed=`expr $passed + 1`
29606else
29607 failed=`expr $failed + 1`
29608fi
29609
29610
cristy8b350f62009-11-15 23:12:43 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 $as_echo_n "(cached) " >&6
29615else
29616 ac_check_lib_save_LIBS=$LIBS
29617LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029619/* end confdefs.h. */
29620
29621/* Override any GCC internal prototype to avoid an error.
29622 Use char because int might match the return type of a GCC
29623 builtin and then its argument prototype would still apply. */
29624#ifdef __cplusplus
29625extern "C"
29626#endif
29627char jpeg_read_header ();
29628int
29629main ()
29630{
29631return jpeg_read_header ();
29632 ;
29633 return 0;
29634}
29635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029637 ac_cv_lib_jpeg_jpeg_read_header=yes
29638else
cristy8b350f62009-11-15 23:12:43 +000029639 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029640fi
cristy8b350f62009-11-15 23:12:43 +000029641rm -f core conftest.err conftest.$ac_objext \
29642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029643LIBS=$ac_check_lib_save_LIBS
29644fi
cristy8b350f62009-11-15 23:12:43 +000029645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029646$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029647if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 passed=`expr $passed + 1`
29649else
29650 failed=`expr $failed + 1`
29651fi
29652
29653
29654# Test for compatible JPEG library
29655if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029657$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029658if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029659 $as_echo_n "(cached) " >&6
29660else
cristy8b350f62009-11-15 23:12:43 +000029661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029662/* end confdefs.h. */
29663#include <stdio.h>
29664#include <stdlib.h>
29665#include <jpeglib.h>
29666
29667int
29668main ()
29669{
29670
29671#if JPEG_LIB_VERSION < 62
29672#error IJG JPEG library must be version 6b or newer!
29673#endif
29674return 0;
29675
29676 ;
29677 return 0;
29678}
29679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029681 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29682else
cristy8b350f62009-11-15 23:12:43 +000029683 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029684fi
cristy3ed852e2009-09-05 21:47:34 +000029685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29686fi
cristy8b350f62009-11-15 23:12:43 +000029687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29689fi
cristy8b350f62009-11-15 23:12:43 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029691$as_echo_n "checking if JPEG package is complete... " >&6; }
29692 if test $passed -gt 0; then
29693 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29695$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029696 have_jpeg='no (failed tests)'
29697 else
29698 JPEG_LIBS='-ljpeg'
29699 LIBS="$JPEG_LIBS $LIBS"
29700
cristy8b350f62009-11-15 23:12:43 +000029701$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029702
cristyad38abe2012-12-23 23:03:21 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29704$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029705 have_jpeg='yes'
29706 fi
29707 else
cristyad38abe2012-12-23 23:03:21 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29709$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029710 fi
29711fi
cristy73bd4a52010-10-05 11:24:23 +000029712 if test "$have_jpeg" = 'yes'; then
29713 JPEG_DELEGATE_TRUE=
29714 JPEG_DELEGATE_FALSE='#'
29715else
29716 JPEG_DELEGATE_TRUE='#'
29717 JPEG_DELEGATE_FALSE=
29718fi
29719
cristy3ed852e2009-09-05 21:47:34 +000029720
29721
29722
29723#
29724# Check for JPEG Version 2 delegate library.
29725#
29726
29727# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029728if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 withval=$with_jp2; with_jp2=$withval
29730else
29731 with_jp2='yes'
29732fi
29733
29734
29735if test "$with_jp2" != 'yes'; then
29736 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29737fi
29738
29739have_jp2='no'
29740JP2_LIBS=''
29741if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29743$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29747$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029748 failed=0
29749 passed=0
cristy8b350f62009-11-15 23:12:43 +000029750 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029751if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029752 passed=`expr $passed + 1`
29753else
29754 failed=`expr $failed + 1`
29755fi
29756
29757
cristy8b350f62009-11-15 23:12:43 +000029758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029759$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029760if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029761 $as_echo_n "(cached) " >&6
29762else
29763 ac_check_lib_save_LIBS=$LIBS
29764LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029766/* end confdefs.h. */
29767
29768/* Override any GCC internal prototype to avoid an error.
29769 Use char because int might match the return type of a GCC
29770 builtin and then its argument prototype would still apply. */
29771#ifdef __cplusplus
29772extern "C"
29773#endif
29774char jas_stream_fopen ();
29775int
29776main ()
29777{
29778return jas_stream_fopen ();
29779 ;
29780 return 0;
29781}
29782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029783if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 ac_cv_lib_jasper_jas_stream_fopen=yes
29785else
cristy8b350f62009-11-15 23:12:43 +000029786 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029787fi
cristy8b350f62009-11-15 23:12:43 +000029788rm -f core conftest.err conftest.$ac_objext \
29789 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029790LIBS=$ac_check_lib_save_LIBS
29791fi
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029794if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 passed=`expr $passed + 1`
29796else
29797 failed=`expr $failed + 1`
29798fi
29799
cristy8b350f62009-11-15 23:12:43 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029801$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29802 if test $passed -gt 0; then
29803 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29805$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029806 have_jp2='no (failed tests)'
29807 else
29808 JP2_LIBS='-ljasper'
29809 LIBS="$JP2_LIBS $LIBS"
29810
cristy8b350f62009-11-15 23:12:43 +000029811$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029812
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29814$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 have_jp2='yes'
29816 fi
29817 else
cristyad38abe2012-12-23 23:03:21 +000029818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29819$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029820 fi
29821fi
cristy73bd4a52010-10-05 11:24:23 +000029822 if test "$have_jp2" = 'yes'; then
29823 JP2_DELEGATE_TRUE=
29824 JP2_DELEGATE_FALSE='#'
29825else
29826 JP2_DELEGATE_TRUE='#'
29827 JP2_DELEGATE_FALSE=
29828fi
29829
cristy3ed852e2009-09-05 21:47:34 +000029830
29831
29832
29833#
29834# Check for LCMS delegate library.
29835#
cristy71203402010-06-18 13:12:03 +000029836# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029837
29838# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029839if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 withval=$with_lcms; with_lcms=$withval
29841else
29842 with_lcms='yes'
29843fi
29844
cristy71203402010-06-18 13:12:03 +000029845if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029846 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29847fi
29848
cristy71203402010-06-18 13:12:03 +000029849# Disable LCMS2.
29850
29851# Check whether --with-lcms2 was given.
29852if test "${with_lcms2+set}" = set; then :
29853 withval=$with_lcms2; with_lcms2=$withval
29854else
29855 with_lcms2='yes'
29856fi
29857
29858if test "$with_lcms2" != 'yes' ; then
29859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29860fi
29861
29862have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029863LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029864if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29866$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29868$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29870$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029871 failed=0
29872 passed=0
29873 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029874
29875 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029876 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029877if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029878 have_lcms_header='yes'
29879fi
29880
29881
29882 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029883
29884$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29885
cristy71203402010-06-18 13:12:03 +000029886 passed=`expr $passed + 1`
29887 fi
29888
29889 # Check for <lcms2/lcms2.h)
29890 if test "$have_lcms_header" != 'yes'; then
29891 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 +000029892if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029893 have_lcms_header='yes'
29894fi
29895
29896
cristy71203402010-06-18 13:12:03 +000029897 if test "$have_lcms_header" = 'yes'; then
29898 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029899
cristy71203402010-06-18 13:12:03 +000029900$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029901
cristy71203402010-06-18 13:12:03 +000029902 fi
cristyd09bcf92010-03-25 03:04:45 +000029903 fi
cristy71203402010-06-18 13:12:03 +000029904
29905 # Failed to find lcms header?
29906 if test "$have_lcms_header" != 'yes'; then
29907 failed=`expr $failed + 1`
29908 fi
29909
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29911$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029912if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029913 $as_echo_n "(cached) " >&6
29914else
29915 ac_check_lib_save_LIBS=$LIBS
29916LIBS="-llcms2 $LIBS"
29917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29918/* end confdefs.h. */
29919
29920/* Override any GCC internal prototype to avoid an error.
29921 Use char because int might match the return type of a GCC
29922 builtin and then its argument prototype would still apply. */
29923#ifdef __cplusplus
29924extern "C"
29925#endif
cristy71203402010-06-18 13:12:03 +000029926char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029927int
29928main ()
29929{
cristy71203402010-06-18 13:12:03 +000029930return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029931 ;
29932 return 0;
29933}
29934_ACEOF
29935if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029936 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029937else
cristy71203402010-06-18 13:12:03 +000029938 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029939fi
29940rm -f core conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
29942LIBS=$ac_check_lib_save_LIBS
29943fi
cristy71203402010-06-18 13:12:03 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29945$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029946if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029947 passed=`expr $passed + 1`
29948else
29949 failed=`expr $failed + 1`
29950fi
29951
cristy71203402010-06-18 13:12:03 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29953$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029954 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029955 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29957$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029958 have_lcms2='no (failed tests)'
29959 else
29960 LCMS_LIBS='-llcms2'
29961 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29963$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029964 have_lcms2='yes'
29965 fi
cristyd09bcf92010-03-25 03:04:45 +000029966 else
cristyad38abe2012-12-23 23:03:21 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29968$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029969 fi
29970fi
29971
cristy71203402010-06-18 13:12:03 +000029972#
29973# Check for LCMS v1 (1.11 or later)
29974#
29975if test $have_lcms2 = 'yes'; then
29976 with_lcms='no'
29977fi
29978
29979have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029980if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29982$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29984$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29986$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029987 failed=0
29988 passed=0
29989 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029990
29991 # Check for <lcms.h>
29992 if test "$have_lcms_header" != 'yes'; then
29993 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029994if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029995 have_lcms_header='yes'
29996fi
29997
29998
cristy71203402010-06-18 13:12:03 +000029999 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030000 passed=`expr $passed + 1`
30001
cristy8b350f62009-11-15 23:12:43 +000030002$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030003
cristy71203402010-06-18 13:12:03 +000030004 fi
30005 fi
30006
30007 # Check for <lcms/lcms.h>
30008 if test "$have_lcms_header" != 'yes'; then
30009 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 +000030010if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030011 have_lcms_header='yes'
30012fi
30013
30014
cristy71203402010-06-18 13:12:03 +000030015 if test "$have_lcms_header" = 'yes'; then
30016 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030017
cristy8b350f62009-11-15 23:12:43 +000030018$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030019
cristy71203402010-06-18 13:12:03 +000030020 fi
cristy3ed852e2009-09-05 21:47:34 +000030021 fi
cristy71203402010-06-18 13:12:03 +000030022
30023 # Failed to find lcms header?
30024 if test "$have_lcms_header" != 'yes'; then
30025 failed=`expr $failed + 1`
30026 fi
30027
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30029$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030030if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 $as_echo_n "(cached) " >&6
30032else
30033 ac_check_lib_save_LIBS=$LIBS
30034LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030036/* end confdefs.h. */
30037
30038/* Override any GCC internal prototype to avoid an error.
30039 Use char because int might match the return type of a GCC
30040 builtin and then its argument prototype would still apply. */
30041#ifdef __cplusplus
30042extern "C"
30043#endif
cristy71203402010-06-18 13:12:03 +000030044char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030045int
30046main ()
30047{
cristy71203402010-06-18 13:12:03 +000030048return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030049 ;
30050 return 0;
30051}
30052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030053if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030054 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030055else
cristy71203402010-06-18 13:12:03 +000030056 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030057fi
cristy8b350f62009-11-15 23:12:43 +000030058rm -f core conftest.err conftest.$ac_objext \
30059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030060LIBS=$ac_check_lib_save_LIBS
30061fi
cristy71203402010-06-18 13:12:03 +000030062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30063$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030064if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030065 passed=`expr $passed + 1`
30066else
30067 failed=`expr $failed + 1`
30068fi
30069
cristy8b350f62009-11-15 23:12:43 +000030070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030071$as_echo_n "checking if LCMS package is complete... " >&6; }
30072 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030073 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30075$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030076 have_lcms='no (failed tests)'
30077 else
30078 LCMS_LIBS='-llcms'
30079 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30081$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030082 have_lcms='yes'
30083 fi
cristy3ed852e2009-09-05 21:47:34 +000030084 else
cristyad38abe2012-12-23 23:03:21 +000030085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030087 fi
30088fi
cristy71203402010-06-18 13:12:03 +000030089
cristy73bd4a52010-10-05 11:24:23 +000030090 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30091 LCMS_DELEGATE_TRUE=
30092 LCMS_DELEGATE_FALSE='#'
30093else
30094 LCMS_DELEGATE_TRUE='#'
30095 LCMS_DELEGATE_FALSE=
30096fi
30097
cristy71203402010-06-18 13:12:03 +000030098if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30099
30100$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30101
30102fi
30103
cristy3ed852e2009-09-05 21:47:34 +000030104
30105
30106
30107#
30108# Check for the LQR (Liquid Rescale) delegate library.
30109#
30110
30111# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030112if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 withval=$with_lqr; with_lqr=$withval
30114else
30115 with_lqr='yes'
30116fi
30117
30118
30119if test "$with_lqr" != 'yes'; then
30120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30121fi
30122
30123have_lqr='no'
30124LQR_CFLAGS=""
30125LQR_LIBS=""
30126LQR_PKG=""
30127if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30129$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030130
30131pkg_failed=no
30132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30133$as_echo_n "checking for LQR... " >&6; }
30134
30135if test -n "$LQR_CFLAGS"; then
30136 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30137 elif test -n "$PKG_CONFIG"; then
30138 if test -n "$PKG_CONFIG" && \
30139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30140 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30141 ac_status=$?
30142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30143 test $ac_status = 0; }; then
30144 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30145else
30146 pkg_failed=yes
30147fi
30148 else
30149 pkg_failed=untried
30150fi
30151if test -n "$LQR_LIBS"; then
30152 pkg_cv_LQR_LIBS="$LQR_LIBS"
30153 elif test -n "$PKG_CONFIG"; then
30154 if test -n "$PKG_CONFIG" && \
30155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30156 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30157 ac_status=$?
30158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30159 test $ac_status = 0; }; then
30160 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30161else
30162 pkg_failed=yes
30163fi
30164 else
30165 pkg_failed=untried
30166fi
30167
30168
30169
30170if test $pkg_failed = yes; then
30171
30172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30173 _pkg_short_errors_supported=yes
30174else
30175 _pkg_short_errors_supported=no
30176fi
30177 if test $_pkg_short_errors_supported = yes; then
30178 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30179 else
30180 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30181 fi
30182 # Put the nasty error message in config.log where it belongs
30183 echo "$LQR_PKG_ERRORS" >&5
30184
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30186$as_echo "no" >&6; }
30187 have_lqr=no
30188elif test $pkg_failed = untried; then
30189 have_lqr=no
30190else
30191 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30192 LQR_LIBS=$pkg_cv_LQR_LIBS
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30194$as_echo "yes" >&6; }
30195 have_lqr=yes
30196fi
cristyad38abe2012-12-23 23:03:21 +000030197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30198$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030199fi
30200
30201if test "$have_lqr" = 'yes'; then
30202
cristy8b350f62009-11-15 23:12:43 +000030203$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030204
30205 CFLAGS="$LQR_CFLAGS $CFLAGS"
30206fi
30207
cristy73bd4a52010-10-05 11:24:23 +000030208 if test "$have_lqr" = 'yes'; then
30209 LQR_DELEGATE_TRUE=
30210 LQR_DELEGATE_FALSE='#'
30211else
30212 LQR_DELEGATE_TRUE='#'
30213 LQR_DELEGATE_FALSE=
30214fi
30215
cristy3ed852e2009-09-05 21:47:34 +000030216
30217
30218
30219
cristy81beccd2011-10-03 18:17:24 +000030220# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030221
30222# Check whether --with-lzma was given.
30223if test "${with_lzma+set}" = set; then :
30224 withval=$with_lzma; with_lzma=$withval
30225else
30226 with_lzma='yes'
30227fi
30228
cristy81beccd2011-10-03 18:17:24 +000030229if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030230 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30231fi
30232
cristyb94e5002011-11-14 13:20:10 +000030233LZMA_PKG=""
30234if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30236$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030237
30238pkg_failed=no
30239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030240$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030241
30242if test -n "$LZMA_CFLAGS"; then
30243 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30244 elif test -n "$PKG_CONFIG"; then
30245 if test -n "$PKG_CONFIG" && \
30246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30247 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30248 ac_status=$?
30249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30250 test $ac_status = 0; }; then
30251 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30252else
30253 pkg_failed=yes
30254fi
30255 else
30256 pkg_failed=untried
30257fi
30258if test -n "$LZMA_LIBS"; then
30259 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30260 elif test -n "$PKG_CONFIG"; then
30261 if test -n "$PKG_CONFIG" && \
30262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30263 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30264 ac_status=$?
30265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30266 test $ac_status = 0; }; then
30267 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30268else
30269 pkg_failed=yes
30270fi
30271 else
30272 pkg_failed=untried
30273fi
30274
30275
30276
30277if test $pkg_failed = yes; then
30278
30279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30280 _pkg_short_errors_supported=yes
30281else
30282 _pkg_short_errors_supported=no
30283fi
30284 if test $_pkg_short_errors_supported = yes; then
30285 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30286 else
30287 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30288 fi
30289 # Put the nasty error message in config.log where it belongs
30290 echo "$LZMA_PKG_ERRORS" >&5
30291
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30293$as_echo "no" >&6; }
30294 have_lzma=no
30295elif test $pkg_failed = untried; then
30296 have_lzma=no
30297else
30298 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30299 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301$as_echo "yes" >&6; }
30302 have_lzma=yes
30303fi
cristyad38abe2012-12-23 23:03:21 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30305$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030306fi
30307
cristyb94e5002011-11-14 13:20:10 +000030308if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030309
30310$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30311
cristyc6722092012-10-14 00:19:31 +000030312 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030313 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030314 fi
cristyfbb0ef02010-12-19 02:32:11 +000030315fi
cristyb94e5002011-11-14 13:20:10 +000030316
cristyfbb0ef02010-12-19 02:32:11 +000030317 if test "$have_lzma" = 'yes'; then
30318 LZMA_DELEGATE_TRUE=
30319 LZMA_DELEGATE_FALSE='#'
30320else
30321 LZMA_DELEGATE_TRUE='#'
30322 LZMA_DELEGATE_FALSE=
30323fi
30324
30325
30326
30327
cristyb94e5002011-11-14 13:20:10 +000030328
cristy3ed852e2009-09-05 21:47:34 +000030329#
30330# Check for the OpenEXR delegate library.
30331#
30332
30333# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030334if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030335 withval=$with_openexr; with_openexr=$withval
30336else
30337 with_openexr='yes'
30338fi
30339
30340
30341if test "$with_openexr" != 'yes'; then
30342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30343fi
30344
30345have_openexr='no'
30346OPENEXR_CFLAGS=""
30347OPENEXR_LIBS=""
30348OPENEXR_PKG=""
30349if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30351$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030352
30353pkg_failed=no
30354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30355$as_echo_n "checking for OPENEXR... " >&6; }
30356
30357if test -n "$OPENEXR_CFLAGS"; then
30358 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30359 elif test -n "$PKG_CONFIG"; then
30360 if test -n "$PKG_CONFIG" && \
30361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30362 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30363 ac_status=$?
30364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30365 test $ac_status = 0; }; then
30366 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30367else
30368 pkg_failed=yes
30369fi
30370 else
30371 pkg_failed=untried
30372fi
30373if test -n "$OPENEXR_LIBS"; then
30374 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30375 elif test -n "$PKG_CONFIG"; then
30376 if test -n "$PKG_CONFIG" && \
30377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30378 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30379 ac_status=$?
30380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30381 test $ac_status = 0; }; then
30382 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30383else
30384 pkg_failed=yes
30385fi
30386 else
30387 pkg_failed=untried
30388fi
30389
30390
30391
30392if test $pkg_failed = yes; then
30393
30394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30395 _pkg_short_errors_supported=yes
30396else
30397 _pkg_short_errors_supported=no
30398fi
30399 if test $_pkg_short_errors_supported = yes; then
30400 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30401 else
30402 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30403 fi
30404 # Put the nasty error message in config.log where it belongs
30405 echo "$OPENEXR_PKG_ERRORS" >&5
30406
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30408$as_echo "no" >&6; }
30409 have_openexr=no
30410elif test $pkg_failed = untried; then
30411 have_openexr=no
30412else
30413 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30414 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30416$as_echo "yes" >&6; }
30417 have_openexr=yes
30418fi
cristyad38abe2012-12-23 23:03:21 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30420$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030421fi
30422
30423if test "$have_openexr" = 'yes'; then
30424
cristy8b350f62009-11-15 23:12:43 +000030425$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030426
cristyc6722092012-10-14 00:19:31 +000030427 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030428 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30429 fi
30430fi
30431
cristy73bd4a52010-10-05 11:24:23 +000030432 if test "$have_openexr" = 'yes'; then
30433 OPENEXR_DELEGATE_TRUE=
30434 OPENEXR_DELEGATE_FALSE='#'
30435else
30436 OPENEXR_DELEGATE_TRUE='#'
30437 OPENEXR_DELEGATE_FALSE=
30438fi
30439
cristy3ed852e2009-09-05 21:47:34 +000030440
30441
30442
30443
30444#
cristy41cbe8a2011-10-27 01:35:18 +000030445# Check for PANGO delegate library.
30446#
30447
30448# Check whether --with-pango was given.
30449if test "${with_pango+set}" = set; then :
30450 withval=$with_pango; with_pango=$withval
30451else
cristyfc3d0222012-02-07 15:05:57 +000030452 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030453fi
30454
30455
30456if test "$with_pango" != 'yes'; then
30457 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30458fi
30459
30460have_pango='no'
cristya054b762012-03-26 23:16:00 +000030461have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030462PANGO_CFLAGS=""
30463PANGO_LIBS=""
30464PANGO_PKG=""
30465if test "x$with_pango" = "xyes"; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30467$as_echo "-------------------------------------------------------------" >&6; }
30468
30469pkg_failed=no
30470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30471$as_echo_n "checking for PANGO... " >&6; }
30472
30473if test -n "$PANGO_CFLAGS"; then
30474 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30475 elif test -n "$PKG_CONFIG"; then
30476 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30478 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030479 ac_status=$?
30480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30481 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030482 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030483else
30484 pkg_failed=yes
30485fi
30486 else
30487 pkg_failed=untried
30488fi
30489if test -n "$PANGO_LIBS"; then
30490 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30491 elif test -n "$PKG_CONFIG"; then
30492 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30494 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030495 ac_status=$?
30496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30497 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030498 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030499else
30500 pkg_failed=yes
30501fi
30502 else
30503 pkg_failed=untried
30504fi
30505
30506
30507
30508if test $pkg_failed = yes; then
30509
30510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30511 _pkg_short_errors_supported=yes
30512else
30513 _pkg_short_errors_supported=no
30514fi
30515 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030516 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030517 else
cristya054b762012-03-26 23:16:00 +000030518 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030519 fi
30520 # Put the nasty error message in config.log where it belongs
30521 echo "$PANGO_PKG_ERRORS" >&5
30522
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30524$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030525 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030526elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030527 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030528else
30529 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30530 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30532$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030533 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030534fi
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30536$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030537
30538pkg_failed=no
30539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30540$as_echo_n "checking for PANGO... " >&6; }
30541
30542if test -n "$PANGO_CFLAGS"; then
30543 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30544 elif test -n "$PKG_CONFIG"; then
30545 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30547 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030548 ac_status=$?
30549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30550 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030551 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030552else
30553 pkg_failed=yes
30554fi
30555 else
30556 pkg_failed=untried
30557fi
30558if test -n "$PANGO_LIBS"; then
30559 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30560 elif test -n "$PKG_CONFIG"; then
30561 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30563 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030564 ac_status=$?
30565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30566 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030567 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030568else
30569 pkg_failed=yes
30570fi
30571 else
30572 pkg_failed=untried
30573fi
30574
30575
30576
30577if test $pkg_failed = yes; then
30578
30579if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30580 _pkg_short_errors_supported=yes
30581else
30582 _pkg_short_errors_supported=no
30583fi
30584 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030585 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030586 else
cristy2542fc62011-12-06 17:50:25 +000030587 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030588 fi
30589 # Put the nasty error message in config.log where it belongs
30590 echo "$PANGO_PKG_ERRORS" >&5
30591
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30593$as_echo "no" >&6; }
30594 have_pango=no
30595elif test $pkg_failed = untried; then
30596 have_pango=no
30597else
30598 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30599 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30601$as_echo "yes" >&6; }
30602 have_pango=yes
30603fi
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30605$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030606fi
30607
30608if test "$have_pango" = 'yes'; then
30609
30610$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30611
cristyc6722092012-10-14 00:19:31 +000030612 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030613 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30614 fi
30615fi
30616
cristya054b762012-03-26 23:16:00 +000030617if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030618
cristya054b762012-03-26 23:16:00 +000030619$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030620
cristyc6722092012-10-14 00:19:31 +000030621 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030622 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030623 fi
30624fi
30625
30626 if test "$have_pango" = 'yes'; then
30627 PANGO_DELEGATE_TRUE=
30628 PANGO_DELEGATE_FALSE='#'
30629else
30630 PANGO_DELEGATE_TRUE='#'
30631 PANGO_DELEGATE_FALSE=
30632fi
30633
cristya054b762012-03-26 23:16:00 +000030634 if test "$have_pangocairo" = 'yes'; then
30635 PANGOCAIRO_DELEGATE_TRUE=
30636 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030637else
cristya054b762012-03-26 23:16:00 +000030638 PANGOCAIRO_DELEGATE_TRUE='#'
30639 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030640fi
30641
30642
30643
30644
30645
30646#
cristy3ed852e2009-09-05 21:47:34 +000030647# Check for PNG delegate library.
30648#
30649
30650# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030651if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030652 withval=$with_png; with_png=$withval
30653else
30654 with_png='yes'
30655fi
30656
30657
30658if test "$with_png" != 'yes'; then
30659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30660fi
30661
cristy81beccd2011-10-03 18:17:24 +000030662have_png='no'
30663PNG_LIBS=''
30664
30665if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30667$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30669$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30671$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030672 failed=0
30673 passed=0
30674 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30675if test "x$ac_cv_header_png_h" = xyes; then :
30676 passed=`expr $passed + 1`
30677else
30678 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030679fi
30680
cristy81beccd2011-10-03 18:17:24 +000030681
30682
30683 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030684 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030685 if test "$have_png" = 'no' ; then
30686 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030687 pnglib='png'
30688 else
30689 pnglib="png1${var}"
30690 fi
30691
30692# Test for compatible LIBPNG library
30693 failed=0
30694 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030695 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030696 if test "${pnglib}" != 'png' ; then
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30698$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30700/* end confdefs.h. */
30701#include <stdio.h>
30702#include <stdlib.h>
30703#include <png.h>
30704
30705int
30706main ()
30707{
30708
30709#if PNG_LIBPNG_VER_MINOR != ${var}
30710#error LIBPNG library must be version 1${var}!
30711Kaboom, Kaboom
30712#endif
30713return 0;
30714
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719if ac_fn_c_try_compile "$LINENO"; then :
30720 ac_cv_libpng_ok='yes'
30721else
30722 ac_cv_libpng_ok='no'
30723fi
30724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30725 if test "$ac_cv_libpng_ok" = 'yes' ; then
30726 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030729 else
30730 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30732$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030733 fi
30734 else
30735 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30737$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030738 fi
30739 fi
30740
30741 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030742 if test "1${var}" = '17' ; then
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30744$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30745if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30746 $as_echo_n "(cached) " >&6
30747else
30748 ac_check_lib_save_LIBS=$LIBS
30749LIBS="-lpng17 $LIBS"
30750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751/* end confdefs.h. */
30752
30753/* Override any GCC internal prototype to avoid an error.
30754 Use char because int might match the return type of a GCC
30755 builtin and then its argument prototype would still apply. */
30756#ifdef __cplusplus
30757extern "C"
30758#endif
30759char png_get_io_ptr ();
30760int
30761main ()
30762{
30763return png_get_io_ptr ();
30764 ;
30765 return 0;
30766}
30767_ACEOF
30768if ac_fn_c_try_link "$LINENO"; then :
30769 ac_cv_lib_png17_png_get_io_ptr=yes
30770else
30771 ac_cv_lib_png17_png_get_io_ptr=no
30772fi
30773rm -f core conftest.err conftest.$ac_objext \
30774 conftest$ac_exeext conftest.$ac_ext
30775LIBS=$ac_check_lib_save_LIBS
30776fi
30777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30778$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30779if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30780 passed=`expr $passed + 1`
30781else
30782 failed=`expr $failed + 1`
30783fi
30784
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30786$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30787if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30788 $as_echo_n "(cached) " >&6
30789else
30790 ac_check_lib_save_LIBS=$LIBS
30791LIBS="-lpng17 $LIBS"
30792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30793/* end confdefs.h. */
30794
30795/* Override any GCC internal prototype to avoid an error.
30796 Use char because int might match the return type of a GCC
30797 builtin and then its argument prototype would still apply. */
30798#ifdef __cplusplus
30799extern "C"
30800#endif
30801char png_longjmp ();
30802int
30803main ()
30804{
30805return png_longjmp ();
30806 ;
30807 return 0;
30808}
30809_ACEOF
30810if ac_fn_c_try_link "$LINENO"; then :
30811 ac_cv_lib_png17_png_longjmp=yes
30812else
30813 ac_cv_lib_png17_png_longjmp=no
30814fi
30815rm -f core conftest.err conftest.$ac_objext \
30816 conftest$ac_exeext conftest.$ac_ext
30817LIBS=$ac_check_lib_save_LIBS
30818fi
30819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30820$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30821if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30822 passed=`expr $passed + 1`
30823else
30824 failed=`expr $failed + 1`
30825fi
30826
30827 fi
30828 if test "1${var}" = '16' ; then
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30830$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30831if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30832 $as_echo_n "(cached) " >&6
30833else
30834 ac_check_lib_save_LIBS=$LIBS
30835LIBS="-lpng16 $LIBS"
30836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30837/* end confdefs.h. */
30838
30839/* Override any GCC internal prototype to avoid an error.
30840 Use char because int might match the return type of a GCC
30841 builtin and then its argument prototype would still apply. */
30842#ifdef __cplusplus
30843extern "C"
30844#endif
30845char png_get_io_ptr ();
30846int
30847main ()
30848{
30849return png_get_io_ptr ();
30850 ;
30851 return 0;
30852}
30853_ACEOF
30854if ac_fn_c_try_link "$LINENO"; then :
30855 ac_cv_lib_png16_png_get_io_ptr=yes
30856else
30857 ac_cv_lib_png16_png_get_io_ptr=no
30858fi
30859rm -f core conftest.err conftest.$ac_objext \
30860 conftest$ac_exeext conftest.$ac_ext
30861LIBS=$ac_check_lib_save_LIBS
30862fi
30863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30864$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30865if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30866 passed=`expr $passed + 1`
30867else
30868 failed=`expr $failed + 1`
30869fi
30870
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30872$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30873if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30874 $as_echo_n "(cached) " >&6
30875else
30876 ac_check_lib_save_LIBS=$LIBS
30877LIBS="-lpng16 $LIBS"
30878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30879/* end confdefs.h. */
30880
30881/* Override any GCC internal prototype to avoid an error.
30882 Use char because int might match the return type of a GCC
30883 builtin and then its argument prototype would still apply. */
30884#ifdef __cplusplus
30885extern "C"
30886#endif
30887char png_longjmp ();
30888int
30889main ()
30890{
30891return png_longjmp ();
30892 ;
30893 return 0;
30894}
30895_ACEOF
30896if ac_fn_c_try_link "$LINENO"; then :
30897 ac_cv_lib_png16_png_longjmp=yes
30898else
30899 ac_cv_lib_png16_png_longjmp=no
30900fi
30901rm -f core conftest.err conftest.$ac_objext \
30902 conftest$ac_exeext conftest.$ac_ext
30903LIBS=$ac_check_lib_save_LIBS
30904fi
30905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30906$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30907if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30908 passed=`expr $passed + 1`
30909else
30910 failed=`expr $failed + 1`
30911fi
30912
30913 fi
cristy81beccd2011-10-03 18:17:24 +000030914 if test "1${var}" = '15' ; then
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30916$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30917if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30918 $as_echo_n "(cached) " >&6
30919else
30920 ac_check_lib_save_LIBS=$LIBS
30921LIBS="-lpng15 $LIBS"
30922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30923/* end confdefs.h. */
30924
30925/* Override any GCC internal prototype to avoid an error.
30926 Use char because int might match the return type of a GCC
30927 builtin and then its argument prototype would still apply. */
30928#ifdef __cplusplus
30929extern "C"
30930#endif
30931char png_get_io_ptr ();
30932int
30933main ()
30934{
30935return png_get_io_ptr ();
30936 ;
30937 return 0;
30938}
30939_ACEOF
30940if ac_fn_c_try_link "$LINENO"; then :
30941 ac_cv_lib_png15_png_get_io_ptr=yes
30942else
30943 ac_cv_lib_png15_png_get_io_ptr=no
30944fi
30945rm -f core conftest.err conftest.$ac_objext \
30946 conftest$ac_exeext conftest.$ac_ext
30947LIBS=$ac_check_lib_save_LIBS
30948fi
30949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30950$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30951if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30952 passed=`expr $passed + 1`
30953else
30954 failed=`expr $failed + 1`
30955fi
30956
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30958$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30959if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30960 $as_echo_n "(cached) " >&6
30961else
30962 ac_check_lib_save_LIBS=$LIBS
30963LIBS="-lpng15 $LIBS"
30964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30965/* end confdefs.h. */
30966
30967/* Override any GCC internal prototype to avoid an error.
30968 Use char because int might match the return type of a GCC
30969 builtin and then its argument prototype would still apply. */
30970#ifdef __cplusplus
30971extern "C"
30972#endif
30973char png_longjmp ();
30974int
30975main ()
30976{
30977return png_longjmp ();
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982if ac_fn_c_try_link "$LINENO"; then :
30983 ac_cv_lib_png15_png_longjmp=yes
30984else
30985 ac_cv_lib_png15_png_longjmp=no
30986fi
30987rm -f core conftest.err conftest.$ac_objext \
30988 conftest$ac_exeext conftest.$ac_ext
30989LIBS=$ac_check_lib_save_LIBS
30990fi
30991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30992$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30993if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30994 passed=`expr $passed + 1`
30995else
30996 failed=`expr $failed + 1`
30997fi
30998
30999 fi
31000 if test "1${var}" = '14' ; then
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31002$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31003if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31004 $as_echo_n "(cached) " >&6
31005else
31006 ac_check_lib_save_LIBS=$LIBS
31007LIBS="-lpng14 $LIBS"
31008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31009/* end confdefs.h. */
31010
31011/* Override any GCC internal prototype to avoid an error.
31012 Use char because int might match the return type of a GCC
31013 builtin and then its argument prototype would still apply. */
31014#ifdef __cplusplus
31015extern "C"
31016#endif
31017char png_get_io_ptr ();
31018int
31019main ()
31020{
31021return png_get_io_ptr ();
31022 ;
31023 return 0;
31024}
31025_ACEOF
31026if ac_fn_c_try_link "$LINENO"; then :
31027 ac_cv_lib_png14_png_get_io_ptr=yes
31028else
31029 ac_cv_lib_png14_png_get_io_ptr=no
31030fi
31031rm -f core conftest.err conftest.$ac_objext \
31032 conftest$ac_exeext conftest.$ac_ext
31033LIBS=$ac_check_lib_save_LIBS
31034fi
31035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31036$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31037if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31038 passed=`expr $passed + 1`
31039else
31040 failed=`expr $failed + 1`
31041fi
31042
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31044$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31045if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31046 $as_echo_n "(cached) " >&6
31047else
31048 ac_check_lib_save_LIBS=$LIBS
31049LIBS="-lpng14 $LIBS"
31050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31051/* end confdefs.h. */
31052
31053/* Override any GCC internal prototype to avoid an error.
31054 Use char because int might match the return type of a GCC
31055 builtin and then its argument prototype would still apply. */
31056#ifdef __cplusplus
31057extern "C"
31058#endif
31059char png_get_io_state ();
31060int
31061main ()
31062{
31063return png_get_io_state ();
31064 ;
31065 return 0;
31066}
31067_ACEOF
31068if ac_fn_c_try_link "$LINENO"; then :
31069 ac_cv_lib_png14_png_get_io_state=yes
31070else
31071 ac_cv_lib_png14_png_get_io_state=no
31072fi
31073rm -f core conftest.err conftest.$ac_objext \
31074 conftest$ac_exeext conftest.$ac_ext
31075LIBS=$ac_check_lib_save_LIBS
31076fi
31077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31078$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31079if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31080 passed=`expr $passed + 1`
31081else
31082 failed=`expr $failed + 1`
31083fi
31084
31085 fi
31086 if test "1${var}" = '12' ; then
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31088$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31089if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31090 $as_echo_n "(cached) " >&6
31091else
31092 ac_check_lib_save_LIBS=$LIBS
31093LIBS="-lpng12 $LIBS"
31094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31095/* end confdefs.h. */
31096
31097/* Override any GCC internal prototype to avoid an error.
31098 Use char because int might match the return type of a GCC
31099 builtin and then its argument prototype would still apply. */
31100#ifdef __cplusplus
31101extern "C"
31102#endif
31103char png_get_io_ptr ();
31104int
31105main ()
31106{
31107return png_get_io_ptr ();
31108 ;
31109 return 0;
31110}
31111_ACEOF
31112if ac_fn_c_try_link "$LINENO"; then :
31113 ac_cv_lib_png12_png_get_io_ptr=yes
31114else
31115 ac_cv_lib_png12_png_get_io_ptr=no
31116fi
31117rm -f core conftest.err conftest.$ac_objext \
31118 conftest$ac_exeext conftest.$ac_ext
31119LIBS=$ac_check_lib_save_LIBS
31120fi
31121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31122$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31123if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31124 passed=`expr $passed + 1`
31125else
31126 failed=`expr $failed + 1`
31127fi
31128
31129 fi
31130 if test "1${var}" = '1' ; then
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31132$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31133if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31134 $as_echo_n "(cached) " >&6
31135else
31136 ac_check_lib_save_LIBS=$LIBS
31137LIBS="-lpng $LIBS"
31138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31139/* end confdefs.h. */
31140
31141/* Override any GCC internal prototype to avoid an error.
31142 Use char because int might match the return type of a GCC
31143 builtin and then its argument prototype would still apply. */
31144#ifdef __cplusplus
31145extern "C"
31146#endif
31147char png_get_io_ptr ();
31148int
31149main ()
31150{
31151return png_get_io_ptr ();
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156if ac_fn_c_try_link "$LINENO"; then :
31157 ac_cv_lib_png_png_get_io_ptr=yes
31158else
31159 ac_cv_lib_png_png_get_io_ptr=no
31160fi
31161rm -f core conftest.err conftest.$ac_objext \
31162 conftest$ac_exeext conftest.$ac_ext
31163LIBS=$ac_check_lib_save_LIBS
31164fi
31165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31166$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31167if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31168 passed=`expr $passed + 1`
31169else
31170 failed=`expr $failed + 1`
31171fi
31172
31173 fi
31174 if test $passed -gt 0 -a $failed -le 0 ; then
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31176$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31177 if test $passed -gt 0 ; then
31178 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31180$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031181 have_png='no (failed tests)'
31182 else
31183 PNG_LIBS="-l${pnglib}"
31184 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031185
cristy8b350f62009-11-15 23:12:43 +000031186$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031187
cristyad38abe2012-12-23 23:03:21 +000031188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31189$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031190 have_png='yes'
31191 fi
31192 fi
31193 fi
31194 fi
31195 fi
31196 done
31197 fi
cristy3ed852e2009-09-05 21:47:34 +000031198fi
cristy64877302011-08-23 19:10:31 +000031199
cristy73bd4a52010-10-05 11:24:23 +000031200 if test "$have_png" = 'yes'; then
31201 PNG_DELEGATE_TRUE=
31202 PNG_DELEGATE_FALSE='#'
31203else
31204 PNG_DELEGATE_TRUE='#'
31205 PNG_DELEGATE_FALSE=
31206fi
31207
cristy3ed852e2009-09-05 21:47:34 +000031208
cristy50d3f5c2011-09-10 20:09:06 +000031209
cristy3ed852e2009-09-05 21:47:34 +000031210
31211
31212#
31213# Check for RSVG delegate library.
31214#
31215
31216# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031217if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031218 withval=$with_rsvg; with_rsvg=$withval
31219else
cristy1164d5f2012-08-15 00:58:25 +000031220 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031221fi
31222
31223
31224if test "$with_rsvg" != 'yes'; then
31225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31226fi
31227
31228have_rsvg='no'
31229have_cairo='no'
31230RSVG_CFLAGS=""
31231RSVG_LIBS=""
31232RSVG_PKG=""
31233if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31235$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031236
31237pkg_failed=no
31238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31239$as_echo_n "checking for RSVG... " >&6; }
31240
31241if test -n "$RSVG_CFLAGS"; then
31242 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31243 elif test -n "$PKG_CONFIG"; then
31244 if test -n "$PKG_CONFIG" && \
31245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31246 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31247 ac_status=$?
31248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31249 test $ac_status = 0; }; then
31250 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31251else
31252 pkg_failed=yes
31253fi
31254 else
31255 pkg_failed=untried
31256fi
31257if test -n "$RSVG_LIBS"; then
31258 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31259 elif test -n "$PKG_CONFIG"; then
31260 if test -n "$PKG_CONFIG" && \
31261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31262 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31263 ac_status=$?
31264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31265 test $ac_status = 0; }; then
31266 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31267else
31268 pkg_failed=yes
31269fi
31270 else
31271 pkg_failed=untried
31272fi
31273
31274
31275
31276if test $pkg_failed = yes; then
31277
31278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31279 _pkg_short_errors_supported=yes
31280else
31281 _pkg_short_errors_supported=no
31282fi
31283 if test $_pkg_short_errors_supported = yes; then
31284 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31285 else
31286 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31287 fi
31288 # Put the nasty error message in config.log where it belongs
31289 echo "$RSVG_PKG_ERRORS" >&5
31290
31291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31292$as_echo "no" >&6; }
31293 have_rsvg=no
31294elif test $pkg_failed = untried; then
31295 have_rsvg=no
31296else
31297 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31298 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31300$as_echo "yes" >&6; }
31301 have_rsvg=yes
31302fi
cristyad38abe2012-12-23 23:03:21 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31304$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031305
31306pkg_failed=no
31307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31308$as_echo_n "checking for CAIRO_SVG... " >&6; }
31309
31310if test -n "$CAIRO_SVG_CFLAGS"; then
31311 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31312 elif test -n "$PKG_CONFIG"; then
31313 if test -n "$PKG_CONFIG" && \
31314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31315 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31316 ac_status=$?
31317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31318 test $ac_status = 0; }; then
31319 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31320else
31321 pkg_failed=yes
31322fi
31323 else
31324 pkg_failed=untried
31325fi
31326if test -n "$CAIRO_SVG_LIBS"; then
31327 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31328 elif test -n "$PKG_CONFIG"; then
31329 if test -n "$PKG_CONFIG" && \
31330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31331 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31332 ac_status=$?
31333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31334 test $ac_status = 0; }; then
31335 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31336else
31337 pkg_failed=yes
31338fi
31339 else
31340 pkg_failed=untried
31341fi
31342
31343
31344
31345if test $pkg_failed = yes; then
31346
31347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31348 _pkg_short_errors_supported=yes
31349else
31350 _pkg_short_errors_supported=no
31351fi
31352 if test $_pkg_short_errors_supported = yes; then
31353 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31354 else
31355 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31356 fi
31357 # Put the nasty error message in config.log where it belongs
31358 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31359
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361$as_echo "no" >&6; }
31362 have_cairo=no
31363elif test $pkg_failed = untried; then
31364 have_cairo=no
31365else
31366 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31367 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31369$as_echo "yes" >&6; }
31370 have_cairo=yes
31371fi
cristyad38abe2012-12-23 23:03:21 +000031372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31373$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031374fi
31375
31376if test "$have_rsvg" = 'yes'; then
31377
cristy8b350f62009-11-15 23:12:43 +000031378$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031379
cristyc6722092012-10-14 00:19:31 +000031380 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031381 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31382 fi
31383fi
31384
31385if test "$have_cairo" = 'yes'; then
31386
cristy8b350f62009-11-15 23:12:43 +000031387$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031388
cristyc6722092012-10-14 00:19:31 +000031389 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031390 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31391 fi
31392fi
31393
cristy73bd4a52010-10-05 11:24:23 +000031394 if test "$have_rsvg" = 'yes'; then
31395 RSVG_DELEGATE_TRUE=
31396 RSVG_DELEGATE_FALSE='#'
31397else
31398 RSVG_DELEGATE_TRUE='#'
31399 RSVG_DELEGATE_FALSE=
31400fi
31401
31402 if test "$have_cairo" = 'yes'; then
31403 CAIRO_DELEGATE_TRUE=
31404 CAIRO_DELEGATE_FALSE='#'
31405else
31406 CAIRO_DELEGATE_TRUE='#'
31407 CAIRO_DELEGATE_FALSE=
31408fi
31409
cristy3ed852e2009-09-05 21:47:34 +000031410
31411
31412
31413
31414#
31415# Check for TIFF delegate library.
31416#
31417
31418# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031419if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031420 withval=$with_tiff; with_tiff=$withval
31421else
31422 with_tiff='yes'
31423fi
31424
31425
31426if test "$with_tiff" != 'yes'; then
31427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31428fi
31429
31430have_tiff='no'
31431TIFF_LIBS=''
31432if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31434$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31438$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031439 failed=0
31440 passed=0
cristy8b350f62009-11-15 23:12:43 +000031441 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031442if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031443 passed=`expr $passed + 1`
31444else
31445 failed=`expr $failed + 1`
31446fi
31447
31448
cristy8b350f62009-11-15 23:12:43 +000031449 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031450if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031451 passed=`expr $passed + 1`
31452else
31453 failed=`expr $failed + 1`
31454fi
31455
31456
cristy8b350f62009-11-15 23:12:43 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031459if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031460 $as_echo_n "(cached) " >&6
31461else
31462 ac_check_lib_save_LIBS=$LIBS
31463LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031465/* end confdefs.h. */
31466
31467/* Override any GCC internal prototype to avoid an error.
31468 Use char because int might match the return type of a GCC
31469 builtin and then its argument prototype would still apply. */
31470#ifdef __cplusplus
31471extern "C"
31472#endif
31473char TIFFOpen ();
31474int
31475main ()
31476{
31477return TIFFOpen ();
31478 ;
31479 return 0;
31480}
31481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031483 ac_cv_lib_tiff_TIFFOpen=yes
31484else
cristy8b350f62009-11-15 23:12:43 +000031485 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031486fi
cristy8b350f62009-11-15 23:12:43 +000031487rm -f core conftest.err conftest.$ac_objext \
31488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031489LIBS=$ac_check_lib_save_LIBS
31490fi
cristy8b350f62009-11-15 23:12:43 +000031491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031492$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031493if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031494 passed=`expr $passed + 1`
31495else
31496 failed=`expr $failed + 1`
31497fi
31498
cristy8b350f62009-11-15 23:12:43 +000031499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031500$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031501if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031502 $as_echo_n "(cached) " >&6
31503else
31504 ac_check_lib_save_LIBS=$LIBS
31505LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031507/* end confdefs.h. */
31508
31509/* Override any GCC internal prototype to avoid an error.
31510 Use char because int might match the return type of a GCC
31511 builtin and then its argument prototype would still apply. */
31512#ifdef __cplusplus
31513extern "C"
31514#endif
31515char TIFFClientOpen ();
31516int
31517main ()
31518{
31519return TIFFClientOpen ();
31520 ;
31521 return 0;
31522}
31523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031525 ac_cv_lib_tiff_TIFFClientOpen=yes
31526else
cristy8b350f62009-11-15 23:12:43 +000031527 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031528fi
cristy8b350f62009-11-15 23:12:43 +000031529rm -f core conftest.err conftest.$ac_objext \
31530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031531LIBS=$ac_check_lib_save_LIBS
31532fi
cristy8b350f62009-11-15 23:12:43 +000031533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031534$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031535if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031536 passed=`expr $passed + 1`
31537else
31538 failed=`expr $failed + 1`
31539fi
31540
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031543if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031544 $as_echo_n "(cached) " >&6
31545else
31546 ac_check_lib_save_LIBS=$LIBS
31547LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031549/* end confdefs.h. */
31550
31551/* Override any GCC internal prototype to avoid an error.
31552 Use char because int might match the return type of a GCC
31553 builtin and then its argument prototype would still apply. */
31554#ifdef __cplusplus
31555extern "C"
31556#endif
31557char TIFFIsByteSwapped ();
31558int
31559main ()
31560{
31561return TIFFIsByteSwapped ();
31562 ;
31563 return 0;
31564}
31565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031567 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31568else
cristy8b350f62009-11-15 23:12:43 +000031569 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031570fi
cristy8b350f62009-11-15 23:12:43 +000031571rm -f core conftest.err conftest.$ac_objext \
31572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031573LIBS=$ac_check_lib_save_LIBS
31574fi
cristy8b350f62009-11-15 23:12:43 +000031575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031576$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031577if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031578 passed=`expr $passed + 1`
31579else
31580 failed=`expr $failed + 1`
31581fi
31582
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031585if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031586 $as_echo_n "(cached) " >&6
31587else
31588 ac_check_lib_save_LIBS=$LIBS
31589LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031591/* end confdefs.h. */
31592
31593/* Override any GCC internal prototype to avoid an error.
31594 Use char because int might match the return type of a GCC
31595 builtin and then its argument prototype would still apply. */
31596#ifdef __cplusplus
31597extern "C"
31598#endif
31599char TIFFReadRGBATile ();
31600int
31601main ()
31602{
31603return TIFFReadRGBATile ();
31604 ;
31605 return 0;
31606}
31607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031609 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31610else
cristy8b350f62009-11-15 23:12:43 +000031611 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031612fi
cristy8b350f62009-11-15 23:12:43 +000031613rm -f core conftest.err conftest.$ac_objext \
31614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031615LIBS=$ac_check_lib_save_LIBS
31616fi
cristy8b350f62009-11-15 23:12:43 +000031617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031618$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031619if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031620 passed=`expr $passed + 1`
31621else
31622 failed=`expr $failed + 1`
31623fi
31624
cristy8b350f62009-11-15 23:12:43 +000031625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031626$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031627if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031628 $as_echo_n "(cached) " >&6
31629else
31630 ac_check_lib_save_LIBS=$LIBS
31631LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031633/* end confdefs.h. */
31634
31635/* Override any GCC internal prototype to avoid an error.
31636 Use char because int might match the return type of a GCC
31637 builtin and then its argument prototype would still apply. */
31638#ifdef __cplusplus
31639extern "C"
31640#endif
31641char TIFFReadRGBAStrip ();
31642int
31643main ()
31644{
31645return TIFFReadRGBAStrip ();
31646 ;
31647 return 0;
31648}
31649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031651 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31652else
cristy8b350f62009-11-15 23:12:43 +000031653 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031654fi
cristy8b350f62009-11-15 23:12:43 +000031655rm -f core conftest.err conftest.$ac_objext \
31656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031657LIBS=$ac_check_lib_save_LIBS
31658fi
cristy8b350f62009-11-15 23:12:43 +000031659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031660$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031661if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031662 passed=`expr $passed + 1`
31663else
31664 failed=`expr $failed + 1`
31665fi
31666
cristy8b350f62009-11-15 23:12:43 +000031667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031668$as_echo_n "checking if TIFF package is complete... " >&6; }
31669 if test $passed -gt 0; then
31670 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31672$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031673 have_tiff='no (failed tests)'
31674 else
31675 TIFF_LIBS='-ltiff'
31676 LIBS="$TIFF_LIBS $LIBS"
31677
cristy8b350f62009-11-15 23:12:43 +000031678$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031679
cristyad38abe2012-12-23 23:03:21 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31681$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031682 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031683 for ac_header in tiffconf.h
31684do :
31685 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031686if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031687 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031688#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031689_ACEOF
31690
31691fi
31692
31693done
31694
cristy8b350f62009-11-15 23:12:43 +000031695 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031696 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31697 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31698 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031699do :
31700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031702if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031703 cat >>confdefs.h <<_ACEOF
31704#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31705_ACEOF
31706
31707fi
31708done
31709
31710 fi
31711 else
cristyad38abe2012-12-23 23:03:21 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031714 fi
31715fi
cristy73bd4a52010-10-05 11:24:23 +000031716 if test "$have_tiff" = 'yes'; then
31717 TIFF_DELEGATE_TRUE=
31718 TIFF_DELEGATE_FALSE='#'
31719else
31720 TIFF_DELEGATE_TRUE='#'
31721 TIFF_DELEGATE_FALSE=
31722fi
31723
cristy3ed852e2009-09-05 21:47:34 +000031724
31725
31726
31727#
cristyb1860752011-03-14 00:27:46 +000031728# Check for WEBP delegate library.
31729#
31730
31731# Check whether --with-webp was given.
31732if test "${with_webp+set}" = set; then :
31733 withval=$with_webp; with_webp=$withval
31734else
31735 with_webp='yes'
31736fi
31737
31738
31739if test "$with_webp" != 'yes'; then
31740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31741fi
31742
31743have_webp='no'
31744WEBP_LIBS=''
31745if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31747$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31749$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31751$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031752 failed=0
31753 passed=0
31754 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31755if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31756 passed=`expr $passed + 1`
31757else
31758 failed=`expr $failed + 1`
31759fi
31760
31761
cristy6d670312013-03-22 23:23:01 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31763$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31764if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031765 $as_echo_n "(cached) " >&6
31766else
31767 ac_check_lib_save_LIBS=$LIBS
31768LIBS="-lwebp $LIBS"
31769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770/* end confdefs.h. */
31771
31772/* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31775#ifdef __cplusplus
31776extern "C"
31777#endif
cristy6d670312013-03-22 23:23:01 +000031778char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031779int
31780main ()
31781{
cristy6d670312013-03-22 23:23:01 +000031782return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031783 ;
31784 return 0;
31785}
31786_ACEOF
31787if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031788 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031789else
cristy6d670312013-03-22 23:23:01 +000031790 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031791fi
31792rm -f core conftest.err conftest.$ac_objext \
31793 conftest$ac_exeext conftest.$ac_ext
31794LIBS=$ac_check_lib_save_LIBS
31795fi
cristy6d670312013-03-22 23:23:01 +000031796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31797$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31798if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031799 passed=`expr $passed + 1`
31800else
31801 failed=`expr $failed + 1`
31802fi
31803
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31805$as_echo_n "checking if WEBP package is complete... " >&6; }
31806 if test $passed -gt 0; then
31807 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31809$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031810 have_webp='no (failed tests)'
31811 else
31812 WEBP_LIBS='-lwebp'
31813 LIBS="$WEBP_LIBS $LIBS"
31814
31815$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31816
cristyad38abe2012-12-23 23:03:21 +000031817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31818$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031819 have_webp='yes'
31820 fi
31821 else
cristyad38abe2012-12-23 23:03:21 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31823$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031824 fi
31825fi
31826 if test "$have_webp" = 'yes'; then
31827 WEBP_DELEGATE_TRUE=
31828 WEBP_DELEGATE_FALSE='#'
31829else
31830 WEBP_DELEGATE_TRUE='#'
31831 WEBP_DELEGATE_FALSE=
31832fi
31833
31834
31835
31836
31837#
cristy3ed852e2009-09-05 21:47:34 +000031838# Set Windows font directory.
31839#
31840
31841# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031842if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31844else
31845 with_windows_font_dir=''
31846fi
31847
31848if test "$with_windows_font_dir" != '' ; then
31849 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31850fi
31851
31852
31853#
31854# Check for WMF delegate library.
31855#
31856
31857# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031858if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031859 withval=$with_wmf; with_wmf=$withval
31860else
cristyfc3d0222012-02-07 15:05:57 +000031861 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031862fi
31863
31864
31865if test "$with_wmf" != 'yes'; then
31866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31867fi
31868
31869have_wmf='no'
31870WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031871WMF_LIBS_DEPS=''
31872OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031873if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31875$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31879$as_echo "" >&6; }
31880 have_libwmf='no'
31881 have_libwmflite='no'
31882 have_libwmf_ipa_h='no'
31883
31884 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31885"
31886if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31887 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031888fi
31889
31890
cristy03f7cf92011-12-15 01:40:41 +000031891 if test "$have_libwmf_ipa_h" = 'yes'; then
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31893$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31894if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 $as_echo_n "(cached) " >&6
31896else
31897 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031898LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031900/* end confdefs.h. */
31901
31902/* Override any GCC internal prototype to avoid an error.
31903 Use char because int might match the return type of a GCC
31904 builtin and then its argument prototype would still apply. */
31905#ifdef __cplusplus
31906extern "C"
31907#endif
cristy03f7cf92011-12-15 01:40:41 +000031908char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031909int
31910main ()
31911{
cristy03f7cf92011-12-15 01:40:41 +000031912return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031913 ;
31914 return 0;
31915}
31916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031917if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031918 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031919else
cristy03f7cf92011-12-15 01:40:41 +000031920 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031921fi
cristy8b350f62009-11-15 23:12:43 +000031922rm -f core conftest.err conftest.$ac_objext \
31923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031924LIBS=$ac_check_lib_save_LIBS
31925fi
cristy03f7cf92011-12-15 01:40:41 +000031926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31927$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31928if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31929 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031930fi
31931
cristy03f7cf92011-12-15 01:40:41 +000031932 if test "$have_libwmflite" = 'yes'; then
31933
31934$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31935
31936 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031937 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031938 have_wmf='yes'
31939 else
31940 WMF_LIBS_DEPS=''
31941 WMF_CONFIG_LIBS=`libwmf-config --libs`
31942 for lib in xml2 expat freetype jpeg png z; do
31943 testlib="-l${lib}"
31944 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31945 done
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31947$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31948if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31949 $as_echo_n "(cached) " >&6
31950else
31951 ac_check_lib_save_LIBS=$LIBS
31952LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31954/* end confdefs.h. */
31955
31956/* Override any GCC internal prototype to avoid an error.
31957 Use char because int might match the return type of a GCC
31958 builtin and then its argument prototype would still apply. */
31959#ifdef __cplusplus
31960extern "C"
31961#endif
31962char wmf_api_create ();
31963int
31964main ()
31965{
31966return wmf_api_create ();
31967 ;
31968 return 0;
31969}
31970_ACEOF
31971if ac_fn_c_try_link "$LINENO"; then :
31972 ac_cv_lib_wmf_wmf_api_create=yes
31973else
31974 ac_cv_lib_wmf_wmf_api_create=no
31975fi
31976rm -f core conftest.err conftest.$ac_objext \
31977 conftest$ac_exeext conftest.$ac_ext
31978LIBS=$ac_check_lib_save_LIBS
31979fi
31980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31981$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31982if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31983 have_libwmf='yes'
31984fi
31985
31986 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031987
cristy8b350f62009-11-15 23:12:43 +000031988$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031989
cristy03f7cf92011-12-15 01:40:41 +000031990 WMF_LIBS='-lwmf'
31991 LIBS="$WMF_LIBS $LIBS"
31992 have_wmf='yes'
31993 else
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31995$as_echo "no -- some components failed test" >&6; }
31996 have_wmf='no (failed tests)'
31997 have_wmflite='no (failed tests)'
31998 LIBS="$OLIBS"
31999 WMF_LIBS=''
32000 fi
glennrp33e524b2011-08-24 17:41:57 +000032001 fi
cristy03f7cf92011-12-15 01:40:41 +000032002 fi
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32004$as_echo_n "checking if WMF package is complete... " >&6; }
32005 if test "$have_wmf" = 'yes'; then
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32007$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032008 else
cristy03f7cf92011-12-15 01:40:41 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32010$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032011 fi
cristy3ed852e2009-09-05 21:47:34 +000032012fi
cristy73bd4a52010-10-05 11:24:23 +000032013 if test "$have_wmf" = 'yes'; then
32014 WMF_DELEGATE_TRUE=
32015 WMF_DELEGATE_FALSE='#'
32016else
32017 WMF_DELEGATE_TRUE='#'
32018 WMF_DELEGATE_FALSE=
32019fi
32020
cristy3ed852e2009-09-05 21:47:34 +000032021
32022
32023
cristy81beccd2011-10-03 18:17:24 +000032024
32025
cristy3ed852e2009-09-05 21:47:34 +000032026#
32027# Check for XML delegate library.
32028#
32029
32030# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032031if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 withval=$with_xml; with_xml=$withval
32033else
cristyfc3d0222012-02-07 15:05:57 +000032034 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032035fi
32036
32037
cristy81beccd2011-10-03 18:17:24 +000032038if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32040fi
32041
cristy81beccd2011-10-03 18:17:24 +000032042have_xml='no'
32043XML_LIBS=''
32044if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32046$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32048$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32050$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032051 PERSIST_LDFLAGS=$LDFLAGS
32052 PERSIST_CPPFLAGS=$CPPFLAGS
32053 xml2_config=''
32054 # Extract the first word of "xml2-config", so it can be a program name with args.
32055set dummy xml2-config; ac_word=$2
32056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32057$as_echo_n "checking for $ac_word... " >&6; }
32058if ${ac_cv_path_xml2_config+:} false; then :
32059 $as_echo_n "(cached) " >&6
32060else
32061 case $xml2_config in
32062 [\\/]* | ?:[\\/]*)
32063 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32064 ;;
32065 *)
32066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32067for as_dir in $PATH
32068do
32069 IFS=$as_save_IFS
32070 test -z "$as_dir" && as_dir=.
32071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032073 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32075 break 2
32076 fi
32077done
32078 done
32079IFS=$as_save_IFS
32080
32081 ;;
32082esac
32083fi
32084xml2_config=$ac_cv_path_xml2_config
32085if test -n "$xml2_config"; then
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32087$as_echo "$xml2_config" >&6; }
32088else
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32090$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032091fi
32092
cristy81beccd2011-10-03 18:17:24 +000032093 if test -n "$xml2_config"; then
32094 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32095 # the shared library installed under /usr/lib, whereas the package
32096 # installs itself under $prefix/libxml and $prefix/lib.
32097 xml2_prefix=`xml2-config --prefix`
32098 if test -d "${xml2_prefix}/include/libxml2"; then
32099 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32100 fi
32101 if test "${xml2_prefix}" != '/usr'; then
32102 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32103 fi
32104 fi
32105 failed=0
32106 passed=0
32107 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32108if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32109 passed=`expr $passed + 1`
32110else
32111 failed=`expr $failed + 1`
32112fi
32113
32114
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32116$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32117if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32118 $as_echo_n "(cached) " >&6
32119else
32120 ac_check_lib_save_LIBS=$LIBS
32121LIBS="-lxml2 $LIBS"
32122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32123/* end confdefs.h. */
32124
32125/* Override any GCC internal prototype to avoid an error.
32126 Use char because int might match the return type of a GCC
32127 builtin and then its argument prototype would still apply. */
32128#ifdef __cplusplus
32129extern "C"
32130#endif
32131char xmlSAXVersion ();
32132int
32133main ()
32134{
32135return xmlSAXVersion ();
32136 ;
32137 return 0;
32138}
32139_ACEOF
32140if ac_fn_c_try_link "$LINENO"; then :
32141 ac_cv_lib_xml2_xmlSAXVersion=yes
32142else
32143 ac_cv_lib_xml2_xmlSAXVersion=no
32144fi
32145rm -f core conftest.err conftest.$ac_objext \
32146 conftest$ac_exeext conftest.$ac_ext
32147LIBS=$ac_check_lib_save_LIBS
32148fi
32149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32150$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32151if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32152 passed=`expr $passed + 1`
32153else
32154 failed=`expr $failed + 1`
32155fi
32156
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32158$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32159if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32160 $as_echo_n "(cached) " >&6
32161else
32162 ac_check_lib_save_LIBS=$LIBS
32163LIBS="-lxml2 $LIBS"
32164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32165/* end confdefs.h. */
32166
32167/* Override any GCC internal prototype to avoid an error.
32168 Use char because int might match the return type of a GCC
32169 builtin and then its argument prototype would still apply. */
32170#ifdef __cplusplus
32171extern "C"
32172#endif
32173char xmlParseChunk ();
32174int
32175main ()
32176{
32177return xmlParseChunk ();
32178 ;
32179 return 0;
32180}
32181_ACEOF
32182if ac_fn_c_try_link "$LINENO"; then :
32183 ac_cv_lib_xml2_xmlParseChunk=yes
32184else
32185 ac_cv_lib_xml2_xmlParseChunk=no
32186fi
32187rm -f core conftest.err conftest.$ac_objext \
32188 conftest$ac_exeext conftest.$ac_ext
32189LIBS=$ac_check_lib_save_LIBS
32190fi
32191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32192$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32193if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32194 passed=`expr $passed + 1`
32195else
32196 failed=`expr $failed + 1`
32197fi
32198
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32200$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32201if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32202 $as_echo_n "(cached) " >&6
32203else
32204 ac_check_lib_save_LIBS=$LIBS
32205LIBS="-lxml2 $LIBS"
32206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32207/* end confdefs.h. */
32208
32209/* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32212#ifdef __cplusplus
32213extern "C"
32214#endif
32215char xmlCreatePushParserCtxt ();
32216int
32217main ()
32218{
32219return xmlCreatePushParserCtxt ();
32220 ;
32221 return 0;
32222}
32223_ACEOF
32224if ac_fn_c_try_link "$LINENO"; then :
32225 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32226else
32227 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32228fi
32229rm -f core conftest.err conftest.$ac_objext \
32230 conftest$ac_exeext conftest.$ac_ext
32231LIBS=$ac_check_lib_save_LIBS
32232fi
32233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32234$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32235if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32236 passed=`expr $passed + 1`
32237else
32238 failed=`expr $failed + 1`
32239fi
32240
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32242$as_echo_n "checking if XML package is complete... " >&6; }
32243 if test $passed -gt 0; then
32244 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32246$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032247 have_xml='no (failed tests)'
32248 LDFLAGS="$PERSIST_LDFLAGS"
32249 CPPFLAGS="$PERSIST_CPPFLAGS"
32250 else
32251 XML_LIBS='-lxml2'
32252 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032253
cristy8b350f62009-11-15 23:12:43 +000032254$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032255
cristyad38abe2012-12-23 23:03:21 +000032256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32257$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032258 have_xml='yes'
32259 fi
32260 else
cristyad38abe2012-12-23 23:03:21 +000032261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032263 fi
32264fi
cristy73bd4a52010-10-05 11:24:23 +000032265 if test "$have_xml" = 'yes'; then
32266 XML_DELEGATE_TRUE=
32267 XML_DELEGATE_FALSE='#'
32268else
32269 XML_DELEGATE_TRUE='#'
32270 XML_DELEGATE_FALSE=
32271fi
32272
cristy3ed852e2009-09-05 21:47:34 +000032273
32274
32275
32276# Substitute compiler name to build/link PerlMagick
32277#
32278
32279
32280#
32281# Configure install Paths
32282#
cristy7def36a2011-10-28 19:04:41 +000032283
cristy2a11bef2011-10-28 18:33:11 +000032284# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032285INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032286INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32287DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032288case "${build_os}" in
32289 mingw* )
32290 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32291 ;;
32292esac
32293
32294cat >>confdefs.h <<_ACEOF
32295#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32296_ACEOF
32297
32298
cristy3ed852e2009-09-05 21:47:34 +000032299
cristye52f12f2012-12-31 15:32:36 +000032300# Path to ImageMagick header files (arch part)
32301INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32302DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32303case "${build_os}" in
32304 mingw* )
32305 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32306 ;;
32307esac
32308
32309cat >>confdefs.h <<_ACEOF
32310#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32311_ACEOF
32312
32313
32314
cristy3ed852e2009-09-05 21:47:34 +000032315# Subdirectory under lib to place ImageMagick lib files
32316LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32317
32318cat >>confdefs.h <<_ACEOF
32319#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32320_ACEOF
32321
32322
32323# Path to ImageMagick bin directory
32324EXECUTABLE_PATH="${BIN_DIR}"
32325DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32326case "${build_os}" in
32327 mingw* )
32328 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32329 ;;
32330esac
32331
32332cat >>confdefs.h <<_ACEOF
32333#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32334_ACEOF
32335
32336
32337
32338# Path to ImageMagick lib
32339LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32340DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32341case "${build_os}" in
32342 mingw* )
32343 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32344 ;;
32345esac
32346
32347cat >>confdefs.h <<_ACEOF
32348#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32349_ACEOF
32350
32351
32352
cristy3ed852e2009-09-05 21:47:34 +000032353#
cristy8d0ff762013-03-10 20:33:28 +000032354# path to local binaries
32355if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32356 LIB_BIN_BASEDIRNAME="bin"
32357fi
32358
32359cat >>confdefs.h <<_ACEOF
32360#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32361_ACEOF
32362
32363
32364
32365if test "x$LIB_BIN_DIR" = "x"; then
32366 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32367fi
32368
32369
32370LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32371
32372LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32373
32374
32375#
cristy01ff9f32012-12-01 18:15:29 +000032376# path to modules lib
32377if test "x$MODULES_BASEDIRNAME" = "x"; then
32378 MODULES_BASEDIRNAME="modules"
32379fi
cristy3ed852e2009-09-05 21:47:34 +000032380
32381cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032382#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032383_ACEOF
32384
cristy01ff9f32012-12-01 18:15:29 +000032385
32386
32387if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032388 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32389else
cristy3ed852e2009-09-05 21:47:34 +000032390
32391cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032392#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032393_ACEOF
32394
cristycf4a3c22012-12-02 21:47:25 +000032395fi
cristy01ff9f32012-12-01 18:15:29 +000032396
32397
cristy371d4812012-12-01 19:48:10 +000032398MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032399
32400MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32401
32402
32403#
32404# path to coders lib
32405if test "x$CODER_DIRNAME" = "x"; then
32406 CODER_DIRNAME="coders"
32407fi
32408
32409cat >>confdefs.h <<_ACEOF
32410#define CODER_DIRNAME "$CODER_DIRNAME"
32411_ACEOF
32412
32413
32414
cristy371d4812012-12-01 19:48:10 +000032415CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032416CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032417
32418
32419#
32420# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032421#
32422# path to coders lib
32423if test "x$FILTER_DIRNAME" = "x"; then
32424 FILTER_DIRNAME="filters"
32425fi
cristy3ed852e2009-09-05 21:47:34 +000032426
32427cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032428#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032429_ACEOF
32430
cristy3ed852e2009-09-05 21:47:34 +000032431
cristy3ed852e2009-09-05 21:47:34 +000032432
cristy371d4812012-12-01 19:48:10 +000032433FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032434FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032435
32436
32437#
32438# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032439DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032440DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32441DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032442case "${build_os}" in
32443 mingw* )
32444 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32445 ;;
32446esac
32447
32448cat >>confdefs.h <<_ACEOF
32449#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32450_ACEOF
32451
32452
32453
cristy2a11bef2011-10-28 18:33:11 +000032454# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032455CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032456
32457cat >>confdefs.h <<_ACEOF
32458#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32459_ACEOF
32460
cristy7def36a2011-10-28 19:04:41 +000032461CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032462DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32463case "${build_os}" in
32464 mingw* )
32465 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32466 ;;
32467esac
32468
32469cat >>confdefs.h <<_ACEOF
32470#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32471_ACEOF
32472
32473
32474
cristy2a11bef2011-10-28 18:33:11 +000032475# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032476SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032477
32478cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032479#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032480_ACEOF
32481
cristy670aa3c2011-11-03 00:54:00 +000032482SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032483DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032484case "${build_os}" in
32485 mingw* )
cristy4f820712011-04-01 12:35:43 +000032486 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032487 ;;
32488esac
32489
32490cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032491#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032492_ACEOF
32493
32494
32495
cristy54378032012-12-04 15:52:20 +000032496#
32497# Subdirectory to place architecture-dependent configuration files.
32498if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32499 SHAREARCH_BASEDIRNAME="config"
32500fi
cristy670aa3c2011-11-03 00:54:00 +000032501
32502cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032503#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032504_ACEOF
32505
cristy54378032012-12-04 15:52:20 +000032506
32507
32508if test "x$SHAREARCH_DIRNAME" = "x"; then
32509 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32510else
cristy670aa3c2011-11-03 00:54:00 +000032511
32512cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032513#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032514_ACEOF
32515
cristy54378032012-12-04 15:52:20 +000032516fi
32517
32518
32519SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32520
32521SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032522
32523
cristy3ed852e2009-09-05 21:47:34 +000032524#
32525# program_transform_name is formed for use in a Makefile, so create a
32526# modified version for use in a shell script.
32527configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32528
32529# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32531$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32535$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032536AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032537BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032538BZIPDelegateDefault='bzip2'
32539BrowseDelegateDefault='xdg-open'
32540CGMDecodeDelegateDefault='ralcgm'
32541CatDelegateDefault='cat'
32542DNGDecodeDelegateDefault='ufraw-batch'
32543GVCDecodeDelegateDefault='dot'
32544DVIDecodeDelegateDefault='dvips'
32545EchoDelegateDefault='echo'
32546EditorDelegateDefault='xterm'
32547FIGDecodeDelegateDefault='fig2dev'
32548ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32549DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32550MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32551GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032552HPGLDecodeDelegateDefault='hp2xx'
32553HTMLDecodeDelegateDefault='html2ps'
32554ILBMDecodeDelegateDefault='ilbmtoppm'
32555ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032556JXRDecodeDelegateDefault='JxrDecApp'
32557JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032558LPDelegateDefault='lp'
32559LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032560LaunchDelegateDefault='gimp'
32561MANDelegateDefault='groff'
32562MPEGDecodeDelegateDefault='ffmpeg'
32563MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032564MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032565MVDelegateDefault='mv'
32566PCLDelegateDefault='pcl6'
32567PGPDecodeDelegateDefault='pgpv'
32568POVDelegateDefault='povray'
32569if test "$native_win32_build" = 'yes'; then
32570 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032571elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032572 PSDelegateDefault='gsc'
32573else
32574 PSDelegateDefault='gs'
32575fi
32576RLEEncodeDelegateDefault='rawtorle'
32577RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032578RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032579SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032580SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032581TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032582UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032583WMFDecodeDelegateDefault='wmf2eps'
32584WWWDecodeDelegateDefault='curl'
32585XPSDelegateDefault='gxps'
32586ZipDelegateDefault='gzip'
32587
32588# Search for delegates
32589# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32590set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032593if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032594 $as_echo_n "(cached) " >&6
32595else
32596 case $AutotraceDecodeDelegate in
32597 [\\/]* | ?:[\\/]*)
32598 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32599 ;;
32600 *)
32601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32602for as_dir in $PATH
32603do
32604 IFS=$as_save_IFS
32605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032608 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032610 break 2
32611 fi
32612done
cristy8b350f62009-11-15 23:12:43 +000032613 done
cristy3ed852e2009-09-05 21:47:34 +000032614IFS=$as_save_IFS
32615
32616 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32617 ;;
32618esac
32619fi
32620AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32621if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "$AutotraceDecodeDelegate" >&6; }
32624else
cristy8b350f62009-11-15 23:12:43 +000032625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032626$as_echo "no" >&6; }
32627fi
32628
32629
cristy3ed852e2009-09-05 21:47:34 +000032630# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32631set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032634if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032635 $as_echo_n "(cached) " >&6
32636else
32637 case $BlenderDecodeDelegate in
32638 [\\/]* | ?:[\\/]*)
32639 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32640 ;;
32641 *)
32642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32643for as_dir in $PATH
32644do
32645 IFS=$as_save_IFS
32646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032649 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032651 break 2
32652 fi
32653done
cristy8b350f62009-11-15 23:12:43 +000032654 done
cristy3ed852e2009-09-05 21:47:34 +000032655IFS=$as_save_IFS
32656
32657 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32658 ;;
32659esac
32660fi
32661BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32662if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "$BlenderDecodeDelegate" >&6; }
32665else
cristy8b350f62009-11-15 23:12:43 +000032666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032667$as_echo "no" >&6; }
32668fi
32669
32670
32671# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32672set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032675if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032676 $as_echo_n "(cached) " >&6
32677else
32678 case $BZIPDelegate in
32679 [\\/]* | ?:[\\/]*)
32680 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32681 ;;
32682 *)
32683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32684for as_dir in $PATH
32685do
32686 IFS=$as_save_IFS
32687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032690 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692 break 2
32693 fi
32694done
cristy8b350f62009-11-15 23:12:43 +000032695 done
cristy3ed852e2009-09-05 21:47:34 +000032696IFS=$as_save_IFS
32697
32698 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32699 ;;
32700esac
32701fi
32702BZIPDelegate=$ac_cv_path_BZIPDelegate
32703if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo "$BZIPDelegate" >&6; }
32706else
cristy8b350f62009-11-15 23:12:43 +000032707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032708$as_echo "no" >&6; }
32709fi
32710
32711
cristyc59f0e72012-08-27 12:59:33 +000032712for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32713do
32714 # Extract the first word of "$ac_prog", so it can be a program name with args.
32715set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032718if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032719 $as_echo_n "(cached) " >&6
32720else
32721 case $BrowseDelegate in
32722 [\\/]* | ?:[\\/]*)
32723 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32724 ;;
32725 *)
32726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32727for as_dir in $PATH
32728do
32729 IFS=$as_save_IFS
32730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032733 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735 break 2
32736 fi
32737done
cristy8b350f62009-11-15 23:12:43 +000032738 done
cristy3ed852e2009-09-05 21:47:34 +000032739IFS=$as_save_IFS
32740
cristy3ed852e2009-09-05 21:47:34 +000032741 ;;
32742esac
32743fi
32744BrowseDelegate=$ac_cv_path_BrowseDelegate
32745if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "$BrowseDelegate" >&6; }
32748else
cristy8b350f62009-11-15 23:12:43 +000032749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo "no" >&6; }
32751fi
32752
32753
cristyc59f0e72012-08-27 12:59:33 +000032754 test -n "$BrowseDelegate" && break
32755done
32756test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32757
cristy3ed852e2009-09-05 21:47:34 +000032758# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32759set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032762if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032763 $as_echo_n "(cached) " >&6
32764else
32765 case $CGMDecodeDelegate in
32766 [\\/]* | ?:[\\/]*)
32767 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32768 ;;
32769 *)
32770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32771for as_dir in $PATH
32772do
32773 IFS=$as_save_IFS
32774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032777 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032779 break 2
32780 fi
32781done
cristy8b350f62009-11-15 23:12:43 +000032782 done
cristy3ed852e2009-09-05 21:47:34 +000032783IFS=$as_save_IFS
32784
32785 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32786 ;;
32787esac
32788fi
32789CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32790if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032792$as_echo "$CGMDecodeDelegate" >&6; }
32793else
cristy8b350f62009-11-15 23:12:43 +000032794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo "no" >&6; }
32796fi
32797
32798
32799# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32800set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032803if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032804 $as_echo_n "(cached) " >&6
32805else
32806 case $CatDelegate in
32807 [\\/]* | ?:[\\/]*)
32808 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32809 ;;
32810 *)
32811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32812for as_dir in $PATH
32813do
32814 IFS=$as_save_IFS
32815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032818 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032820 break 2
32821 fi
32822done
cristy8b350f62009-11-15 23:12:43 +000032823 done
cristy3ed852e2009-09-05 21:47:34 +000032824IFS=$as_save_IFS
32825
32826 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32827 ;;
32828esac
32829fi
32830CatDelegate=$ac_cv_path_CatDelegate
32831if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032833$as_echo "$CatDelegate" >&6; }
32834else
cristy8b350f62009-11-15 23:12:43 +000032835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo "no" >&6; }
32837fi
32838
32839
32840# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32841set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032844if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032845 $as_echo_n "(cached) " >&6
32846else
32847 case $DNGDecodeDelegate in
32848 [\\/]* | ?:[\\/]*)
32849 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32850 ;;
32851 *)
32852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32853for as_dir in $PATH
32854do
32855 IFS=$as_save_IFS
32856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032859 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861 break 2
32862 fi
32863done
cristy8b350f62009-11-15 23:12:43 +000032864 done
cristy3ed852e2009-09-05 21:47:34 +000032865IFS=$as_save_IFS
32866
32867 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32868 ;;
32869esac
32870fi
32871DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32872if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo "$DNGDecodeDelegate" >&6; }
32875else
cristy8b350f62009-11-15 23:12:43 +000032876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo "no" >&6; }
32878fi
32879
32880
32881# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32882set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032885if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032886 $as_echo_n "(cached) " >&6
32887else
32888 case $GVCDecodeDelegate in
32889 [\\/]* | ?:[\\/]*)
32890 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32891 ;;
32892 *)
32893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32894for as_dir in $PATH
32895do
32896 IFS=$as_save_IFS
32897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032900 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902 break 2
32903 fi
32904done
cristy8b350f62009-11-15 23:12:43 +000032905 done
cristy3ed852e2009-09-05 21:47:34 +000032906IFS=$as_save_IFS
32907
32908 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32909 ;;
32910esac
32911fi
32912GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32913if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032915$as_echo "$GVCDecodeDelegate" >&6; }
32916else
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "no" >&6; }
32919fi
32920
32921
32922# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32923set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032926if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032927 $as_echo_n "(cached) " >&6
32928else
32929 case $DVIDecodeDelegate in
32930 [\\/]* | ?:[\\/]*)
32931 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32932 ;;
32933 *)
32934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32935for as_dir in $PATH
32936do
32937 IFS=$as_save_IFS
32938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032941 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943 break 2
32944 fi
32945done
cristy8b350f62009-11-15 23:12:43 +000032946 done
cristy3ed852e2009-09-05 21:47:34 +000032947IFS=$as_save_IFS
32948
32949 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32950 ;;
32951esac
32952fi
32953DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32954if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo "$DVIDecodeDelegate" >&6; }
32957else
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "no" >&6; }
32960fi
32961
32962
32963# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32964set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032967if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032968 $as_echo_n "(cached) " >&6
32969else
32970 case $EchoDelegate in
32971 [\\/]* | ?:[\\/]*)
32972 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32973 ;;
32974 *)
32975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32976for as_dir in $PATH
32977do
32978 IFS=$as_save_IFS
32979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032982 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984 break 2
32985 fi
32986done
cristy8b350f62009-11-15 23:12:43 +000032987 done
cristy3ed852e2009-09-05 21:47:34 +000032988IFS=$as_save_IFS
32989
32990 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32991 ;;
32992esac
32993fi
32994EchoDelegate=$ac_cv_path_EchoDelegate
32995if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032997$as_echo "$EchoDelegate" >&6; }
32998else
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "no" >&6; }
33001fi
33002
33003
33004# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33005set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033008if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033009 $as_echo_n "(cached) " >&6
33010else
33011 case $EditorDelegate in
33012 [\\/]* | ?:[\\/]*)
33013 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33014 ;;
33015 *)
33016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33017for as_dir in $PATH
33018do
33019 IFS=$as_save_IFS
33020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033023 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025 break 2
33026 fi
33027done
cristy8b350f62009-11-15 23:12:43 +000033028 done
cristy3ed852e2009-09-05 21:47:34 +000033029IFS=$as_save_IFS
33030
33031 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33032 ;;
33033esac
33034fi
33035EditorDelegate=$ac_cv_path_EditorDelegate
33036if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033038$as_echo "$EditorDelegate" >&6; }
33039else
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo "no" >&6; }
33042fi
33043
33044
33045# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33046set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033049if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033050 $as_echo_n "(cached) " >&6
33051else
33052 case $FIGDecodeDelegate in
33053 [\\/]* | ?:[\\/]*)
33054 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33055 ;;
33056 *)
33057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058for as_dir in $PATH
33059do
33060 IFS=$as_save_IFS
33061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033064 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066 break 2
33067 fi
33068done
cristy8b350f62009-11-15 23:12:43 +000033069 done
cristy3ed852e2009-09-05 21:47:34 +000033070IFS=$as_save_IFS
33071
33072 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33073 ;;
33074esac
33075fi
33076FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33077if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033079$as_echo "$FIGDecodeDelegate" >&6; }
33080else
cristy8b350f62009-11-15 23:12:43 +000033081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo "no" >&6; }
33083fi
33084
33085
33086# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33087set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033090if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033091 $as_echo_n "(cached) " >&6
33092else
33093 case $ConvertDelegate in
33094 [\\/]* | ?:[\\/]*)
33095 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33096 ;;
33097 *)
33098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33099for as_dir in $PATH
33100do
33101 IFS=$as_save_IFS
33102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033105 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107 break 2
33108 fi
33109done
cristy8b350f62009-11-15 23:12:43 +000033110 done
cristy3ed852e2009-09-05 21:47:34 +000033111IFS=$as_save_IFS
33112
33113 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33114 ;;
33115esac
33116fi
33117ConvertDelegate=$ac_cv_path_ConvertDelegate
33118if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033120$as_echo "$ConvertDelegate" >&6; }
33121else
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo "no" >&6; }
33124fi
33125
33126
33127# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33128set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033131if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033132 $as_echo_n "(cached) " >&6
33133else
33134 case $DisplayDelegate in
33135 [\\/]* | ?:[\\/]*)
33136 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33137 ;;
33138 *)
33139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33140for as_dir in $PATH
33141do
33142 IFS=$as_save_IFS
33143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033146 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148 break 2
33149 fi
33150done
cristy8b350f62009-11-15 23:12:43 +000033151 done
cristy3ed852e2009-09-05 21:47:34 +000033152IFS=$as_save_IFS
33153
33154 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33155 ;;
33156esac
33157fi
33158DisplayDelegate=$ac_cv_path_DisplayDelegate
33159if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033161$as_echo "$DisplayDelegate" >&6; }
33162else
cristy8b350f62009-11-15 23:12:43 +000033163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164$as_echo "no" >&6; }
33165fi
33166
33167
33168# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33169set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033172if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033173 $as_echo_n "(cached) " >&6
33174else
33175 case $MogrifyDelegate in
33176 [\\/]* | ?:[\\/]*)
33177 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33178 ;;
33179 *)
33180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33181for as_dir in $PATH
33182do
33183 IFS=$as_save_IFS
33184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033187 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189 break 2
33190 fi
33191done
cristy8b350f62009-11-15 23:12:43 +000033192 done
cristy3ed852e2009-09-05 21:47:34 +000033193IFS=$as_save_IFS
33194
33195 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33196 ;;
33197esac
33198fi
33199MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33200if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033202$as_echo "$MogrifyDelegate" >&6; }
33203else
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "no" >&6; }
33206fi
33207
33208
33209# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33210set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033213if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033214 $as_echo_n "(cached) " >&6
33215else
33216 case $GnuplotDecodeDelegate in
33217 [\\/]* | ?:[\\/]*)
33218 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33219 ;;
33220 *)
33221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33222for as_dir in $PATH
33223do
33224 IFS=$as_save_IFS
33225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033228 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230 break 2
33231 fi
33232done
cristy8b350f62009-11-15 23:12:43 +000033233 done
cristy3ed852e2009-09-05 21:47:34 +000033234IFS=$as_save_IFS
33235
33236 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33237 ;;
33238esac
33239fi
33240GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33241if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033243$as_echo "$GnuplotDecodeDelegate" >&6; }
33244else
cristy8b350f62009-11-15 23:12:43 +000033245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo "no" >&6; }
33247fi
33248
33249
cristy3ed852e2009-09-05 21:47:34 +000033250# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33251set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033254if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033255 $as_echo_n "(cached) " >&6
33256else
33257 case $HPGLDecodeDelegate in
33258 [\\/]* | ?:[\\/]*)
33259 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33260 ;;
33261 *)
33262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33263for as_dir in $PATH
33264do
33265 IFS=$as_save_IFS
33266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033269 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271 break 2
33272 fi
33273done
cristy8b350f62009-11-15 23:12:43 +000033274 done
cristy3ed852e2009-09-05 21:47:34 +000033275IFS=$as_save_IFS
33276
33277 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33278 ;;
33279esac
33280fi
33281HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33282if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033284$as_echo "$HPGLDecodeDelegate" >&6; }
33285else
cristy8b350f62009-11-15 23:12:43 +000033286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo "no" >&6; }
33288fi
33289
33290
33291# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33292set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033295if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033296 $as_echo_n "(cached) " >&6
33297else
33298 case $HTMLDecodeDelegate in
33299 [\\/]* | ?:[\\/]*)
33300 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33301 ;;
33302 *)
33303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33304for as_dir in $PATH
33305do
33306 IFS=$as_save_IFS
33307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033310 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033312 break 2
33313 fi
33314done
cristy8b350f62009-11-15 23:12:43 +000033315 done
cristy3ed852e2009-09-05 21:47:34 +000033316IFS=$as_save_IFS
33317
33318 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33319 ;;
33320esac
33321fi
33322HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33323if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033325$as_echo "$HTMLDecodeDelegate" >&6; }
33326else
cristy8b350f62009-11-15 23:12:43 +000033327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo "no" >&6; }
33329fi
33330
33331
33332# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33333set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033336if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033337 $as_echo_n "(cached) " >&6
33338else
33339 case $ILBMDecodeDelegate in
33340 [\\/]* | ?:[\\/]*)
33341 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33342 ;;
33343 *)
33344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33345for as_dir in $PATH
33346do
33347 IFS=$as_save_IFS
33348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033351 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353 break 2
33354 fi
33355done
cristy8b350f62009-11-15 23:12:43 +000033356 done
cristy3ed852e2009-09-05 21:47:34 +000033357IFS=$as_save_IFS
33358
33359 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33360 ;;
33361esac
33362fi
33363ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33364if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033366$as_echo "$ILBMDecodeDelegate" >&6; }
33367else
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "no" >&6; }
33370fi
33371
33372
33373# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33374set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033377if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033378 $as_echo_n "(cached) " >&6
33379else
33380 case $ILBMEncodeDelegate in
33381 [\\/]* | ?:[\\/]*)
33382 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33383 ;;
33384 *)
33385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33386for as_dir in $PATH
33387do
33388 IFS=$as_save_IFS
33389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033392 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394 break 2
33395 fi
33396done
cristy8b350f62009-11-15 23:12:43 +000033397 done
cristy3ed852e2009-09-05 21:47:34 +000033398IFS=$as_save_IFS
33399
33400 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33401 ;;
33402esac
33403fi
33404ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33405if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033407$as_echo "$ILBMEncodeDelegate" >&6; }
33408else
cristy8b350f62009-11-15 23:12:43 +000033409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410$as_echo "no" >&6; }
33411fi
33412
33413
cristy71f53d52013-04-27 13:33:59 +000033414# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33415set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33417$as_echo_n "checking for $ac_word... " >&6; }
33418if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33419 $as_echo_n "(cached) " >&6
33420else
33421 case $JXRDecodeDelegate in
33422 [\\/]* | ?:[\\/]*)
33423 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33424 ;;
33425 *)
33426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33427for as_dir in $PATH
33428do
33429 IFS=$as_save_IFS
33430 test -z "$as_dir" && as_dir=.
33431 for ac_exec_ext in '' $ac_executable_extensions; do
33432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33433 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33435 break 2
33436 fi
33437done
33438 done
33439IFS=$as_save_IFS
33440
33441 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33442 ;;
33443esac
33444fi
33445JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33446if test -n "$JXRDecodeDelegate"; then
33447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33448$as_echo "$JXRDecodeDelegate" >&6; }
33449else
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33451$as_echo "no" >&6; }
33452fi
33453
33454
33455# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33456set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33458$as_echo_n "checking for $ac_word... " >&6; }
33459if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33460 $as_echo_n "(cached) " >&6
33461else
33462 case $JXREncodeDelegate in
33463 [\\/]* | ?:[\\/]*)
33464 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33465 ;;
33466 *)
33467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33468for as_dir in $PATH
33469do
33470 IFS=$as_save_IFS
33471 test -z "$as_dir" && as_dir=.
33472 for ac_exec_ext in '' $ac_executable_extensions; do
33473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33474 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33476 break 2
33477 fi
33478done
33479 done
33480IFS=$as_save_IFS
33481
33482 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33483 ;;
33484esac
33485fi
33486JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33487if test -n "$JXREncodeDelegate"; then
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33489$as_echo "$JXREncodeDelegate" >&6; }
33490else
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33492$as_echo "no" >&6; }
33493fi
33494
33495
cristy3ed852e2009-09-05 21:47:34 +000033496# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33497set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033500if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033501 $as_echo_n "(cached) " >&6
33502else
33503 case $LPDelegate in
33504 [\\/]* | ?:[\\/]*)
33505 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33506 ;;
33507 *)
33508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33509for as_dir in $PATH
33510do
33511 IFS=$as_save_IFS
33512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033515 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033517 break 2
33518 fi
33519done
cristy8b350f62009-11-15 23:12:43 +000033520 done
cristy3ed852e2009-09-05 21:47:34 +000033521IFS=$as_save_IFS
33522
33523 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33524 ;;
33525esac
33526fi
33527LPDelegate=$ac_cv_path_LPDelegate
33528if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033530$as_echo "$LPDelegate" >&6; }
33531else
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "no" >&6; }
33534fi
33535
33536
33537# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33538set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033541if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033542 $as_echo_n "(cached) " >&6
33543else
33544 case $LPRDelegate in
33545 [\\/]* | ?:[\\/]*)
33546 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33547 ;;
33548 *)
33549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33550for as_dir in $PATH
33551do
33552 IFS=$as_save_IFS
33553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033556 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033558 break 2
33559 fi
33560done
cristy8b350f62009-11-15 23:12:43 +000033561 done
cristy3ed852e2009-09-05 21:47:34 +000033562IFS=$as_save_IFS
33563
33564 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33565 ;;
33566esac
33567fi
33568LPRDelegate=$ac_cv_path_LPRDelegate
33569if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033571$as_echo "$LPRDelegate" >&6; }
33572else
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "no" >&6; }
33575fi
33576
33577
cristy3ed852e2009-09-05 21:47:34 +000033578# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33579set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033582if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033583 $as_echo_n "(cached) " >&6
33584else
33585 case $LaunchDelegate in
33586 [\\/]* | ?:[\\/]*)
33587 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33588 ;;
33589 *)
33590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33591for as_dir in $PATH
33592do
33593 IFS=$as_save_IFS
33594 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033597 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033599 break 2
33600 fi
33601done
cristy8b350f62009-11-15 23:12:43 +000033602 done
cristy3ed852e2009-09-05 21:47:34 +000033603IFS=$as_save_IFS
33604
33605 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33606 ;;
33607esac
33608fi
33609LaunchDelegate=$ac_cv_path_LaunchDelegate
33610if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "$LaunchDelegate" >&6; }
33613else
cristy8b350f62009-11-15 23:12:43 +000033614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615$as_echo "no" >&6; }
33616fi
33617
33618
33619# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33620set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033623if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033624 $as_echo_n "(cached) " >&6
33625else
33626 case $MANDelegate in
33627 [\\/]* | ?:[\\/]*)
33628 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33629 ;;
33630 *)
33631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33632for as_dir in $PATH
33633do
33634 IFS=$as_save_IFS
33635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033638 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033640 break 2
33641 fi
33642done
cristy8b350f62009-11-15 23:12:43 +000033643 done
cristy3ed852e2009-09-05 21:47:34 +000033644IFS=$as_save_IFS
33645
33646 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33647 ;;
33648esac
33649fi
33650MANDelegate=$ac_cv_path_MANDelegate
33651if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653$as_echo "$MANDelegate" >&6; }
33654else
cristy8b350f62009-11-15 23:12:43 +000033655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656$as_echo "no" >&6; }
33657fi
33658
33659
33660# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33661set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033664if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033665 $as_echo_n "(cached) " >&6
33666else
33667 case $MPEGDecodeDelegate in
33668 [\\/]* | ?:[\\/]*)
33669 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33670 ;;
33671 *)
33672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33673for as_dir in $PATH
33674do
33675 IFS=$as_save_IFS
33676 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033677 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033679 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033681 break 2
33682 fi
33683done
cristy8b350f62009-11-15 23:12:43 +000033684 done
cristy3ed852e2009-09-05 21:47:34 +000033685IFS=$as_save_IFS
33686
33687 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33688 ;;
33689esac
33690fi
33691MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33692if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033694$as_echo "$MPEGDecodeDelegate" >&6; }
33695else
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "no" >&6; }
33698fi
33699
33700
33701# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33702set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033704$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033705if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033706 $as_echo_n "(cached) " >&6
33707else
33708 case $MPEGEncodeDelegate in
33709 [\\/]* | ?:[\\/]*)
33710 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33711 ;;
33712 *)
33713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33714for as_dir in $PATH
33715do
33716 IFS=$as_save_IFS
33717 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033718 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033720 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033722 break 2
33723 fi
33724done
cristy8b350f62009-11-15 23:12:43 +000033725 done
cristy3ed852e2009-09-05 21:47:34 +000033726IFS=$as_save_IFS
33727
33728 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33729 ;;
33730esac
33731fi
33732MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33733if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033735$as_echo "$MPEGEncodeDelegate" >&6; }
33736else
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo "no" >&6; }
33739fi
33740
33741
cristy935c86e2010-06-05 23:50:07 +000033742# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33743set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033746if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033747 $as_echo_n "(cached) " >&6
33748else
33749 case $MrSIDDecodeDelegate in
33750 [\\/]* | ?:[\\/]*)
33751 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33752 ;;
33753 *)
33754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33755for as_dir in $PATH
33756do
33757 IFS=$as_save_IFS
33758 test -z "$as_dir" && as_dir=.
33759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033761 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33763 break 2
33764 fi
33765done
33766 done
33767IFS=$as_save_IFS
33768
33769 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33770 ;;
33771esac
33772fi
33773MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33774if test -n "$MrSIDDecodeDelegate"; then
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33776$as_echo "$MrSIDDecodeDelegate" >&6; }
33777else
33778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33779$as_echo "no" >&6; }
33780fi
33781
33782
cristy3ed852e2009-09-05 21:47:34 +000033783# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33784set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033787if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033788 $as_echo_n "(cached) " >&6
33789else
33790 case $MVDelegate in
33791 [\\/]* | ?:[\\/]*)
33792 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33793 ;;
33794 *)
33795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33796for as_dir in $PATH
33797do
33798 IFS=$as_save_IFS
33799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033802 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804 break 2
33805 fi
33806done
cristy8b350f62009-11-15 23:12:43 +000033807 done
cristy3ed852e2009-09-05 21:47:34 +000033808IFS=$as_save_IFS
33809
33810 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33811 ;;
33812esac
33813fi
33814MVDelegate=$ac_cv_path_MVDelegate
33815if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817$as_echo "$MVDelegate" >&6; }
33818else
cristy8b350f62009-11-15 23:12:43 +000033819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820$as_echo "no" >&6; }
33821fi
33822
33823
33824# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33825set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033828if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033829 $as_echo_n "(cached) " >&6
33830else
33831 case $PCLDelegate in
33832 [\\/]* | ?:[\\/]*)
33833 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33834 ;;
33835 *)
33836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33837for as_dir in $PATH
33838do
33839 IFS=$as_save_IFS
33840 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033843 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033845 break 2
33846 fi
33847done
cristy8b350f62009-11-15 23:12:43 +000033848 done
cristy3ed852e2009-09-05 21:47:34 +000033849IFS=$as_save_IFS
33850
33851 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33852 ;;
33853esac
33854fi
33855PCLDelegate=$ac_cv_path_PCLDelegate
33856if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "$PCLDelegate" >&6; }
33859else
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "no" >&6; }
33862fi
33863
33864
33865# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33866set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033869if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033870 $as_echo_n "(cached) " >&6
33871else
33872 case $PGPDecodeDelegate in
33873 [\\/]* | ?:[\\/]*)
33874 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33875 ;;
33876 *)
33877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878for as_dir in $PATH
33879do
33880 IFS=$as_save_IFS
33881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033884 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033886 break 2
33887 fi
33888done
cristy8b350f62009-11-15 23:12:43 +000033889 done
cristy3ed852e2009-09-05 21:47:34 +000033890IFS=$as_save_IFS
33891
33892 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33893 ;;
33894esac
33895fi
33896PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33897if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$PGPDecodeDelegate" >&6; }
33900else
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "no" >&6; }
33903fi
33904
33905
33906# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33907set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033910if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033911 $as_echo_n "(cached) " >&6
33912else
33913 case $POVDelegate in
33914 [\\/]* | ?:[\\/]*)
33915 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33916 ;;
33917 *)
33918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33919for as_dir in $PATH
33920do
33921 IFS=$as_save_IFS
33922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033925 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927 break 2
33928 fi
33929done
cristy8b350f62009-11-15 23:12:43 +000033930 done
cristy3ed852e2009-09-05 21:47:34 +000033931IFS=$as_save_IFS
33932
33933 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33934 ;;
33935esac
33936fi
33937POVDelegate=$ac_cv_path_POVDelegate
33938if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo "$POVDelegate" >&6; }
33941else
cristy8b350f62009-11-15 23:12:43 +000033942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943$as_echo "no" >&6; }
33944fi
33945
33946
33947for ac_prog in gsx gsc "$PSDelegateDefault"
33948do
33949 # Extract the first word of "$ac_prog", so it can be a program name with args.
33950set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033953if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033954 $as_echo_n "(cached) " >&6
33955else
33956 case $PSDelegate in
33957 [\\/]* | ?:[\\/]*)
33958 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33959 ;;
33960 *)
33961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33962for as_dir in $PATH
33963do
33964 IFS=$as_save_IFS
33965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033968 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033970 break 2
33971 fi
33972done
cristy8b350f62009-11-15 23:12:43 +000033973 done
cristy3ed852e2009-09-05 21:47:34 +000033974IFS=$as_save_IFS
33975
33976 ;;
33977esac
33978fi
33979PSDelegate=$ac_cv_path_PSDelegate
33980if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo "$PSDelegate" >&6; }
33983else
cristy8b350f62009-11-15 23:12:43 +000033984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo "no" >&6; }
33986fi
33987
33988
33989 test -n "$PSDelegate" && break
33990done
33991test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33992
33993# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33994set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033997if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033998 $as_echo_n "(cached) " >&6
33999else
34000 case $RLEEncodeDelegate in
34001 [\\/]* | ?:[\\/]*)
34002 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34003 ;;
34004 *)
34005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34006for as_dir in $PATH
34007do
34008 IFS=$as_save_IFS
34009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034012 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034014 break 2
34015 fi
34016done
cristy8b350f62009-11-15 23:12:43 +000034017 done
cristy3ed852e2009-09-05 21:47:34 +000034018IFS=$as_save_IFS
34019
34020 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34021 ;;
34022esac
34023fi
34024RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34025if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027$as_echo "$RLEEncodeDelegate" >&6; }
34028else
cristy8b350f62009-11-15 23:12:43 +000034029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034030$as_echo "no" >&6; }
34031fi
34032
34033
34034# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34035set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034038if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034039 $as_echo_n "(cached) " >&6
34040else
34041 case $RMDelegate in
34042 [\\/]* | ?:[\\/]*)
34043 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34044 ;;
34045 *)
34046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34047for as_dir in $PATH
34048do
34049 IFS=$as_save_IFS
34050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034053 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034055 break 2
34056 fi
34057done
cristy8b350f62009-11-15 23:12:43 +000034058 done
cristy3ed852e2009-09-05 21:47:34 +000034059IFS=$as_save_IFS
34060
34061 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34062 ;;
34063esac
34064fi
34065RMDelegate=$ac_cv_path_RMDelegate
34066if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034068$as_echo "$RMDelegate" >&6; }
34069else
cristy8b350f62009-11-15 23:12:43 +000034070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo "no" >&6; }
34072fi
34073
34074
cristy4689cf02010-02-17 21:15:45 +000034075# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34076set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034079if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034080 $as_echo_n "(cached) " >&6
34081else
34082 case $RSVGDecodeDelegate in
34083 [\\/]* | ?:[\\/]*)
34084 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34085 ;;
34086 *)
34087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34088for as_dir in $PATH
34089do
34090 IFS=$as_save_IFS
34091 test -z "$as_dir" && as_dir=.
34092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034094 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34096 break 2
34097 fi
34098done
34099 done
34100IFS=$as_save_IFS
34101
34102 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34103 ;;
34104esac
34105fi
34106RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34107if test -n "$RSVGDecodeDelegate"; then
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34109$as_echo "$RSVGDecodeDelegate" >&6; }
34110else
34111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34112$as_echo "no" >&6; }
34113fi
34114
34115
cristy3ed852e2009-09-05 21:47:34 +000034116# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34117set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034120if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034121 $as_echo_n "(cached) " >&6
34122else
34123 case $SCANDecodeDelegate in
34124 [\\/]* | ?:[\\/]*)
34125 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34126 ;;
34127 *)
34128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34129for as_dir in $PATH
34130do
34131 IFS=$as_save_IFS
34132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034135 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034137 break 2
34138 fi
34139done
cristy8b350f62009-11-15 23:12:43 +000034140 done
cristy3ed852e2009-09-05 21:47:34 +000034141IFS=$as_save_IFS
34142
34143 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34144 ;;
34145esac
34146fi
34147SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34148if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034150$as_echo "$SCANDecodeDelegate" >&6; }
34151else
cristy8b350f62009-11-15 23:12:43 +000034152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo "no" >&6; }
34154fi
34155
34156
cristyec6934f2012-08-14 18:38:40 +000034157# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34158set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34160$as_echo_n "checking for $ac_word... " >&6; }
34161if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34162 $as_echo_n "(cached) " >&6
34163else
34164 case $SVGDecodeDelegate in
34165 [\\/]* | ?:[\\/]*)
34166 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34167 ;;
34168 *)
34169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34170for as_dir in $PATH
34171do
34172 IFS=$as_save_IFS
34173 test -z "$as_dir" && as_dir=.
34174 for ac_exec_ext in '' $ac_executable_extensions; do
34175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34176 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34178 break 2
34179 fi
34180done
34181 done
34182IFS=$as_save_IFS
34183
34184 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34185 ;;
34186esac
34187fi
34188SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34189if test -n "$SVGDecodeDelegate"; then
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34191$as_echo "$SVGDecodeDelegate" >&6; }
34192else
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34194$as_echo "no" >&6; }
34195fi
34196
34197
cristy3ed852e2009-09-05 21:47:34 +000034198# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34199set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034202if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034203 $as_echo_n "(cached) " >&6
34204else
34205 case $TXTDelegate in
34206 [\\/]* | ?:[\\/]*)
34207 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34208 ;;
34209 *)
34210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34211for as_dir in $PATH
34212do
34213 IFS=$as_save_IFS
34214 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034217 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034219 break 2
34220 fi
34221done
cristy8b350f62009-11-15 23:12:43 +000034222 done
cristy3ed852e2009-09-05 21:47:34 +000034223IFS=$as_save_IFS
34224
34225 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34226 ;;
34227esac
34228fi
34229TXTDelegate=$ac_cv_path_TXTDelegate
34230if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232$as_echo "$TXTDelegate" >&6; }
34233else
cristy8b350f62009-11-15 23:12:43 +000034234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034235$as_echo "no" >&6; }
34236fi
34237
34238
cristy5ac9ac82010-07-29 13:24:24 +000034239# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34240set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34242$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034243if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034244 $as_echo_n "(cached) " >&6
34245else
34246 case $UniconvertorDelegate in
34247 [\\/]* | ?:[\\/]*)
34248 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34249 ;;
34250 *)
34251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34252for as_dir in $PATH
34253do
34254 IFS=$as_save_IFS
34255 test -z "$as_dir" && as_dir=.
34256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034258 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34260 break 2
34261 fi
34262done
34263 done
34264IFS=$as_save_IFS
34265
34266 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34267 ;;
34268esac
34269fi
34270UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34271if test -n "$UniconvertorDelegate"; then
34272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34273$as_echo "$UniconvertorDelegate" >&6; }
34274else
34275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34276$as_echo "no" >&6; }
34277fi
34278
34279
cristy3ed852e2009-09-05 21:47:34 +000034280# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34281set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034284if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034285 $as_echo_n "(cached) " >&6
34286else
34287 case $WMFDecodeDelegate in
34288 [\\/]* | ?:[\\/]*)
34289 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34290 ;;
34291 *)
34292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34293for as_dir in $PATH
34294do
34295 IFS=$as_save_IFS
34296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034299 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034301 break 2
34302 fi
34303done
cristy8b350f62009-11-15 23:12:43 +000034304 done
cristy3ed852e2009-09-05 21:47:34 +000034305IFS=$as_save_IFS
34306
34307 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34308 ;;
34309esac
34310fi
34311WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34312if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034314$as_echo "$WMFDecodeDelegate" >&6; }
34315else
cristy8b350f62009-11-15 23:12:43 +000034316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034317$as_echo "no" >&6; }
34318fi
34319
34320
34321# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34322set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034325if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034326 $as_echo_n "(cached) " >&6
34327else
34328 case $WWWDecodeDelegate in
34329 [\\/]* | ?:[\\/]*)
34330 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34331 ;;
34332 *)
34333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334for as_dir in $PATH
34335do
34336 IFS=$as_save_IFS
34337 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034338 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034340 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034342 break 2
34343 fi
34344done
cristy8b350f62009-11-15 23:12:43 +000034345 done
cristy3ed852e2009-09-05 21:47:34 +000034346IFS=$as_save_IFS
34347
34348 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34349 ;;
34350esac
34351fi
34352WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34353if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355$as_echo "$WWWDecodeDelegate" >&6; }
34356else
cristy8b350f62009-11-15 23:12:43 +000034357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034358$as_echo "no" >&6; }
34359fi
34360
34361
34362# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34363set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034366if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034367 $as_echo_n "(cached) " >&6
34368else
34369 case $XPSDelegate in
34370 [\\/]* | ?:[\\/]*)
34371 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34372 ;;
34373 *)
34374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34375for as_dir in $PATH
34376do
34377 IFS=$as_save_IFS
34378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034381 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034383 break 2
34384 fi
34385done
cristy8b350f62009-11-15 23:12:43 +000034386 done
cristy3ed852e2009-09-05 21:47:34 +000034387IFS=$as_save_IFS
34388
34389 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34390 ;;
34391esac
34392fi
34393XPSDelegate=$ac_cv_path_XPSDelegate
34394if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396$as_echo "$XPSDelegate" >&6; }
34397else
cristy8b350f62009-11-15 23:12:43 +000034398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399$as_echo "no" >&6; }
34400fi
34401
34402
34403# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34404set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034407if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034408 $as_echo_n "(cached) " >&6
34409else
34410 case $ZipDelegate in
34411 [\\/]* | ?:[\\/]*)
34412 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34413 ;;
34414 *)
34415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34416for as_dir in $PATH
34417do
34418 IFS=$as_save_IFS
34419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034422 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424 break 2
34425 fi
34426done
cristy8b350f62009-11-15 23:12:43 +000034427 done
cristy3ed852e2009-09-05 21:47:34 +000034428IFS=$as_save_IFS
34429
34430 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34431 ;;
34432esac
34433fi
34434ZipDelegate=$ac_cv_path_ZipDelegate
34435if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437$as_echo "$ZipDelegate" >&6; }
34438else
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo "no" >&6; }
34441fi
34442
34443
34444
34445# Prefer lpr to lp; lp needs options tacked on.
34446if test "$LPRDelegate" != no; then
34447 PrintDelegate="$LPRDelegate"
34448else
34449 PrintDelegate="$LPDelegate -c -s"
34450fi
34451
34452
34453# Installed ImageMagick utiltity paths
34454ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34455DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34456MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34457
34458# Set delegate booleans
34459have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34460have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34461have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34462have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34463have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034464have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034465have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34466have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034467have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34468have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34469
34470#
34471# Test for font directories
34472#
34473type_include_files=''
34474
cristy430a7312010-01-21 20:44:04 +000034475# Dejavu fonts.
34476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34477$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34478dejavu_font_dir=''
34479if test "${with_dejavu_font_dir}" != 'default'; then
34480 dejavu_font_dir="${with_dejavu_font_dir}/"
34481else
34482 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34483 if test -f "${font_dir}DejaVuSerif.ttf"; then
34484 dejavu_font_dir="${font_dir}"
34485 break 1
34486 fi
34487 done
34488fi
34489if test "${dejavu_font_dir}x" != 'x'; then
34490 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34492$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034493else
cristyad38abe2012-12-23 23:03:21 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34495$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034496fi
34497
34498
cristy3ed852e2009-09-05 21:47:34 +000034499# Windows
34500windows_font_dir=''
34501if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34502 windows_font_dir="${with_windows_font_dir}/"
34503fi
cristy430a7312010-01-21 20:44:04 +000034504if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034505 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34506 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34507 fi
34508 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34509 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34510 fi
34511 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34512 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34513 fi
34514fi
cristy430a7312010-01-21 20:44:04 +000034515if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034516 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34517fi
34518
34519
34520# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34523ghostscript_font_dir=''
34524if test "${with_gs_font_dir}" != 'default'; then
34525 ghostscript_font_dir="${with_gs_font_dir}/"
34526else
34527 if test "${native_win32_build}" = 'yes'; then
34528 # Native Windows Build
34529 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34530 if test -f "${font_dir}a010013l.pfb"; then
34531 ghostscript_font_dir="$font_dir"
34532 break 1
34533 fi
34534 done
34535 if test "${PSDelegate}" != 'gswin32c'; then
34536 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34537 fi
34538 else
34539 # Linux / Mac OS X / Unix Build
34540 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
34541 if test -f "${font_dir}a010013l.pfb"; then
34542 ghostscript_font_dir="${font_dir}"
34543 break 1
34544 fi
34545 done
34546 if test "${ghostscript_font_dir}x" = 'x'; then
34547 if test "$PSDelegate" != 'gs'; then
34548 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34549 fi
34550 fi
34551 fi
34552fi
34553if test "${ghostscript_font_dir}x" != 'x'; then
34554 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34556$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034557else
cristyad38abe2012-12-23 23:03:21 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34559$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034560fi
34561
34562case "${build_os}" in
34563 mingw* )
34564 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34565 ;;
34566esac
34567
34568
34569
34570#
34571# Handle case where user doesn't want frozen paths
34572#
34573if test "$with_frozenpaths" != 'yes'; then
34574 # Re-set delegate definitions to default (no paths)
34575 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034576 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34577 BZIPDelegate="$BZIPDelegateDefault"
34578 BrowseDelegate="$BrowseDelegateDefault"
34579 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34580 CatDelegate="$CatDelegateDefault"
34581 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034582 DisplayDelegate="$DisplayDelegateDefault"
34583 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034584 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34585 EchoDelegate="$EchoDelegateDefault"
34586 EditorDelegate="$EditorDelegateDefault"
34587 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34588 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034589 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034590 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34591 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34592 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34593 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034594 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34595 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034596 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034597 LaunchDelegate="$LaunchDelegateDefault"
34598 MANDelegate="$MANDelegateDefault"
34599 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34600 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034601 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034602 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34603 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034604 PCLDelegate="$PCLDelegateDefault"
34605 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34606 POVDelegate="$POVDelegateDefault"
34607 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034608 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34609 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034610 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034611 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034612 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034613 ShowImageDelegate="$ShowImageDelegateDefault"
34614 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034615 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034616 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34617 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34618 XPSDelegate="$XPSDelegateDefault"
34619 ZipDelegate="$ZipDelegateDefault"
34620fi
34621
34622# Delegate substitutions
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
cristy71f53d52013-04-27 13:33:59 +000034663
34664
cristy3ed852e2009-09-05 21:47:34 +000034665#
34666# RPM support.
34667#
34668RPM=''
34669for ac_prog in gnutar gtar tar
34670do
34671 # Extract the first word of "$ac_prog", so it can be a program name with args.
34672set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034675if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034676 $as_echo_n "(cached) " >&6
34677else
34678 if test -n "$TAR"; then
34679 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34680else
34681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34682for as_dir in $PATH
34683do
34684 IFS=$as_save_IFS
34685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034688 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690 break 2
34691 fi
34692done
cristy8b350f62009-11-15 23:12:43 +000034693 done
cristy3ed852e2009-09-05 21:47:34 +000034694IFS=$as_save_IFS
34695
34696fi
34697fi
34698TAR=$ac_cv_prog_TAR
34699if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo "$TAR" >&6; }
34702else
cristy8b350f62009-11-15 23:12:43 +000034703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034704$as_echo "no" >&6; }
34705fi
34706
34707
34708 test -n "$TAR" && break
34709done
34710
34711for ac_prog in perl
34712do
34713 # Extract the first word of "$ac_prog", so it can be a program name with args.
34714set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034717if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034718 $as_echo_n "(cached) " >&6
34719else
34720 if test -n "$PERL"; then
34721 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34722else
34723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34724for as_dir in $PATH
34725do
34726 IFS=$as_save_IFS
34727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034730 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732 break 2
34733 fi
34734done
cristy8b350f62009-11-15 23:12:43 +000034735 done
cristy3ed852e2009-09-05 21:47:34 +000034736IFS=$as_save_IFS
34737
34738fi
34739fi
34740PERL=$ac_cv_prog_PERL
34741if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034743$as_echo "$PERL" >&6; }
34744else
cristy8b350f62009-11-15 23:12:43 +000034745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034746$as_echo "no" >&6; }
34747fi
34748
34749
34750 test -n "$PERL" && break
34751done
34752
34753for ac_prog in rpmbuild rpm
34754do
34755 # Extract the first word of "$ac_prog", so it can be a program name with args.
34756set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034759if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034760 $as_echo_n "(cached) " >&6
34761else
34762 if test -n "$RPM"; then
34763 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34764else
34765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34766for as_dir in $PATH
34767do
34768 IFS=$as_save_IFS
34769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034772 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774 break 2
34775 fi
34776done
cristy8b350f62009-11-15 23:12:43 +000034777 done
cristy3ed852e2009-09-05 21:47:34 +000034778IFS=$as_save_IFS
34779
34780fi
34781fi
34782RPM=$ac_cv_prog_RPM
34783if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034785$as_echo "$RPM" >&6; }
34786else
cristy8b350f62009-11-15 23:12:43 +000034787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo "no" >&6; }
34789fi
34790
34791
34792 test -n "$RPM" && break
34793done
34794
34795
cristy73bd4a52010-10-05 11:24:23 +000034796ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34797
34798
34799AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34800
34801
34802AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34803
34804
34805AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34806
34807
34808 if test "x$RPM" != "x" ; then
34809 RPM_DELEGATE_TRUE=
34810 RPM_DELEGATE_FALSE='#'
34811else
34812 RPM_DELEGATE_TRUE='#'
34813 RPM_DELEGATE_FALSE=
34814fi
34815
cristy3ed852e2009-09-05 21:47:34 +000034816
34817#
34818# 7ZIP support (http://p7zip.sourceforge.net/)
34819#
34820P7ZIP=''
34821for ac_prog in 7za
34822do
34823 # Extract the first word of "$ac_prog", so it can be a program name with args.
34824set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034827if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034828 $as_echo_n "(cached) " >&6
34829else
34830 if test -n "$P7ZIP"; then
34831 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34832else
34833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34834for as_dir in $PATH
34835do
34836 IFS=$as_save_IFS
34837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034840 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842 break 2
34843 fi
34844done
cristy8b350f62009-11-15 23:12:43 +000034845 done
cristy3ed852e2009-09-05 21:47:34 +000034846IFS=$as_save_IFS
34847
34848fi
34849fi
34850P7ZIP=$ac_cv_prog_P7ZIP
34851if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo "$P7ZIP" >&6; }
34854else
cristy8b350f62009-11-15 23:12:43 +000034855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856$as_echo "no" >&6; }
34857fi
34858
34859
34860 test -n "$P7ZIP" && break
34861done
34862
34863
cristy73bd4a52010-10-05 11:24:23 +000034864 if test "x$P7ZIP" != "x" ; then
34865 P7ZIP_DELEGATE_TRUE=
34866 P7ZIP_DELEGATE_FALSE='#'
34867else
34868 P7ZIP_DELEGATE_TRUE='#'
34869 P7ZIP_DELEGATE_FALSE=
34870fi
34871
cristy3ed852e2009-09-05 21:47:34 +000034872
34873#
34874# ZIP support (http://www.info-zip.org/Zip.html)
34875#
34876ZIP=''
34877for ac_prog in zip
34878do
34879 # Extract the first word of "$ac_prog", so it can be a program name with args.
34880set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034883if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034884 $as_echo_n "(cached) " >&6
34885else
34886 if test -n "$ZIP"; then
34887 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34888else
34889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34890for as_dir in $PATH
34891do
34892 IFS=$as_save_IFS
34893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034896 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898 break 2
34899 fi
34900done
cristy8b350f62009-11-15 23:12:43 +000034901 done
cristy3ed852e2009-09-05 21:47:34 +000034902IFS=$as_save_IFS
34903
34904fi
34905fi
34906ZIP=$ac_cv_prog_ZIP
34907if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034909$as_echo "$ZIP" >&6; }
34910else
cristy8b350f62009-11-15 23:12:43 +000034911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034912$as_echo "no" >&6; }
34913fi
34914
34915
34916 test -n "$ZIP" && break
34917done
34918
34919
cristy73bd4a52010-10-05 11:24:23 +000034920 if test "x$ZIP" != "x" ; then
34921 ZIP_DELEGATE_TRUE=
34922 ZIP_DELEGATE_FALSE='#'
34923else
34924 ZIP_DELEGATE_TRUE='#'
34925 ZIP_DELEGATE_FALSE=
34926fi
34927
cristy3ed852e2009-09-05 21:47:34 +000034928
34929#
34930# GhostPCL related configuration.
34931#
34932PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034933PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034934PCLMonoDevice=pbmraw
34935if test -z "$PCLVersion"; then
34936 PCLVersion='unknown'
34937fi
34938if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34940$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034942$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34944$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034945 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo_n "checking for pcl color device... " >&6; }
34948 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34949 :
34950 else
34951 PCLColorDevice=ppmraw
34952 fi
cristyad38abe2012-12-23 23:03:21 +000034953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34954$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034955
34956 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034958$as_echo_n "checking for pcl CMYK device... " >&6; }
34959 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34960 :
34961 else
34962 PCLCMYKDevice=$PCLColorDevice
34963 fi
cristyad38abe2012-12-23 23:03:21 +000034964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34965$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034966
34967 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034969$as_echo_n "checking for pcl mono device... " >&6; }
34970 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34971 :
34972 else
34973 PCLMonoDevice=$PCLColorDevice
34974 fi
cristyad38abe2012-12-23 23:03:21 +000034975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34976$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034977fi
34978
34979
34980
34981
34982
34983
34984#
34985# GhostXPS related configuration.
34986#
34987XPSColorDevice=ppmraw
34988XPSCMYKDevice=bmpsep8
34989XPSMonoDevice=pbmraw
34990if test -z "$XPSVersion"; then
34991 XPSVersion='unknown'
34992fi
34993if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34995$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034997$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34999$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035000 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035002$as_echo_n "checking for xps color device... " >&6; }
35003 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35004 :
35005 else
35006 XPSColorDevice=ppmraw
35007 fi
cristyad38abe2012-12-23 23:03:21 +000035008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35009$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035010
35011 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for xps CMYK device... " >&6; }
35014 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35015 :
35016 else
35017 XPSCMYKDevice=$XPSColorDevice
35018 fi
cristyad38abe2012-12-23 23:03:21 +000035019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35020$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035021
35022 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035024$as_echo_n "checking for xps mono device... " >&6; }
35025 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35026 :
35027 else
35028 XPSMonoDevice=$XPSColorDevice
35029 fi
cristyad38abe2012-12-23 23:03:21 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35031$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035032fi
35033
35034
35035
35036
35037
35038
35039#
35040# Ghostscript related configuration.
35041#
cristya97426c2011-02-04 01:41:27 +000035042GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035043GSColorDevice=pnmraw
35044GSCMYKDevice=pam
35045GSMonoDevice=pbmraw
35046GSPDFDevice=pdfwrite
35047GSPSDevice=pswrite
35048GSEPSDevice=epswrite
35049GSVersion='unknown'
35050if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35052$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035054$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35056$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058$as_echo_n "checking for Ghostscript version... " >&6; }
35059 if GSVersion=`$PSDelegate --version`; then
35060 :
35061 else
35062 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35063 fi
cristyad38abe2012-12-23 23:03:21 +000035064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35065$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035066
35067 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035069$as_echo_n "checking for gs alpha device... " >&6; }
35070 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35071 :
35072 else
35073 GSAlphaDevice=pnmraw
35074 fi
cristyad38abe2012-12-23 23:03:21 +000035075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35076$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035077
35078 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035080$as_echo_n "checking for gs color device... " >&6; }
35081 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35082 :
35083 else
35084 GSColorDevice=pnmraw
35085 fi
cristyad38abe2012-12-23 23:03:21 +000035086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35087$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035088
35089 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035091$as_echo_n "checking for gs CMYK device... " >&6; }
35092 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35093 :
35094 else
35095 GSCMYKDevice=bmpsep8
35096 fi
cristyad38abe2012-12-23 23:03:21 +000035097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35098$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035099
35100 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035102$as_echo_n "checking for gs mono device... " >&6; }
35103 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35104 :
35105 else
35106 GSMonoDevice=$GSColorDevice
35107 fi
cristyad38abe2012-12-23 23:03:21 +000035108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35109$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035110
35111 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035113$as_echo_n "checking for gs PDF writing device... " >&6; }
35114 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35115 :
35116 else
35117 GSPDFDevice=nodevice
35118 fi
cristyad38abe2012-12-23 23:03:21 +000035119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35120$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035121
35122 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035124$as_echo_n "checking for gs PS writing device... " >&6; }
35125 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35126 :
35127 else
35128 GSPSDevice=nodevice
35129 fi
cristyad38abe2012-12-23 23:03:21 +000035130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35131$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035132
35133 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035135$as_echo_n "checking for gs EPS writing device... " >&6; }
35136 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35137 :
35138 else
35139 GSEPSDevice=nodevice
35140 fi
cristyad38abe2012-12-23 23:03:21 +000035141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35142$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035143fi
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154#
35155# PerlMagick-related configuration
35156#
35157
35158# Look for PERL if PerlMagick requested
35159# If name/path of desired PERL interpreter is specified, look for that one first
35160have_perl='no'
35161if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35163$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035165$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35167$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035168 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035170$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035171if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035172 $as_echo_n "(cached) " >&6
35173else
35174 ac_cv_path_PERL="$with_perl"
35175fi
cristy8b350f62009-11-15 23:12:43 +000035176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035177$as_echo "$ac_cv_path_PERL" >&6; };
35178 PERL=$ac_cv_path_PERL
35179 have_perl="$ac_cv_path_PERL"
35180 else
35181 for ac_prog in perl perl5
35182do
35183 # Extract the first word of "$ac_prog", so it can be a program name with args.
35184set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035187if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035188 $as_echo_n "(cached) " >&6
35189else
35190 case $PERL in
35191 [\\/]* | ?:[\\/]*)
35192 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35193 ;;
35194 *)
35195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35196for as_dir in $PATH
35197do
35198 IFS=$as_save_IFS
35199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035202 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035204 break 2
35205 fi
35206done
cristy8b350f62009-11-15 23:12:43 +000035207 done
cristy3ed852e2009-09-05 21:47:34 +000035208IFS=$as_save_IFS
35209
35210 ;;
35211esac
35212fi
35213PERL=$ac_cv_path_PERL
35214if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035216$as_echo "$PERL" >&6; }
35217else
cristy8b350f62009-11-15 23:12:43 +000035218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035219$as_echo "no" >&6; }
35220fi
35221
35222
35223 test -n "$PERL" && break
35224done
35225 if test "$ac_cv_path_PERL"; then
35226 have_perl="$ac_cv_path_PERL"
35227 fi
35228 fi
35229fi
35230
cristy949301e2010-01-06 01:38:40 +000035231if test "$with_perl" != 'yes' ; then
35232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35233fi
35234
35235PERL_SUPPORTS_DESTDIR='no'
35236
cristy3ed852e2009-09-05 21:47:34 +000035237with_perl_static='no'
35238with_perl_dynamic='no'
35239if test "$have_perl" != 'no'; then
35240 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35241 with_perl_static='yes'
35242 fi
35243 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35244 with_perl_dynamic='yes'
35245 fi
35246 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035247
35248
35249
35250
35251 if test -n "$PERL"; then :
35252
35253 ax_perl_version="5.8.1"
35254
35255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35256$as_echo_n "checking for perl version... " >&6; }
35257
35258 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35259
35260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35261$as_echo "$perl_version" >&6; }
35262
35263 PERL_VERSION=$perl_version
35264
35265
35266
35267
35268
35269 # Used to indicate true or false condition
35270 ax_compare_version=false
35271
35272 # Convert the two version strings to be compared into a format that
35273 # allows a simple string comparison. The end result is that a version
35274 # string of the form 1.12.5-r617 will be converted to the form
35275 # 0001001200050617. In other words, each number is zero padded to four
35276 # digits, and non digits are removed.
35277
35278 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35279 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35280 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35281 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35282 -e 's/[^0-9]//g'`
35283
35284
35285 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35286 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35287 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35288 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35289 -e 's/[^0-9]//g'`
35290
35291
35292 ax_compare_version=`echo "x$ax_compare_version_A
35293x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35294
35295
35296
35297 if test "$ax_compare_version" = "true" ; then
35298
35299 :
35300 PERL_SUPPORTS_DESTDIR='yes'
35301
35302 else
35303 :
35304 PERL_SUPPORTS_DESTDIR='no'
35305
35306 fi
35307
35308
35309else
35310
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35312$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35313 PERL_SUPPORTS_DESTDIR='no'
35314
cristy3ed852e2009-09-05 21:47:34 +000035315fi
cristy73bd4a52010-10-05 11:24:23 +000035316
35317fi
35318 if test "$have_perl" != 'no'; then
35319 WITH_PERL_TRUE=
35320 WITH_PERL_FALSE='#'
35321else
35322 WITH_PERL_TRUE='#'
35323 WITH_PERL_FALSE=
35324fi
35325
35326 if test $with_perl_static = 'yes'; then
35327 WITH_PERL_STATIC_TRUE=
35328 WITH_PERL_STATIC_FALSE='#'
35329else
35330 WITH_PERL_STATIC_TRUE='#'
35331 WITH_PERL_STATIC_FALSE=
35332fi
35333
35334 if test $with_perl_dynamic = 'yes'; then
35335 WITH_PERL_DYNAMIC_TRUE=
35336 WITH_PERL_DYNAMIC_FALSE='#'
35337else
35338 WITH_PERL_DYNAMIC_TRUE='#'
35339 WITH_PERL_DYNAMIC_FALSE=
35340fi
35341
cristy3ed852e2009-09-05 21:47:34 +000035342
35343
35344# Determine path to pick up MagickCore library from for use with building PerlMagick
35345MAGICKCORE_PATH="${LIB_DIR}"
35346if test $with_perl_static = 'yes'; then
35347 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35348 libtool_objdir=$objdir
35349
35350 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035351 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035352fi
35353
35354
cristy2a3eb392012-12-17 13:39:20 +000035355# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035356MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035357if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035358 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035359fi
cristy2a3eb392012-12-17 13:39:20 +000035360if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035361 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035362fi
35363if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035364 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035365fi
35366if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035367 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035368fi
35369if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035370 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035371fi
35372if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035373 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035374fi
35375if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035376 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035377fi
35378if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035379 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035380fi
35381if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035382 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035383fi
35384if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035385 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035386fi
35387if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035388 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035389fi
35390if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035391 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035392fi
35393if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035394 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035395fi
35396if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035397 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035398fi
35399if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035400 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035401fi
35402if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035403 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035404fi
35405if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035406 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035407fi
35408if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035409 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035410fi
35411if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035412 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035413fi
35414if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035415 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035416fi
35417if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035418 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035419fi
35420have_ps='no'
35421if test "$have_dps" = 'yes' || \
35422 test "$have_gs" = 'yes' || \
35423 test "${native_win32_build}" = 'yes' ; then
35424 have_ps='yes'
35425fi
35426if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035427 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035428fi
35429if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035430 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035431fi
35432if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035433 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035434fi
35435if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035436 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035437fi
35438if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035439 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035440fi
35441if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035442 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035443fi
cristy3b640ed2013-07-29 00:27:59 +000035444if test "$have_webp" = 'yes' ; then
35445 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35446fi
cristy2a3eb392012-12-17 13:39:20 +000035447if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035448 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035449fi
35450if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035451 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035452fi
35453if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035454 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035455fi
35456if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035457 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035458fi
cristy2a3eb392012-12-17 13:39:20 +000035459# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035460MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035461MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035462
35463
cristyfa161182012-12-19 15:45:28 +000035464
cristy3ed852e2009-09-05 21:47:34 +000035465#
35466# Handle special compiler flags
35467#
35468
35469# Add '-p' if prof source profiling support enabled
35470if test "$enable_prof" = 'yes'; then
35471 CFLAGS="-p $CFLAGS"
35472 CXXFLAGS="-p $CXXFLAGS"
35473 LDFLAGS="-p $LDFLAGS"
35474fi
35475
35476# Add '-pg' if gprof source profiling support enabled
35477if test "$enable_gprof" = 'yes'; then
35478 CFLAGS="-pg $CFLAGS"
35479 CXXFLAGS="-pg $CXXFLAGS"
35480 LDFLAGS="-pg $LDFLAGS"
35481fi
35482
35483# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35484# This is a gcc-specific feature
35485if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035487$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035488if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035489 $as_echo_n "(cached) " >&6
35490else
35491 ac_check_lib_save_LIBS=$LIBS
35492LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035494/* end confdefs.h. */
35495
35496/* Override any GCC internal prototype to avoid an error.
35497 Use char because int might match the return type of a GCC
35498 builtin and then its argument prototype would still apply. */
35499#ifdef __cplusplus
35500extern "C"
35501#endif
35502char _gcov_init ();
35503int
35504main ()
35505{
35506return _gcov_init ();
35507 ;
35508 return 0;
35509}
35510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035512 ac_cv_lib_gcov__gcov_init=yes
35513else
cristy8b350f62009-11-15 23:12:43 +000035514 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035515fi
cristy8b350f62009-11-15 23:12:43 +000035516rm -f core conftest.err conftest.$ac_objext \
35517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035518LIBS=$ac_check_lib_save_LIBS
35519fi
cristy8b350f62009-11-15 23:12:43 +000035520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035521$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035522if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035523 cat >>confdefs.h <<_ACEOF
35524#define HAVE_LIBGCOV 1
35525_ACEOF
35526
35527 LIBS="-lgcov $LIBS"
35528
35529fi
35530
cristy8b350f62009-11-15 23:12:43 +000035531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035532$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035533if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035534 $as_echo_n "(cached) " >&6
35535else
35536 ac_check_lib_save_LIBS=$LIBS
35537LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035539/* end confdefs.h. */
35540
35541/* Override any GCC internal prototype to avoid an error.
35542 Use char because int might match the return type of a GCC
35543 builtin and then its argument prototype would still apply. */
35544#ifdef __cplusplus
35545extern "C"
35546#endif
35547char __gcov_init ();
35548int
35549main ()
35550{
35551return __gcov_init ();
35552 ;
35553 return 0;
35554}
35555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035557 ac_cv_lib_gcov___gcov_init=yes
35558else
cristy8b350f62009-11-15 23:12:43 +000035559 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035560fi
cristy8b350f62009-11-15 23:12:43 +000035561rm -f core conftest.err conftest.$ac_objext \
35562 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035563LIBS=$ac_check_lib_save_LIBS
35564fi
cristy8b350f62009-11-15 23:12:43 +000035565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035566$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035567if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035568 cat >>confdefs.h <<_ACEOF
35569#define HAVE_LIBGCOV 1
35570_ACEOF
35571
35572 LIBS="-lgcov $LIBS"
35573
35574fi
35575
35576 case "$target_os" in
35577 darwin*)
35578 OSX_GCOV_LDFLAG="-Wl,-single_module"
35579 ;;
35580 *)
35581 OSX_GCOV_LDFLAG=""
35582 ;;
35583 esac
35584
35585 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35586 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35587 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35588fi
35589
35590#
35591# Build library dependency list for libMagickCore
35592#
35593
cristyc6722092012-10-14 00:19:31 +000035594if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035595 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035596else
cristy3a75f062012-09-08 23:29:40 +000035597 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_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 $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035598fi
35599
35600
35601#
35602# Remove extraneous spaces from output variables (asthetic)
35603#
35604X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35605X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35606X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35607X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35608
35609CC=`echo $CC | sed -e 's/ */ /g'`
35610CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35611CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35612CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035613DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35614LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35615TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35616MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35617#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35618
35619# Pass only user-provided LIBS as "global" libraries
35620LIBS=$USER_LIBS
35621
35622#AC_SUBST(CPPFLAGS)
35623
35624#AC_SUBST(LDFLAGS)
35625#AC_SUBST(X_PRE_LIBS)
35626#AC_SUBST(X_LIBS)
35627#AC_SUBST(X_EXTRA_LIBS)
35628
35629MAGICK_CFLAGS=$CFLAGS
35630MAGICK_CXXFLAGS="$CXXFLAGS"
35631MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35632MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35633MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035634MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035635
35636
35637
35638
35639
35640
35641
35642
35643# Set configured scripts to executable.
35644ac_config_commands="$ac_config_commands default"
35645
cristy2bd4b6e2012-07-22 15:29:11 +000035646ac_config_commands="$ac_config_commands magick.sh.in"
35647
cristy3ed852e2009-09-05 21:47:34 +000035648ac_config_commands="$ac_config_commands MagickCore-config.in"
35649
cristy3ed852e2009-09-05 21:47:34 +000035650ac_config_commands="$ac_config_commands MagickWand-config.in"
35651
cristy3ed852e2009-09-05 21:47:34 +000035652ac_config_commands="$ac_config_commands Magick++-config.in"
35653
35654ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35655
35656
cristyad38abe2012-12-23 23:03:21 +000035657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35658$as_echo "-------------------------------------------------------------" >&6; }
35659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35660$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035661cat >confcache <<\_ACEOF
35662# This file is a shell script that caches the results of configure
35663# tests run on this system so they can be shared between configure
35664# scripts and configure runs, see configure's option --config-cache.
35665# It is not useful on other systems. If it contains results you don't
35666# want to keep, you may remove or edit it.
35667#
35668# config.status only pays attention to the cache file if you give it
35669# the --recheck option to rerun configure.
35670#
35671# `ac_cv_env_foo' variables (set or unset) will be overridden when
35672# loading this file, other *unset* `ac_cv_foo' will be assigned the
35673# following values.
35674
35675_ACEOF
35676
35677# The following way of writing the cache mishandles newlines in values,
35678# but we know of no workaround that is simple, portable, and efficient.
35679# So, we kill variables containing newlines.
35680# Ultrix sh set writes to stderr and can't be redirected directly,
35681# and sets the high bit in the cache file unless we assign to the vars.
35682(
35683 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35684 eval ac_val=\$$ac_var
35685 case $ac_val in #(
35686 *${as_nl}*)
35687 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035689$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35690 esac
35691 case $ac_var in #(
35692 _ | IFS | as_nl) ;; #(
35693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035694 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035695 esac ;;
35696 esac
35697 done
35698
35699 (set) 2>&1 |
35700 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35701 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035702 # `set' does not quote correctly, so add quotes: double-quote
35703 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035704 sed -n \
35705 "s/'/'\\\\''/g;
35706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35707 ;; #(
35708 *)
35709 # `set' quotes correctly as required by POSIX, so do not add quotes.
35710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35711 ;;
35712 esac |
35713 sort
35714) |
35715 sed '
35716 /^ac_cv_env_/b end
35717 t clear
35718 :clear
35719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35720 t end
35721 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35722 :end' >>confcache
35723if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35724 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035725 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035726 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035727$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035728 if test ! -f "$cache_file" || test -h "$cache_file"; then
35729 cat confcache >"$cache_file"
35730 else
35731 case $cache_file in #(
35732 */* | ?:*)
35733 mv -f confcache "$cache_file"$$ &&
35734 mv -f "$cache_file"$$ "$cache_file" ;; #(
35735 *)
35736 mv -f confcache "$cache_file" ;;
35737 esac
35738 fi
35739 fi
cristy3ed852e2009-09-05 21:47:34 +000035740 else
cristy8b350f62009-11-15 23:12:43 +000035741 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035742$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35743 fi
35744fi
35745rm -f confcache
35746
35747test "x$prefix" = xNONE && prefix=$ac_default_prefix
35748# Let make expand exec_prefix.
35749test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35750
35751DEFS=-DHAVE_CONFIG_H
35752
35753ac_libobjs=
35754ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035755U=
cristy3ed852e2009-09-05 21:47:34 +000035756for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35757 # 1. Remove the extension, and $U if already installed.
35758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35759 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35761 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035762 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35763 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035764done
35765LIBOBJS=$ac_libobjs
35766
35767LTLIBOBJS=$ac_ltlibobjs
35768
35769
cristyc0890a62012-07-19 00:18:20 +000035770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35771$as_echo_n "checking that generated files are newer than configure... " >&6; }
35772 if test -n "$am_sleep_pid"; then
35773 # Hide warnings about reused PIDs.
35774 wait $am_sleep_pid 2>/dev/null
35775 fi
35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35777$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035778 if test -n "$EXEEXT"; then
35779 am__EXEEXT_TRUE=
35780 am__EXEEXT_FALSE='#'
35781else
35782 am__EXEEXT_TRUE='#'
35783 am__EXEEXT_FALSE=
35784fi
cristy3ed852e2009-09-05 21:47:34 +000035785
cristy73bd4a52010-10-05 11:24:23 +000035786if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035787 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035788Usually this means the macro was only invoked conditionally." "$LINENO" 5
35789fi
35790if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035791 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035792Usually this means the macro was only invoked conditionally." "$LINENO" 5
35793fi
35794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035796Usually this means the macro was only invoked conditionally." "$LINENO" 5
35797fi
35798if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035799 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035800Usually this means the macro was only invoked conditionally." "$LINENO" 5
35801fi
cristy9b86f202012-11-28 21:55:35 +000035802if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35803 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35804Usually this means the macro was only invoked conditionally." "$LINENO" 5
35805fi
cristy73bd4a52010-10-05 11:24:23 +000035806if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035807 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035808Usually this means the macro was only invoked conditionally." "$LINENO" 5
35809fi
35810if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035811 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035812Usually this means the macro was only invoked conditionally." "$LINENO" 5
35813fi
35814if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035815 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035816Usually this means the macro was only invoked conditionally." "$LINENO" 5
35817fi
35818if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035819 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035820Usually this means the macro was only invoked conditionally." "$LINENO" 5
35821fi
cristy73bd4a52010-10-05 11:24:23 +000035822if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035823 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035824Usually this means the macro was only invoked conditionally." "$LINENO" 5
35825fi
35826if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035827 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035828Usually this means the macro was only invoked conditionally." "$LINENO" 5
35829fi
cristy73bd4a52010-10-05 11:24:23 +000035830if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035831 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035832Usually this means the macro was only invoked conditionally." "$LINENO" 5
35833fi
cristy71d8c202012-03-20 17:05:01 +000035834if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35835 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35836Usually this means the macro was only invoked conditionally." "$LINENO" 5
35837fi
cristy73bd4a52010-10-05 11:24:23 +000035838
35839if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035840 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035841Usually this means the macro was only invoked conditionally." "$LINENO" 5
35842fi
35843if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035844 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035845Usually this means the macro was only invoked conditionally." "$LINENO" 5
35846fi
35847if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035848 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035849Usually this means the macro was only invoked conditionally." "$LINENO" 5
35850fi
35851if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035852 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035853Usually this means the macro was only invoked conditionally." "$LINENO" 5
35854fi
35855if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035856 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035857Usually this means the macro was only invoked conditionally." "$LINENO" 5
35858fi
35859if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035860 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035861Usually this means the macro was only invoked conditionally." "$LINENO" 5
35862fi
cristy5eef09f2012-10-16 12:08:28 +000035863if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35864 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35865Usually this means the macro was only invoked conditionally." "$LINENO" 5
35866fi
cristy73bd4a52010-10-05 11:24:23 +000035867if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035868 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
35871if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
35875if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
35879if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035880 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
35883if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035884 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
35887if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035888 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035889Usually this means the macro was only invoked conditionally." "$LINENO" 5
35890fi
35891if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035892 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035893Usually this means the macro was only invoked conditionally." "$LINENO" 5
35894fi
35895if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035896 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035897Usually this means the macro was only invoked conditionally." "$LINENO" 5
35898fi
35899if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035900 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035901Usually this means the macro was only invoked conditionally." "$LINENO" 5
35902fi
35903if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
35907if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
35911if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
35915if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
35919if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
cristyfbb0ef02010-12-19 02:32:11 +000035923if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35924 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
cristy73bd4a52010-10-05 11:24:23 +000035927if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
cristy41cbe8a2011-10-27 01:35:18 +000035931if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35932 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
cristya054b762012-03-26 23:16:00 +000035935if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35936 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
cristy73bd4a52010-10-05 11:24:23 +000035939if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
35943if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
35951if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
cristyb1860752011-03-14 00:27:46 +000035955if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35956 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
cristy73bd4a52010-10-05 11:24:23 +000035959if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
35975if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
cristy3ed852e2009-09-05 21:47:34 +000035991
cristyda16f162011-02-19 23:52:17 +000035992: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035993ac_write_fail=0
35994ac_clean_files_save=$ac_clean_files
35995ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035996{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035997$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035998as_write_fail=0
35999cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036000#! $SHELL
36001# Generated by $as_me.
36002# Run this file to recreate the current configuration.
36003# Compiler output produced by configure, useful for debugging
36004# configure, is in config.log if it exists.
36005
36006debug=false
36007ac_cs_recheck=false
36008ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036009
cristy8b350f62009-11-15 23:12:43 +000036010SHELL=\${CONFIG_SHELL-$SHELL}
36011export SHELL
36012_ASEOF
36013cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36014## -------------------- ##
36015## M4sh Initialization. ##
36016## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036017
36018# Be more Bourne compatible
36019DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036020if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036021 emulate sh
36022 NULLCMD=:
36023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36024 # is contrary to our usage. Disable this feature.
36025 alias -g '${1+"$@"}'='"$@"'
36026 setopt NO_GLOB_SUBST
36027else
cristy8b350f62009-11-15 23:12:43 +000036028 case `(set -o) 2>/dev/null` in #(
36029 *posix*) :
36030 set -o posix ;; #(
36031 *) :
36032 ;;
cristy3ed852e2009-09-05 21:47:34 +000036033esac
cristy3ed852e2009-09-05 21:47:34 +000036034fi
36035
36036
cristy3ed852e2009-09-05 21:47:34 +000036037as_nl='
36038'
36039export as_nl
36040# Printing a long string crashes Solaris 7 /usr/bin/printf.
36041as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036044# Prefer a ksh shell builtin over an external printf program on Solaris,
36045# but without wasting forks for bash or zsh.
36046if test -z "$BASH_VERSION$ZSH_VERSION" \
36047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36048 as_echo='print -r --'
36049 as_echo_n='print -rn --'
36050elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036051 as_echo='printf %s\n'
36052 as_echo_n='printf %s'
36053else
36054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36056 as_echo_n='/usr/ucb/echo -n'
36057 else
36058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36059 as_echo_n_body='eval
36060 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036061 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036062 *"$as_nl"*)
36063 expr "X$arg" : "X\\(.*\\)$as_nl";
36064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36065 esac;
36066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36067 '
36068 export as_echo_n_body
36069 as_echo_n='sh -c $as_echo_n_body as_echo'
36070 fi
36071 export as_echo_body
36072 as_echo='sh -c $as_echo_body as_echo'
36073fi
36074
36075# The user is always right.
36076if test "${PATH_SEPARATOR+set}" != set; then
36077 PATH_SEPARATOR=:
36078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36080 PATH_SEPARATOR=';'
36081 }
36082fi
36083
cristy3ed852e2009-09-05 21:47:34 +000036084
36085# IFS
36086# We need space, tab and new line, in precisely that order. Quoting is
36087# there to prevent editors from complaining about space-tab.
36088# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36089# splitting by setting IFS to empty value.)
36090IFS=" "" $as_nl"
36091
36092# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036093as_myself=
cristy8b350f62009-11-15 23:12:43 +000036094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036095 *[\\/]* ) as_myself=$0 ;;
36096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36097for as_dir in $PATH
36098do
36099 IFS=$as_save_IFS
36100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36102 done
cristy3ed852e2009-09-05 21:47:34 +000036103IFS=$as_save_IFS
36104
36105 ;;
36106esac
36107# We did not find ourselves, most probably we were run as `sh COMMAND'
36108# in which case we are not to be found in the path.
36109if test "x$as_myself" = x; then
36110 as_myself=$0
36111fi
36112if test ! -f "$as_myself"; then
36113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036114 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036115fi
36116
cristy8b350f62009-11-15 23:12:43 +000036117# Unset variables that we do not need and which cause bugs (e.g. in
36118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36119# suppresses any "Segmentation fault" message there. '((' could
36120# trigger a bug in pdksh 5.2.14.
36121for as_var in BASH_ENV ENV MAIL MAILPATH
36122do eval test x\${$as_var+set} = xset \
36123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036124done
36125PS1='$ '
36126PS2='> '
36127PS4='+ '
36128
36129# NLS nuisances.
36130LC_ALL=C
36131export LC_ALL
36132LANGUAGE=C
36133export LANGUAGE
36134
cristy8b350f62009-11-15 23:12:43 +000036135# CDPATH.
36136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36137
36138
cristy98dddb52010-11-04 00:30:15 +000036139# as_fn_error STATUS ERROR [LINENO LOG_FD]
36140# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036141# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36142# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036143# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036144as_fn_error ()
36145{
cristy98dddb52010-11-04 00:30:15 +000036146 as_status=$1; test $as_status -eq 0 && as_status=1
36147 if test "$4"; then
36148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036150 fi
cristy98dddb52010-11-04 00:30:15 +000036151 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036152 as_fn_exit $as_status
36153} # as_fn_error
36154
36155
36156# as_fn_set_status STATUS
36157# -----------------------
36158# Set $? to STATUS, without forking.
36159as_fn_set_status ()
36160{
36161 return $1
36162} # as_fn_set_status
36163
36164# as_fn_exit STATUS
36165# -----------------
36166# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36167as_fn_exit ()
36168{
36169 set +e
36170 as_fn_set_status $1
36171 exit $1
36172} # as_fn_exit
36173
36174# as_fn_unset VAR
36175# ---------------
36176# Portably unset VAR.
36177as_fn_unset ()
36178{
36179 { eval $1=; unset $1;}
36180}
36181as_unset=as_fn_unset
36182# as_fn_append VAR VALUE
36183# ----------------------
36184# Append the text in VALUE to the end of the definition contained in VAR. Take
36185# advantage of any shell optimizations that allow amortized linear growth over
36186# repeated appends, instead of the typical quadratic growth present in naive
36187# implementations.
36188if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36189 eval 'as_fn_append ()
36190 {
36191 eval $1+=\$2
36192 }'
36193else
36194 as_fn_append ()
36195 {
36196 eval $1=\$$1\$2
36197 }
36198fi # as_fn_append
36199
36200# as_fn_arith ARG...
36201# ------------------
36202# Perform arithmetic evaluation on the ARGs, and store the result in the
36203# global $as_val. Take advantage of shells that can avoid forks. The arguments
36204# must be portable across $(()) and expr.
36205if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36206 eval 'as_fn_arith ()
36207 {
36208 as_val=$(( $* ))
36209 }'
36210else
36211 as_fn_arith ()
36212 {
36213 as_val=`expr "$@" || test $? -eq 1`
36214 }
36215fi # as_fn_arith
36216
36217
cristy3ed852e2009-09-05 21:47:34 +000036218if expr a : '\(a\)' >/dev/null 2>&1 &&
36219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36220 as_expr=expr
36221else
36222 as_expr=false
36223fi
36224
36225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36226 as_basename=basename
36227else
36228 as_basename=false
36229fi
36230
cristy8b350f62009-11-15 23:12:43 +000036231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36232 as_dirname=dirname
36233else
36234 as_dirname=false
36235fi
cristy3ed852e2009-09-05 21:47:34 +000036236
cristy3ed852e2009-09-05 21:47:34 +000036237as_me=`$as_basename -- "$0" ||
36238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36239 X"$0" : 'X\(//\)$' \| \
36240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36241$as_echo X/"$0" |
36242 sed '/^.*\/\([^/][^/]*\)\/*$/{
36243 s//\1/
36244 q
36245 }
36246 /^X\/\(\/\/\)$/{
36247 s//\1/
36248 q
36249 }
36250 /^X\/\(\/\).*/{
36251 s//\1/
36252 q
36253 }
36254 s/.*/./; q'`
36255
cristy8b350f62009-11-15 23:12:43 +000036256# Avoid depending upon Character Ranges.
36257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36260as_cr_digits='0123456789'
36261as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036262
36263ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036264case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036265-n*)
cristy8b350f62009-11-15 23:12:43 +000036266 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036268 xy) ECHO_C='\c';;
36269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36270 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036271 esac;;
36272*)
36273 ECHO_N='-n';;
36274esac
cristy3ed852e2009-09-05 21:47:34 +000036275
36276rm -f conf$$ conf$$.exe conf$$.file
36277if test -d conf$$.dir; then
36278 rm -f conf$$.dir/conf$$.file
36279else
36280 rm -f conf$$.dir
36281 mkdir conf$$.dir 2>/dev/null
36282fi
36283if (echo >conf$$.file) 2>/dev/null; then
36284 if ln -s conf$$.file conf$$ 2>/dev/null; then
36285 as_ln_s='ln -s'
36286 # ... but there are two gotchas:
36287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036289 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036291 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036292 elif ln conf$$.file conf$$ 2>/dev/null; then
36293 as_ln_s=ln
36294 else
cristy14fefe52012-05-21 00:59:18 +000036295 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036296 fi
36297else
cristy14fefe52012-05-21 00:59:18 +000036298 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036299fi
36300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36301rmdir conf$$.dir 2>/dev/null
36302
cristy8b350f62009-11-15 23:12:43 +000036303
36304# as_fn_mkdir_p
36305# -------------
36306# Create "$as_dir" as a directory, including parents if necessary.
36307as_fn_mkdir_p ()
36308{
36309
36310 case $as_dir in #(
36311 -*) as_dir=./$as_dir;;
36312 esac
36313 test -d "$as_dir" || eval $as_mkdir_p || {
36314 as_dirs=
36315 while :; do
36316 case $as_dir in #(
36317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36318 *) as_qdir=$as_dir;;
36319 esac
36320 as_dirs="'$as_qdir' $as_dirs"
36321 as_dir=`$as_dirname -- "$as_dir" ||
36322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36323 X"$as_dir" : 'X\(//\)[^/]' \| \
36324 X"$as_dir" : 'X\(//\)$' \| \
36325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36326$as_echo X"$as_dir" |
36327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36328 s//\1/
36329 q
36330 }
36331 /^X\(\/\/\)[^/].*/{
36332 s//\1/
36333 q
36334 }
36335 /^X\(\/\/\)$/{
36336 s//\1/
36337 q
36338 }
36339 /^X\(\/\).*/{
36340 s//\1/
36341 q
36342 }
36343 s/.*/./; q'`
36344 test -d "$as_dir" && break
36345 done
36346 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036348
36349
36350} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036351if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036352 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036353else
36354 test -d ./-p && rmdir ./-p
36355 as_mkdir_p=false
36356fi
36357
cristy14fefe52012-05-21 00:59:18 +000036358
36359# as_fn_executable_p FILE
36360# -----------------------
36361# Test if FILE is an executable regular file.
36362as_fn_executable_p ()
36363{
36364 test -f "$1" && test -x "$1"
36365} # as_fn_executable_p
36366as_test_x='test -x'
36367as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036368
36369# Sed expression to map a string onto a valid CPP name.
36370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36371
36372# Sed expression to map a string onto a valid variable name.
36373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36374
36375
36376exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036377## ----------------------------------- ##
36378## Main body of $CONFIG_STATUS script. ##
36379## ----------------------------------- ##
36380_ASEOF
36381test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036382
cristy8b350f62009-11-15 23:12:43 +000036383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36384# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036385# report actual input values of CONFIG_FILES etc. instead of their
36386# values after options handling.
36387ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036388This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036389generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036390
36391 CONFIG_FILES = $CONFIG_FILES
36392 CONFIG_HEADERS = $CONFIG_HEADERS
36393 CONFIG_LINKS = $CONFIG_LINKS
36394 CONFIG_COMMANDS = $CONFIG_COMMANDS
36395 $ $0 $@
36396
36397on `(hostname || uname -n) 2>/dev/null | sed 1q`
36398"
36399
36400_ACEOF
36401
36402case $ac_config_files in *"
36403"*) set x $ac_config_files; shift; ac_config_files=$*;;
36404esac
36405
36406case $ac_config_headers in *"
36407"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36408esac
36409
36410
36411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36412# Files that config.status was made for.
36413config_files="$ac_config_files"
36414config_headers="$ac_config_headers"
36415config_commands="$ac_config_commands"
36416
36417_ACEOF
36418
36419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36420ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036421\`$as_me' instantiates files and other configuration actions
36422from templates according to the current configuration. Unless the files
36423and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036424
cristy8b350f62009-11-15 23:12:43 +000036425Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036426
36427 -h, --help print this help, then exit
36428 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036429 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036430 -q, --quiet, --silent
36431 do not print progress messages
36432 -d, --debug don't remove temporary files
36433 --recheck update $as_me by reconfiguring in the same conditions
36434 --file=FILE[:TEMPLATE]
36435 instantiate the configuration file FILE
36436 --header=FILE[:TEMPLATE]
36437 instantiate the configuration header FILE
36438
36439Configuration files:
36440$config_files
36441
36442Configuration headers:
36443$config_headers
36444
36445Configuration commands:
36446$config_commands
36447
cristy8b350f62009-11-15 23:12:43 +000036448Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036449
36450_ACEOF
36451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036452ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036453ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036454ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036455configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036456 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036457
cristy14fefe52012-05-21 00:59:18 +000036458Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036459This config.status script is free software; the Free Software Foundation
36460gives unlimited permission to copy, distribute and modify it."
36461
36462ac_pwd='$ac_pwd'
36463srcdir='$srcdir'
36464INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036465MKDIR_P='$MKDIR_P'
36466AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036467test -n "\$AWK" || AWK=awk
36468_ACEOF
36469
36470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36471# The default lists apply if the user does not specify any file.
36472ac_need_defaults=:
36473while test $# != 0
36474do
36475 case $1 in
cristyda16f162011-02-19 23:52:17 +000036476 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36479 ac_shift=:
36480 ;;
cristyda16f162011-02-19 23:52:17 +000036481 --*=)
36482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36483 ac_optarg=
36484 ac_shift=:
36485 ;;
cristy3ed852e2009-09-05 21:47:34 +000036486 *)
36487 ac_option=$1
36488 ac_optarg=$2
36489 ac_shift=shift
36490 ;;
36491 esac
36492
36493 case $ac_option in
36494 # Handling of the options.
36495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36496 ac_cs_recheck=: ;;
36497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36498 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036499 --config | --confi | --conf | --con | --co | --c )
36500 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036501 --debug | --debu | --deb | --de | --d | -d )
36502 debug=: ;;
36503 --file | --fil | --fi | --f )
36504 $ac_shift
36505 case $ac_optarg in
36506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036507 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036508 esac
cristy8b350f62009-11-15 23:12:43 +000036509 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036510 ac_need_defaults=false;;
36511 --header | --heade | --head | --hea )
36512 $ac_shift
36513 case $ac_optarg in
36514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36515 esac
cristy8b350f62009-11-15 23:12:43 +000036516 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036517 ac_need_defaults=false;;
36518 --he | --h)
36519 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036520 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036521Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036522 --help | --hel | -h )
36523 $as_echo "$ac_cs_usage"; exit ;;
36524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36526 ac_cs_silent=: ;;
36527
36528 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036529 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036530Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036531
cristy8b350f62009-11-15 23:12:43 +000036532 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036533 ac_need_defaults=false ;;
36534
36535 esac
36536 shift
36537done
36538
36539ac_configure_extra_args=
36540
36541if $ac_cs_silent; then
36542 exec 6>/dev/null
36543 ac_configure_extra_args="$ac_configure_extra_args --silent"
36544fi
36545
36546_ACEOF
36547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36548if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036549 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036550 shift
36551 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36552 CONFIG_SHELL='$SHELL'
36553 export CONFIG_SHELL
36554 exec "\$@"
36555fi
36556
36557_ACEOF
36558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36559exec 5>>config.log
36560{
36561 echo
36562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36563## Running $as_me. ##
36564_ASBOX
36565 $as_echo "$ac_log"
36566} >&5
36567
36568_ACEOF
36569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036570#
36571# INIT-COMMANDS
36572#
36573PACKAGE="$PACKAGE"
36574AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36575
36576
36577# The HP-UX ksh and POSIX shell print the target directory to stdout
36578# if CDPATH is set.
36579(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36580
36581sed_quote_subst='$sed_quote_subst'
36582double_quote_subst='$double_quote_subst'
36583delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036584SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36585Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36586GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36587EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36588FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36589SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36590ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36591LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36592macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36593macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36594AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36595DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36596OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36597enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36598enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36599pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36600enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036601PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036602host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36603host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36604host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36605build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36606build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36607build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36608NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36609LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36610max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36611ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36612exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36613lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36614lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36615lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036616lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36617lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036618reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36619reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36620deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36621file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036622file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36623want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36624sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036625AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36626AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036627archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036628STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36629RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36630old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36631old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36632old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36633lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36634CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36635CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36636compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36637GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36638lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36639lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36640lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36641lt_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 +000036642nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36643lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036644objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36645MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36646lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036647lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036648lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036649lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36650lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36651need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036652MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036653DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36654NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36655LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36656OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36657OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36658libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36659shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36660extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36661archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36662enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36663export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36664whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36665compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36666old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36667old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36668archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36669archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36670module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36671module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36672with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36673allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36674no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36675hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036676hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36677hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36678hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36679hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36680hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36681hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36682inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36683link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036684always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36685export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36686exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36687include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36688prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036689postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036690file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36691variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36692need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36693need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36694version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36695runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36696shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36697shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36698libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36699library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36700soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36701install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36702postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36703postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36704finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36705finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36706hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36707sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36708sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36709hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36710enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36711enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36712enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36713old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36714striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36715compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36716predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36717postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36718predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36719postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36720compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36721LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36722reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36723reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36724old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36725compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36726GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36727lt_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 +000036728lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036729lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036730lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36731lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36732archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36733enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36734export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36735whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36736compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36737old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36738old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36739archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36740archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36741module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36742module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36743with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36744allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36745no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36746hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036747hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36748hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36749hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36750hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36751hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36752hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36753inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36754link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036755always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36756export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36757exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36758include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36759prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036760postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036761file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36762hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36763compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36764predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36765postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36766predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36767postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36768compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036769
36770LTCC='$LTCC'
36771LTCFLAGS='$LTCFLAGS'
36772compiler='$compiler_DEFAULT'
36773
cristy0c60a692010-11-04 01:09:47 +000036774# A function that is used when there is no print builtin or printf.
36775func_fallback_echo ()
36776{
36777 eval 'cat <<_LTECHO_EOF
36778\$1
36779_LTECHO_EOF'
36780}
36781
cristy73bd4a52010-10-05 11:24:23 +000036782# Quote evaled strings.
36783for var in SED \
36784GREP \
36785EGREP \
36786FGREP \
cristy0c60a692010-11-04 01:09:47 +000036787SHELL \
36788ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036789LD \
cristy0c60a692010-11-04 01:09:47 +000036790AS \
36791DLLTOOL \
36792OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036793PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036794NM \
36795LN_S \
36796lt_SP2NL \
36797lt_NL2SP \
36798reload_flag \
36799deplibs_check_method \
36800file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036801file_magic_glob \
36802want_nocaseglob \
36803sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036804AR \
36805AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036806archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036807STRIP \
36808RANLIB \
36809CC \
36810CFLAGS \
36811compiler \
36812lt_cv_sys_global_symbol_pipe \
36813lt_cv_sys_global_symbol_to_cdecl \
36814lt_cv_sys_global_symbol_to_c_name_address \
36815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036816nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036817lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036818lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036819lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036820lt_prog_compiler_static \
36821lt_cv_prog_compiler_c_o \
36822need_locks \
cristyda16f162011-02-19 23:52:17 +000036823MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036824DSYMUTIL \
36825NMEDIT \
36826LIPO \
36827OTOOL \
36828OTOOL64 \
36829shrext_cmds \
36830export_dynamic_flag_spec \
36831whole_archive_flag_spec \
36832compiler_needs_object \
36833with_gnu_ld \
36834allow_undefined_flag \
36835no_undefined_flag \
36836hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036837hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036838exclude_expsyms \
36839include_expsyms \
36840file_list_spec \
36841variables_saved_for_relink \
36842libname_spec \
36843library_names_spec \
36844soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036845install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036846finish_eval \
36847old_striplib \
36848striplib \
36849compiler_lib_search_dirs \
36850predep_objects \
36851postdep_objects \
36852predeps \
36853postdeps \
36854compiler_lib_search_path \
36855LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036856reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036857compiler_CXX \
36858lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036859lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036860lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036861lt_prog_compiler_static_CXX \
36862lt_cv_prog_compiler_c_o_CXX \
36863export_dynamic_flag_spec_CXX \
36864whole_archive_flag_spec_CXX \
36865compiler_needs_object_CXX \
36866with_gnu_ld_CXX \
36867allow_undefined_flag_CXX \
36868no_undefined_flag_CXX \
36869hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036870hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036871exclude_expsyms_CXX \
36872include_expsyms_CXX \
36873file_list_spec_CXX \
36874compiler_lib_search_dirs_CXX \
36875predep_objects_CXX \
36876postdep_objects_CXX \
36877predeps_CXX \
36878postdeps_CXX \
36879compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036880 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036881 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036883 ;;
36884 *)
36885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36886 ;;
36887 esac
36888done
36889
36890# Double-quote double-evaled strings.
36891for var in reload_cmds \
36892old_postinstall_cmds \
36893old_postuninstall_cmds \
36894old_archive_cmds \
36895extract_expsyms_cmds \
36896old_archive_from_new_cmds \
36897old_archive_from_expsyms_cmds \
36898archive_cmds \
36899archive_expsym_cmds \
36900module_cmds \
36901module_expsym_cmds \
36902export_symbols_cmds \
36903prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036904postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036905postinstall_cmds \
36906postuninstall_cmds \
36907finish_cmds \
36908sys_lib_search_path_spec \
36909sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036910reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036911old_archive_cmds_CXX \
36912old_archive_from_new_cmds_CXX \
36913old_archive_from_expsyms_cmds_CXX \
36914archive_cmds_CXX \
36915archive_expsym_cmds_CXX \
36916module_cmds_CXX \
36917module_expsym_cmds_CXX \
36918export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036919prelink_cmds_CXX \
36920postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036921 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036922 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036923 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036924 ;;
36925 *)
36926 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36927 ;;
36928 esac
36929done
36930
cristy73bd4a52010-10-05 11:24:23 +000036931ac_aux_dir='$ac_aux_dir'
36932xsi_shell='$xsi_shell'
36933lt_shell_append='$lt_shell_append'
36934
36935# See if we are running on zsh, and set the options which allow our
36936# commands through without removal of \ escapes INIT.
36937if test -n "\${ZSH_VERSION+set}" ; then
36938 setopt NO_GLOB_SUBST
36939fi
36940
36941
36942 PACKAGE='$PACKAGE'
36943 VERSION='$VERSION'
36944 TIMESTAMP='$TIMESTAMP'
36945 RM='$RM'
36946 ofile='$ofile'
36947
36948
36949
36950
36951
36952
cristy3ed852e2009-09-05 21:47:34 +000036953_ACEOF
36954
36955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36956
36957# Handling of arguments.
36958for ac_config_target in $ac_config_targets
36959do
36960 case $ac_config_target in
36961 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036962 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036963 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036964 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36965 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36966 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36967 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36968 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036969 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036970 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036971 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36972 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36973 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36974 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36975 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036976 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036977 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036978 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36979 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36980 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036981 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36982 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000036983 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000036984 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000036985 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000036986 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000036987 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
36988 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
36989 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
36990 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000036991 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36992 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36993 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36994 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36995 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36996 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36997 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36998 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36999 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37000 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37001 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37002 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037003 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37004 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037007 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037008 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037009 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037010 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037011 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37012 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37013
cristy98dddb52010-11-04 00:30:15 +000037014 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037015 esac
37016done
37017
37018
37019# If the user did not use the arguments to specify the items to instantiate,
37020# then the envvar interface is used. Set only those that are not.
37021# We use the long form for the default assignment because of an extremely
37022# bizarre bug on SunOS 4.1.3.
37023if $ac_need_defaults; then
37024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37027fi
37028
37029# Have a temporary directory for convenience. Make it in the build tree
37030# simply because there is no reason against having it here, and in addition,
37031# creating and moving files from /tmp can sometimes cause problems.
37032# Hook for its removal unless debugging.
37033# Note that there is a small window in which the directory will not be cleaned:
37034# after its creation but before its name has been assigned to `$tmp'.
37035$debug ||
37036{
cristyda16f162011-02-19 23:52:17 +000037037 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037038 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037039 : "${ac_tmp:=$tmp}"
37040 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037041' 0
cristy8b350f62009-11-15 23:12:43 +000037042 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037043}
37044# Create a (secure) tmp directory for tmp files.
37045
37046{
37047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037048 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037049} ||
37050{
37051 tmp=./conf$$-$RANDOM
37052 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037053} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037054ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037055
37056# Set up the scripts for CONFIG_FILES section.
37057# No need to generate them if there are no CONFIG_FILES.
37058# This happens for instance with `./config.status config.h'.
37059if test -n "$CONFIG_FILES"; then
37060
37061
cristy8b350f62009-11-15 23:12:43 +000037062ac_cr=`echo X | tr X '\015'`
37063# On cygwin, bash can eat \r inside `` if the user requested igncr.
37064# But we know of no other shell where ac_cr would be empty at this
37065# point, so we can use a bashism as a fallback.
37066if test "x$ac_cr" = x; then
37067 eval ac_cr=\$\'\\r\'
37068fi
cristy3ed852e2009-09-05 21:47:34 +000037069ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37070if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037071 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037072else
37073 ac_cs_awk_cr=$ac_cr
37074fi
37075
cristyda16f162011-02-19 23:52:17 +000037076echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037077_ACEOF
37078
37079
37080{
37081 echo "cat >conf$$subs.awk <<_ACEOF" &&
37082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37083 echo "_ACEOF"
37084} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37086ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037087ac_delim='%!_!# '
37088for ac_last_try in false false false false false :; do
37089 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037091
37092 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37093 if test $ac_delim_n = $ac_delim_num; then
37094 break
37095 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037097 else
37098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37099 fi
37100done
37101rm -f conf$$subs.sh
37102
37103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037104cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037105_ACEOF
37106sed -n '
37107h
37108s/^/S["/; s/!.*/"]=/
37109p
37110g
37111s/^[^!]*!//
37112:repl
37113t repl
37114s/'"$ac_delim"'$//
37115t delim
37116:nl
37117h
cristycd4c5312009-11-22 01:19:08 +000037118s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037119t more1
37120s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37121p
37122n
37123b repl
37124:more1
37125s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37126p
37127g
37128s/.\{148\}//
37129t nl
37130:delim
37131h
cristycd4c5312009-11-22 01:19:08 +000037132s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037133t more2
37134s/["\\]/\\&/g; s/^/"/; s/$/"/
37135p
37136b
37137:more2
37138s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37139p
37140g
37141s/.\{148\}//
37142t delim
37143' <conf$$subs.awk | sed '
37144/^[^""]/{
37145 N
37146 s/\n//
37147}
37148' >>$CONFIG_STATUS || ac_write_fail=1
37149rm -f conf$$subs.awk
37150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37151_ACAWK
cristyda16f162011-02-19 23:52:17 +000037152cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037153 for (key in S) S_is_set[key] = 1
37154 FS = ""
37155
37156}
37157{
37158 line = $ 0
37159 nfields = split(line, field, "@")
37160 substed = 0
37161 len = length(field[1])
37162 for (i = 2; i < nfields; i++) {
37163 key = field[i]
37164 keylen = length(key)
37165 if (S_is_set[key]) {
37166 value = S[key]
37167 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37168 len += length(value) + length(field[++i])
37169 substed = 1
37170 } else
37171 len += 1 + keylen
37172 }
37173
37174 print line
37175}
37176
37177_ACAWK
37178_ACEOF
37179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37180if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37182else
37183 cat
cristyda16f162011-02-19 23:52:17 +000037184fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037185 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037186_ACEOF
37187
cristy98dddb52010-11-04 00:30:15 +000037188# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37189# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037190# trailing colons and then remove the whole line if VPATH becomes empty
37191# (actually we leave an empty line to preserve line numbers).
37192if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037193 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37194h
37195s///
37196s/^/:/
37197s/[ ]*$/:/
37198s/:\$(srcdir):/:/g
37199s/:\${srcdir}:/:/g
37200s/:@srcdir@:/:/g
37201s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037202s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037203x
37204s/\(=[ ]*\).*/\1/
37205G
37206s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037207s/^[^=]*=[ ]*$//
37208}'
37209fi
37210
37211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37212fi # test -n "$CONFIG_FILES"
37213
37214# Set up the scripts for CONFIG_HEADERS section.
37215# No need to generate them if there are no CONFIG_HEADERS.
37216# This happens for instance with `./config.status Makefile'.
37217if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037218cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037219BEGIN {
37220_ACEOF
37221
37222# Transform confdefs.h into an awk script `defines.awk', embedded as
37223# here-document in config.status, that substitutes the proper values into
37224# config.h.in to produce config.h.
37225
37226# Create a delimiter string that does not exist in confdefs.h, to ease
37227# handling of long lines.
37228ac_delim='%!_!# '
37229for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037230 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37231 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037232 break
37233 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037234 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037235 else
37236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37237 fi
37238done
37239
37240# For the awk script, D is an array of macro values keyed by name,
37241# likewise P contains macro parameters if any. Preserve backslash
37242# newline sequences.
37243
37244ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37245sed -n '
37246s/.\{148\}/&'"$ac_delim"'/g
37247t rset
37248:rset
37249s/^[ ]*#[ ]*define[ ][ ]*/ /
37250t def
37251d
37252:def
37253s/\\$//
37254t bsnl
37255s/["\\]/\\&/g
37256s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37257D["\1"]=" \3"/p
37258s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37259d
37260:bsnl
37261s/["\\]/\\&/g
37262s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37263D["\1"]=" \3\\\\\\n"\\/p
37264t cont
37265s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37266t cont
37267d
37268:cont
37269n
37270s/.\{148\}/&'"$ac_delim"'/g
37271t clear
37272:clear
37273s/\\$//
37274t bsnlc
37275s/["\\]/\\&/g; s/^/"/; s/$/"/p
37276d
37277:bsnlc
37278s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37279b cont
37280' <confdefs.h | sed '
37281s/'"$ac_delim"'/"\\\
37282"/g' >>$CONFIG_STATUS || ac_write_fail=1
37283
37284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37285 for (key in D) D_is_set[key] = 1
37286 FS = ""
37287}
37288/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37289 line = \$ 0
37290 split(line, arg, " ")
37291 if (arg[1] == "#") {
37292 defundef = arg[2]
37293 mac1 = arg[3]
37294 } else {
37295 defundef = substr(arg[1], 2)
37296 mac1 = arg[2]
37297 }
37298 split(mac1, mac2, "(") #)
37299 macro = mac2[1]
37300 prefix = substr(line, 1, index(line, defundef) - 1)
37301 if (D_is_set[macro]) {
37302 # Preserve the white space surrounding the "#".
37303 print prefix "define", macro P[macro] D[macro]
37304 next
37305 } else {
37306 # Replace #undef with comments. This is necessary, for example,
37307 # in the case of _POSIX_SOURCE, which is predefined and required
37308 # on some systems where configure will not decide to define it.
37309 if (defundef == "undef") {
37310 print "/*", prefix defundef, macro, "*/"
37311 next
37312 }
37313 }
37314}
37315{ print }
37316_ACAWK
37317_ACEOF
37318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037319 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037320fi # test -n "$CONFIG_HEADERS"
37321
37322
37323eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37324shift
37325for ac_tag
37326do
37327 case $ac_tag in
37328 :[FHLC]) ac_mode=$ac_tag; continue;;
37329 esac
37330 case $ac_mode$ac_tag in
37331 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037332 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037333 :[FH]-) ac_tag=-:-;;
37334 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37335 esac
37336 ac_save_IFS=$IFS
37337 IFS=:
37338 set x $ac_tag
37339 IFS=$ac_save_IFS
37340 shift
37341 ac_file=$1
37342 shift
37343
37344 case $ac_mode in
37345 :L) ac_source=$1;;
37346 :[FH])
37347 ac_file_inputs=
37348 for ac_f
37349 do
37350 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037351 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037352 *) # Look for the file first in the build tree, then in the source tree
37353 # (if the path is not absolute). The absolute path cannot be DOS-style,
37354 # because $ac_f cannot contain `:'.
37355 test -f "$ac_f" ||
37356 case $ac_f in
37357 [\\/$]*) false;;
37358 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37359 esac ||
cristy98dddb52010-11-04 00:30:15 +000037360 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037361 esac
37362 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037363 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037364 done
37365
37366 # Let's still pretend it is `configure' which instantiates (i.e., don't
37367 # use $as_me), people would be surprised to read:
37368 # /* config.h. Generated by config.status. */
37369 configure_input='Generated from '`
37370 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37371 `' by configure.'
37372 if test x"$ac_file" != x-; then
37373 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037375$as_echo "$as_me: creating $ac_file" >&6;}
37376 fi
37377 # Neutralize special characters interpreted by sed in replacement strings.
37378 case $configure_input in #(
37379 *\&* | *\|* | *\\* )
37380 ac_sed_conf_input=`$as_echo "$configure_input" |
37381 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37382 *) ac_sed_conf_input=$configure_input;;
37383 esac
37384
37385 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037386 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037388 esac
37389 ;;
37390 esac
37391
37392 ac_dir=`$as_dirname -- "$ac_file" ||
37393$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37394 X"$ac_file" : 'X\(//\)[^/]' \| \
37395 X"$ac_file" : 'X\(//\)$' \| \
37396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37397$as_echo X"$ac_file" |
37398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37399 s//\1/
37400 q
37401 }
37402 /^X\(\/\/\)[^/].*/{
37403 s//\1/
37404 q
37405 }
37406 /^X\(\/\/\)$/{
37407 s//\1/
37408 q
37409 }
37410 /^X\(\/\).*/{
37411 s//\1/
37412 q
37413 }
37414 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037415 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037416 ac_builddir=.
37417
37418case "$ac_dir" in
37419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37420*)
37421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37422 # A ".." for each directory in $ac_dir_suffix.
37423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37424 case $ac_top_builddir_sub in
37425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37427 esac ;;
37428esac
37429ac_abs_top_builddir=$ac_pwd
37430ac_abs_builddir=$ac_pwd$ac_dir_suffix
37431# for backward compatibility:
37432ac_top_builddir=$ac_top_build_prefix
37433
37434case $srcdir in
37435 .) # We are building in place.
37436 ac_srcdir=.
37437 ac_top_srcdir=$ac_top_builddir_sub
37438 ac_abs_top_srcdir=$ac_pwd ;;
37439 [\\/]* | ?:[\\/]* ) # Absolute name.
37440 ac_srcdir=$srcdir$ac_dir_suffix;
37441 ac_top_srcdir=$srcdir
37442 ac_abs_top_srcdir=$srcdir ;;
37443 *) # Relative name.
37444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37445 ac_top_srcdir=$ac_top_build_prefix$srcdir
37446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37447esac
37448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37449
37450
37451 case $ac_mode in
37452 :F)
37453 #
37454 # CONFIG_FILE
37455 #
37456
37457 case $INSTALL in
37458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37460 esac
cristy73bd4a52010-10-05 11:24:23 +000037461 ac_MKDIR_P=$MKDIR_P
37462 case $MKDIR_P in
37463 [\\/$]* | ?:[\\/]* ) ;;
37464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37465 esac
cristy3ed852e2009-09-05 21:47:34 +000037466_ACEOF
37467
37468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37469# If the template does not know about datarootdir, expand it.
37470# FIXME: This hack should be removed a few years after 2.60.
37471ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037472ac_sed_dataroot='
37473/datarootdir/ {
37474 p
37475 q
37476}
37477/@datadir@/p
37478/@docdir@/p
37479/@infodir@/p
37480/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037481/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037482case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37483*datarootdir*) ac_datarootdir_seen=yes;;
37484*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037486$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37487_ACEOF
37488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37489 ac_datarootdir_hack='
37490 s&@datadir@&$datadir&g
37491 s&@docdir@&$docdir&g
37492 s&@infodir@&$infodir&g
37493 s&@localedir@&$localedir&g
37494 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037495 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037496esac
37497_ACEOF
37498
37499# Neutralize VPATH when `$srcdir' = `.'.
37500# Shell code in configure.ac might set extrasub.
37501# FIXME: do we really want to maintain this feature?
37502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37503ac_sed_extra="$ac_vpsub
37504$extrasub
37505_ACEOF
37506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37507:t
37508/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37509s|@configure_input@|$ac_sed_conf_input|;t t
37510s&@top_builddir@&$ac_top_builddir_sub&;t t
37511s&@top_build_prefix@&$ac_top_build_prefix&;t t
37512s&@srcdir@&$ac_srcdir&;t t
37513s&@abs_srcdir@&$ac_abs_srcdir&;t t
37514s&@top_srcdir@&$ac_top_srcdir&;t t
37515s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37516s&@builddir@&$ac_builddir&;t t
37517s&@abs_builddir@&$ac_abs_builddir&;t t
37518s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37519s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037520s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037521$ac_datarootdir_hack
37522"
cristyda16f162011-02-19 23:52:17 +000037523eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37524 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037525
37526test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037527 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37529 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037531which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037532$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037533which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037534
cristyda16f162011-02-19 23:52:17 +000037535 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037536 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037537 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37538 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037539 esac \
cristy98dddb52010-11-04 00:30:15 +000037540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037541 ;;
37542 :H)
37543 #
37544 # CONFIG_HEADER
37545 #
37546 if test x"$ac_file" != x-; then
37547 {
37548 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37550 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037552 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037553 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037554$as_echo "$as_me: $ac_file is unchanged" >&6;}
37555 else
37556 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037557 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037559 fi
37560 else
37561 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037563 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037564 fi
cristy73bd4a52010-10-05 11:24:23 +000037565# Compute "$ac_file"'s index in $config_headers.
37566_am_arg="$ac_file"
37567_am_stamp_count=1
37568for _am_header in $config_headers :; do
37569 case $_am_header in
37570 $_am_arg | $_am_arg:* )
37571 break ;;
37572 * )
37573 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37574 esac
37575done
37576echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37577$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37578 X"$_am_arg" : 'X\(//\)[^/]' \| \
37579 X"$_am_arg" : 'X\(//\)$' \| \
37580 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37581$as_echo X"$_am_arg" |
37582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37583 s//\1/
37584 q
37585 }
37586 /^X\(\/\/\)[^/].*/{
37587 s//\1/
37588 q
37589 }
37590 /^X\(\/\/\)$/{
37591 s//\1/
37592 q
37593 }
37594 /^X\(\/\).*/{
37595 s//\1/
37596 q
37597 }
37598 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037599 ;;
37600
cristy8b350f62009-11-15 23:12:43 +000037601 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037602$as_echo "$as_me: executing $ac_file commands" >&6;}
37603 ;;
37604 esac
37605
37606
37607 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037608 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037609ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37610ac_prefix_conf_PKG=`echo MagickCore`
37611ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37612ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37613ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37614if test ".$ac_prefix_conf_INP" = "."; then
37615 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37616 case "$ac_file" in
37617 *.h) ac_prefix_conf_INP=$ac_file ;;
37618 *)
37619 esac
37620 test ".$ac_prefix_conf_INP" != "." && break
37621 done
37622fi
37623if test ".$ac_prefix_conf_INP" = "."; then
37624 case "$ac_prefix_conf_OUT" in
37625 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37626 ;;
37627 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37628 ;;
37629 *) ac_prefix_conf_INP=config.h
37630 ;;
37631 esac
37632fi
37633if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037634 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037635else
37636 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37637 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37638 fi fi
37639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37640$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37641 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037642 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37643 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37644 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37645 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37646 $as_echo "#endif/" >> conftest.prefix
37647 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37648 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37649 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037650 # now executing _script on _DEF input to create _OUT output file
37651 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37652 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37653 echo ' ' >>$tmp/pconfig.h
37654 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37655
37656 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37657 echo ' ' >>$tmp/pconfig.h
37658 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37659 echo "#endif" >>$tmp/pconfig.h
37660 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37661 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37662$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37663 else
37664 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37665$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37666 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37667 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37668 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37669$as_echo X"$ac_prefix_conf_OUT" |
37670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37671 s//\1/
37672 q
37673 }
37674 /^X\(\/\/\)[^/].*/{
37675 s//\1/
37676 q
37677 }
37678 /^X\(\/\/\)$/{
37679 s//\1/
37680 q
37681 }
37682 /^X\(\/\).*/{
37683 s//\1/
37684 q
37685 }
37686 s/.*/./; q'`
37687 as_dir="$ac_dir"; as_fn_mkdir_p
37688 rm -f "$ac_prefix_conf_OUT"
37689 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37690 fi
37691 cp conftest.prefix _configs.sed
37692 else
cristy98dddb52010-11-04 00:30:15 +000037693 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 +000037694 fi
37695 rm -f conftest.*
37696fi
37697 ;;
37698 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037699 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037700 # are listed without --file. Let's play safe and only enable the eval
37701 # if we detect the quoting.
37702 case $CONFIG_FILES in
37703 *\'*) eval set x "$CONFIG_FILES" ;;
37704 *) set x $CONFIG_FILES ;;
37705 esac
37706 shift
37707 for mf
37708 do
37709 # Strip MF so we end up with the name of the file.
37710 mf=`echo "$mf" | sed -e 's/:.*$//'`
37711 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037712 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037713 # some people rename them; so instead we look at the file content.
37714 # Grep'ing the first line is not enough: some people post-process
37715 # each Makefile.in and add a new line on top of each file to say so.
37716 # Grep'ing the whole file is not good either: AIX grep has a line
37717 # limit of 2048, but all sed's we know have understand at least 4000.
37718 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37719 dirpart=`$as_dirname -- "$mf" ||
37720$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37721 X"$mf" : 'X\(//\)[^/]' \| \
37722 X"$mf" : 'X\(//\)$' \| \
37723 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37724$as_echo X"$mf" |
37725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37726 s//\1/
37727 q
37728 }
37729 /^X\(\/\/\)[^/].*/{
37730 s//\1/
37731 q
37732 }
37733 /^X\(\/\/\)$/{
37734 s//\1/
37735 q
37736 }
37737 /^X\(\/\).*/{
37738 s//\1/
37739 q
37740 }
37741 s/.*/./; q'`
37742 else
37743 continue
37744 fi
37745 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037746 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037747 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37748 test -z "$DEPDIR" && continue
37749 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037750 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037751 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037752 # Find all dependency output files, they are included files with
37753 # $(DEPDIR) in their names. We invoke sed twice because it is the
37754 # simplest approach to changing $(DEPDIR) to its actual value in the
37755 # expansion.
37756 for file in `sed -n "
37757 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037758 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037759 # Make sure the directory exists.
37760 test -f "$dirpart/$file" && continue
37761 fdir=`$as_dirname -- "$file" ||
37762$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37763 X"$file" : 'X\(//\)[^/]' \| \
37764 X"$file" : 'X\(//\)$' \| \
37765 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37766$as_echo X"$file" |
37767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37768 s//\1/
37769 q
37770 }
37771 /^X\(\/\/\)[^/].*/{
37772 s//\1/
37773 q
37774 }
37775 /^X\(\/\/\)$/{
37776 s//\1/
37777 q
37778 }
37779 /^X\(\/\).*/{
37780 s//\1/
37781 q
37782 }
37783 s/.*/./; q'`
37784 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37785 # echo "creating $dirpart/$file"
37786 echo '# dummy' > "$dirpart/$file"
37787 done
37788 done
37789}
37790 ;;
37791 "libtool":C)
37792
37793 # See if we are running on zsh, and set the options which allow our
37794 # commands through without removal of \ escapes.
37795 if test -n "${ZSH_VERSION+set}" ; then
37796 setopt NO_GLOB_SUBST
37797 fi
37798
37799 cfgfile="${ofile}T"
37800 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37801 $RM "$cfgfile"
37802
37803 cat <<_LT_EOF >> "$cfgfile"
37804#! $SHELL
37805
37806# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37807# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37808# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37809# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37810#
37811# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037812# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37813# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037814# Written by Gordon Matzigkeit, 1996
37815#
37816# This file is part of GNU Libtool.
37817#
37818# GNU Libtool is free software; you can redistribute it and/or
37819# modify it under the terms of the GNU General Public License as
37820# published by the Free Software Foundation; either version 2 of
37821# the License, or (at your option) any later version.
37822#
37823# As a special exception to the GNU General Public License,
37824# if you distribute this file as part of a program or library that
37825# is built using GNU Libtool, you may include this file under the
37826# same distribution terms that you use for the rest of that program.
37827#
37828# GNU Libtool is distributed in the hope that it will be useful,
37829# but WITHOUT ANY WARRANTY; without even the implied warranty of
37830# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37831# GNU General Public License for more details.
37832#
37833# You should have received a copy of the GNU General Public License
37834# along with GNU Libtool; see the file COPYING. If not, a copy
37835# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37836# obtained by writing to the Free Software Foundation, Inc.,
37837# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37838
37839
37840# The names of the tagged configurations supported by this script.
37841available_tags="CXX "
37842
37843# ### BEGIN LIBTOOL CONFIG
37844
37845# A sed program that does not truncate output.
37846SED=$lt_SED
37847
37848# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37849Xsed="\$SED -e 1s/^X//"
37850
37851# A grep program that handles long lines.
37852GREP=$lt_GREP
37853
37854# An ERE matcher.
37855EGREP=$lt_EGREP
37856
37857# A literal string matcher.
37858FGREP=$lt_FGREP
37859
cristy0c60a692010-11-04 01:09:47 +000037860# Shell to use when invoking shell scripts.
37861SHELL=$lt_SHELL
37862
37863# An echo program that protects backslashes.
37864ECHO=$lt_ECHO
37865
cristy73bd4a52010-10-05 11:24:23 +000037866# Which release of libtool.m4 was used?
37867macro_version=$macro_version
37868macro_revision=$macro_revision
37869
37870# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037871AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037872
37873# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037874DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037875
37876# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037877OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037878
37879# Whether or not to build shared libraries.
37880build_libtool_libs=$enable_shared
37881
37882# Whether or not to build static libraries.
37883build_old_libs=$enable_static
37884
37885# What type of objects to build.
37886pic_mode=$pic_mode
37887
37888# Whether or not to optimize for fast installation.
37889fast_install=$enable_fast_install
37890
cristy99bd5232011-12-07 14:38:20 +000037891# The PATH separator for the build system.
37892PATH_SEPARATOR=$lt_PATH_SEPARATOR
37893
cristy73bd4a52010-10-05 11:24:23 +000037894# The host system.
37895host_alias=$host_alias
37896host=$host
37897host_os=$host_os
37898
37899# The build system.
37900build_alias=$build_alias
37901build=$build
37902build_os=$build_os
37903
37904# A BSD- or MS-compatible name lister.
37905NM=$lt_NM
37906
37907# Whether we need soft or hard links.
37908LN_S=$lt_LN_S
37909
37910# What is the maximum length of a command?
37911max_cmd_len=$max_cmd_len
37912
37913# Object file suffix (normally "o").
37914objext=$ac_objext
37915
37916# Executable file suffix (normally "").
37917exeext=$exeext
37918
37919# whether the shell understands "unset".
37920lt_unset=$lt_unset
37921
37922# turn spaces into newlines.
37923SP2NL=$lt_lt_SP2NL
37924
37925# turn newlines into spaces.
37926NL2SP=$lt_lt_NL2SP
37927
cristyda16f162011-02-19 23:52:17 +000037928# convert \$build file names to \$host format.
37929to_host_file_cmd=$lt_cv_to_host_file_cmd
37930
37931# convert \$build files to toolchain format.
37932to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37933
cristy73bd4a52010-10-05 11:24:23 +000037934# Method to check whether dependent libraries are shared objects.
37935deplibs_check_method=$lt_deplibs_check_method
37936
cristyda16f162011-02-19 23:52:17 +000037937# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037938file_magic_cmd=$lt_file_magic_cmd
37939
cristyda16f162011-02-19 23:52:17 +000037940# How to find potential files when deplibs_check_method = "file_magic".
37941file_magic_glob=$lt_file_magic_glob
37942
37943# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37944want_nocaseglob=$lt_want_nocaseglob
37945
37946# Command to associate shared and link libraries.
37947sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37948
cristy73bd4a52010-10-05 11:24:23 +000037949# The archiver.
37950AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037951
37952# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037953AR_FLAGS=$lt_AR_FLAGS
37954
cristyda16f162011-02-19 23:52:17 +000037955# How to feed a file listing to the archiver.
37956archiver_list_spec=$lt_archiver_list_spec
37957
cristy73bd4a52010-10-05 11:24:23 +000037958# A symbol stripping program.
37959STRIP=$lt_STRIP
37960
37961# Commands used to install an old-style archive.
37962RANLIB=$lt_RANLIB
37963old_postinstall_cmds=$lt_old_postinstall_cmds
37964old_postuninstall_cmds=$lt_old_postuninstall_cmds
37965
cristy0c60a692010-11-04 01:09:47 +000037966# Whether to use a lock for old archive extraction.
37967lock_old_archive_extraction=$lock_old_archive_extraction
37968
cristy73bd4a52010-10-05 11:24:23 +000037969# A C compiler.
37970LTCC=$lt_CC
37971
37972# LTCC compiler flags.
37973LTCFLAGS=$lt_CFLAGS
37974
37975# Take the output of nm and produce a listing of raw symbols and C names.
37976global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37977
37978# Transform the output of nm in a proper C declaration.
37979global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37980
37981# Transform the output of nm in a C name address pair.
37982global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37983
37984# Transform the output of nm in a C name address pair when lib prefix is needed.
37985global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37986
cristyda16f162011-02-19 23:52:17 +000037987# Specify filename containing input files for \$NM.
37988nm_file_list_spec=$lt_nm_file_list_spec
37989
37990# The root where to search for dependent libraries,and in which our libraries should be installed.
37991lt_sysroot=$lt_sysroot
37992
cristy73bd4a52010-10-05 11:24:23 +000037993# The name of the directory that contains temporary libtool files.
37994objdir=$objdir
37995
cristy73bd4a52010-10-05 11:24:23 +000037996# Used to examine libraries when file_magic_cmd begins with "file".
37997MAGIC_CMD=$MAGIC_CMD
37998
37999# Must we lock files when doing compilation?
38000need_locks=$lt_need_locks
38001
cristyda16f162011-02-19 23:52:17 +000038002# Manifest tool.
38003MANIFEST_TOOL=$lt_MANIFEST_TOOL
38004
cristy73bd4a52010-10-05 11:24:23 +000038005# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38006DSYMUTIL=$lt_DSYMUTIL
38007
38008# Tool to change global to local symbols on Mac OS X.
38009NMEDIT=$lt_NMEDIT
38010
38011# Tool to manipulate fat objects and archives on Mac OS X.
38012LIPO=$lt_LIPO
38013
38014# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38015OTOOL=$lt_OTOOL
38016
38017# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38018OTOOL64=$lt_OTOOL64
38019
38020# Old archive suffix (normally "a").
38021libext=$libext
38022
38023# Shared library suffix (normally ".so").
38024shrext_cmds=$lt_shrext_cmds
38025
38026# The commands to extract the exported symbol list from a shared archive.
38027extract_expsyms_cmds=$lt_extract_expsyms_cmds
38028
38029# Variables whose values should be saved in libtool wrapper scripts and
38030# restored at link time.
38031variables_saved_for_relink=$lt_variables_saved_for_relink
38032
38033# Do we need the "lib" prefix for modules?
38034need_lib_prefix=$need_lib_prefix
38035
38036# Do we need a version for libraries?
38037need_version=$need_version
38038
38039# Library versioning type.
38040version_type=$version_type
38041
38042# Shared library runtime path variable.
38043runpath_var=$runpath_var
38044
38045# Shared library path variable.
38046shlibpath_var=$shlibpath_var
38047
38048# Is shlibpath searched before the hard-coded library search path?
38049shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38050
38051# Format of library name prefix.
38052libname_spec=$lt_libname_spec
38053
38054# List of archive names. First name is the real one, the rest are links.
38055# The last name is the one that the linker finds with -lNAME
38056library_names_spec=$lt_library_names_spec
38057
38058# The coded name of the library, if different from the real name.
38059soname_spec=$lt_soname_spec
38060
cristy0c60a692010-11-04 01:09:47 +000038061# Permission mode override for installation of shared libraries.
38062install_override_mode=$lt_install_override_mode
38063
cristy73bd4a52010-10-05 11:24:23 +000038064# Command to use after installation of a shared archive.
38065postinstall_cmds=$lt_postinstall_cmds
38066
38067# Command to use after uninstallation of a shared archive.
38068postuninstall_cmds=$lt_postuninstall_cmds
38069
38070# Commands used to finish a libtool library installation in a directory.
38071finish_cmds=$lt_finish_cmds
38072
38073# As "finish_cmds", except a single script fragment to be evaled but
38074# not shown.
38075finish_eval=$lt_finish_eval
38076
38077# Whether we should hardcode library paths into libraries.
38078hardcode_into_libs=$hardcode_into_libs
38079
38080# Compile-time system search path for libraries.
38081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38082
38083# Run-time system search path for libraries.
38084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38085
38086# Whether dlopen is supported.
38087dlopen_support=$enable_dlopen
38088
38089# Whether dlopen of programs is supported.
38090dlopen_self=$enable_dlopen_self
38091
38092# Whether dlopen of statically linked programs is supported.
38093dlopen_self_static=$enable_dlopen_self_static
38094
38095# Commands to strip libraries.
38096old_striplib=$lt_old_striplib
38097striplib=$lt_striplib
38098
38099
38100# The linker used to build libraries.
38101LD=$lt_LD
38102
cristy0c60a692010-11-04 01:09:47 +000038103# How to create reloadable object files.
38104reload_flag=$lt_reload_flag
38105reload_cmds=$lt_reload_cmds
38106
cristy73bd4a52010-10-05 11:24:23 +000038107# Commands used to build an old-style archive.
38108old_archive_cmds=$lt_old_archive_cmds
38109
38110# A language specific compiler.
38111CC=$lt_compiler
38112
38113# Is the compiler the GNU compiler?
38114with_gcc=$GCC
38115
38116# Compiler flag to turn off builtin functions.
38117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38118
cristy73bd4a52010-10-05 11:24:23 +000038119# Additional compiler flags for building library objects.
38120pic_flag=$lt_lt_prog_compiler_pic
38121
cristyda16f162011-02-19 23:52:17 +000038122# How to pass a linker flag through the compiler.
38123wl=$lt_lt_prog_compiler_wl
38124
cristy73bd4a52010-10-05 11:24:23 +000038125# Compiler flag to prevent dynamic linking.
38126link_static_flag=$lt_lt_prog_compiler_static
38127
38128# Does compiler simultaneously support -c and -o options?
38129compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38130
38131# Whether or not to add -lc for building shared libraries.
38132build_libtool_need_lc=$archive_cmds_need_lc
38133
38134# Whether or not to disallow shared libs when runtime libs are static.
38135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38136
38137# Compiler flag to allow reflexive dlopens.
38138export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38139
38140# Compiler flag to generate shared objects directly from archives.
38141whole_archive_flag_spec=$lt_whole_archive_flag_spec
38142
38143# Whether the compiler copes with passing no objects directly.
38144compiler_needs_object=$lt_compiler_needs_object
38145
38146# Create an old-style archive from a shared archive.
38147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38148
38149# Create a temporary old-style archive to link instead of a shared archive.
38150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38151
38152# Commands used to build a shared archive.
38153archive_cmds=$lt_archive_cmds
38154archive_expsym_cmds=$lt_archive_expsym_cmds
38155
38156# Commands used to build a loadable module if different from building
38157# a shared archive.
38158module_cmds=$lt_module_cmds
38159module_expsym_cmds=$lt_module_expsym_cmds
38160
38161# Whether we are building with GNU ld or not.
38162with_gnu_ld=$lt_with_gnu_ld
38163
38164# Flag that allows shared libraries with undefined symbols to be built.
38165allow_undefined_flag=$lt_allow_undefined_flag
38166
38167# Flag that enforces no undefined symbols.
38168no_undefined_flag=$lt_no_undefined_flag
38169
38170# Flag to hardcode \$libdir into a binary during linking.
38171# This must work even if \$libdir does not exist
38172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38173
cristy73bd4a52010-10-05 11:24:23 +000038174# Whether we need a single "-rpath" flag with a separated argument.
38175hardcode_libdir_separator=$lt_hardcode_libdir_separator
38176
38177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38178# DIR into the resulting binary.
38179hardcode_direct=$hardcode_direct
38180
38181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38182# DIR into the resulting binary and the resulting library dependency is
38183# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38184# library is relocated.
38185hardcode_direct_absolute=$hardcode_direct_absolute
38186
38187# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38188# into the resulting binary.
38189hardcode_minus_L=$hardcode_minus_L
38190
38191# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38192# into the resulting binary.
38193hardcode_shlibpath_var=$hardcode_shlibpath_var
38194
38195# Set to "yes" if building a shared library automatically hardcodes DIR
38196# into the library and all subsequent libraries and executables linked
38197# against it.
38198hardcode_automatic=$hardcode_automatic
38199
38200# Set to yes if linker adds runtime paths of dependent libraries
38201# to runtime path list.
38202inherit_rpath=$inherit_rpath
38203
38204# Whether libtool must link a program against all its dependency libraries.
38205link_all_deplibs=$link_all_deplibs
38206
cristy73bd4a52010-10-05 11:24:23 +000038207# Set to "yes" if exported symbols are required.
38208always_export_symbols=$always_export_symbols
38209
38210# The commands to list exported symbols.
38211export_symbols_cmds=$lt_export_symbols_cmds
38212
38213# Symbols that should not be listed in the preloaded symbols.
38214exclude_expsyms=$lt_exclude_expsyms
38215
38216# Symbols that must always be exported.
38217include_expsyms=$lt_include_expsyms
38218
38219# Commands necessary for linking programs (against libraries) with templates.
38220prelink_cmds=$lt_prelink_cmds
38221
cristyda16f162011-02-19 23:52:17 +000038222# Commands necessary for finishing linking programs.
38223postlink_cmds=$lt_postlink_cmds
38224
cristy73bd4a52010-10-05 11:24:23 +000038225# Specify filename containing input files.
38226file_list_spec=$lt_file_list_spec
38227
38228# How to hardcode a shared library path into an executable.
38229hardcode_action=$hardcode_action
38230
38231# The directories searched by this compiler when creating a shared library.
38232compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38233
38234# Dependencies to place before and after the objects being linked to
38235# create a shared library.
38236predep_objects=$lt_predep_objects
38237postdep_objects=$lt_postdep_objects
38238predeps=$lt_predeps
38239postdeps=$lt_postdeps
38240
38241# The library search path used internally by the compiler when linking
38242# a shared library.
38243compiler_lib_search_path=$lt_compiler_lib_search_path
38244
38245# ### END LIBTOOL CONFIG
38246
38247_LT_EOF
38248
38249 case $host_os in
38250 aix3*)
38251 cat <<\_LT_EOF >> "$cfgfile"
38252# AIX sometimes has problems with the GCC collect2 program. For some
38253# reason, if we set the COLLECT_NAMES environment variable, the problems
38254# vanish in a puff of smoke.
38255if test "X${COLLECT_NAMES+set}" != Xset; then
38256 COLLECT_NAMES=
38257 export COLLECT_NAMES
38258fi
38259_LT_EOF
38260 ;;
38261 esac
38262
38263
38264ltmain="$ac_aux_dir/ltmain.sh"
38265
38266
38267 # We use sed instead of cat because bash on DJGPP gets confused if
38268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38269 # text mode, it properly converts lines to CR/LF. This bash problem
38270 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038271 sed '$q' "$ltmain" >> "$cfgfile" \
38272 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038273
cristyda16f162011-02-19 23:52:17 +000038274 if test x"$xsi_shell" = xyes; then
38275 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38276func_dirname ()\
38277{\
38278\ case ${1} in\
38279\ */*) func_dirname_result="${1%/*}${2}" ;;\
38280\ * ) func_dirname_result="${3}" ;;\
38281\ esac\
38282} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38283 && mv -f "$cfgfile.tmp" "$cfgfile" \
38284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38285test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038286
38287
cristyda16f162011-02-19 23:52:17 +000038288 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38289func_basename ()\
38290{\
38291\ func_basename_result="${1##*/}"\
38292} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38293 && mv -f "$cfgfile.tmp" "$cfgfile" \
38294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38295test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038296
38297
cristyda16f162011-02-19 23:52:17 +000038298 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38299func_dirname_and_basename ()\
38300{\
38301\ case ${1} in\
38302\ */*) func_dirname_result="${1%/*}${2}" ;;\
38303\ * ) func_dirname_result="${3}" ;;\
38304\ esac\
38305\ func_basename_result="${1##*/}"\
38306} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38307 && mv -f "$cfgfile.tmp" "$cfgfile" \
38308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38309test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038310
cristyda16f162011-02-19 23:52:17 +000038311
38312 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38313func_stripname ()\
38314{\
38315\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38316\ # positional parameters, so assign one to ordinary parameter first.\
38317\ func_stripname_result=${3}\
38318\ func_stripname_result=${func_stripname_result#"${1}"}\
38319\ func_stripname_result=${func_stripname_result%"${2}"}\
38320} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38321 && mv -f "$cfgfile.tmp" "$cfgfile" \
38322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38323test 0 -eq $? || _lt_function_replace_fail=:
38324
38325
38326 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38327func_split_long_opt ()\
38328{\
38329\ func_split_long_opt_name=${1%%=*}\
38330\ func_split_long_opt_arg=${1#*=}\
38331} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38332 && mv -f "$cfgfile.tmp" "$cfgfile" \
38333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38334test 0 -eq $? || _lt_function_replace_fail=:
38335
38336
38337 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38338func_split_short_opt ()\
38339{\
38340\ func_split_short_opt_arg=${1#??}\
38341\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38342} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38343 && mv -f "$cfgfile.tmp" "$cfgfile" \
38344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38345test 0 -eq $? || _lt_function_replace_fail=:
38346
38347
38348 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38349func_lo2o ()\
38350{\
38351\ case ${1} in\
38352\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38353\ *) func_lo2o_result=${1} ;;\
38354\ esac\
38355} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38356 && mv -f "$cfgfile.tmp" "$cfgfile" \
38357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38358test 0 -eq $? || _lt_function_replace_fail=:
38359
38360
38361 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38362func_xform ()\
38363{\
38364 func_xform_result=${1%.*}.lo\
38365} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38366 && mv -f "$cfgfile.tmp" "$cfgfile" \
38367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38368test 0 -eq $? || _lt_function_replace_fail=:
38369
38370
38371 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38372func_arith ()\
38373{\
38374 func_arith_result=$(( $* ))\
38375} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38376 && mv -f "$cfgfile.tmp" "$cfgfile" \
38377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38378test 0 -eq $? || _lt_function_replace_fail=:
38379
38380
38381 sed -e '/^func_len ()$/,/^} # func_len /c\
38382func_len ()\
38383{\
38384 func_len_result=${#1}\
38385} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38386 && mv -f "$cfgfile.tmp" "$cfgfile" \
38387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38388test 0 -eq $? || _lt_function_replace_fail=:
38389
38390fi
38391
38392if test x"$lt_shell_append" = xyes; then
38393 sed -e '/^func_append ()$/,/^} # func_append /c\
38394func_append ()\
38395{\
38396 eval "${1}+=\\${2}"\
38397} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38398 && mv -f "$cfgfile.tmp" "$cfgfile" \
38399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38400test 0 -eq $? || _lt_function_replace_fail=:
38401
38402
38403 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38404func_append_quoted ()\
38405{\
38406\ func_quote_for_eval "${2}"\
38407\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38408} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38409 && mv -f "$cfgfile.tmp" "$cfgfile" \
38410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38411test 0 -eq $? || _lt_function_replace_fail=:
38412
38413
38414 # Save a `func_append' function call where possible by direct use of '+='
38415 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38416 && mv -f "$cfgfile.tmp" "$cfgfile" \
38417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38418 test 0 -eq $? || _lt_function_replace_fail=:
38419else
38420 # Save a `func_append' function call even when '+=' is not available
38421 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38422 && mv -f "$cfgfile.tmp" "$cfgfile" \
38423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38424 test 0 -eq $? || _lt_function_replace_fail=:
38425fi
38426
38427if test x"$_lt_function_replace_fail" = x":"; then
38428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38429$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38430fi
38431
38432
38433 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38435 chmod +x "$ofile"
38436
38437
38438 cat <<_LT_EOF >> "$ofile"
38439
38440# ### BEGIN LIBTOOL TAG CONFIG: CXX
38441
38442# The linker used to build libraries.
38443LD=$lt_LD_CXX
38444
cristy0c60a692010-11-04 01:09:47 +000038445# How to create reloadable object files.
38446reload_flag=$lt_reload_flag_CXX
38447reload_cmds=$lt_reload_cmds_CXX
38448
cristy73bd4a52010-10-05 11:24:23 +000038449# Commands used to build an old-style archive.
38450old_archive_cmds=$lt_old_archive_cmds_CXX
38451
38452# A language specific compiler.
38453CC=$lt_compiler_CXX
38454
38455# Is the compiler the GNU compiler?
38456with_gcc=$GCC_CXX
38457
38458# Compiler flag to turn off builtin functions.
38459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38460
cristy73bd4a52010-10-05 11:24:23 +000038461# Additional compiler flags for building library objects.
38462pic_flag=$lt_lt_prog_compiler_pic_CXX
38463
cristyda16f162011-02-19 23:52:17 +000038464# How to pass a linker flag through the compiler.
38465wl=$lt_lt_prog_compiler_wl_CXX
38466
cristy73bd4a52010-10-05 11:24:23 +000038467# Compiler flag to prevent dynamic linking.
38468link_static_flag=$lt_lt_prog_compiler_static_CXX
38469
38470# Does compiler simultaneously support -c and -o options?
38471compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38472
38473# Whether or not to add -lc for building shared libraries.
38474build_libtool_need_lc=$archive_cmds_need_lc_CXX
38475
38476# Whether or not to disallow shared libs when runtime libs are static.
38477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38478
38479# Compiler flag to allow reflexive dlopens.
38480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38481
38482# Compiler flag to generate shared objects directly from archives.
38483whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38484
38485# Whether the compiler copes with passing no objects directly.
38486compiler_needs_object=$lt_compiler_needs_object_CXX
38487
38488# Create an old-style archive from a shared archive.
38489old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38490
38491# Create a temporary old-style archive to link instead of a shared archive.
38492old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38493
38494# Commands used to build a shared archive.
38495archive_cmds=$lt_archive_cmds_CXX
38496archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38497
38498# Commands used to build a loadable module if different from building
38499# a shared archive.
38500module_cmds=$lt_module_cmds_CXX
38501module_expsym_cmds=$lt_module_expsym_cmds_CXX
38502
38503# Whether we are building with GNU ld or not.
38504with_gnu_ld=$lt_with_gnu_ld_CXX
38505
38506# Flag that allows shared libraries with undefined symbols to be built.
38507allow_undefined_flag=$lt_allow_undefined_flag_CXX
38508
38509# Flag that enforces no undefined symbols.
38510no_undefined_flag=$lt_no_undefined_flag_CXX
38511
38512# Flag to hardcode \$libdir into a binary during linking.
38513# This must work even if \$libdir does not exist
38514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38515
cristy73bd4a52010-10-05 11:24:23 +000038516# Whether we need a single "-rpath" flag with a separated argument.
38517hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38518
38519# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38520# DIR into the resulting binary.
38521hardcode_direct=$hardcode_direct_CXX
38522
38523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38524# DIR into the resulting binary and the resulting library dependency is
38525# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38526# library is relocated.
38527hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38528
38529# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38530# into the resulting binary.
38531hardcode_minus_L=$hardcode_minus_L_CXX
38532
38533# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38534# into the resulting binary.
38535hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38536
38537# Set to "yes" if building a shared library automatically hardcodes DIR
38538# into the library and all subsequent libraries and executables linked
38539# against it.
38540hardcode_automatic=$hardcode_automatic_CXX
38541
38542# Set to yes if linker adds runtime paths of dependent libraries
38543# to runtime path list.
38544inherit_rpath=$inherit_rpath_CXX
38545
38546# Whether libtool must link a program against all its dependency libraries.
38547link_all_deplibs=$link_all_deplibs_CXX
38548
cristy73bd4a52010-10-05 11:24:23 +000038549# Set to "yes" if exported symbols are required.
38550always_export_symbols=$always_export_symbols_CXX
38551
38552# The commands to list exported symbols.
38553export_symbols_cmds=$lt_export_symbols_cmds_CXX
38554
38555# Symbols that should not be listed in the preloaded symbols.
38556exclude_expsyms=$lt_exclude_expsyms_CXX
38557
38558# Symbols that must always be exported.
38559include_expsyms=$lt_include_expsyms_CXX
38560
38561# Commands necessary for linking programs (against libraries) with templates.
38562prelink_cmds=$lt_prelink_cmds_CXX
38563
cristyda16f162011-02-19 23:52:17 +000038564# Commands necessary for finishing linking programs.
38565postlink_cmds=$lt_postlink_cmds_CXX
38566
cristy73bd4a52010-10-05 11:24:23 +000038567# Specify filename containing input files.
38568file_list_spec=$lt_file_list_spec_CXX
38569
38570# How to hardcode a shared library path into an executable.
38571hardcode_action=$hardcode_action_CXX
38572
38573# The directories searched by this compiler when creating a shared library.
38574compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38575
38576# Dependencies to place before and after the objects being linked to
38577# create a shared library.
38578predep_objects=$lt_predep_objects_CXX
38579postdep_objects=$lt_postdep_objects_CXX
38580predeps=$lt_predeps_CXX
38581postdeps=$lt_postdeps_CXX
38582
38583# The library search path used internally by the compiler when linking
38584# a shared library.
38585compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38586
38587# ### END LIBTOOL TAG CONFIG: CXX
38588_LT_EOF
38589
38590 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038591 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038592 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038593 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038594 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38595 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38596
38597 esac
38598done # for ac_tag
38599
38600
cristy8b350f62009-11-15 23:12:43 +000038601as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038602_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038603ac_clean_files=$ac_clean_files_save
38604
38605test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038606 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038607
38608
38609# configure is writing to config.log, and then calls config.status.
38610# config.status does its own redirection, appending to config.log.
38611# Unfortunately, on DOS this fails, as config.log is still kept open
38612# by configure, so config.status won't be able to write to it; its
38613# output is simply discarded. So we exec the FD to /dev/null,
38614# effectively closing config.log, so it can be properly (re)opened and
38615# appended to by config.status. When coming back to configure, we
38616# need to make the FD available again.
38617if test "$no_create" != yes; then
38618 ac_cs_success=:
38619 ac_config_status_args=
38620 test "$silent" = yes &&
38621 ac_config_status_args="$ac_config_status_args --quiet"
38622 exec 5>/dev/null
38623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38624 exec 5>>config.log
38625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38626 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038627 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038628fi
38629if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038631$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38632fi
38633
38634
38635rm -f magick-version
38636
cristy430a7312010-01-21 20:44:04 +000038637result_dejavu_font_dir='none'
38638if test "${dejavu_font_dir}x" != 'x'; then
38639 result_dejavu_font_dir=$dejavu_font_dir
38640fi
38641
cristy3ed852e2009-09-05 21:47:34 +000038642result_ghostscript_font_dir='none'
38643if test "${ghostscript_font_dir}x" != 'x'; then
38644 result_ghostscript_font_dir=$ghostscript_font_dir
38645fi
38646
38647result_windows_font_dir='none'
38648if test "${windows_font_dir}x" != 'x'; then
38649 result_windows_font_dir=${windows_font_dir}
38650fi
38651
cristyad38abe2012-12-23 23:03:21 +000038652{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038653ImageMagick is configured as follows. Please verify that this configuration
38654matches your expectations.
38655
38656Host system type: $host
38657Build system type: $build
38658
38659 Option Value
38660-------------------------------------------------------------------------------
38661Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38662Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038663Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038664GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38665Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38666High Dynamic Range Imagery
38667 --enable-hdri=$enable_hdri $enable_hdri
38668
38669Delegate Configuration:
38670BZLIB --with-bzlib=$with_bzlib $have_bzlib
38671Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038672Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038673DJVU --with-djvu=$with_djvu $have_djvu
38674DPS --with-dps=$with_dps $have_dps
38675FFTW --with-fftw=$with_fftw $have_fftw
38676FlashPIX --with-fpx=$with_fpx $have_fpx
38677FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38678FreeType --with-freetype=$with_freetype $have_freetype
38679GhostPCL None $PCLDelegate ($PCLVersion)
38680GhostXPS None $XPSDelegate ($XPSVersion)
38681Ghostscript None $PSDelegate ($GSVersion)
38682Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38683Ghostscript lib --with-gslib=$with_gslib $have_gslib
38684Graphviz --with-gvc=$with_gvc $have_gvc
38685JBIG --with-jbig=$with_jbig $have_jbig
38686JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38687JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038688LCMS v1 --with-lcms=$with_lcms $have_lcms
38689LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038690LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038691LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038692LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038693Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38694OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038695PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038696PERL --with-perl=$with_perl $have_perl
38697PNG --with-png=$with_png $have_png
38698RSVG --with-rsvg=$with_rsvg $have_rsvg
38699TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038700WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038701Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038702WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038703X11 --with-x=$with_x $have_x
38704XML --with-xml=$with_xml $have_xml
38705ZLIB --with-zlib=$with_zlib $have_zlib
38706
38707X11 Configuration:
38708 X_CFLAGS = $X_CFLAGS
38709 X_PRE_LIBS = $X_PRE_LIBS
38710 X_LIBS = $X_LIBS
38711 X_EXTRA_LIBS = $X_EXTRA_LIBS
38712
38713Options used to compile and link:
38714 PREFIX = $PREFIX_DIR
38715 EXEC-PREFIX = $EXEC_PREFIX_DIR
38716 VERSION = $PACKAGE_VERSION
38717 CC = $CC
38718 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038719 CPPFLAGS = $MAGICK_CPPFLAGS
38720 PCFLAGS = $MAGICK_PCFLAGS
38721 DEFS = $DEFS
38722 LDFLAGS = $LDFLAGS
38723 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38724 LIBS = $MAGICK_LIBS
38725 CXX = $CXX
38726 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038727 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038728 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038729" >&5
cristyad38abe2012-12-23 23:03:21 +000038730$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038731ImageMagick is configured as follows. Please verify that this configuration
38732matches your expectations.
38733
38734Host system type: $host
38735Build system type: $build
38736
38737 Option Value
38738-------------------------------------------------------------------------------
38739Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38740Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038741Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038742GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38743Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38744High Dynamic Range Imagery
38745 --enable-hdri=$enable_hdri $enable_hdri
38746
38747Delegate Configuration:
38748BZLIB --with-bzlib=$with_bzlib $have_bzlib
38749Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038750Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038751DJVU --with-djvu=$with_djvu $have_djvu
38752DPS --with-dps=$with_dps $have_dps
38753FFTW --with-fftw=$with_fftw $have_fftw
38754FlashPIX --with-fpx=$with_fpx $have_fpx
38755FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38756FreeType --with-freetype=$with_freetype $have_freetype
38757GhostPCL None $PCLDelegate ($PCLVersion)
38758GhostXPS None $XPSDelegate ($XPSVersion)
38759Ghostscript None $PSDelegate ($GSVersion)
38760Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38761Ghostscript lib --with-gslib=$with_gslib $have_gslib
38762Graphviz --with-gvc=$with_gvc $have_gvc
38763JBIG --with-jbig=$with_jbig $have_jbig
38764JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38765JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038766LCMS v1 --with-lcms=$with_lcms $have_lcms
38767LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038768LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038769LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038770LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038771Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38772OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038773PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038774PERL --with-perl=$with_perl $have_perl
38775PNG --with-png=$with_png $have_png
38776RSVG --with-rsvg=$with_rsvg $have_rsvg
38777TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038778WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038779Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038780WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038781X11 --with-x=$with_x $have_x
38782XML --with-xml=$with_xml $have_xml
38783ZLIB --with-zlib=$with_zlib $have_zlib
38784
38785X11 Configuration:
38786 X_CFLAGS = $X_CFLAGS
38787 X_PRE_LIBS = $X_PRE_LIBS
38788 X_LIBS = $X_LIBS
38789 X_EXTRA_LIBS = $X_EXTRA_LIBS
38790
38791Options used to compile and link:
38792 PREFIX = $PREFIX_DIR
38793 EXEC-PREFIX = $EXEC_PREFIX_DIR
38794 VERSION = $PACKAGE_VERSION
38795 CC = $CC
38796 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038797 CPPFLAGS = $MAGICK_CPPFLAGS
38798 PCFLAGS = $MAGICK_PCFLAGS
38799 DEFS = $DEFS
38800 LDFLAGS = $LDFLAGS
38801 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38802 LIBS = $MAGICK_LIBS
38803 CXX = $CXX
38804 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038805 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038806 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038807" >&6; }