blob: e239aa66f044fc46d541c21d5241640c5df70ba6 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristy9e007fe2015-01-03 16:05:07 +0000970ac_ct_AR
971AR
cristya0b81c32010-01-22 02:54:33 +0000972EGREP
973GREP
974CPP
cristy73bd4a52010-10-05 11:24:23 +0000975am__fastdepCC_FALSE
976am__fastdepCC_TRUE
977CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000978am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000979AMDEPBACKSLASH
980AMDEP_FALSE
981AMDEP_TRUE
982am__quote
983am__include
984DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000985OBJEXT
986EXEEXT
987ac_ct_CC
988CPPFLAGS
989LDFLAGS
990CFLAGS
991CC
992DIRSEP
993MAGICK_FILTER_MODULE_PATH
994MAGICK_CONFIGURE_BUILD_PATH
995MAGICK_CONFIGURE_SRC_PATH
996MAGICK_CODER_MODULE_PATH
997MAN_DIR
998INFO_DIR
999PERSISTINCLUDE_DIR
1000INCLUDE_DIR
1001LIB_DIR
1002LOCALSTATE_DIR
1003SHAREDSTATE_DIR
1004SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001005DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001006DATA_DIR
1007LIBEXEC_DIR
1008SBIN_DIR
1009BIN_DIR
1010EXEC_PREFIX_DIR
1011PREFIX_DIR
1012CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001013MAGICKPP_LIB_VERSION_TEXT
1014MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001015MAGICK_LIB_VERSION_NUMBER
1016MAGICK_LIB_VERSION_TEXT
1017MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001018PACKAGE_VERSION_ADDENDUM
1019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
1024PACKAGE_PERL_VERSION
1025MAGICKPP_LIBRARY_VERSION_INFO
1026MAGICKPP_LIBRARY_CURRENT_MIN
1027MAGICKPP_LIBRARY_AGE
1028MAGICKPP_LIBRARY_REVISION
1029MAGICKPP_LIBRARY_CURRENT
1030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
1032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
1035MAGICK_SVN_REVISION
1036MAGICK_VERSION
1037MAGICK_PATCHLEVEL_VERSION
1038MAGICK_MICRO_VERSION
1039MAGICK_MINOR_VERSION
1040MAGICK_MAJOR_VERSION
1041MAGICK_TARGET_OS
1042MAGICK_TARGET_VENDOR
1043MAGICK_TARGET_CPU
1044CONFIGURE_ARGS
1045DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001046AM_BACKSLASH
1047AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001048AM_DEFAULT_V
1049AM_V
cristy73bd4a52010-10-05 11:24:23 +00001050am__untar
1051am__tar
1052AMTAR
1053am__leading_dot
1054SET_MAKE
1055AWK
1056mkdir_p
1057MKDIR_P
1058INSTALL_STRIP_PROGRAM
1059STRIP
1060install_sh
1061MAKEINFO
1062AUTOHEADER
1063AUTOMAKE
1064AUTOCONF
1065ACLOCAL
1066VERSION
1067PACKAGE
1068CYGPATH_W
1069am__isrc
1070INSTALL_DATA
1071INSTALL_SCRIPT
1072INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001073target_os
1074target_vendor
1075target_cpu
1076target
1077host_os
1078host_vendor
1079host_cpu
1080host
1081build_os
1082build_vendor
1083build_cpu
1084build
cristy3ed852e2009-09-05 21:47:34 +00001085target_alias
1086host_alias
1087build_alias
1088LIBS
1089ECHO_T
1090ECHO_N
1091ECHO_C
1092DEFS
1093mandir
1094localedir
1095libdir
1096psdir
1097pdfdir
1098dvidir
1099htmldir
1100infodir
1101docdir
1102oldincludedir
1103includedir
1104localstatedir
1105sharedstatedir
1106sysconfdir
1107datadir
1108datarootdir
1109libexecdir
1110sbindir
1111bindir
1112program_transform_name
1113prefix
1114exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001115PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001116PACKAGE_BUGREPORT
1117PACKAGE_STRING
1118PACKAGE_VERSION
1119PACKAGE_TARNAME
1120PACKAGE_NAME
1121PATH_SEPARATOR
1122SHELL'
1123ac_subst_files=''
1124ac_user_opts='
1125enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001126enable_silent_rules
1127enable_dependency_tracking
1128with_gnu_ld
1129with_dmalloc
cristya0459972013-11-03 18:09:35 +00001130with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001131enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001132enable_bounds_checking
1133enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001134with_includearch_dir
1135with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001136with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001137with_threads
1138enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001139enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001140enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001141enable_shared
1142enable_static
1143with_pic
1144enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001145with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001146enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001147with_modules
1148enable_delegate_build
1149enable_deprecated
1150enable_installed
1151enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001152enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001153enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001154enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001155enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001156enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001157enable_ccmalloc
1158enable_efence
1159enable_prof
1160enable_gprof
1161enable_gcov
1162with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001163enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001164with_quantum_depth
1165with_cache
1166with_frozenpaths
1167with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001168with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001169with_perl
1170with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001171with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001172with_umem
1173with_libstdc
1174with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001175with_x
cristy3ed852e2009-09-05 21:47:34 +00001176with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001177with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001178with_autotrace
1179with_dps
cristy430a7312010-01-21 20:44:04 +00001180with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001181with_fftw
1182with_fpx
cristy853d9902014-08-21 18:50:43 +00001183with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001184with_fontconfig
1185with_freetype
1186with_gslib
1187with_fontpath
1188with_gs_font_dir
1189with_gvc
1190with_jbig
1191with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001192with_lcms
cristy71203402010-06-18 13:12:03 +00001193with_lcms2
cristy99db3872014-01-01 15:11:34 +00001194with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001195with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001196with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001197with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001198with_pango
cristy3ed852e2009-09-05 21:47:34 +00001199with_png
1200with_rsvg
1201with_tiff
cristyb1860752011-03-14 00:27:46 +00001202with_webp
cristy3ed852e2009-09-05 21:47:34 +00001203with_windows_font_dir
1204with_wmf
1205with_xml
cristydd17feb2014-03-05 02:06:32 +00001206enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001207'
1208 ac_precious_vars='build_alias
1209host_alias
1210target_alias
1211CC
1212CFLAGS
1213LDFLAGS
1214LIBS
1215CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001216CPP
cristy3ed852e2009-09-05 21:47:34 +00001217CXX
1218CXXFLAGS
1219CCC
cristy73bd4a52010-10-05 11:24:23 +00001220PKG_CONFIG
1221CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001222XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001223AUTOTRACE_CFLAGS
1224AUTOTRACE_LIBS
1225FONTCONFIG_CFLAGS
1226FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001227FREETYPE_CFLAGS
1228FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229GVC_CFLAGS
1230GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001231LIBOPENJP2_CFLAGS
1232LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233LQR_CFLAGS
1234LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001235LZMA_CFLAGS
1236LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001237OPENEXR_CFLAGS
1238OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001239PANGO_CFLAGS
1240PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001241RSVG_CFLAGS
1242RSVG_LIBS
1243CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001244CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001245
1246
1247# Initialize some variables set by options.
1248ac_init_help=
1249ac_init_version=false
1250ac_unrecognized_opts=
1251ac_unrecognized_sep=
1252# The variables have the same names as the options, with
1253# dashes changed to underlines.
1254cache_file=/dev/null
1255exec_prefix=NONE
1256no_create=
1257no_recursion=
1258prefix=NONE
1259program_prefix=NONE
1260program_suffix=NONE
1261program_transform_name=s,x,x,
1262silent=
1263site=
1264srcdir=
1265verbose=
1266x_includes=NONE
1267x_libraries=NONE
1268
1269# Installation directory options.
1270# These are left unexpanded so users can "make install exec_prefix=/foo"
1271# and all the variables that are supposed to be based on exec_prefix
1272# by default will actually change.
1273# Use braces instead of parens because sh, perl, etc. also accept them.
1274# (The list follows the same order as the GNU Coding Standards.)
1275bindir='${exec_prefix}/bin'
1276sbindir='${exec_prefix}/sbin'
1277libexecdir='${exec_prefix}/libexec'
1278datarootdir='${prefix}/share'
1279datadir='${datarootdir}'
1280sysconfdir='${prefix}/etc'
1281sharedstatedir='${prefix}/com'
1282localstatedir='${prefix}/var'
1283includedir='${prefix}/include'
1284oldincludedir='/usr/include'
1285docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1286infodir='${datarootdir}/info'
1287htmldir='${docdir}'
1288dvidir='${docdir}'
1289pdfdir='${docdir}'
1290psdir='${docdir}'
1291libdir='${exec_prefix}/lib'
1292localedir='${datarootdir}/locale'
1293mandir='${datarootdir}/man'
1294
1295ac_prev=
1296ac_dashdash=
1297for ac_option
1298do
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\$ac_option
1302 ac_prev=
1303 continue
1304 fi
1305
1306 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001307 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 *=) ac_optarg= ;;
1309 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001310 esac
1311
1312 # Accept the important Cygnus configure options, so we can diagnose typos.
1313
1314 case $ac_dashdash$ac_option in
1315 --)
1316 ac_dashdash=yes ;;
1317
1318 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1319 ac_prev=bindir ;;
1320 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1321 bindir=$ac_optarg ;;
1322
1323 -build | --build | --buil | --bui | --bu)
1324 ac_prev=build_alias ;;
1325 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1326 build_alias=$ac_optarg ;;
1327
1328 -cache-file | --cache-file | --cache-fil | --cache-fi \
1329 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1330 ac_prev=cache_file ;;
1331 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1332 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1333 cache_file=$ac_optarg ;;
1334
1335 --config-cache | -C)
1336 cache_file=config.cache ;;
1337
1338 -datadir | --datadir | --datadi | --datad)
1339 ac_prev=datadir ;;
1340 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1341 datadir=$ac_optarg ;;
1342
1343 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1344 | --dataroo | --dataro | --datar)
1345 ac_prev=datarootdir ;;
1346 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1347 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1348 datarootdir=$ac_optarg ;;
1349
1350 -disable-* | --disable-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001354 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1358 *"
1359"enable_$ac_useropt"
1360"*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval enable_$ac_useropt=no ;;
1365
1366 -docdir | --docdir | --docdi | --doc | --do)
1367 ac_prev=docdir ;;
1368 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1369 docdir=$ac_optarg ;;
1370
1371 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1372 ac_prev=dvidir ;;
1373 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1374 dvidir=$ac_optarg ;;
1375
1376 -enable-* | --enable-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001380 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1384 *"
1385"enable_$ac_useropt"
1386"*) ;;
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1389 esac
1390 eval enable_$ac_useropt=\$ac_optarg ;;
1391
1392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1394 | --exec | --exe | --ex)
1395 ac_prev=exec_prefix ;;
1396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1398 | --exec=* | --exe=* | --ex=*)
1399 exec_prefix=$ac_optarg ;;
1400
1401 -gas | --gas | --ga | --g)
1402 # Obsolete; use --with-gas.
1403 with_gas=yes ;;
1404
1405 -help | --help | --hel | --he | -h)
1406 ac_init_help=long ;;
1407 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1408 ac_init_help=recursive ;;
1409 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1410 ac_init_help=short ;;
1411
1412 -host | --host | --hos | --ho)
1413 ac_prev=host_alias ;;
1414 -host=* | --host=* | --hos=* | --ho=*)
1415 host_alias=$ac_optarg ;;
1416
1417 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1418 ac_prev=htmldir ;;
1419 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1420 | --ht=*)
1421 htmldir=$ac_optarg ;;
1422
1423 -includedir | --includedir | --includedi | --included | --include \
1424 | --includ | --inclu | --incl | --inc)
1425 ac_prev=includedir ;;
1426 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1427 | --includ=* | --inclu=* | --incl=* | --inc=*)
1428 includedir=$ac_optarg ;;
1429
1430 -infodir | --infodir | --infodi | --infod | --info | --inf)
1431 ac_prev=infodir ;;
1432 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1433 infodir=$ac_optarg ;;
1434
1435 -libdir | --libdir | --libdi | --libd)
1436 ac_prev=libdir ;;
1437 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1438 libdir=$ac_optarg ;;
1439
1440 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1441 | --libexe | --libex | --libe)
1442 ac_prev=libexecdir ;;
1443 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1444 | --libexe=* | --libex=* | --libe=*)
1445 libexecdir=$ac_optarg ;;
1446
1447 -localedir | --localedir | --localedi | --localed | --locale)
1448 ac_prev=localedir ;;
1449 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1450 localedir=$ac_optarg ;;
1451
1452 -localstatedir | --localstatedir | --localstatedi | --localstated \
1453 | --localstate | --localstat | --localsta | --localst | --locals)
1454 ac_prev=localstatedir ;;
1455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1456 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1457 localstatedir=$ac_optarg ;;
1458
1459 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1460 ac_prev=mandir ;;
1461 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1462 mandir=$ac_optarg ;;
1463
1464 -nfp | --nfp | --nf)
1465 # Obsolete; use --without-fp.
1466 with_fp=no ;;
1467
1468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1469 | --no-cr | --no-c | -n)
1470 no_create=yes ;;
1471
1472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1474 no_recursion=yes ;;
1475
1476 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1477 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1478 | --oldin | --oldi | --old | --ol | --o)
1479 ac_prev=oldincludedir ;;
1480 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1481 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1482 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1483 oldincludedir=$ac_optarg ;;
1484
1485 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1486 ac_prev=prefix ;;
1487 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1488 prefix=$ac_optarg ;;
1489
1490 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1491 | --program-pre | --program-pr | --program-p)
1492 ac_prev=program_prefix ;;
1493 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1494 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1495 program_prefix=$ac_optarg ;;
1496
1497 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1498 | --program-suf | --program-su | --program-s)
1499 ac_prev=program_suffix ;;
1500 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1501 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1502 program_suffix=$ac_optarg ;;
1503
1504 -program-transform-name | --program-transform-name \
1505 | --program-transform-nam | --program-transform-na \
1506 | --program-transform-n | --program-transform- \
1507 | --program-transform | --program-transfor \
1508 | --program-transfo | --program-transf \
1509 | --program-trans | --program-tran \
1510 | --progr-tra | --program-tr | --program-t)
1511 ac_prev=program_transform_name ;;
1512 -program-transform-name=* | --program-transform-name=* \
1513 | --program-transform-nam=* | --program-transform-na=* \
1514 | --program-transform-n=* | --program-transform-=* \
1515 | --program-transform=* | --program-transfor=* \
1516 | --program-transfo=* | --program-transf=* \
1517 | --program-trans=* | --program-tran=* \
1518 | --progr-tra=* | --program-tr=* | --program-t=*)
1519 program_transform_name=$ac_optarg ;;
1520
1521 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1522 ac_prev=pdfdir ;;
1523 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1524 pdfdir=$ac_optarg ;;
1525
1526 -psdir | --psdir | --psdi | --psd | --ps)
1527 ac_prev=psdir ;;
1528 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1529 psdir=$ac_optarg ;;
1530
1531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1532 | -silent | --silent | --silen | --sile | --sil)
1533 silent=yes ;;
1534
1535 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1536 ac_prev=sbindir ;;
1537 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1538 | --sbi=* | --sb=*)
1539 sbindir=$ac_optarg ;;
1540
1541 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1542 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1543 | --sharedst | --shareds | --shared | --share | --shar \
1544 | --sha | --sh)
1545 ac_prev=sharedstatedir ;;
1546 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1547 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1548 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1549 | --sha=* | --sh=*)
1550 sharedstatedir=$ac_optarg ;;
1551
1552 -site | --site | --sit)
1553 ac_prev=site ;;
1554 -site=* | --site=* | --sit=*)
1555 site=$ac_optarg ;;
1556
1557 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1558 ac_prev=srcdir ;;
1559 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1560 srcdir=$ac_optarg ;;
1561
1562 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1563 | --syscon | --sysco | --sysc | --sys | --sy)
1564 ac_prev=sysconfdir ;;
1565 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1566 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1567 sysconfdir=$ac_optarg ;;
1568
1569 -target | --target | --targe | --targ | --tar | --ta | --t)
1570 ac_prev=target_alias ;;
1571 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1572 target_alias=$ac_optarg ;;
1573
1574 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1575 verbose=yes ;;
1576
1577 -version | --version | --versio | --versi | --vers | -V)
1578 ac_init_version=: ;;
1579
1580 -with-* | --with-*)
1581 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1582 # Reject names that are not valid shell variable names.
1583 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001584 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001585 ac_useropt_orig=$ac_useropt
1586 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1587 case $ac_user_opts in
1588 *"
1589"with_$ac_useropt"
1590"*) ;;
1591 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1592 ac_unrecognized_sep=', ';;
1593 esac
1594 eval with_$ac_useropt=\$ac_optarg ;;
1595
1596 -without-* | --without-*)
1597 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1598 # Reject names that are not valid shell variable names.
1599 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001600 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001601 ac_useropt_orig=$ac_useropt
1602 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1603 case $ac_user_opts in
1604 *"
1605"with_$ac_useropt"
1606"*) ;;
1607 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1608 ac_unrecognized_sep=', ';;
1609 esac
1610 eval with_$ac_useropt=no ;;
1611
1612 --x)
1613 # Obsolete; use --with-x.
1614 with_x=yes ;;
1615
1616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1617 | --x-incl | --x-inc | --x-in | --x-i)
1618 ac_prev=x_includes ;;
1619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1621 x_includes=$ac_optarg ;;
1622
1623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1625 ac_prev=x_libraries ;;
1626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1628 x_libraries=$ac_optarg ;;
1629
cristy98dddb52010-11-04 00:30:15 +00001630 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1631Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001632 ;;
1633
1634 *=*)
1635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1636 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001637 case $ac_envvar in #(
1638 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001639 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001640 esac
cristy3ed852e2009-09-05 21:47:34 +00001641 eval $ac_envvar=\$ac_optarg
1642 export $ac_envvar ;;
1643
1644 *)
1645 # FIXME: should be removed in autoconf 3.0.
1646 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1648 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001649 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001650 ;;
1651
1652 esac
1653done
1654
1655if test -n "$ac_prev"; then
1656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001657 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001658fi
1659
1660if test -n "$ac_unrecognized_opts"; then
1661 case $enable_option_checking in
1662 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001663 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001664 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1665 esac
1666fi
1667
1668# Check all directory arguments for consistency.
1669for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1670 datadir sysconfdir sharedstatedir localstatedir includedir \
1671 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1672 libdir localedir mandir
1673do
1674 eval ac_val=\$$ac_var
1675 # Remove trailing slashes.
1676 case $ac_val in
1677 */ )
1678 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1679 eval $ac_var=\$ac_val;;
1680 esac
1681 # Be sure to have absolute directory names.
1682 case $ac_val in
1683 [\\/$]* | ?:[\\/]* ) continue;;
1684 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1685 esac
cristy98dddb52010-11-04 00:30:15 +00001686 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001687done
1688
1689# There might be people who depend on the old broken behavior: `$host'
1690# used to hold the argument of --host etc.
1691# FIXME: To remove some day.
1692build=$build_alias
1693host=$host_alias
1694target=$target_alias
1695
1696# FIXME: To remove some day.
1697if test "x$host_alias" != x; then
1698 if test "x$build_alias" = x; then
1699 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001700 elif test "x$build_alias" != "x$host_alias"; then
1701 cross_compiling=yes
1702 fi
1703fi
1704
1705ac_tool_prefix=
1706test -n "$host_alias" && ac_tool_prefix=$host_alias-
1707
1708test "$silent" = yes && exec 6>/dev/null
1709
1710
1711ac_pwd=`pwd` && test -n "$ac_pwd" &&
1712ac_ls_di=`ls -di .` &&
1713ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001714 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001715test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001717
1718
1719# Find the source files, if location was not specified.
1720if test -z "$srcdir"; then
1721 ac_srcdir_defaulted=yes
1722 # Try the directory containing this script, then the parent directory.
1723 ac_confdir=`$as_dirname -- "$as_myself" ||
1724$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1725 X"$as_myself" : 'X\(//\)[^/]' \| \
1726 X"$as_myself" : 'X\(//\)$' \| \
1727 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1728$as_echo X"$as_myself" |
1729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\/\)[^/].*/{
1734 s//\1/
1735 q
1736 }
1737 /^X\(\/\/\)$/{
1738 s//\1/
1739 q
1740 }
1741 /^X\(\/\).*/{
1742 s//\1/
1743 q
1744 }
1745 s/.*/./; q'`
1746 srcdir=$ac_confdir
1747 if test ! -r "$srcdir/$ac_unique_file"; then
1748 srcdir=..
1749 fi
1750else
1751 ac_srcdir_defaulted=no
1752fi
1753if test ! -r "$srcdir/$ac_unique_file"; then
1754 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001755 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001756fi
1757ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1758ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001759 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001760 pwd)`
1761# When building in place, set srcdir=.
1762if test "$ac_abs_confdir" = "$ac_pwd"; then
1763 srcdir=.
1764fi
1765# Remove unnecessary trailing slashes from srcdir.
1766# Double slashes in file names in object file debugging info
1767# mess up M-x gdb in Emacs.
1768case $srcdir in
1769*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1770esac
1771for ac_var in $ac_precious_vars; do
1772 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1773 eval ac_env_${ac_var}_value=\$${ac_var}
1774 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1775 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1776done
1777
1778#
1779# Report the --help message.
1780#
1781if test "$ac_init_help" = "long"; then
1782 # Omit some internal or obsolete options to make the list less imposing.
1783 # This message is too long to be a string in the A/UX 3.1 sh.
1784 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001785\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001786
1787Usage: $0 [OPTION]... [VAR=VALUE]...
1788
1789To assign environment variables (e.g., CC, CFLAGS...), specify them as
1790VAR=VALUE. See below for descriptions of some of the useful variables.
1791
1792Defaults for the options are specified in brackets.
1793
1794Configuration:
1795 -h, --help display this help and exit
1796 --help=short display options specific to this package
1797 --help=recursive display the short help of all the included packages
1798 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001799 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001800 --cache-file=FILE cache test results in FILE [disabled]
1801 -C, --config-cache alias for \`--cache-file=config.cache'
1802 -n, --no-create do not create output files
1803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1804
1805Installation directories:
1806 --prefix=PREFIX install architecture-independent files in PREFIX
1807 [$ac_default_prefix]
1808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1809 [PREFIX]
1810
1811By default, \`make install' will install all the files in
1812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1814for instance \`--prefix=\$HOME'.
1815
1816For better control, use the options below.
1817
1818Fine tuning of the installation directories:
1819 --bindir=DIR user executables [EPREFIX/bin]
1820 --sbindir=DIR system admin executables [EPREFIX/sbin]
1821 --libexecdir=DIR program executables [EPREFIX/libexec]
1822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1825 --libdir=DIR object code libraries [EPREFIX/lib]
1826 --includedir=DIR C header files [PREFIX/include]
1827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1828 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1829 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1830 --infodir=DIR info documentation [DATAROOTDIR/info]
1831 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1832 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001833 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001834 --htmldir=DIR html documentation [DOCDIR]
1835 --dvidir=DIR dvi documentation [DOCDIR]
1836 --pdfdir=DIR pdf documentation [DOCDIR]
1837 --psdir=DIR ps documentation [DOCDIR]
1838_ACEOF
1839
1840 cat <<\_ACEOF
1841
cristy73bd4a52010-10-05 11:24:23 +00001842Program names:
1843 --program-prefix=PREFIX prepend PREFIX to installed program names
1844 --program-suffix=SUFFIX append SUFFIX to installed program names
1845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1846
cristy3ed852e2009-09-05 21:47:34 +00001847X features:
1848 --x-includes=DIR X include files are in DIR
1849 --x-libraries=DIR X library files are in DIR
1850
1851System types:
1852 --build=BUILD configure for building on BUILD [guessed]
1853 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1854 --target=TARGET configure for building compilers for TARGET [HOST]
1855_ACEOF
1856fi
1857
1858if test -n "$ac_init_help"; then
1859 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001860 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001861 esac
1862 cat <<\_ACEOF
1863
1864Optional Features:
1865 --disable-option-checking ignore unrecognized --enable/--with options
1866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001868 --enable-silent-rules less verbose build output (undo: "make V=1")
1869 --disable-silent-rules verbose build output (undo: "make V=0")
1870 --enable-dependency-tracking
1871 do not reject slow dependency extractors
1872 --disable-dependency-tracking
1873 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001874 --enable-ld-version-script
1875 enable linker version script (default is enabled
1876 when possible)
cristya3824692012-03-30 17:22:07 +00001877 --enable-bounds-checking
1878 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001879 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001880 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001881 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001882 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001883 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001884 --enable-shared[=PKGS] build shared libraries [default=yes]
1885 --enable-static[=PKGS] build static libraries [default=yes]
1886 --enable-fast-install[=PKGS]
1887 optimize for fast installation [default=yes]
1888 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001889 --enable-delegate-build look for delegate libraries in build directory
1890 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001891 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001892 --disable-installed Formally install ImageMagick under PREFIX
1893 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001894 --enable-zero-configuration
1895 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001896 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001897 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001898 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001899 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001900 --enable-maintainer-mode
1901 enable make rules and dependencies not useful (and
1902 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001903 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001904 --enable-ccmalloc enable 'ccmalloc' memory debug support
1905 --enable-efence enable 'efence' memory debug support
1906 --enable-prof enable 'prof' profiling support
1907 --enable-gprof enable 'gprof' profiling support
1908 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001909 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001910 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001911 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001912
1913Optional Packages:
1914 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1915 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001916 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001917 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001918 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1919 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001920 --includearch-dir=DIR ARCH specific include directory
1921 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001922 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001924 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001925 both]
cristyda16f162011-02-19 23:52:17 +00001926 --with-sysroot=DIR Search for dependent libraries within DIR
1927 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-modules enable building dynamically loadable modules
1929 --with-method-prefix=PREFIX
1930 prefix MagickCore API methods
1931 --with-quantum-depth=DEPTH
1932 number of bits in a pixel quantum (default 16)
1933 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1934 memory)
1935 --with-frozenpaths freeze delegate paths
1936 --without-magick-plus-plus
1937 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001938 --with-package-release-name=NAME
1939 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001940 --with-perl enable build/install of PerlMagick
1941 --with-perl-options=OPTIONS
1942 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001943 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001944 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001945 --with-umem enable umem memory allocation library support
1946 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1947 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001948 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001950 --with-apple-font-dir=DIR
1951 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-autotrace enable autotrace support
1953 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001954 --with-dejavu-font-dir=DIR
1955 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-fftw disable FFTW support
1957 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001958 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001959 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001960 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001961 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001962 --with-fontpath=DIR prepend to default font search path
1963 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001964 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-jbig disable JBIG support
1966 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001967 --without-lcms disable lcms (v1.1X) support
1968 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001969 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001970 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001971 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001973 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001974 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001975 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001976 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001977 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001978 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001979 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001980 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-xml disable XML support
1982
1983Some influential environment variables:
1984 CC C compiler command
1985 CFLAGS C compiler flags
1986 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1987 nonstandard directory <lib dir>
1988 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001989 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001990 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001991 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001992 CXX C++ compiler command
1993 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001994 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001995 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001996 XMKMF Path to xmkmf, Makefile generator for X Window System
1997 AUTOTRACE_CFLAGS
1998 C compiler flags for AUTOTRACE, overriding pkg-config
1999 AUTOTRACE_LIBS
2000 linker flags for AUTOTRACE, overriding pkg-config
2001 FONTCONFIG_CFLAGS
2002 C compiler flags for FONTCONFIG, overriding pkg-config
2003 FONTCONFIG_LIBS
2004 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002005 FREETYPE_CFLAGS
2006 C compiler flags for FREETYPE, overriding pkg-config
2007 FREETYPE_LIBS
2008 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002009 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2010 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002011 LIBOPENJP2_CFLAGS
2012 C compiler flags for LIBOPENJP2, overriding pkg-config
2013 LIBOPENJP2_LIBS
2014 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002015 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2016 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002017 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2018 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002019 OPENEXR_CFLAGS
2020 C compiler flags for OPENEXR, overriding pkg-config
2021 OPENEXR_LIBS
2022 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002023 PANGO_CFLAGS
2024 C compiler flags for PANGO, overriding pkg-config
2025 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002026 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2027 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2028 CAIRO_SVG_CFLAGS
2029 C compiler flags for CAIRO_SVG, overriding pkg-config
2030 CAIRO_SVG_LIBS
2031 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002032
2033Use these variables to override the choices made by `configure' or to help
2034it to find libraries and programs with nonstandard names/locations.
2035
2036Report bugs to <http://www.imagemagick.org>.
2037_ACEOF
2038ac_status=$?
2039fi
2040
2041if test "$ac_init_help" = "recursive"; then
2042 # If there are subdirs, report their specific --help.
2043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2044 test -d "$ac_dir" ||
2045 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2046 continue
2047 ac_builddir=.
2048
2049case "$ac_dir" in
2050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051*)
2052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2053 # A ".." for each directory in $ac_dir_suffix.
2054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2055 case $ac_top_builddir_sub in
2056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2058 esac ;;
2059esac
2060ac_abs_top_builddir=$ac_pwd
2061ac_abs_builddir=$ac_pwd$ac_dir_suffix
2062# for backward compatibility:
2063ac_top_builddir=$ac_top_build_prefix
2064
2065case $srcdir in
2066 .) # We are building in place.
2067 ac_srcdir=.
2068 ac_top_srcdir=$ac_top_builddir_sub
2069 ac_abs_top_srcdir=$ac_pwd ;;
2070 [\\/]* | ?:[\\/]* ) # Absolute name.
2071 ac_srcdir=$srcdir$ac_dir_suffix;
2072 ac_top_srcdir=$srcdir
2073 ac_abs_top_srcdir=$srcdir ;;
2074 *) # Relative name.
2075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2076 ac_top_srcdir=$ac_top_build_prefix$srcdir
2077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2078esac
2079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2080
2081 cd "$ac_dir" || { ac_status=$?; continue; }
2082 # Check for guested configure.
2083 if test -f "$ac_srcdir/configure.gnu"; then
2084 echo &&
2085 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2086 elif test -f "$ac_srcdir/configure"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure" --help=recursive
2089 else
2090 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2091 fi || ac_status=$?
2092 cd "$ac_pwd" || { ac_status=$?; break; }
2093 done
2094fi
2095
2096test -n "$ac_init_help" && exit $ac_status
2097if $ac_init_version; then
2098 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002099ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002100generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002101
cristy14fefe52012-05-21 00:59:18 +00002102Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002103This configure script is free software; the Free Software Foundation
2104gives unlimited permission to copy, distribute and modify it.
2105_ACEOF
2106 exit
2107fi
cristy8b350f62009-11-15 23:12:43 +00002108
2109## ------------------------ ##
2110## Autoconf initialization. ##
2111## ------------------------ ##
2112
2113# ac_fn_c_try_compile LINENO
2114# --------------------------
2115# Try to compile conftest.$ac_ext, and return whether this succeeded.
2116ac_fn_c_try_compile ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 rm -f conftest.$ac_objext
2120 if { { ac_try="$ac_compile"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_compile") 2>conftest.err
2128 ac_status=$?
2129 if test -s conftest.err; then
2130 grep -v '^ *+' conftest.err >conftest.er1
2131 cat conftest.er1 >&5
2132 mv -f conftest.er1 conftest.err
2133 fi
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; } && {
2136 test -z "$ac_c_werror_flag" ||
2137 test ! -s conftest.err
2138 } && test -s conftest.$ac_objext; then :
2139 ac_retval=0
2140else
2141 $as_echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=1
2145fi
cristyda16f162011-02-19 23:52:17 +00002146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002147 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002148
2149} # ac_fn_c_try_compile
2150
cristy95646052009-11-28 23:05:30 +00002151# ac_fn_c_try_cpp LINENO
2152# ----------------------
2153# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_c_try_cpp ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if { { ac_try="$ac_cpp conftest.$ac_ext"
2158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
2162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163$as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2170 fi
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002172 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2174 test ! -s conftest.err
2175 }; then :
2176 ac_retval=0
2177else
2178 $as_echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1
2182fi
cristyda16f162011-02-19 23:52:17 +00002183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002184 as_fn_set_status $ac_retval
2185
2186} # ac_fn_c_try_cpp
2187
cristy8b350f62009-11-15 23:12:43 +00002188# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2189# -------------------------------------------------------
2190# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2191# the include files in INCLUDES and setting the cache variable VAR
2192# accordingly.
2193ac_fn_c_check_header_mongrel ()
2194{
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002196 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002199if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002200 $as_echo_n "(cached) " >&6
2201fi
2202eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205else
2206 # Is the header compilable?
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2208$as_echo_n "checking $2 usability... " >&6; }
2209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h. */
2211$4
2212#include <$2>
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_header_compiler=yes
2216else
2217 ac_header_compiler=no
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2221$as_echo "$ac_header_compiler" >&6; }
2222
2223# Is the header present?
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2225$as_echo_n "checking $2 presence... " >&6; }
2226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228#include <$2>
2229_ACEOF
2230if ac_fn_c_try_cpp "$LINENO"; then :
2231 ac_header_preproc=yes
2232else
2233 ac_header_preproc=no
2234fi
cristyda16f162011-02-19 23:52:17 +00002235rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2237$as_echo "$ac_header_preproc" >&6; }
2238
2239# So? What about this header?
2240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2241 yes:no: )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2243$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2246 ;;
2247 no:yes:* )
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2249$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2251$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2253$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2255$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002258( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002259## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002260## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002261 ) | sed "s/^/$as_me: WARNING: /" >&2
2262 ;;
2263esac
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002266if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002267 $as_echo_n "(cached) " >&6
2268else
2269 eval "$3=\$ac_header_compiler"
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274fi
cristyda16f162011-02-19 23:52:17 +00002275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002276
2277} # ac_fn_c_check_header_mongrel
2278
2279# ac_fn_c_try_run LINENO
2280# ----------------------
2281# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2282# that executables *can* be run.
2283ac_fn_c_try_run ()
2284{
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 if { { ac_try="$ac_link"
2287case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290esac
2291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292$as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>&5
2294 ac_status=$?
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2297 { { case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_try") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; }; }; then :
2307 ac_retval=0
2308else
2309 $as_echo "$as_me: program exited with status $ac_status" >&5
2310 $as_echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_retval=$ac_status
2314fi
2315 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002317 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002318
2319} # ac_fn_c_try_run
2320
2321# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2322# -------------------------------------------------------
2323# Tests whether HEADER exists and can be compiled using the include files in
2324# INCLUDES, setting the cache variable VAR accordingly.
2325ac_fn_c_check_header_compile ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2329$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002330if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002331 $as_echo_n "(cached) " >&6
2332else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335$4
2336#include <$2>
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339 eval "$3=yes"
2340else
2341 eval "$3=no"
2342fi
2343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344fi
2345eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002349
2350} # ac_fn_c_check_header_compile
2351
cristya0b81c32010-01-22 02:54:33 +00002352# ac_fn_cxx_try_compile LINENO
2353# ----------------------------
2354# Try to compile conftest.$ac_ext, and return whether this succeeded.
2355ac_fn_cxx_try_compile ()
2356{
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext
2359 if { { ac_try="$ac_compile"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365$as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_compile") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_cxx_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest.$ac_objext; then :
2378 ac_retval=0
2379else
2380 $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=1
2384fi
cristyda16f162011-02-19 23:52:17 +00002385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002386 as_fn_set_status $ac_retval
2387
2388} # ac_fn_cxx_try_compile
2389
cristyd95b7a52013-10-23 13:12:53 +00002390# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2391# --------------------------------------------
2392# Tries to find the compile-time value of EXPR in a program that includes
2393# INCLUDES, setting VAR accordingly. Returns whether the value could be
2394# computed
2395ac_fn_c_compute_int ()
2396{
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if test "$cross_compiling" = yes; then
2399 # Depending upon the size, compute the lo and hi bounds.
2400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401/* end confdefs.h. */
2402$4
2403int
2404main ()
2405{
2406static int test_array [1 - 2 * !(($2) >= 0)];
2407test_array [0] = 0;
2408return test_array [0];
2409
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_compile "$LINENO"; then :
2415 ac_lo=0 ac_mid=0
2416 while :; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h. */
2419$4
2420int
2421main ()
2422{
2423static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424test_array [0] = 0;
2425return test_array [0];
2426
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_hi=$ac_mid; break
2433else
2434 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2435 if test $ac_lo -le $ac_mid; then
2436 ac_lo= ac_hi=
2437 break
2438 fi
2439 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2440fi
2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443else
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445/* end confdefs.h. */
2446$4
2447int
2448main ()
2449{
2450static int test_array [1 - 2 * !(($2) < 0)];
2451test_array [0] = 0;
2452return test_array [0];
2453
2454 ;
2455 return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_compile "$LINENO"; then :
2459 ac_hi=-1 ac_mid=-1
2460 while :; do
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462/* end confdefs.h. */
2463$4
2464int
2465main ()
2466{
2467static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2468test_array [0] = 0;
2469return test_array [0];
2470
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475if ac_fn_c_try_compile "$LINENO"; then :
2476 ac_lo=$ac_mid; break
2477else
2478 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479 if test $ac_mid -le $ac_hi; then
2480 ac_lo= ac_hi=
2481 break
2482 fi
2483 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 done
2487else
2488 ac_lo= ac_hi=
2489fi
2490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491fi
2492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493# Binary search between lo and hi bounds.
2494while test "x$ac_lo" != "x$ac_hi"; do
2495 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497/* end confdefs.h. */
2498$4
2499int
2500main ()
2501{
2502static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2503test_array [0] = 0;
2504return test_array [0];
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 ac_hi=$ac_mid
2512else
2513 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2514fi
2515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516done
2517case $ac_lo in #((
2518?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2519'') ac_retval=1 ;;
2520esac
2521 else
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523/* end confdefs.h. */
2524$4
2525static long int longval () { return $2; }
2526static unsigned long int ulongval () { return $2; }
2527#include <stdio.h>
2528#include <stdlib.h>
2529int
2530main ()
2531{
2532
2533 FILE *f = fopen ("conftest.val", "w");
2534 if (! f)
2535 return 1;
2536 if (($2) < 0)
2537 {
2538 long int i = longval ();
2539 if (i != ($2))
2540 return 1;
2541 fprintf (f, "%ld", i);
2542 }
2543 else
2544 {
2545 unsigned long int i = ulongval ();
2546 if (i != ($2))
2547 return 1;
2548 fprintf (f, "%lu", i);
2549 }
2550 /* Do not output a trailing newline, as this causes \r\n confusion
2551 on some platforms. */
2552 return ferror (f) || fclose (f) != 0;
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_run "$LINENO"; then :
2559 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2560else
2561 ac_retval=1
2562fi
2563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2564 conftest.$ac_objext conftest.beam conftest.$ac_ext
2565rm -f conftest.val
2566
2567 fi
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2570
2571} # ac_fn_c_compute_int
2572
cristy8b350f62009-11-15 23:12:43 +00002573# ac_fn_c_try_link LINENO
2574# -----------------------
2575# Try to link conftest.$ac_ext, and return whether this succeeded.
2576ac_fn_c_try_link ()
2577{
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { { ac_try="$ac_link"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586$as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link") 2>conftest.err
2588 ac_status=$?
2589 if test -s conftest.err; then
2590 grep -v '^ *+' conftest.err >conftest.er1
2591 cat conftest.er1 >&5
2592 mv -f conftest.er1 conftest.err
2593 fi
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; } && {
2596 test -z "$ac_c_werror_flag" ||
2597 test ! -s conftest.err
2598 } && test -s conftest$ac_exeext && {
2599 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002600 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002601 }; then :
2602 ac_retval=0
2603else
2604 $as_echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 ac_retval=1
2608fi
2609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2611 # interfere with the next link command; also delete a directory that is
2612 # left behind by Apple's compiler. We do this before executing the actions.
2613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002615 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002616
2617} # ac_fn_c_try_link
2618
cristy73bd4a52010-10-05 11:24:23 +00002619# ac_fn_c_check_func LINENO FUNC VAR
2620# ----------------------------------
2621# Tests whether FUNC exists, setting the cache variable VAR accordingly
2622ac_fn_c_check_func ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2626$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002627if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002628 $as_echo_n "(cached) " >&6
2629else
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631/* end confdefs.h. */
2632/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2634#define $2 innocuous_$2
2635
2636/* System header to define __stub macros and hopefully few prototypes,
2637 which can conflict with char $2 (); below.
2638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2639 <limits.h> exists even on freestanding compilers. */
2640
2641#ifdef __STDC__
2642# include <limits.h>
2643#else
2644# include <assert.h>
2645#endif
2646
2647#undef $2
2648
2649/* Override any GCC internal prototype to avoid an error.
2650 Use char because int might match the return type of a GCC
2651 builtin and then its argument prototype would still apply. */
2652#ifdef __cplusplus
2653extern "C"
2654#endif
2655char $2 ();
2656/* The GNU C library defines this for functions which it implements
2657 to always fail with ENOSYS. Some functions are actually named
2658 something starting with __ and the normal name is an alias. */
2659#if defined __stub_$2 || defined __stub___$2
2660choke me
2661#endif
2662
2663int
2664main ()
2665{
2666return $2 ();
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671if ac_fn_c_try_link "$LINENO"; then :
2672 eval "$3=yes"
2673else
2674 eval "$3=no"
2675fi
2676rm -f core conftest.err conftest.$ac_objext \
2677 conftest$ac_exeext conftest.$ac_ext
2678fi
2679eval ac_res=\$$3
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2681$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002683
2684} # ac_fn_c_check_func
2685
2686# ac_fn_cxx_try_cpp LINENO
2687# ------------------------
2688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2689ac_fn_cxx_try_cpp ()
2690{
2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692 if { { ac_try="$ac_cpp conftest.$ac_ext"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698$as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2700 ac_status=$?
2701 if test -s conftest.err; then
2702 grep -v '^ *+' conftest.err >conftest.er1
2703 cat conftest.er1 >&5
2704 mv -f conftest.er1 conftest.err
2705 fi
2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002707 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2709 test ! -s conftest.err
2710 }; then :
2711 ac_retval=0
2712else
2713 $as_echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 ac_retval=1
2717fi
cristyda16f162011-02-19 23:52:17 +00002718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002719 as_fn_set_status $ac_retval
2720
2721} # ac_fn_cxx_try_cpp
2722
2723# ac_fn_cxx_try_link LINENO
2724# -------------------------
2725# Try to link conftest.$ac_ext, and return whether this succeeded.
2726ac_fn_cxx_try_link ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 rm -f conftest.$ac_objext conftest$ac_exeext
2730 if { { ac_try="$ac_link"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2736$as_echo "$ac_try_echo"; } >&5
2737 (eval "$ac_link") 2>conftest.err
2738 ac_status=$?
2739 if test -s conftest.err; then
2740 grep -v '^ *+' conftest.err >conftest.er1
2741 cat conftest.er1 >&5
2742 mv -f conftest.er1 conftest.err
2743 fi
2744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745 test $ac_status = 0; } && {
2746 test -z "$ac_cxx_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest$ac_exeext && {
2749 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002750 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002751 }; then :
2752 ac_retval=0
2753else
2754 $as_echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_retval=1
2758fi
2759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2761 # interfere with the next link command; also delete a directory that is
2762 # left behind by Apple's compiler. We do this before executing the actions.
2763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002765 as_fn_set_status $ac_retval
2766
2767} # ac_fn_cxx_try_link
2768
cristy8b350f62009-11-15 23:12:43 +00002769# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2770# -------------------------------------------
2771# Tests whether TYPE exists after having included INCLUDES, setting cache
2772# variable VAR accordingly.
2773ac_fn_c_check_type ()
2774{
2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002778if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002779 $as_echo_n "(cached) " >&6
2780else
2781 eval "$3=no"
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h. */
2784$4
2785int
2786main ()
2787{
2788if (sizeof ($2))
2789 return 0;
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796/* end confdefs.h. */
2797$4
2798int
2799main ()
2800{
2801if (sizeof (($2)))
2802 return 0;
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807if ac_fn_c_try_compile "$LINENO"; then :
2808
2809else
2810 eval "$3=yes"
2811fi
2812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813fi
2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002820
2821} # ac_fn_c_check_type
2822
cristy92703d82010-04-26 00:18:18 +00002823# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2824# ----------------------------------------------------
2825# Tries to find if the field MEMBER exists in type AGGR, after including
2826# INCLUDES, setting cache variable VAR accordingly.
2827ac_fn_c_check_member ()
2828{
2829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2831$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002832if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002833 $as_echo_n "(cached) " >&6
2834else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837$5
2838int
2839main ()
2840{
2841static $2 ac_aggr;
2842if (ac_aggr.$3)
2843return 0;
2844 ;
2845 return 0;
2846}
2847_ACEOF
2848if ac_fn_c_try_compile "$LINENO"; then :
2849 eval "$4=yes"
2850else
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$5
2854int
2855main ()
2856{
2857static $2 ac_aggr;
2858if (sizeof ac_aggr.$3)
2859return 0;
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 eval "$4=yes"
2866else
2867 eval "$4=no"
2868fi
2869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872fi
2873eval ac_res=\$$4
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2875$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002877
2878} # ac_fn_c_check_member
2879
cristy5eef09f2012-10-16 12:08:28 +00002880# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2881# ---------------------------------------------
2882# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2883# accordingly.
2884ac_fn_c_check_decl ()
2885{
2886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2887 as_decl_name=`echo $2|sed 's/ *(.*//'`
2888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2890$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2891if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900#ifndef $as_decl_name
2901#ifdef __cplusplus
2902 (void) $as_decl_use;
2903#else
2904 (void) $as_decl_name;
2905#endif
2906#endif
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913 eval "$3=yes"
2914else
2915 eval "$3=no"
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919eval ac_res=\$$3
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2921$as_echo "$ac_res" >&6; }
2922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2923
2924} # ac_fn_c_check_decl
2925
cristy501c8042011-05-26 17:46:28 +00002926# ac_fn_c_find_intX_t LINENO BITS VAR
2927# -----------------------------------
2928# Finds a signed integer type with width BITS, setting cache variable VAR
2929# accordingly.
2930ac_fn_c_find_intX_t ()
2931{
2932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2934$as_echo_n "checking for int$2_t... " >&6; }
2935if eval \${$3+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937else
2938 eval "$3=no"
2939 # Order is important - never check a type that is potentially smaller
2940 # than half of the expected target width.
2941 for ac_type in int$2_t 'int' 'long int' \
2942 'long long int' 'short int' 'signed char'; do
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945$ac_includes_default
2946 enum { N = $2 / 2 - 1 };
2947int
2948main ()
2949{
2950static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002951test_array [0] = 0;
2952return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958if ac_fn_c_try_compile "$LINENO"; then :
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961$ac_includes_default
2962 enum { N = $2 / 2 - 1 };
2963int
2964main ()
2965{
2966static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2967 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002968test_array [0] = 0;
2969return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975if ac_fn_c_try_compile "$LINENO"; then :
2976
2977else
2978 case $ac_type in #(
2979 int$2_t) :
2980 eval "$3=yes" ;; #(
2981 *) :
2982 eval "$3=\$ac_type" ;;
2983esac
2984fi
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986fi
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 if eval test \"x\$"$3"\" = x"no"; then :
2989
2990else
2991 break
2992fi
2993 done
2994fi
2995eval ac_res=\$$3
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2997$as_echo "$ac_res" >&6; }
2998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2999
3000} # ac_fn_c_find_intX_t
3001
3002# ac_fn_c_find_uintX_t LINENO BITS VAR
3003# ------------------------------------
3004# Finds an unsigned integer type with width BITS, setting cache variable VAR
3005# accordingly.
3006ac_fn_c_find_uintX_t ()
3007{
3008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3010$as_echo_n "checking for uint$2_t... " >&6; }
3011if eval \${$3+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 eval "$3=no"
3015 # Order is important - never check a type that is potentially smaller
3016 # than half of the expected target width.
3017 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3018 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021$ac_includes_default
3022int
3023main ()
3024{
3025static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003026test_array [0] = 0;
3027return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003028
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033if ac_fn_c_try_compile "$LINENO"; then :
3034 case $ac_type in #(
3035 uint$2_t) :
3036 eval "$3=yes" ;; #(
3037 *) :
3038 eval "$3=\$ac_type" ;;
3039esac
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 if eval test \"x\$"$3"\" = x"no"; then :
3043
3044else
3045 break
3046fi
3047 done
3048fi
3049eval ac_res=\$$3
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3051$as_echo "$ac_res" >&6; }
3052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3053
3054} # ac_fn_c_find_uintX_t
3055
cristy8b350f62009-11-15 23:12:43 +00003056# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3057# ---------------------------------------------------------
3058# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3059# the include files in INCLUDES and setting the cache variable VAR
3060# accordingly.
3061ac_fn_cxx_check_header_mongrel ()
3062{
3063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003064 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3066$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003067if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003068 $as_echo_n "(cached) " >&6
3069fi
3070eval ac_res=\$$3
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3072$as_echo "$ac_res" >&6; }
3073else
3074 # Is the header compilable?
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3076$as_echo_n "checking $2 usability... " >&6; }
3077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h. */
3079$4
3080#include <$2>
3081_ACEOF
3082if ac_fn_cxx_try_compile "$LINENO"; then :
3083 ac_header_compiler=yes
3084else
3085 ac_header_compiler=no
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3089$as_echo "$ac_header_compiler" >&6; }
3090
3091# Is the header present?
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3093$as_echo_n "checking $2 presence... " >&6; }
3094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h. */
3096#include <$2>
3097_ACEOF
3098if ac_fn_cxx_try_cpp "$LINENO"; then :
3099 ac_header_preproc=yes
3100else
3101 ac_header_preproc=no
3102fi
cristyda16f162011-02-19 23:52:17 +00003103rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3105$as_echo "$ac_header_preproc" >&6; }
3106
3107# So? What about this header?
3108case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3109 yes:no: )
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3111$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3113$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3114 ;;
3115 no:yes:* )
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3117$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3119$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3121$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3123$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3125$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003126( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003127## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003128## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003129 ) | sed "s/^/$as_me: WARNING: /" >&2
3130 ;;
3131esac
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3133$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003134if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003135 $as_echo_n "(cached) " >&6
3136else
3137 eval "$3=\$ac_header_compiler"
3138fi
3139eval ac_res=\$$3
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3141$as_echo "$ac_res" >&6; }
3142fi
cristyda16f162011-02-19 23:52:17 +00003143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003144
3145} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003146cat >config.log <<_ACEOF
3147This file contains any messages produced by compilers while
3148running configure, to aid debugging if configure makes a mistake.
3149
cristy29eb34e2011-10-16 00:46:08 +00003150It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003151generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003152
3153 $ $0 $@
3154
3155_ACEOF
3156exec 5>>config.log
3157{
3158cat <<_ASUNAME
3159## --------- ##
3160## Platform. ##
3161## --------- ##
3162
3163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3164uname -m = `(uname -m) 2>/dev/null || echo unknown`
3165uname -r = `(uname -r) 2>/dev/null || echo unknown`
3166uname -s = `(uname -s) 2>/dev/null || echo unknown`
3167uname -v = `(uname -v) 2>/dev/null || echo unknown`
3168
3169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3171
3172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3175/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3179
3180_ASUNAME
3181
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003187 $as_echo "PATH: $as_dir"
3188 done
cristy3ed852e2009-09-05 21:47:34 +00003189IFS=$as_save_IFS
3190
3191} >&5
3192
3193cat >&5 <<_ACEOF
3194
3195
3196## ----------- ##
3197## Core tests. ##
3198## ----------- ##
3199
3200_ACEOF
3201
3202
3203# Keep a trace of the command line.
3204# Strip out --no-create and --no-recursion so they do not pile up.
3205# Strip out --silent because we don't want to record it for future runs.
3206# Also quote any args containing shell meta-characters.
3207# Make two passes to allow for proper duplicate-argument suppression.
3208ac_configure_args=
3209ac_configure_args0=
3210ac_configure_args1=
3211ac_must_keep_next=false
3212for ac_pass in 1 2
3213do
3214 for ac_arg
3215 do
3216 case $ac_arg in
3217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3219 | -silent | --silent | --silen | --sile | --sil)
3220 continue ;;
3221 *\'*)
3222 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3223 esac
3224 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003226 2)
cristy8b350f62009-11-15 23:12:43 +00003227 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003228 if test $ac_must_keep_next = true; then
3229 ac_must_keep_next=false # Got value, back to normal.
3230 else
3231 case $ac_arg in
3232 *=* | --config-cache | -C | -disable-* | --disable-* \
3233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3235 | -with-* | --with-* | -without-* | --without-* | --x)
3236 case "$ac_configure_args0 " in
3237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3238 esac
3239 ;;
3240 -* ) ac_must_keep_next=true ;;
3241 esac
3242 fi
cristy8b350f62009-11-15 23:12:43 +00003243 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003244 ;;
3245 esac
3246 done
3247done
cristy8b350f62009-11-15 23:12:43 +00003248{ ac_configure_args0=; unset ac_configure_args0;}
3249{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003250
3251# When interrupted or exit'd, cleanup temporary files, and complete
3252# config.log. We remove comments because anyway the quotes in there
3253# would cause problems or look ugly.
3254# WARNING: Use '\'' to represent an apostrophe within the trap.
3255# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3256trap 'exit_status=$?
3257 # Save into config.log some information that might help in debugging.
3258 {
3259 echo
3260
cristy98dddb52010-11-04 00:30:15 +00003261 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003262## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003263## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003264 echo
3265 # The following way of writing the cache mishandles newlines in values,
3266(
3267 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3268 eval ac_val=\$$ac_var
3269 case $ac_val in #(
3270 *${as_nl}*)
3271 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003273$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3274 esac
3275 case $ac_var in #(
3276 _ | IFS | as_nl) ;; #(
3277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003278 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003279 esac ;;
3280 esac
3281 done
3282 (set) 2>&1 |
3283 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3284 *${as_nl}ac_space=\ *)
3285 sed -n \
3286 "s/'\''/'\''\\\\'\'''\''/g;
3287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3288 ;; #(
3289 *)
3290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3291 ;;
3292 esac |
3293 sort
3294)
3295 echo
3296
cristy98dddb52010-11-04 00:30:15 +00003297 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003298## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003299## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003300 echo
3301 for ac_var in $ac_subst_vars
3302 do
3303 eval ac_val=\$$ac_var
3304 case $ac_val in
3305 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3306 esac
3307 $as_echo "$ac_var='\''$ac_val'\''"
3308 done | sort
3309 echo
3310
3311 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003312 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003313## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003314## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003315 echo
3316 for ac_var in $ac_subst_files
3317 do
3318 eval ac_val=\$$ac_var
3319 case $ac_val in
3320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3321 esac
3322 $as_echo "$ac_var='\''$ac_val'\''"
3323 done | sort
3324 echo
3325 fi
3326
3327 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003328 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003329## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003330## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003331 echo
3332 cat confdefs.h
3333 echo
3334 fi
3335 test "$ac_signal" != 0 &&
3336 $as_echo "$as_me: caught signal $ac_signal"
3337 $as_echo "$as_me: exit $exit_status"
3338 } >&5
3339 rm -f core *.core core.conftest.* &&
3340 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3341 exit $exit_status
3342' 0
3343for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003344 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003345done
3346ac_signal=0
3347
3348# confdefs.h avoids OS command line length limits that DEFS can exceed.
3349rm -f -r conftest* confdefs.h
3350
cristy8b350f62009-11-15 23:12:43 +00003351$as_echo "/* confdefs.h */" > confdefs.h
3352
cristy3ed852e2009-09-05 21:47:34 +00003353# Predefined preprocessor variables.
3354
3355cat >>confdefs.h <<_ACEOF
3356#define PACKAGE_NAME "$PACKAGE_NAME"
3357_ACEOF
3358
cristy3ed852e2009-09-05 21:47:34 +00003359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3361_ACEOF
3362
cristy3ed852e2009-09-05 21:47:34 +00003363cat >>confdefs.h <<_ACEOF
3364#define PACKAGE_VERSION "$PACKAGE_VERSION"
3365_ACEOF
3366
cristy3ed852e2009-09-05 21:47:34 +00003367cat >>confdefs.h <<_ACEOF
3368#define PACKAGE_STRING "$PACKAGE_STRING"
3369_ACEOF
3370
cristy3ed852e2009-09-05 21:47:34 +00003371cat >>confdefs.h <<_ACEOF
3372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3373_ACEOF
3374
cristy8b350f62009-11-15 23:12:43 +00003375cat >>confdefs.h <<_ACEOF
3376#define PACKAGE_URL "$PACKAGE_URL"
3377_ACEOF
3378
cristy3ed852e2009-09-05 21:47:34 +00003379
3380# Let the site file select an alternate cache file if it wants to.
3381# Prefer an explicitly selected file to automatically selected ones.
3382ac_site_file1=NONE
3383ac_site_file2=NONE
3384if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003385 # We do not want a PATH search for config.site.
3386 case $CONFIG_SITE in #((
3387 -*) ac_site_file1=./$CONFIG_SITE;;
3388 */*) ac_site_file1=$CONFIG_SITE;;
3389 *) ac_site_file1=./$CONFIG_SITE;;
3390 esac
cristy3ed852e2009-09-05 21:47:34 +00003391elif test "x$prefix" != xNONE; then
3392 ac_site_file1=$prefix/share/config.site
3393 ac_site_file2=$prefix/etc/config.site
3394else
3395 ac_site_file1=$ac_default_prefix/share/config.site
3396 ac_site_file2=$ac_default_prefix/etc/config.site
3397fi
3398for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3399do
3400 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003401 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3404 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003405 . "$ac_site_file" \
3406 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error $? "failed to load site script $ac_site_file
3409See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003410 fi
3411done
3412
3413if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003414 # Some versions of bash will fail to source /dev/null (special files
3415 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3416 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$as_me: loading cache $cache_file" >&6;}
3419 case $cache_file in
3420 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3421 *) . "./$cache_file";;
3422 esac
3423 fi
3424else
cristy8b350f62009-11-15 23:12:43 +00003425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003426$as_echo "$as_me: creating cache $cache_file" >&6;}
3427 >$cache_file
3428fi
3429
cristycd4c5312009-11-22 01:19:08 +00003430as_fn_append ac_header_list " stdlib.h"
3431as_fn_append ac_header_list " unistd.h"
3432as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003433# Check that the precious variables saved in the cache have kept the same
3434# value.
3435ac_cache_corrupted=false
3436for ac_var in $ac_precious_vars; do
3437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3438 eval ac_new_set=\$ac_env_${ac_var}_set
3439 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3440 eval ac_new_val=\$ac_env_${ac_var}_value
3441 case $ac_old_set,$ac_new_set in
3442 set,)
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3445 ac_cache_corrupted=: ;;
3446 ,set)
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3449 ac_cache_corrupted=: ;;
3450 ,);;
3451 *)
3452 if test "x$ac_old_val" != "x$ac_new_val"; then
3453 # differences in whitespace do not lead to failure.
3454 ac_old_val_w=`echo x $ac_old_val`
3455 ac_new_val_w=`echo x $ac_new_val`
3456 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003458$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3459 ac_cache_corrupted=:
3460 else
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3463 eval $ac_var=\$ac_old_val
3464 fi
cristy8b350f62009-11-15 23:12:43 +00003465 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003466$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003467 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003468$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3469 fi;;
3470 esac
3471 # Pass precious variables to config.status.
3472 if test "$ac_new_set" = set; then
3473 case $ac_new_val in
3474 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3475 *) ac_arg=$ac_var=$ac_new_val ;;
3476 esac
3477 case " $ac_configure_args " in
3478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003479 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003480 esac
3481 fi
3482done
3483if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003487$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003489fi
cristy8b350f62009-11-15 23:12:43 +00003490## -------------------- ##
3491## Main body of script. ##
3492## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501
3502ac_aux_dir=
3503for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003504 if test -f "$ac_dir/install-sh"; then
3505 ac_aux_dir=$ac_dir
3506 ac_install_sh="$ac_aux_dir/install-sh -c"
3507 break
3508 elif test -f "$ac_dir/install.sh"; then
3509 ac_aux_dir=$ac_dir
3510 ac_install_sh="$ac_aux_dir/install.sh -c"
3511 break
3512 elif test -f "$ac_dir/shtool"; then
3513 ac_aux_dir=$ac_dir
3514 ac_install_sh="$ac_aux_dir/shtool install -c"
3515 break
3516 fi
cristy3ed852e2009-09-05 21:47:34 +00003517done
3518if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003520fi
3521
3522# These three variables are undocumented and unsupported,
3523# and are intended to be withdrawn in a future Autoconf release.
3524# They can cause serious problems if a builder's source tree is in a directory
3525# whose full name contains unusual characters.
3526ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3527ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3528ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3529
3530
3531
3532
3533ac_config_headers="$ac_config_headers config/config.h"
3534
cristy24fc1fe2010-10-23 21:13:01 +00003535
cristy01ff9f32012-12-01 18:15:29 +00003536ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003537
cristy3ed852e2009-09-05 21:47:34 +00003538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 ac_build_alias=$build_alias
3548test "x$ac_build_alias" = x &&
3549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3550test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_build" >&6; }
3558case $ac_cv_build in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562build=$ac_cv_build
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_build
3565shift
3566build_cpu=$1
3567build_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571build_os=$*
3572IFS=$ac_save_IFS
3573case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$host_alias" = x; then
3582 ac_cv_host=$ac_cv_build
3583else
3584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_host" >&6; }
3591case $ac_cv_host in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595host=$ac_cv_host
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_host
3598shift
3599host_cpu=$1
3600host_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604host_os=$*
3605IFS=$ac_save_IFS
3606case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3607
3608
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003611if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003612 $as_echo_n "(cached) " >&6
3613else
3614 if test "x$target_alias" = x; then
3615 ac_cv_target=$ac_cv_host
3616else
3617 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003619fi
3620
3621fi
cristy8b350f62009-11-15 23:12:43 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003623$as_echo "$ac_cv_target" >&6; }
3624case $ac_cv_target in
3625*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003626*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003627esac
3628target=$ac_cv_target
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_target
3631shift
3632target_cpu=$1
3633target_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637target_os=$*
3638IFS=$ac_save_IFS
3639case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3640
3641
3642# The aliases save the names the user supplied, while $host etc.
3643# will get canonicalized.
3644test -n "$target_alias" &&
3645 test "$program_prefix$program_suffix$program_transform_name" = \
3646 NONENONEs,x,x, &&
3647 program_prefix=${target_alias}-
3648
cristy837d6dc2010-02-27 01:16:57 +00003649
cristya5bda012013-11-03 18:05:38 +00003650am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003651
3652# Find a good install program. We prefer a C program (faster),
3653# so one script is as good as another. But avoid the broken or
3654# incompatible versions:
3655# SysV /etc/install, /usr/sbin/install
3656# SunOS /usr/etc/install
3657# IRIX /sbin/install
3658# AIX /bin/install
3659# AmigaOS /C/install, which installs bootblocks on floppy discs
3660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663# OS/2's system install, which has a completely different semantic
3664# ./install, which can be erroneously created by make from ./install.sh.
3665# Reject install programs that cannot install multiple files.
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3667$as_echo_n "checking for a BSD-compatible install... " >&6; }
3668if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003669if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003670 $as_echo_n "(cached) " >&6
3671else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673for as_dir in $PATH
3674do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 # Account for people who put trailing slashes in PATH elements.
3678case $as_dir/ in #((
3679 ./ | .// | /[cC]/* | \
3680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3682 /usr/ucb/* ) ;;
3683 *)
3684 # OSF1 and SCO ODT 3.0 have their own names for install.
3685 # Don't use installbsd from OSF since it installs stuff as root
3686 # by default.
3687 for ac_prog in ginstall scoinst install; do
3688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003689 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003690 if test $ac_prog = install &&
3691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # AIX install. It has an incompatible calling convention.
3693 :
3694 elif test $ac_prog = install &&
3695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # program-specific install script used by HP pwplus--don't use.
3697 :
3698 else
3699 rm -rf conftest.one conftest.two conftest.dir
3700 echo one > conftest.one
3701 echo two > conftest.two
3702 mkdir conftest.dir
3703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3704 test -s conftest.one && test -s conftest.two &&
3705 test -s conftest.dir/conftest.one &&
3706 test -s conftest.dir/conftest.two
3707 then
3708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3709 break 3
3710 fi
3711 fi
3712 fi
3713 done
3714 done
3715 ;;
3716esac
3717
3718 done
3719IFS=$as_save_IFS
3720
3721rm -rf conftest.one conftest.two conftest.dir
3722
3723fi
3724 if test "${ac_cv_path_install+set}" = set; then
3725 INSTALL=$ac_cv_path_install
3726 else
3727 # As a last resort, use the slow shell script. Don't cache a
3728 # value for INSTALL within a source directory, because that will
3729 # break other packages using the cache if that directory is
3730 # removed, or if the value is a relative name.
3731 INSTALL=$ac_install_sh
3732 fi
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3735$as_echo "$INSTALL" >&6; }
3736
3737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3738# It thinks the first close brace ends the variable substitution.
3739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3740
3741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3742
3743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3744
cristy9af1cbf2014-12-28 22:03:09 +00003745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3746$as_echo_n "checking whether build environment is sane... " >&6; }
3747# Reject unsafe characters in $srcdir or the absolute working directory
3748# name. Accept space and tab only in the latter.
3749am_lf='
3750'
3751case `pwd` in
3752 *[\\\"\#\$\&\'\`$am_lf]*)
3753 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3754esac
3755case $srcdir in
3756 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3757 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3758esac
3759
3760# Do 'set' in a subshell so we don't clobber the current shell's
3761# arguments. Must try -L first in case configure is actually a
3762# symlink; some systems play weird games with the mod time of symlinks
3763# (eg FreeBSD returns the mod time of the symlink's containing
3764# directory).
3765if (
3766 am_has_slept=no
3767 for am_try in 1 2; do
3768 echo "timestamp, slept: $am_has_slept" > conftest.file
3769 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3770 if test "$*" = "X"; then
3771 # -L didn't work.
3772 set X `ls -t "$srcdir/configure" conftest.file`
3773 fi
3774 if test "$*" != "X $srcdir/configure conftest.file" \
3775 && test "$*" != "X conftest.file $srcdir/configure"; then
3776
3777 # If neither matched, then we have a broken ls. This can happen
3778 # if, for instance, CONFIG_SHELL is bash and it inherits a
3779 # broken ls alias from the environment. This has actually
3780 # happened. Such a system could not be considered "sane".
3781 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3782 alias in your environment" "$LINENO" 5
3783 fi
3784 if test "$2" = conftest.file || test $am_try -eq 2; then
3785 break
3786 fi
3787 # Just in case.
3788 sleep 1
3789 am_has_slept=yes
3790 done
3791 test "$2" = conftest.file
3792 )
3793then
3794 # Ok.
3795 :
3796else
3797 as_fn_error $? "newly created file is older than distributed files!
3798Check your system clock" "$LINENO" 5
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3801$as_echo "yes" >&6; }
3802# If we didn't sleep, we still need to ensure time stamps of config.status and
3803# generated files are strictly newer.
3804am_sleep_pid=
3805if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3806 ( sleep 1 ) &
3807 am_sleep_pid=$!
3808fi
3809
3810rm -f conftest.file
3811
cristy73bd4a52010-10-05 11:24:23 +00003812test "$program_prefix" != NONE &&
3813 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3814# Use a double $ so make ignores it.
3815test "$program_suffix" != NONE &&
3816 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3817# Double any \ or $.
3818# By default was `s,x,x', remove it if useless.
3819ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3820program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3821
3822# expand $ac_aux_dir to an absolute path
3823am_aux_dir=`cd $ac_aux_dir && pwd`
3824
3825if test x"${MISSING+set}" != xset; then
3826 case $am_aux_dir in
3827 *\ * | *\ *)
3828 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3829 *)
3830 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3831 esac
3832fi
3833# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003834if eval "$MISSING --is-lightweight"; then
3835 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003836else
3837 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3839$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003840fi
3841
3842if test x"${install_sh}" != xset; then
3843 case $am_aux_dir in
3844 *\ * | *\ *)
3845 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3846 *)
3847 install_sh="\${SHELL} $am_aux_dir/install-sh"
3848 esac
3849fi
3850
cristyc0890a62012-07-19 00:18:20 +00003851# Installed binaries are usually stripped using 'strip' when the user
3852# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003853# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003854# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003855if test "$cross_compiling" != no; then
3856 if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3858set dummy ${ac_tool_prefix}strip; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003861if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003862 $as_echo_n "(cached) " >&6
3863else
3864 if test -n "$STRIP"; then
3865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879 done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884STRIP=$ac_cv_prog_STRIP
3885if test -n "$STRIP"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3887$as_echo "$STRIP" >&6; }
3888else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$ac_cv_prog_STRIP"; then
3896 ac_ct_STRIP=$STRIP
3897 # Extract the first word of "strip", so it can be a program name with args.
3898set dummy strip; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003901if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$ac_ct_STRIP"; then
3905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003914 ac_cv_prog_ac_ct_STRIP="strip"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3925if test -n "$ac_ct_STRIP"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3927$as_echo "$ac_ct_STRIP" >&6; }
3928else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930$as_echo "no" >&6; }
3931fi
3932
3933 if test "x$ac_ct_STRIP" = x; then
3934 STRIP=":"
3935 else
3936 case $cross_compiling:$ac_tool_warned in
3937yes:)
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940ac_tool_warned=yes ;;
3941esac
3942 STRIP=$ac_ct_STRIP
3943 fi
3944else
3945 STRIP="$ac_cv_prog_STRIP"
3946fi
3947
3948fi
3949INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3952$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3953if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003954 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003955 $as_echo_n "(cached) " >&6
3956else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3959do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_prog in mkdir gmkdir; do
3963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003964 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003965 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3966 'mkdir (GNU coreutils) '* | \
3967 'mkdir (coreutils) '* | \
3968 'mkdir (fileutils) '4.1*)
3969 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3970 break 3;;
3971 esac
3972 done
3973 done
3974 done
3975IFS=$as_save_IFS
3976
3977fi
3978
3979 test -d ./--version && rmdir ./--version
3980 if test "${ac_cv_path_mkdir+set}" = set; then
3981 MKDIR_P="$ac_cv_path_mkdir -p"
3982 else
3983 # As a last resort, use the slow shell script. Don't cache a
3984 # value for MKDIR_P within a source directory, because that will
3985 # break other packages using the cache if that directory is
3986 # removed, or if the value is a relative name.
3987 MKDIR_P="$ac_install_sh -d"
3988 fi
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3991$as_echo "$MKDIR_P" >&6; }
3992
cristy73bd4a52010-10-05 11:24:23 +00003993for ac_prog in gawk mawk nawk awk
3994do
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996set dummy $ac_prog; ac_word=$2
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003999if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$AWK"; then
4003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004012 ac_cv_prog_AWK="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017 done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022AWK=$ac_cv_prog_AWK
4023if test -n "$AWK"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4025$as_echo "$AWK" >&6; }
4026else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032 test -n "$AWK" && break
4033done
4034
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4036$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4037set x ${MAKE-make}
4038ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004039if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004040 $as_echo_n "(cached) " >&6
4041else
4042 cat >conftest.make <<\_ACEOF
4043SHELL = /bin/sh
4044all:
4045 @echo '@@@%%%=$(MAKE)=@@@%%%'
4046_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004047# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004048case `${MAKE-make} -f conftest.make 2>/dev/null` in
4049 *@@@%%%=?*=@@@%%%*)
4050 eval ac_cv_prog_make_${ac_make}_set=yes;;
4051 *)
4052 eval ac_cv_prog_make_${ac_make}_set=no;;
4053esac
4054rm -f conftest.make
4055fi
4056if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058$as_echo "yes" >&6; }
4059 SET_MAKE=
4060else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
4063 SET_MAKE="MAKE=${MAKE-make}"
4064fi
4065
4066rm -rf .tst 2>/dev/null
4067mkdir .tst 2>/dev/null
4068if test -d .tst; then
4069 am__leading_dot=.
4070else
4071 am__leading_dot=_
4072fi
4073rmdir .tst 2>/dev/null
4074
cristya448bd22011-10-14 12:38:13 +00004075# Check whether --enable-silent-rules was given.
4076if test "${enable_silent_rules+set}" = set; then :
4077 enableval=$enable_silent_rules;
4078fi
4079
cristyc0890a62012-07-19 00:18:20 +00004080case $enable_silent_rules in # (((
4081 yes) AM_DEFAULT_VERBOSITY=0;;
4082 no) AM_DEFAULT_VERBOSITY=1;;
4083 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004084esac
cristyc3fb77b2012-02-06 01:49:41 +00004085am_make=${MAKE-make}
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4087$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4088if ${am_cv_make_support_nested_variables+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 if $as_echo 'TRUE=$(BAR$(V))
4092BAR0=false
4093BAR1=true
4094V=1
4095am__doit:
4096 @$(TRUE)
4097.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4098 am_cv_make_support_nested_variables=yes
4099else
4100 am_cv_make_support_nested_variables=no
4101fi
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4104$as_echo "$am_cv_make_support_nested_variables" >&6; }
4105if test $am_cv_make_support_nested_variables = yes; then
4106 AM_V='$(V)'
4107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4108else
4109 AM_V=$AM_DEFAULT_VERBOSITY
4110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4111fi
cristya448bd22011-10-14 12:38:13 +00004112AM_BACKSLASH='\'
4113
cristy73bd4a52010-10-05 11:24:23 +00004114if test "`cd $srcdir && pwd`" != "`pwd`"; then
4115 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4116 # is not polluted with repeated "-I."
4117 am__isrc=' -I$(srcdir)'
4118 # test to see if srcdir already configured
4119 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004120 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004121 fi
4122fi
4123
4124# test whether we have cygpath
4125if test -z "$CYGPATH_W"; then
4126 if (cygpath --version) >/dev/null 2>/dev/null; then
4127 CYGPATH_W='cygpath -w'
4128 else
4129 CYGPATH_W=echo
4130 fi
4131fi
4132
4133
4134# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004135 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004136 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004137
4138
cristya448bd22011-10-14 12:38:13 +00004139cat >>confdefs.h <<_ACEOF
4140#define PACKAGE "$PACKAGE"
4141_ACEOF
4142
4143
4144cat >>confdefs.h <<_ACEOF
4145#define VERSION "$VERSION"
4146_ACEOF
4147
cristy73bd4a52010-10-05 11:24:23 +00004148# Some tools Automake needs.
4149
4150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4151
4152
4153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4154
4155
4156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4157
4158
4159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4160
4161
4162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4163
cristyc0890a62012-07-19 00:18:20 +00004164# For better backward compatibility. To be removed once Automake 1.9.x
4165# dies out for good. For more background, see:
4166# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4167# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4168mkdir_p='$(MKDIR_P)'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170# We need awk for the "check" target. The system "awk" is bad on
4171# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004172# Always define AMTAR for backward compatibility. Yes, it's still used
4173# in the wild :-( We should find a proper way to deprecate it ...
4174AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004175
cristye69bdbe2013-05-03 21:40:44 +00004176
4177# We'll loop over all known methods to create a tar archive until one works.
4178_am_tools='gnutar pax cpio none'
4179
cristyc3fb77b2012-02-06 01:49:41 +00004180am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004181
4182
4183
4184
4185
cristy3ed852e2009-09-05 21:47:34 +00004186
cristya5bda012013-11-03 18:05:38 +00004187# POSIX will say in a future version that running "rm -f" with no argument
4188# is OK; and we want to be able to make that assumption in our Makefile
4189# recipes. So use an aggressive probe to check that the usage we want is
4190# actually supported "in the wild" to an acceptable degree.
4191# See automake bug#10828.
4192# To make any issue more visible, cause the running configure to be aborted
4193# by default if the 'rm' program in use doesn't match our expectations; the
4194# user can still override this though.
4195if rm -f && rm -fr && rm -rf; then : OK; else
4196 cat >&2 <<'END'
4197Oops!
4198
4199Your 'rm' program seems unable to run without file operands specified
4200on the command line, even when the '-f' option is present. This is contrary
4201to the behaviour of most rm programs out there, and not conforming with
4202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4203
4204Please tell bug-automake@gnu.org about your system, including the value
4205of your $PATH and any error possibly output before this message. This
4206can help us improve future automake versions.
4207
4208END
4209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4210 echo 'Configuration will proceed anyway, since you have set the' >&2
4211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4212 echo >&2
4213 else
4214 cat >&2 <<'END'
4215Aborting the configuration process, to ensure you take notice of the issue.
4216
4217You can download and install GNU coreutils to get an 'rm' implementation
4218that behaves properly: <http://www.gnu.org/software/coreutils/>.
4219
4220If you want to complete the configuration process using your problematic
4221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4222to "yes", and re-run configure.
4223
4224END
4225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4226 fi
4227fi
cristy73bd4a52010-10-05 11:24:23 +00004228# Check whether --enable-silent-rules was given.
4229if test "${enable_silent_rules+set}" = set; then :
4230 enableval=$enable_silent_rules;
4231fi
4232
cristyc0890a62012-07-19 00:18:20 +00004233case $enable_silent_rules in # (((
4234 yes) AM_DEFAULT_VERBOSITY=0;;
4235 no) AM_DEFAULT_VERBOSITY=1;;
4236 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004237esac
cristyc3fb77b2012-02-06 01:49:41 +00004238am_make=${MAKE-make}
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4240$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4241if ${am_cv_make_support_nested_variables+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243else
4244 if $as_echo 'TRUE=$(BAR$(V))
4245BAR0=false
4246BAR1=true
4247V=1
4248am__doit:
4249 @$(TRUE)
4250.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4251 am_cv_make_support_nested_variables=yes
4252else
4253 am_cv_make_support_nested_variables=no
4254fi
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4257$as_echo "$am_cv_make_support_nested_variables" >&6; }
4258if test $am_cv_make_support_nested_variables = yes; then
4259 AM_V='$(V)'
4260 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4261else
4262 AM_V=$AM_DEFAULT_VERBOSITY
4263 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4264fi
cristy73bd4a52010-10-05 11:24:23 +00004265AM_BACKSLASH='\'
4266
cristy3ed852e2009-09-05 21:47:34 +00004267
cristy9af1cbf2014-12-28 22:03:09 +00004268#
4269# Save initial user-tunable values
4270#
4271USER_LIBS=$LIBS
4272for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4273 eval isset=\${$var+set}
4274 if test "$isset" = 'set'; then
4275 eval val=$`echo $var`
4276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4277 fi
4278done
4279
4280
4281CONFIGURE_ARGS="$0 ${ac_configure_args}"
4282
4283
4284# Source file containing package/library versioning information.
4285. ${srcdir}/version.sh
4286
4287echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4288
4289MAGICK_TARGET_CPU=$host_cpu
4290
4291
4292cat >>confdefs.h <<_ACEOF
4293#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4294_ACEOF
4295
4296
4297MAGICK_TARGET_VENDOR=$host_vendor
4298
4299
4300cat >>confdefs.h <<_ACEOF
4301#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4302_ACEOF
4303
4304
4305MAGICK_TARGET_OS=$host_os
4306
4307
4308cat >>confdefs.h <<_ACEOF
4309#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4310_ACEOF
4311
4312
4313
4314# Substitute versioning
4315MAGICK_MAJOR_VERSION=7
4316
4317MAGICK_MINOR_VERSION=0
4318
4319MAGICK_MICRO_VERSION=0
4320
4321MAGICK_PATCHLEVEL_VERSION=0
4322
4323MAGICK_VERSION=7.0.0-0
4324
cristya5b91e72015-01-07 15:39:36 +00004325MAGICK_SVN_REVISION=17584:17590M
cristy9af1cbf2014-12-28 22:03:09 +00004326
4327
4328# Substitute library versioning
4329MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4330
4331MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4332
4333
4334MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4335
4336MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4337
4338
4339
4340# Ensure that make can run correctly
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4342$as_echo_n "checking whether build environment is sane... " >&6; }
4343# Reject unsafe characters in $srcdir or the absolute working directory
4344# name. Accept space and tab only in the latter.
4345am_lf='
4346'
4347case `pwd` in
4348 *[\\\"\#\$\&\'\`$am_lf]*)
4349 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4350esac
4351case $srcdir in
4352 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4353 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4354esac
4355
4356# Do 'set' in a subshell so we don't clobber the current shell's
4357# arguments. Must try -L first in case configure is actually a
4358# symlink; some systems play weird games with the mod time of symlinks
4359# (eg FreeBSD returns the mod time of the symlink's containing
4360# directory).
4361if (
4362 am_has_slept=no
4363 for am_try in 1 2; do
4364 echo "timestamp, slept: $am_has_slept" > conftest.file
4365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4366 if test "$*" = "X"; then
4367 # -L didn't work.
4368 set X `ls -t "$srcdir/configure" conftest.file`
4369 fi
4370 if test "$*" != "X $srcdir/configure conftest.file" \
4371 && test "$*" != "X conftest.file $srcdir/configure"; then
4372
4373 # If neither matched, then we have a broken ls. This can happen
4374 # if, for instance, CONFIG_SHELL is bash and it inherits a
4375 # broken ls alias from the environment. This has actually
4376 # happened. Such a system could not be considered "sane".
4377 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4378 alias in your environment" "$LINENO" 5
4379 fi
4380 if test "$2" = conftest.file || test $am_try -eq 2; then
4381 break
4382 fi
4383 # Just in case.
4384 sleep 1
4385 am_has_slept=yes
4386 done
4387 test "$2" = conftest.file
4388 )
4389then
4390 # Ok.
4391 :
4392else
4393 as_fn_error $? "newly created file is older than distributed files!
4394Check your system clock" "$LINENO" 5
4395fi
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397$as_echo "yes" >&6; }
4398# If we didn't sleep, we still need to ensure time stamps of config.status and
4399# generated files are strictly newer.
4400am_sleep_pid=
4401if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4402 ( sleep 1 ) &
4403 am_sleep_pid=$!
4404fi
4405
4406rm -f conftest.file
4407
4408
cristyf279b692014-08-13 12:01:27 +00004409# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004410MAGICK_LIB_VERSION="0x"
4411if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4412 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4413fi
4414MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4415if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4416 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4417fi
4418MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4419if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4420 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4421fi
4422MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4423
4424
4425# Definition used to define MagickLibVersionText in version.h
4426MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4427
4428
4429# Definition used to define MagickLibVersionNumber in version.h
4430MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4431
4432
cristy5ed9c6e2013-07-14 21:20:31 +00004433MAGICKPP_LIB_VERSION="0x"
4434if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4435 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4436fi
4437MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4438if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4439 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4440fi
4441MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4442if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4443 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4444fi
4445MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4446
4447
4448# Definition used to define MagickLibVersionText in version.h
4449MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4450
4451
4452# Definition used to define MagickLibVersionNumber in version.h
4453MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4454
4455
4456
4457
cristy3ed852e2009-09-05 21:47:34 +00004458# Regenerate config.status if ChangeLog or version.sh is updated.
4459CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4460
4461
4462PERLMAINCC=$CC
4463
4464MAGICK_CFLAGS=''
4465MAGICK_CPPFLAGS=$CPPFLAGS_USER
4466MAGICK_PCFLAGS=$CPPFLAGS_USER
4467MAGICK_LDFLAGS=''
4468MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004469MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004470
4471#
4472# Evaluate shell variable equivalents to Makefile directory variables
4473#
4474if test "x$prefix" = xNONE; then
4475 prefix=$ac_default_prefix
4476fi
4477# Let make expand exec_prefix.
4478if test "x$exec_prefix" = xNONE; then
4479 exec_prefix='${prefix}'
4480fi
4481
4482#
4483eval "eval PREFIX_DIR=${prefix}"
4484
4485eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4486
4487eval "eval BIN_DIR=$bindir"
4488
4489eval "eval SBIN_DIR=$sbindir"
4490
4491eval "eval LIBEXEC_DIR=$libexecdir"
4492
4493eval "eval DATA_DIR=$datadir"
4494
cristy4e65ec22012-04-08 01:33:27 +00004495eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004496
cristy3ed852e2009-09-05 21:47:34 +00004497eval "eval SYSCONF_DIR=$sysconfdir"
4498
4499eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4500
4501eval "eval LOCALSTATE_DIR=$localstatedir"
4502
4503eval "eval LIB_DIR=$libdir"
4504
4505eval "eval INCLUDE_DIR=$includedir"
4506
4507eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4508
4509eval "eval INFO_DIR=$infodir"
4510
4511eval "eval MAN_DIR=$mandir"
4512
4513
4514# Get full paths to source and build directories
4515srcdirfull="`cd $srcdir && pwd`"
4516builddir="`pwd`"
4517
4518#
4519# Compute variables useful for running uninstalled software.
4520#
4521MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4522MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4523MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4524MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4525DIRSEP=':'
4526case "${build_os}" in
4527 mingw* )
4528 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4529 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4530 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4531 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4532 DIRSEP=';'
4533 ;;
4534esac
4535case "${host_os}" in
4536 mingw* )
4537 DIRSEP=';'
4538 ;;
4539esac
4540
4541
4542
4543
4544
4545
cristya0b81c32010-01-22 02:54:33 +00004546
4547#
4548# Enable OS features.
4549#
cristy73bd4a52010-10-05 11:24:23 +00004550DEPDIR="${am__leading_dot}deps"
4551
4552ac_config_commands="$ac_config_commands depfiles"
4553
4554
4555am_make=${MAKE-make}
4556cat > confinc << 'END'
4557am__doit:
4558 @echo this is the am__doit target
4559.PHONY: am__doit
4560END
4561# If we don't find an include directive, just comment out the code.
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4563$as_echo_n "checking for style of include used by $am_make... " >&6; }
4564am__include="#"
4565am__quote=
4566_am_result=none
4567# First try GNU make style include.
4568echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004569# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004570case `$am_make -s -f confmf 2> /dev/null` in #(
4571*the\ am__doit\ target*)
4572 am__include=include
4573 am__quote=
4574 _am_result=GNU
4575 ;;
4576esac
4577# Now try BSD make style include.
4578if test "$am__include" = "#"; then
4579 echo '.include "confinc"' > confmf
4580 case `$am_make -s -f confmf 2> /dev/null` in #(
4581 *the\ am__doit\ target*)
4582 am__include=.include
4583 am__quote="\""
4584 _am_result=BSD
4585 ;;
4586 esac
4587fi
4588
4589
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4591$as_echo "$_am_result" >&6; }
4592rm -f confinc confmf
4593
4594# Check whether --enable-dependency-tracking was given.
4595if test "${enable_dependency_tracking+set}" = set; then :
4596 enableval=$enable_dependency_tracking;
4597fi
4598
4599if test "x$enable_dependency_tracking" != xno; then
4600 am_depcomp="$ac_aux_dir/depcomp"
4601 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004602 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004603fi
4604 if test "x$enable_dependency_tracking" != xno; then
4605 AMDEP_TRUE=
4606 AMDEP_FALSE='#'
4607else
4608 AMDEP_TRUE='#'
4609 AMDEP_FALSE=
4610fi
4611
4612
cristy3ed852e2009-09-05 21:47:34 +00004613ac_ext=c
4614ac_cpp='$CPP $CPPFLAGS'
4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004623if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004624 $as_echo_n "(cached) " >&6
4625else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638 break 2
4639 fi
4640done
cristy8b350f62009-11-15 23:12:43 +00004641 done
cristy3ed852e2009-09-05 21:47:34 +00004642IFS=$as_save_IFS
4643
4644fi
4645fi
4646CC=$ac_cv_prog_CC
4647if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo "$CC" >&6; }
4650else
cristy8b350f62009-11-15 23:12:43 +00004651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo "no" >&6; }
4653fi
4654
4655
4656fi
4657if test -z "$ac_cv_prog_CC"; then
4658 ac_ct_CC=$CC
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004663if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 $as_echo_n "(cached) " >&6
4665else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004676 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678 break 2
4679 fi
4680done
cristy8b350f62009-11-15 23:12:43 +00004681 done
cristy3ed852e2009-09-05 21:47:34 +00004682IFS=$as_save_IFS
4683
4684fi
4685fi
4686ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$ac_ct_CC" >&6; }
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo "no" >&6; }
4693fi
4694
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699yes:)
cristy8b350f62009-11-15 23:12:43 +00004700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704 CC=$ac_ct_CC
4705 fi
4706else
4707 CC="$ac_cv_prog_CC"
4708fi
4709
4710if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004716if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004717 $as_echo_n "(cached) " >&6
4718else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004729 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004731 break 2
4732 fi
4733done
cristy8b350f62009-11-15 23:12:43 +00004734 done
cristy3ed852e2009-09-05 21:47:34 +00004735IFS=$as_save_IFS
4736
4737fi
4738fi
4739CC=$ac_cv_prog_CC
4740if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004742$as_echo "$CC" >&6; }
4743else
cristy8b350f62009-11-15 23:12:43 +00004744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo "no" >&6; }
4746fi
4747
4748
4749 fi
4750fi
4751if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004756if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004757 $as_echo_n "(cached) " >&6
4758else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761else
4762 ac_prog_rejected=no
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected=yes
4772 continue
4773 fi
4774 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004776 break 2
4777 fi
4778done
cristy8b350f62009-11-15 23:12:43 +00004779 done
cristy3ed852e2009-09-05 21:47:34 +00004780IFS=$as_save_IFS
4781
4782if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy $ac_cv_prog_CC
4785 shift
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4790 shift
4791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4792 fi
4793fi
4794fi
4795fi
4796CC=$ac_cv_prog_CC
4797if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004799$as_echo "$CC" >&6; }
4800else
cristy8b350f62009-11-15 23:12:43 +00004801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802$as_echo "no" >&6; }
4803fi
4804
4805
4806fi
4807if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in cl.exe
4810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004815if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004816 $as_echo_n "(cached) " >&6
4817else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830 break 2
4831 fi
4832done
cristy8b350f62009-11-15 23:12:43 +00004833 done
cristy3ed852e2009-09-05 21:47:34 +00004834IFS=$as_save_IFS
4835
4836fi
4837fi
4838CC=$ac_cv_prog_CC
4839if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$CC" >&6; }
4842else
cristy8b350f62009-11-15 23:12:43 +00004843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "no" >&6; }
4845fi
4846
4847
4848 test -n "$CC" && break
4849 done
4850fi
4851if test -z "$CC"; then
4852 ac_ct_CC=$CC
4853 for ac_prog in cl.exe
4854do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004859if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004860 $as_echo_n "(cached) " >&6
4861else
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004872 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874 break 2
4875 fi
4876done
cristy8b350f62009-11-15 23:12:43 +00004877 done
cristy3ed852e2009-09-05 21:47:34 +00004878IFS=$as_save_IFS
4879
4880fi
4881fi
4882ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "$ac_ct_CC" >&6; }
4886else
cristy8b350f62009-11-15 23:12:43 +00004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "no" >&6; }
4889fi
4890
4891
4892 test -n "$ac_ct_CC" && break
4893done
4894
4895 if test "x$ac_ct_CC" = x; then
4896 CC=""
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899yes:)
cristy8b350f62009-11-15 23:12:43 +00004900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902ac_tool_warned=yes ;;
4903esac
4904 CC=$ac_ct_CC
4905 fi
4906fi
4907
4908fi
4909
4910
cristy8b350f62009-11-15 23:12:43 +00004911test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004913as_fn_error $? "no acceptable C compiler found in \$PATH
4914See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004915
4916# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004917$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918set X $ac_compile
4919ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004920for ac_option in --version -v -V -qversion; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004922case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925esac
cristy8b350f62009-11-15 23:12:43 +00004926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927$as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004929 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004930 if test -s conftest.err; then
4931 sed '10a\
4932... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004935 fi
cristycd4c5312009-11-22 01:19:08 +00004936 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939done
cristy3ed852e2009-09-05 21:47:34 +00004940
cristy8b350f62009-11-15 23:12:43 +00004941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004942/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004943
cristy3ed852e2009-09-05 21:47:34 +00004944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004953ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004954# Try to create an executable without -o first, disregard a.out.
4955# It will help us diagnose broken compilers, and finding out an intuition
4956# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004959ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4960
4961# The possible output files:
4962ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4963
4964ac_rmfiles=
4965for ac_file in $ac_files
4966do
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4970 esac
4971done
4972rm -f $ac_rmfiles
4973
cristy8b350f62009-11-15 23:12:43 +00004974if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
cristy8b350f62009-11-15 23:12:43 +00004979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004981 (eval "$ac_link_default") 2>&5
4982 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987# in a Makefile. We should not override ac_cv_exeext if it was cached,
4988# so that the user can short-circuit this test for compilers unknown to
4989# Autoconf.
4990for ac_file in $ac_files ''
4991do
4992 test -f "$ac_file" || continue
4993 case $ac_file in
4994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4995 ;;
4996 [ab].out )
4997 # We found the default executable, but exeext='' is most
4998 # certainly right.
4999 break;;
5000 *.* )
cristy8b350f62009-11-15 23:12:43 +00005001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005002 then :; else
5003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 fi
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5009 # actually working.
5010 break;;
5011 * )
5012 break;;
5013 esac
5014done
5015test "$ac_cv_exeext" = no && ac_cv_exeext=
5016
5017else
5018 ac_file=''
5019fi
cristy8b350f62009-11-15 23:12:43 +00005020if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024sed 's/^/| /' conftest.$ac_ext >&5
5025
cristy8b350f62009-11-15 23:12:43 +00005026{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005028as_fn_error 77 "C compiler cannot create executables
5029See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005030else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005033fi
cristycd4c5312009-11-22 01:19:08 +00005034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035$as_echo_n "checking for C compiler default output file name... " >&6; }
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005038ac_exeext=$ac_cv_exeext
5039
cristycd4c5312009-11-22 01:19:08 +00005040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005041ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005043$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005044if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005045case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048esac
cristy8b350f62009-11-15 23:12:43 +00005049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005051 (eval "$ac_link") 2>&5
5052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057# work properly (i.e., refer to `conftest.exe'), while it won't with
5058# `rm'.
5059for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067done
5068else
cristy8b350f62009-11-15 23:12:43 +00005069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5072See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005073fi
cristycd4c5312009-11-22 01:19:08 +00005074rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005076$as_echo "$ac_cv_exeext" >&6; }
5077
5078rm -f conftest.$ac_ext
5079EXEEXT=$ac_cv_exeext
5080ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h. */
5083#include <stdio.h>
5084int
5085main ()
5086{
5087FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094ac_clean_files="$ac_clean_files conftest.out"
5095# Check that the compiler produces executables we can run. If not, either
5096# the compiler is broken, or we cross compile.
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098$as_echo_n "checking whether we are cross compiling... " >&6; }
5099if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106$as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117$as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005129as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005130If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005131See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005132 fi
5133 fi
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136$as_echo "$cross_compiling" >&6; }
5137
5138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005142if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005143 $as_echo_n "(cached) " >&6
5144else
cristy8b350f62009-11-15 23:12:43 +00005145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005146/* end confdefs.h. */
5147
5148int
5149main ()
5150{
5151
5152 ;
5153 return 0;
5154}
5155_ACEOF
5156rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005157if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005158case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161esac
cristy8b350f62009-11-15 23:12:43 +00005162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175done
5176else
5177 $as_echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
cristy8b350f62009-11-15 23:12:43 +00005180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005182as_fn_error $? "cannot compute suffix of object files: cannot compile
5183See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005184fi
cristy3ed852e2009-09-05 21:47:34 +00005185rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186fi
cristy8b350f62009-11-15 23:12:43 +00005187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005188$as_echo "$ac_cv_objext" >&6; }
5189OBJEXT=$ac_cv_objext
5190ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005192$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005193if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005194 $as_echo_n "(cached) " >&6
5195else
cristy8b350f62009-11-15 23:12:43 +00005196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005197/* end confdefs.h. */
5198
5199int
5200main ()
5201{
5202#ifndef __GNUC__
5203 choke me
5204#endif
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005211 ac_compiler_gnu=yes
5212else
cristy8b350f62009-11-15 23:12:43 +00005213 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005214fi
cristy3ed852e2009-09-05 21:47:34 +00005215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217
5218fi
cristy8b350f62009-11-15 23:12:43 +00005219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005220$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223else
5224 GCC=
5225fi
5226ac_test_CFLAGS=${CFLAGS+set}
5227ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005229$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005230if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005238/* end confdefs.h. */
5239
5240int
5241main ()
5242{
5243
5244 ;
5245 return 0;
5246}
5247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005248if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005249 ac_cv_prog_cc_g=yes
5250else
cristy8b350f62009-11-15 23:12:43 +00005251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005253/* end confdefs.h. */
5254
5255int
5256main ()
5257{
5258
5259 ;
5260 return 0;
5261}
5262_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005263if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005264
cristy8b350f62009-11-15 23:12:43 +00005265else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005267 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005269/* end confdefs.h. */
5270
5271int
5272main ()
5273{
5274
5275 ;
5276 return 0;
5277}
5278_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005280 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005281fi
cristy3ed852e2009-09-05 21:47:34 +00005282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
cristy3ed852e2009-09-05 21:47:34 +00005284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
cristy3ed852e2009-09-05 21:47:34 +00005286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5288fi
cristy8b350f62009-11-15 23:12:43 +00005289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005290$as_echo "$ac_cv_prog_cc_g" >&6; }
5291if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5298 fi
5299else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5304 fi
5305fi
cristy8b350f62009-11-15 23:12:43 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005308if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005309 $as_echo_n "(cached) " >&6
5310else
5311 ac_cv_prog_cc_c89=no
5312ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005314/* end confdefs.h. */
5315#include <stdarg.h>
5316#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005317struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005318/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5319struct buf { int x; };
5320FILE * (*rcsopen) (struct buf *, struct stat *, int);
5321static char *e (p, i)
5322 char **p;
5323 int i;
5324{
5325 return p[i];
5326}
5327static char *f (char * (*g) (char **, int), char **p, ...)
5328{
5329 char *s;
5330 va_list v;
5331 va_start (v,p);
5332 s = g (p, va_arg (v,int));
5333 va_end (v);
5334 return s;
5335}
5336
5337/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5338 function prototypes and stuff, but not '\xHH' hex character constants.
5339 These don't provoke an error unfortunately, instead are silently treated
5340 as 'x'. The following induces an error, until -std is added to get
5341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5342 array size at least. It's necessary to write '\x00'==0 to get something
5343 that's true only with -std. */
5344int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5345
5346/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5347 inside strings and character constants. */
5348#define FOO(x) 'x'
5349int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5350
5351int test (int i, double x);
5352struct s1 {int (*f) (int a);};
5353struct s2 {int (*f) (double a);};
5354int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5355int argc;
5356char **argv;
5357int
5358main ()
5359{
5360return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5361 ;
5362 return 0;
5363}
5364_ACEOF
5365for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5367do
5368 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005369 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005370 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005371fi
cristy3ed852e2009-09-05 21:47:34 +00005372rm -f core conftest.err conftest.$ac_objext
5373 test "x$ac_cv_prog_cc_c89" != "xno" && break
5374done
5375rm -f conftest.$ac_ext
5376CC=$ac_save_CC
5377
5378fi
5379# AC_CACHE_VAL
5380case "x$ac_cv_prog_cc_c89" in
5381 x)
cristy8b350f62009-11-15 23:12:43 +00005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005383$as_echo "none needed" >&6; } ;;
5384 xno)
cristy8b350f62009-11-15 23:12:43 +00005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005386$as_echo "unsupported" >&6; } ;;
5387 *)
5388 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005390$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5391esac
cristy8b350f62009-11-15 23:12:43 +00005392if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005393
cristy8b350f62009-11-15 23:12:43 +00005394fi
cristy3ed852e2009-09-05 21:47:34 +00005395
5396ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005401
cristya5bda012013-11-03 18:05:38 +00005402ac_ext=c
5403ac_cpp='$CPP $CPPFLAGS'
5404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5408$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5409if ${am_cv_prog_cc_c_o+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423 # Make sure it works both with $CC and with simple cc.
5424 # Following AC_PROG_CC_C_O, we do the test twice because some
5425 # compilers refuse to overwrite an existing .o file with -o,
5426 # though they will create one.
5427 am_cv_prog_cc_c_o=yes
5428 for am_i in 1 2; do
5429 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5430 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } \
5434 && test -f conftest2.$ac_objext; then
5435 : OK
5436 else
5437 am_cv_prog_cc_c_o=no
5438 break
5439 fi
5440 done
5441 rm -f core conftest*
5442 unset am_i
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5445$as_echo "$am_cv_prog_cc_c_o" >&6; }
5446if test "$am_cv_prog_cc_c_o" != yes; then
5447 # Losing compiler, so override with the script.
5448 # FIXME: It is wrong to rewrite CC.
5449 # But if we don't then we get into trouble of one sort or another.
5450 # A longer-term fix would be to have automake use am__CC in this case,
5451 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5452 CC="$am_aux_dir/compile $CC"
5453fi
5454ac_ext=c
5455ac_cpp='$CPP $CPPFLAGS'
5456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460
cristy73bd4a52010-10-05 11:24:23 +00005461depcc="$CC" am_compiler_list=
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5464$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005465if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5469 # We make a subdir and do the tests there. Otherwise we can end up
5470 # making bogus files that we don't know about and never remove. For
5471 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005472 # making a dummy file named 'D' -- because '-MD' means "put the output
5473 # in D".
cristy7247bba2012-02-05 16:37:27 +00005474 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005475 mkdir conftest.dir
5476 # Copy depcomp to subdir because otherwise we won't find it if we're
5477 # using a relative directory.
5478 cp "$am_depcomp" conftest.dir
5479 cd conftest.dir
5480 # We will build objects and dependencies in a subdirectory because
5481 # it helps to detect inapplicable dependency modes. For instance
5482 # both Tru64's cc and ICC support -MD to output dependencies as a
5483 # side effect of compilation, but ICC will put the dependencies in
5484 # the current directory while Tru64 will put them in the object
5485 # directory.
5486 mkdir sub
5487
5488 am_cv_CC_dependencies_compiler_type=none
5489 if test "$am_compiler_list" = ""; then
5490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5491 fi
5492 am__universal=false
5493 case " $depcc " in #(
5494 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5495 esac
5496
5497 for depmode in $am_compiler_list; do
5498 # Setup a source with many dependencies, because some compilers
5499 # like to wrap large dependency lists on column 80 (with \), and
5500 # we should not choose a depcomp mode which is confused by this.
5501 #
5502 # We need to recreate these files for each test, as the compiler may
5503 # overwrite some of them when testing with obscure command lines.
5504 # This happens at least with the AIX C compiler.
5505 : > sub/conftest.c
5506 for i in 1 2 3 4 5 6; do
5507 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005508 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5509 # Solaris 10 /bin/sh.
5510 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005511 done
5512 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5513
cristyc0890a62012-07-19 00:18:20 +00005514 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005515 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005516 # handle '-M -o', and we need to detect this. Also, some Intel
5517 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005518 am__obj=sub/conftest.${OBJEXT-o}
5519 am__minus_obj="-o $am__obj"
5520 case $depmode in
5521 gcc)
5522 # This depmode causes a compiler race in universal mode.
5523 test "$am__universal" = false || continue
5524 ;;
5525 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005526 # After this tag, mechanisms are not by side-effect, so they'll
5527 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005528 if test "x$enable_dependency_tracking" = xyes; then
5529 continue
5530 else
5531 break
5532 fi
5533 ;;
cristy7247bba2012-02-05 16:37:27 +00005534 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005535 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005536 # not run yet. These depmodes are late enough in the game, and
5537 # so weak that their functioning should not be impacted.
5538 am__obj=conftest.${OBJEXT-o}
5539 am__minus_obj=
5540 ;;
5541 none) break ;;
5542 esac
5543 if depmode=$depmode \
5544 source=sub/conftest.c object=$am__obj \
5545 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5546 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5547 >/dev/null 2>conftest.err &&
5548 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5549 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5550 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5551 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5552 # icc doesn't choke on unknown options, it will just issue warnings
5553 # or remarks (even with -Werror). So we grep stderr for any message
5554 # that says an option was ignored or not supported.
5555 # When given -MP, icc 7.0 and 7.1 complain thusly:
5556 # icc: Command line warning: ignoring option '-M'; no argument required
5557 # The diagnosis changed in icc 8.0:
5558 # icc: Command line remark: option '-MP' not supported
5559 if (grep 'ignoring option' conftest.err ||
5560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5561 am_cv_CC_dependencies_compiler_type=$depmode
5562 break
5563 fi
5564 fi
5565 done
5566
5567 cd ..
5568 rm -rf conftest.dir
5569else
5570 am_cv_CC_dependencies_compiler_type=none
5571fi
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5575$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5576CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5577
5578 if
5579 test "x$enable_dependency_tracking" != xno \
5580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5581 am__fastdepCC_TRUE=
5582 am__fastdepCC_FALSE='#'
5583else
5584 am__fastdepCC_TRUE='#'
5585 am__fastdepCC_FALSE=
5586fi
5587
5588
cristy3ed852e2009-09-05 21:47:34 +00005589
cristya0b81c32010-01-22 02:54:33 +00005590ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5596$as_echo_n "checking how to run the C preprocessor... " >&6; }
5597# On Suns, sometimes $CPP names a directory.
5598if test -n "$CPP" && test -d "$CPP"; then
5599 CPP=
5600fi
5601if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005602 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005603 $as_echo_n "(cached) " >&6
5604else
5605 # Double quotes because CPP needs to be expanded
5606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5607 do
5608 ac_preproc_ok=false
5609for ac_c_preproc_warn_flag in '' yes
5610do
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624 Syntax error
5625_ACEOF
5626if ac_fn_c_try_cpp "$LINENO"; then :
5627
5628else
5629 # Broken: fails on valid input.
5630continue
5631fi
cristyda16f162011-02-19 23:52:17 +00005632rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005633
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638#include <ac_nonexistent.h>
5639_ACEOF
5640if ac_fn_c_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5642continue
5643else
5644 # Passes both tests.
5645ac_preproc_ok=:
5646break
5647fi
cristyda16f162011-02-19 23:52:17 +00005648rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005649
5650done
5651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005652rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005653if $ac_preproc_ok; then :
5654 break
5655fi
5656
5657 done
5658 ac_cv_prog_CPP=$CPP
5659
5660fi
5661 CPP=$ac_cv_prog_CPP
5662else
5663 ac_cv_prog_CPP=$CPP
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5666$as_echo "$CPP" >&6; }
5667ac_preproc_ok=false
5668for ac_c_preproc_warn_flag in '' yes
5669do
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678#ifdef __STDC__
5679# include <limits.h>
5680#else
5681# include <assert.h>
5682#endif
5683 Syntax error
5684_ACEOF
5685if ac_fn_c_try_cpp "$LINENO"; then :
5686
5687else
5688 # Broken: fails on valid input.
5689continue
5690fi
cristyda16f162011-02-19 23:52:17 +00005691rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005692
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h. */
5697#include <ac_nonexistent.h>
5698_ACEOF
5699if ac_fn_c_try_cpp "$LINENO"; then :
5700 # Broken: success on invalid input.
5701continue
5702else
5703 # Passes both tests.
5704ac_preproc_ok=:
5705break
5706fi
cristyda16f162011-02-19 23:52:17 +00005707rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005708
5709done
5710# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005711rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005712if $ac_preproc_ok; then :
5713
5714else
5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005717as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5718See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005719fi
5720
5721ac_ext=c
5722ac_cpp='$CPP $CPPFLAGS'
5723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726
5727
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5729$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005730if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005731 $as_echo_n "(cached) " >&6
5732else
5733 if test -z "$GREP"; then
5734 ac_path_GREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in grep ggrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005744 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005745# Check for GNU ac_path_GREP and select it if it is found.
5746 # Check for GNU $ac_path_GREP
5747case `"$ac_path_GREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'GREP' >> "conftest.nl"
5759 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_GREP="$ac_path_GREP"
5765 ac_path_GREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_GREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005779 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005780 fi
5781else
5782 ac_cv_path_GREP=$GREP
5783fi
5784
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5787$as_echo "$ac_cv_path_GREP" >&6; }
5788 GREP="$ac_cv_path_GREP"
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5792$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005793if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005794 $as_echo_n "(cached) " >&6
5795else
5796 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5797 then ac_cv_path_EGREP="$GREP -E"
5798 else
5799 if test -z "$EGREP"; then
5800 ac_path_EGREP_found=false
5801 # Loop through the user's path and test for each of PROGNAME-LIST
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_prog in egrep; do
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005810 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005811# Check for GNU ac_path_EGREP and select it if it is found.
5812 # Check for GNU $ac_path_EGREP
5813case `"$ac_path_EGREP" --version 2>&1` in
5814*GNU*)
5815 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5816*)
5817 ac_count=0
5818 $as_echo_n 0123456789 >"conftest.in"
5819 while :
5820 do
5821 cat "conftest.in" "conftest.in" >"conftest.tmp"
5822 mv "conftest.tmp" "conftest.in"
5823 cp "conftest.in" "conftest.nl"
5824 $as_echo 'EGREP' >> "conftest.nl"
5825 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5827 as_fn_arith $ac_count + 1 && ac_count=$as_val
5828 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5829 # Best one so far, save it but keep looking for a better one
5830 ac_cv_path_EGREP="$ac_path_EGREP"
5831 ac_path_EGREP_max=$ac_count
5832 fi
5833 # 10*(2^10) chars as input seems more than enough
5834 test $ac_count -gt 10 && break
5835 done
5836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5837esac
5838
5839 $ac_path_EGREP_found && break 3
5840 done
5841 done
5842 done
5843IFS=$as_save_IFS
5844 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005845 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005846 fi
5847else
5848 ac_cv_path_EGREP=$EGREP
5849fi
5850
5851 fi
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5854$as_echo "$ac_cv_path_EGREP" >&6; }
5855 EGREP="$ac_cv_path_EGREP"
5856
5857
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5859$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005860if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005861 $as_echo_n "(cached) " >&6
5862else
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865#include <stdlib.h>
5866#include <stdarg.h>
5867#include <string.h>
5868#include <float.h>
5869
5870int
5871main ()
5872{
5873
5874 ;
5875 return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"; then :
5879 ac_cv_header_stdc=yes
5880else
5881 ac_cv_header_stdc=no
5882fi
5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
5885if test $ac_cv_header_stdc = yes; then
5886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h. */
5889#include <string.h>
5890
5891_ACEOF
5892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 $EGREP "memchr" >/dev/null 2>&1; then :
5894
5895else
5896 ac_cv_header_stdc=no
5897fi
5898rm -f conftest*
5899
5900fi
5901
5902if test $ac_cv_header_stdc = yes; then
5903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include <stdlib.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "free" >/dev/null 2>&1; then :
5911
5912else
5913 ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5921 if test "$cross_compiling" = yes; then :
5922 :
5923else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h. */
5926#include <ctype.h>
5927#include <stdlib.h>
5928#if ((' ' & 0x0FF) == 0x020)
5929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5931#else
5932# define ISLOWER(c) \
5933 (('a' <= (c) && (c) <= 'i') \
5934 || ('j' <= (c) && (c) <= 'r') \
5935 || ('s' <= (c) && (c) <= 'z'))
5936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5937#endif
5938
5939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5940int
5941main ()
5942{
5943 int i;
5944 for (i = 0; i < 256; i++)
5945 if (XOR (islower (i), ISLOWER (i))
5946 || toupper (i) != TOUPPER (i))
5947 return 2;
5948 return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_run "$LINENO"; then :
5952
5953else
5954 ac_cv_header_stdc=no
5955fi
5956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5957 conftest.$ac_objext conftest.beam conftest.$ac_ext
5958fi
5959
5960fi
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5963$as_echo "$ac_cv_header_stdc" >&6; }
5964if test $ac_cv_header_stdc = yes; then
5965
5966$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5967
5968fi
5969
5970# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5972 inttypes.h stdint.h unistd.h
5973do :
5974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5975ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5976"
cristy98dddb52010-11-04 00:30:15 +00005977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005978 cat >>confdefs.h <<_ACEOF
5979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980_ACEOF
5981
5982fi
5983
5984done
5985
5986
5987
5988 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005989if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005990 MINIX=yes
5991else
5992 MINIX=
5993fi
5994
5995
5996 if test "$MINIX" = yes; then
5997
5998$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5999
6000
6001$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6002
6003
6004$as_echo "#define _MINIX 1" >>confdefs.h
6005
6006 fi
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6010$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006011if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h. */
6016
cristy14fefe52012-05-21 00:59:18 +00006017# define __EXTENSIONS__ 1
6018 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006019int
6020main ()
6021{
6022
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_safe_to_define___extensions__=yes
6029else
6030 ac_cv_safe_to_define___extensions__=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033fi
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6035$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6036 test $ac_cv_safe_to_define___extensions__ = yes &&
6037 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6038
6039 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6040
6041 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6042
6043 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6044
6045 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6046
6047
6048
cristy9af1cbf2014-12-28 22:03:09 +00006049# ==============================================================================
6050# Find required base packages
6051# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006052if test -n "$ac_tool_prefix"; then
6053 for ac_prog in ar lib "link -lib"
6054 do
6055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_AR+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test -n "$AR"; then
6063 ac_cv_prog_AR="$AR" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077 done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082AR=$ac_cv_prog_AR
6083if test -n "$AR"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6085$as_echo "$AR" >&6; }
6086else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091
6092 test -n "$AR" && break
6093 done
6094fi
6095if test -z "$AR"; then
6096 ac_ct_AR=$AR
6097 for ac_prog in ar lib "link -lib"
6098do
6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
6100set dummy $ac_prog; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_ac_ct_AR+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105else
6106 if test -n "$ac_ct_AR"; then
6107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_ac_ct_AR="$ac_prog"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121 done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126ac_ct_AR=$ac_cv_prog_ac_ct_AR
6127if test -n "$ac_ct_AR"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6129$as_echo "$ac_ct_AR" >&6; }
6130else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135
6136 test -n "$ac_ct_AR" && break
6137done
6138
6139 if test "x$ac_ct_AR" = x; then
6140 AR="false"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143yes:)
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146ac_tool_warned=yes ;;
6147esac
6148 AR=$ac_ct_AR
6149 fi
6150fi
6151
6152: ${AR=ar}
6153
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6155$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6156if ${am_cv_ar_interface+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158else
6159 ac_ext=c
6160ac_cpp='$CPP $CPPFLAGS'
6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165 am_cv_ar_interface=ar
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h. */
6168int some_variable = 0;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6173 (eval $am_ar_try) 2>&5
6174 ac_status=$?
6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; }
6177 if test "$ac_status" -eq 0; then
6178 am_cv_ar_interface=ar
6179 else
6180 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6182 (eval $am_ar_try) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }
6186 if test "$ac_status" -eq 0; then
6187 am_cv_ar_interface=lib
6188 else
6189 am_cv_ar_interface=unknown
6190 fi
6191 fi
6192 rm -f conftest.lib libconftest.a
6193
6194fi
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_ext=c
6197ac_cpp='$CPP $CPPFLAGS'
6198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6204$as_echo "$am_cv_ar_interface" >&6; }
6205
6206case $am_cv_ar_interface in
6207ar)
6208 ;;
6209lib)
6210 # Microsoft lib, so override with the ar-lib wrapper script.
6211 # FIXME: It is wrong to rewrite AR.
6212 # But if we don't then we get into trouble of one sort or another.
6213 # A longer-term fix would be to have automake use am__AR in this case,
6214 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6215 # similar.
6216 AR="$am_aux_dir/ar-lib $AR"
6217 ;;
6218unknown)
6219 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6220 ;;
6221esac
cristy9af1cbf2014-12-28 22:03:09 +00006222
cristya0b81c32010-01-22 02:54:33 +00006223ac_ext=c
6224ac_cpp='$CPP $CPPFLAGS'
6225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6230set dummy ${ac_tool_prefix}gcc; ac_word=$2
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006233if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006234 $as_echo_n "(cached) " >&6
6235else
6236 if test -n "$CC"; then
6237 ac_cv_prog_CC="$CC" # Let the user override the test.
6238else
6239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240for as_dir in $PATH
6241do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250done
6251 done
6252IFS=$as_save_IFS
6253
6254fi
6255fi
6256CC=$ac_cv_prog_CC
6257if test -n "$CC"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6259$as_echo "$CC" >&6; }
6260else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262$as_echo "no" >&6; }
6263fi
6264
6265
6266fi
6267if test -z "$ac_cv_prog_CC"; then
6268 ac_ct_CC=$CC
6269 # Extract the first word of "gcc", so it can be a program name with args.
6270set dummy gcc; ac_word=$2
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006273if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006274 $as_echo_n "(cached) " >&6
6275else
6276 if test -n "$ac_ct_CC"; then
6277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006286 ac_cv_prog_ac_ct_CC="gcc"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290done
6291 done
6292IFS=$as_save_IFS
6293
6294fi
6295fi
6296ac_ct_CC=$ac_cv_prog_ac_ct_CC
6297if test -n "$ac_ct_CC"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6299$as_echo "$ac_ct_CC" >&6; }
6300else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304
6305 if test "x$ac_ct_CC" = x; then
6306 CC=""
6307 else
6308 case $cross_compiling:$ac_tool_warned in
6309yes:)
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312ac_tool_warned=yes ;;
6313esac
6314 CC=$ac_ct_CC
6315 fi
6316else
6317 CC="$ac_cv_prog_CC"
6318fi
6319
6320if test -z "$CC"; then
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6323set dummy ${ac_tool_prefix}cc; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006326if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006327 $as_echo_n "(cached) " >&6
6328else
6329 if test -n "$CC"; then
6330 ac_cv_prog_CC="$CC" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006339 ac_cv_prog_CC="${ac_tool_prefix}cc"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344 done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349CC=$ac_cv_prog_CC
6350if test -n "$CC"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6352$as_echo "$CC" >&6; }
6353else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358
6359 fi
6360fi
6361if test -z "$CC"; then
6362 # Extract the first word of "cc", so it can be a program name with args.
6363set dummy cc; ac_word=$2
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006366if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006367 $as_echo_n "(cached) " >&6
6368else
6369 if test -n "$CC"; then
6370 ac_cv_prog_CC="$CC" # Let the user override the test.
6371else
6372 ac_prog_rejected=no
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6381 ac_prog_rejected=yes
6382 continue
6383 fi
6384 ac_cv_prog_CC="cc"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392if test $ac_prog_rejected = yes; then
6393 # We found a bogon in the path, so make sure we never use it.
6394 set dummy $ac_cv_prog_CC
6395 shift
6396 if test $# != 0; then
6397 # We chose a different compiler from the bogus one.
6398 # However, it has the same basename, so the bogon will be chosen
6399 # first if we set CC to just the basename; use the full file name.
6400 shift
6401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6402 fi
6403fi
6404fi
6405fi
6406CC=$ac_cv_prog_CC
6407if test -n "$CC"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6409$as_echo "$CC" >&6; }
6410else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$CC"; then
6418 if test -n "$ac_tool_prefix"; then
6419 for ac_prog in cl.exe
6420 do
6421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006425if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$CC"; then
6429 ac_cv_prog_CC="$CC" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443 done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448CC=$ac_cv_prog_CC
6449if test -n "$CC"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6451$as_echo "$CC" >&6; }
6452else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458 test -n "$CC" && break
6459 done
6460fi
6461if test -z "$CC"; then
6462 ac_ct_CC=$CC
6463 for ac_prog in cl.exe
6464do
6465 # Extract the first word of "$ac_prog", so it can be a program name with args.
6466set dummy $ac_prog; ac_word=$2
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006469if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006470 $as_echo_n "(cached) " >&6
6471else
6472 if test -n "$ac_ct_CC"; then
6473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006482 ac_cv_prog_ac_ct_CC="$ac_prog"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487 done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492ac_ct_CC=$ac_cv_prog_ac_ct_CC
6493if test -n "$ac_ct_CC"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6495$as_echo "$ac_ct_CC" >&6; }
6496else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499fi
6500
6501
6502 test -n "$ac_ct_CC" && break
6503done
6504
6505 if test "x$ac_ct_CC" = x; then
6506 CC=""
6507 else
6508 case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512ac_tool_warned=yes ;;
6513esac
6514 CC=$ac_ct_CC
6515 fi
6516fi
6517
6518fi
6519
6520
6521test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006523as_fn_error $? "no acceptable C compiler found in \$PATH
6524See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006525
6526# Provide some information about the compiler.
6527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6528set X $ac_compile
6529ac_compiler=$2
6530for ac_option in --version -v -V -qversion; do
6531 { { ac_try="$ac_compiler $ac_option >&5"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6537$as_echo "$ac_try_echo"; } >&5
6538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6539 ac_status=$?
6540 if test -s conftest.err; then
6541 sed '10a\
6542... rest of stderr output deleted ...
6543 10q' conftest.err >conftest.er1
6544 cat conftest.er1 >&5
6545 fi
6546 rm -f conftest.er1 conftest.err
6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }
6549done
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6552$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006553if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006554 $as_echo_n "(cached) " >&6
6555else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h. */
6558
6559int
6560main ()
6561{
6562#ifndef __GNUC__
6563 choke me
6564#endif
6565
6566 ;
6567 return 0;
6568}
6569_ACEOF
6570if ac_fn_c_try_compile "$LINENO"; then :
6571 ac_compiler_gnu=yes
6572else
6573 ac_compiler_gnu=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576ac_cv_c_compiler_gnu=$ac_compiler_gnu
6577
6578fi
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6580$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6581if test $ac_compiler_gnu = yes; then
6582 GCC=yes
6583else
6584 GCC=
6585fi
6586ac_test_CFLAGS=${CFLAGS+set}
6587ac_save_CFLAGS=$CFLAGS
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6589$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006590if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006591 $as_echo_n "(cached) " >&6
6592else
6593 ac_save_c_werror_flag=$ac_c_werror_flag
6594 ac_c_werror_flag=yes
6595 ac_cv_prog_cc_g=no
6596 CFLAGS="-g"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h. */
6599
6600int
6601main ()
6602{
6603
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"; then :
6609 ac_cv_prog_cc_g=yes
6610else
6611 CFLAGS=""
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h. */
6614
6615int
6616main ()
6617{
6618
6619 ;
6620 return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"; then :
6624
6625else
6626 ac_c_werror_flag=$ac_save_c_werror_flag
6627 CFLAGS="-g"
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h. */
6630
6631int
6632main ()
6633{
6634
6635 ;
6636 return 0;
6637}
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"; then :
6640 ac_cv_prog_cc_g=yes
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 ac_c_werror_flag=$ac_save_c_werror_flag
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6650$as_echo "$ac_cv_prog_cc_g" >&6; }
6651if test "$ac_test_CFLAGS" = set; then
6652 CFLAGS=$ac_save_CFLAGS
6653elif test $ac_cv_prog_cc_g = yes; then
6654 if test "$GCC" = yes; then
6655 CFLAGS="-g -O2"
6656 else
6657 CFLAGS="-g"
6658 fi
6659else
6660 if test "$GCC" = yes; then
6661 CFLAGS="-O2"
6662 else
6663 CFLAGS=
6664 fi
6665fi
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6667$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006668if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006669 $as_echo_n "(cached) " >&6
6670else
6671 ac_cv_prog_cc_c89=no
6672ac_save_CC=$CC
6673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675#include <stdarg.h>
6676#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006677struct stat;
cristya0b81c32010-01-22 02:54:33 +00006678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6679struct buf { int x; };
6680FILE * (*rcsopen) (struct buf *, struct stat *, int);
6681static char *e (p, i)
6682 char **p;
6683 int i;
6684{
6685 return p[i];
6686}
6687static char *f (char * (*g) (char **, int), char **p, ...)
6688{
6689 char *s;
6690 va_list v;
6691 va_start (v,p);
6692 s = g (p, va_arg (v,int));
6693 va_end (v);
6694 return s;
6695}
6696
6697/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6698 function prototypes and stuff, but not '\xHH' hex character constants.
6699 These don't provoke an error unfortunately, instead are silently treated
6700 as 'x'. The following induces an error, until -std is added to get
6701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6702 array size at least. It's necessary to write '\x00'==0 to get something
6703 that's true only with -std. */
6704int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6705
6706/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6707 inside strings and character constants. */
6708#define FOO(x) 'x'
6709int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6710
6711int test (int i, double x);
6712struct s1 {int (*f) (int a);};
6713struct s2 {int (*f) (double a);};
6714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6715int argc;
6716char **argv;
6717int
6718main ()
6719{
6720return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6727do
6728 CC="$ac_save_CC $ac_arg"
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 ac_cv_prog_cc_c89=$ac_arg
6731fi
6732rm -f core conftest.err conftest.$ac_objext
6733 test "x$ac_cv_prog_cc_c89" != "xno" && break
6734done
6735rm -f conftest.$ac_ext
6736CC=$ac_save_CC
6737
6738fi
6739# AC_CACHE_VAL
6740case "x$ac_cv_prog_cc_c89" in
6741 x)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6743$as_echo "none needed" >&6; } ;;
6744 xno)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6746$as_echo "unsupported" >&6; } ;;
6747 *)
6748 CC="$CC $ac_cv_prog_cc_c89"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6750$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6751esac
6752if test "x$ac_cv_prog_cc_c89" != xno; then :
6753
6754fi
6755
6756ac_ext=c
6757ac_cpp='$CPP $CPPFLAGS'
6758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
cristya5bda012013-11-03 18:05:38 +00006762ac_ext=c
6763ac_cpp='$CPP $CPPFLAGS'
6764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6768$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6769if ${am_cv_prog_cc_c_o+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h. */
6774
6775int
6776main ()
6777{
6778
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783 # Make sure it works both with $CC and with simple cc.
6784 # Following AC_PROG_CC_C_O, we do the test twice because some
6785 # compilers refuse to overwrite an existing .o file with -o,
6786 # though they will create one.
6787 am_cv_prog_cc_c_o=yes
6788 for am_i in 1 2; do
6789 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6790 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } \
6794 && test -f conftest2.$ac_objext; then
6795 : OK
6796 else
6797 am_cv_prog_cc_c_o=no
6798 break
6799 fi
6800 done
6801 rm -f core conftest*
6802 unset am_i
6803fi
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6805$as_echo "$am_cv_prog_cc_c_o" >&6; }
6806if test "$am_cv_prog_cc_c_o" != yes; then
6807 # Losing compiler, so override with the script.
6808 # FIXME: It is wrong to rewrite CC.
6809 # But if we don't then we get into trouble of one sort or another.
6810 # A longer-term fix would be to have automake use am__CC in this case,
6811 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6812 CC="$am_aux_dir/compile $CC"
6813fi
6814ac_ext=c
6815ac_cpp='$CPP $CPPFLAGS'
6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820
cristy73bd4a52010-10-05 11:24:23 +00006821depcc="$CC" am_compiler_list=
6822
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6824$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006825if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006826 $as_echo_n "(cached) " >&6
6827else
6828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6829 # We make a subdir and do the tests there. Otherwise we can end up
6830 # making bogus files that we don't know about and never remove. For
6831 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006832 # making a dummy file named 'D' -- because '-MD' means "put the output
6833 # in D".
cristy7247bba2012-02-05 16:37:27 +00006834 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006835 mkdir conftest.dir
6836 # Copy depcomp to subdir because otherwise we won't find it if we're
6837 # using a relative directory.
6838 cp "$am_depcomp" conftest.dir
6839 cd conftest.dir
6840 # We will build objects and dependencies in a subdirectory because
6841 # it helps to detect inapplicable dependency modes. For instance
6842 # both Tru64's cc and ICC support -MD to output dependencies as a
6843 # side effect of compilation, but ICC will put the dependencies in
6844 # the current directory while Tru64 will put them in the object
6845 # directory.
6846 mkdir sub
6847
6848 am_cv_CC_dependencies_compiler_type=none
6849 if test "$am_compiler_list" = ""; then
6850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6851 fi
6852 am__universal=false
6853 case " $depcc " in #(
6854 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6855 esac
6856
6857 for depmode in $am_compiler_list; do
6858 # Setup a source with many dependencies, because some compilers
6859 # like to wrap large dependency lists on column 80 (with \), and
6860 # we should not choose a depcomp mode which is confused by this.
6861 #
6862 # We need to recreate these files for each test, as the compiler may
6863 # overwrite some of them when testing with obscure command lines.
6864 # This happens at least with the AIX C compiler.
6865 : > sub/conftest.c
6866 for i in 1 2 3 4 5 6; do
6867 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006868 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6869 # Solaris 10 /bin/sh.
6870 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006871 done
6872 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6873
cristyc0890a62012-07-19 00:18:20 +00006874 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006875 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006876 # handle '-M -o', and we need to detect this. Also, some Intel
6877 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006878 am__obj=sub/conftest.${OBJEXT-o}
6879 am__minus_obj="-o $am__obj"
6880 case $depmode in
6881 gcc)
6882 # This depmode causes a compiler race in universal mode.
6883 test "$am__universal" = false || continue
6884 ;;
6885 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006886 # After this tag, mechanisms are not by side-effect, so they'll
6887 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006888 if test "x$enable_dependency_tracking" = xyes; then
6889 continue
6890 else
6891 break
6892 fi
6893 ;;
cristy7247bba2012-02-05 16:37:27 +00006894 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006895 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006896 # not run yet. These depmodes are late enough in the game, and
6897 # so weak that their functioning should not be impacted.
6898 am__obj=conftest.${OBJEXT-o}
6899 am__minus_obj=
6900 ;;
6901 none) break ;;
6902 esac
6903 if depmode=$depmode \
6904 source=sub/conftest.c object=$am__obj \
6905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6906 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6907 >/dev/null 2>conftest.err &&
6908 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6909 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6910 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6911 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6912 # icc doesn't choke on unknown options, it will just issue warnings
6913 # or remarks (even with -Werror). So we grep stderr for any message
6914 # that says an option was ignored or not supported.
6915 # When given -MP, icc 7.0 and 7.1 complain thusly:
6916 # icc: Command line warning: ignoring option '-M'; no argument required
6917 # The diagnosis changed in icc 8.0:
6918 # icc: Command line remark: option '-MP' not supported
6919 if (grep 'ignoring option' conftest.err ||
6920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6921 am_cv_CC_dependencies_compiler_type=$depmode
6922 break
6923 fi
6924 fi
6925 done
6926
6927 cd ..
6928 rm -rf conftest.dir
6929else
6930 am_cv_CC_dependencies_compiler_type=none
6931fi
6932
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6935$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6936CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6937
6938 if
6939 test "x$enable_dependency_tracking" != xno \
6940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6941 am__fastdepCC_TRUE=
6942 am__fastdepCC_FALSE='#'
6943else
6944 am__fastdepCC_TRUE='#'
6945 am__fastdepCC_FALSE=
6946fi
6947
6948
cristy95646052009-11-28 23:05:30 +00006949ac_ext=cpp
6950ac_cpp='$CXXCPP $CPPFLAGS'
6951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6954if test -z "$CXX"; then
6955 if test -n "$CCC"; then
6956 CXX=$CCC
6957 else
6958 if test -n "$ac_tool_prefix"; then
6959 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6960 do
6961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006965if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006966 $as_echo_n "(cached) " >&6
6967else
6968 if test -n "$CXX"; then
6969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006978 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983 done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988CXX=$ac_cv_prog_CXX
6989if test -n "$CXX"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6991$as_echo "$CXX" >&6; }
6992else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997
6998 test -n "$CXX" && break
6999 done
7000fi
7001if test -z "$CXX"; then
7002 ac_ct_CXX=$CXX
7003 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7004do
7005 # Extract the first word of "$ac_prog", so it can be a program name with args.
7006set dummy $ac_prog; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007009if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007010 $as_echo_n "(cached) " >&6
7011else
7012 if test -n "$ac_ct_CXX"; then
7013 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007022 ac_cv_prog_ac_ct_CXX="$ac_prog"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027 done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7033if test -n "$ac_ct_CXX"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7035$as_echo "$ac_ct_CXX" >&6; }
7036else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041
7042 test -n "$ac_ct_CXX" && break
7043done
7044
7045 if test "x$ac_ct_CXX" = x; then
7046 CXX="g++"
7047 else
7048 case $cross_compiling:$ac_tool_warned in
7049yes:)
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052ac_tool_warned=yes ;;
7053esac
7054 CXX=$ac_ct_CXX
7055 fi
7056fi
7057
7058 fi
7059fi
7060# Provide some information about the compiler.
7061$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7062set X $ac_compile
7063ac_compiler=$2
7064for ac_option in --version -v -V -qversion; do
7065 { { ac_try="$ac_compiler $ac_option >&5"
7066case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069esac
7070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7071$as_echo "$ac_try_echo"; } >&5
7072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7073 ac_status=$?
7074 if test -s conftest.err; then
7075 sed '10a\
7076... rest of stderr output deleted ...
7077 10q' conftest.err >conftest.er1
7078 cat conftest.er1 >&5
7079 fi
7080 rm -f conftest.er1 conftest.err
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }
7083done
7084
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7086$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007087if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007088 $as_echo_n "(cached) " >&6
7089else
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h. */
7092
7093int
7094main ()
7095{
7096#ifndef __GNUC__
7097 choke me
7098#endif
7099
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104if ac_fn_cxx_try_compile "$LINENO"; then :
7105 ac_compiler_gnu=yes
7106else
7107 ac_compiler_gnu=no
7108fi
7109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7111
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7114$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7115if test $ac_compiler_gnu = yes; then
7116 GXX=yes
7117else
7118 GXX=
7119fi
7120ac_test_CXXFLAGS=${CXXFLAGS+set}
7121ac_save_CXXFLAGS=$CXXFLAGS
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7123$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007124if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007125 $as_echo_n "(cached) " >&6
7126else
7127 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7128 ac_cxx_werror_flag=yes
7129 ac_cv_prog_cxx_g=no
7130 CXXFLAGS="-g"
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h. */
7133
7134int
7135main ()
7136{
7137
7138 ;
7139 return 0;
7140}
7141_ACEOF
7142if ac_fn_cxx_try_compile "$LINENO"; then :
7143 ac_cv_prog_cxx_g=yes
7144else
7145 CXXFLAGS=""
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h. */
7148
7149int
7150main ()
7151{
7152
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157if ac_fn_cxx_try_compile "$LINENO"; then :
7158
7159else
7160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7161 CXXFLAGS="-g"
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h. */
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173if ac_fn_cxx_try_compile "$LINENO"; then :
7174 ac_cv_prog_cxx_g=yes
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177fi
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7184$as_echo "$ac_cv_prog_cxx_g" >&6; }
7185if test "$ac_test_CXXFLAGS" = set; then
7186 CXXFLAGS=$ac_save_CXXFLAGS
7187elif test $ac_cv_prog_cxx_g = yes; then
7188 if test "$GXX" = yes; then
7189 CXXFLAGS="-g -O2"
7190 else
7191 CXXFLAGS="-g"
7192 fi
7193else
7194 if test "$GXX" = yes; then
7195 CXXFLAGS="-O2"
7196 else
7197 CXXFLAGS=
7198 fi
7199fi
7200ac_ext=c
7201ac_cpp='$CPP $CPPFLAGS'
7202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205
cristy73bd4a52010-10-05 11:24:23 +00007206depcc="$CXX" am_compiler_list=
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7209$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007210if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007211 $as_echo_n "(cached) " >&6
7212else
7213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7214 # We make a subdir and do the tests there. Otherwise we can end up
7215 # making bogus files that we don't know about and never remove. For
7216 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007217 # making a dummy file named 'D' -- because '-MD' means "put the output
7218 # in D".
cristy7247bba2012-02-05 16:37:27 +00007219 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007220 mkdir conftest.dir
7221 # Copy depcomp to subdir because otherwise we won't find it if we're
7222 # using a relative directory.
7223 cp "$am_depcomp" conftest.dir
7224 cd conftest.dir
7225 # We will build objects and dependencies in a subdirectory because
7226 # it helps to detect inapplicable dependency modes. For instance
7227 # both Tru64's cc and ICC support -MD to output dependencies as a
7228 # side effect of compilation, but ICC will put the dependencies in
7229 # the current directory while Tru64 will put them in the object
7230 # directory.
7231 mkdir sub
7232
7233 am_cv_CXX_dependencies_compiler_type=none
7234 if test "$am_compiler_list" = ""; then
7235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7236 fi
7237 am__universal=false
7238 case " $depcc " in #(
7239 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7240 esac
7241
7242 for depmode in $am_compiler_list; do
7243 # Setup a source with many dependencies, because some compilers
7244 # like to wrap large dependency lists on column 80 (with \), and
7245 # we should not choose a depcomp mode which is confused by this.
7246 #
7247 # We need to recreate these files for each test, as the compiler may
7248 # overwrite some of them when testing with obscure command lines.
7249 # This happens at least with the AIX C compiler.
7250 : > sub/conftest.c
7251 for i in 1 2 3 4 5 6; do
7252 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007253 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7254 # Solaris 10 /bin/sh.
7255 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007256 done
7257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7258
cristyc0890a62012-07-19 00:18:20 +00007259 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007260 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007261 # handle '-M -o', and we need to detect this. Also, some Intel
7262 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007263 am__obj=sub/conftest.${OBJEXT-o}
7264 am__minus_obj="-o $am__obj"
7265 case $depmode in
7266 gcc)
7267 # This depmode causes a compiler race in universal mode.
7268 test "$am__universal" = false || continue
7269 ;;
7270 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007271 # After this tag, mechanisms are not by side-effect, so they'll
7272 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007273 if test "x$enable_dependency_tracking" = xyes; then
7274 continue
7275 else
7276 break
7277 fi
7278 ;;
cristy7247bba2012-02-05 16:37:27 +00007279 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007280 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007281 # not run yet. These depmodes are late enough in the game, and
7282 # so weak that their functioning should not be impacted.
7283 am__obj=conftest.${OBJEXT-o}
7284 am__minus_obj=
7285 ;;
7286 none) break ;;
7287 esac
7288 if depmode=$depmode \
7289 source=sub/conftest.c object=$am__obj \
7290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7292 >/dev/null 2>conftest.err &&
7293 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7294 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7295 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7297 # icc doesn't choke on unknown options, it will just issue warnings
7298 # or remarks (even with -Werror). So we grep stderr for any message
7299 # that says an option was ignored or not supported.
7300 # When given -MP, icc 7.0 and 7.1 complain thusly:
7301 # icc: Command line warning: ignoring option '-M'; no argument required
7302 # The diagnosis changed in icc 8.0:
7303 # icc: Command line remark: option '-MP' not supported
7304 if (grep 'ignoring option' conftest.err ||
7305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7306 am_cv_CXX_dependencies_compiler_type=$depmode
7307 break
7308 fi
7309 fi
7310 done
7311
7312 cd ..
7313 rm -rf conftest.dir
7314else
7315 am_cv_CXX_dependencies_compiler_type=none
7316fi
7317
7318fi
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7320$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7321CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7322
7323 if
7324 test "x$enable_dependency_tracking" != xno \
7325 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7326 am__fastdepCXX_TRUE=
7327 am__fastdepCXX_FALSE='#'
7328else
7329 am__fastdepCXX_TRUE='#'
7330 am__fastdepCXX_FALSE=
7331fi
7332
7333
cristy8b350f62009-11-15 23:12:43 +00007334 case $ac_cv_prog_cc_stdc in #(
7335 no) :
7336 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7337 *) :
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007339$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007340if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007341 $as_echo_n "(cached) " >&6
7342else
7343 ac_cv_prog_cc_c99=no
7344ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007346/* end confdefs.h. */
7347#include <stdarg.h>
7348#include <stdbool.h>
7349#include <stdlib.h>
7350#include <wchar.h>
7351#include <stdio.h>
7352
7353// Check varargs macros. These examples are taken from C99 6.10.3.5.
7354#define debug(...) fprintf (stderr, __VA_ARGS__)
7355#define showlist(...) puts (#__VA_ARGS__)
7356#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7357static void
7358test_varargs_macros (void)
7359{
7360 int x = 1234;
7361 int y = 5678;
7362 debug ("Flag");
7363 debug ("X = %d\n", x);
7364 showlist (The first, second, and third items.);
7365 report (x>y, "x is %d but y is %d", x, y);
7366}
7367
7368// Check long long types.
7369#define BIG64 18446744073709551615ull
7370#define BIG32 4294967295ul
7371#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7372#if !BIG_OK
7373 your preprocessor is broken;
7374#endif
7375#if BIG_OK
7376#else
7377 your preprocessor is broken;
7378#endif
7379static long long int bignum = -9223372036854775807LL;
7380static unsigned long long int ubignum = BIG64;
7381
7382struct incomplete_array
7383{
7384 int datasize;
7385 double data[];
7386};
7387
7388struct named_init {
7389 int number;
7390 const wchar_t *name;
7391 double average;
7392};
7393
7394typedef const char *ccp;
7395
7396static inline int
7397test_restrict (ccp restrict text)
7398{
7399 // See if C++-style comments work.
7400 // Iterate through items via the restricted pointer.
7401 // Also check for declarations in for loops.
7402 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7403 continue;
7404 return 0;
7405}
7406
7407// Check varargs and va_copy.
7408static void
7409test_varargs (const char *format, ...)
7410{
7411 va_list args;
7412 va_start (args, format);
7413 va_list args_copy;
7414 va_copy (args_copy, args);
7415
7416 const char *str;
7417 int number;
7418 float fnumber;
7419
7420 while (*format)
7421 {
7422 switch (*format++)
7423 {
7424 case 's': // string
7425 str = va_arg (args_copy, const char *);
7426 break;
7427 case 'd': // int
7428 number = va_arg (args_copy, int);
7429 break;
7430 case 'f': // float
7431 fnumber = va_arg (args_copy, double);
7432 break;
7433 default:
7434 break;
7435 }
7436 }
7437 va_end (args_copy);
7438 va_end (args);
7439}
7440
7441int
7442main ()
7443{
7444
7445 // Check bool.
7446 _Bool success = false;
7447
7448 // Check restrict.
7449 if (test_restrict ("String literal") == 0)
7450 success = true;
7451 char *restrict newvar = "Another string";
7452
7453 // Check varargs.
7454 test_varargs ("s, d' f .", "string", 65, 34.234);
7455 test_varargs_macros ();
7456
7457 // Check flexible array members.
7458 struct incomplete_array *ia =
7459 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7460 ia->datasize = 10;
7461 for (int i = 0; i < ia->datasize; ++i)
7462 ia->data[i] = i * 1.234;
7463
7464 // Check named initializers.
7465 struct named_init ni = {
7466 .number = 34,
7467 .name = L"Test wide string",
7468 .average = 543.34343,
7469 };
7470
7471 ni.number = 58;
7472
7473 int dynamic_array[ni.number];
7474 dynamic_array[ni.number - 1] = 543;
7475
7476 // work around unused variable warnings
7477 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7478 || dynamic_array[ni.number - 1] != 543);
7479
7480 ;
7481 return 0;
7482}
7483_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007484for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007485do
7486 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007487 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007488 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007489fi
cristy3ed852e2009-09-05 21:47:34 +00007490rm -f core conftest.err conftest.$ac_objext
7491 test "x$ac_cv_prog_cc_c99" != "xno" && break
7492done
7493rm -f conftest.$ac_ext
7494CC=$ac_save_CC
7495
7496fi
7497# AC_CACHE_VAL
7498case "x$ac_cv_prog_cc_c99" in
7499 x)
cristy8b350f62009-11-15 23:12:43 +00007500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007501$as_echo "none needed" >&6; } ;;
7502 xno)
cristy8b350f62009-11-15 23:12:43 +00007503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007504$as_echo "unsupported" >&6; } ;;
7505 *)
7506 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007508$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7509esac
cristy8b350f62009-11-15 23:12:43 +00007510if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7512else
cristy8b350f62009-11-15 23:12:43 +00007513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007514$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007515if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007516 $as_echo_n "(cached) " >&6
7517else
7518 ac_cv_prog_cc_c89=no
7519ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007521/* end confdefs.h. */
7522#include <stdarg.h>
7523#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007524struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007525/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7526struct buf { int x; };
7527FILE * (*rcsopen) (struct buf *, struct stat *, int);
7528static char *e (p, i)
7529 char **p;
7530 int i;
7531{
7532 return p[i];
7533}
7534static char *f (char * (*g) (char **, int), char **p, ...)
7535{
7536 char *s;
7537 va_list v;
7538 va_start (v,p);
7539 s = g (p, va_arg (v,int));
7540 va_end (v);
7541 return s;
7542}
7543
7544/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7545 function prototypes and stuff, but not '\xHH' hex character constants.
7546 These don't provoke an error unfortunately, instead are silently treated
7547 as 'x'. The following induces an error, until -std is added to get
7548 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7549 array size at least. It's necessary to write '\x00'==0 to get something
7550 that's true only with -std. */
7551int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7552
7553/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7554 inside strings and character constants. */
7555#define FOO(x) 'x'
7556int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7557
7558int test (int i, double x);
7559struct s1 {int (*f) (int a);};
7560struct s2 {int (*f) (double a);};
7561int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7562int argc;
7563char **argv;
7564int
7565main ()
7566{
7567return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7568 ;
7569 return 0;
7570}
7571_ACEOF
7572for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7573 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7574do
7575 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007576 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007577 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007578fi
cristy3ed852e2009-09-05 21:47:34 +00007579rm -f core conftest.err conftest.$ac_objext
7580 test "x$ac_cv_prog_cc_c89" != "xno" && break
7581done
7582rm -f conftest.$ac_ext
7583CC=$ac_save_CC
7584
7585fi
7586# AC_CACHE_VAL
7587case "x$ac_cv_prog_cc_c89" in
7588 x)
cristy8b350f62009-11-15 23:12:43 +00007589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007590$as_echo "none needed" >&6; } ;;
7591 xno)
cristy8b350f62009-11-15 23:12:43 +00007592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007593$as_echo "unsupported" >&6; } ;;
7594 *)
7595 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007597$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7598esac
cristy8b350f62009-11-15 23:12:43 +00007599if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7601else
7602 ac_cv_prog_cc_stdc=no
7603fi
7604
cristy3ed852e2009-09-05 21:47:34 +00007605fi
cristy3ed852e2009-09-05 21:47:34 +00007606 ;;
7607esac
cristy8b350f62009-11-15 23:12:43 +00007608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007609$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007610 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007611 $as_echo_n "(cached) " >&6
7612fi
7613
cristy8b350f62009-11-15 23:12:43 +00007614 case $ac_cv_prog_cc_stdc in #(
7615 no) :
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7617$as_echo "unsupported" >&6; } ;; #(
7618 '') :
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7620$as_echo "none needed" >&6; } ;; #(
7621 *) :
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007623$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7624esac
7625
cristy3ed852e2009-09-05 21:47:34 +00007626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007632$as_echo_n "checking how to run the C preprocessor... " >&6; }
7633# On Suns, sometimes $CPP names a directory.
7634if test -n "$CPP" && test -d "$CPP"; then
7635 CPP=
7636fi
7637if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007638 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007639 $as_echo_n "(cached) " >&6
7640else
7641 # Double quotes because CPP needs to be expanded
7642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643 do
7644 ac_preproc_ok=false
7645for ac_c_preproc_warn_flag in '' yes
7646do
7647 # Use a header file that comes with gcc, so configuring glibc
7648 # with a fresh cross-compiler works.
7649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650 # <limits.h> exists even on freestanding compilers.
7651 # On the NeXT, cc -E runs the code through the compiler's parser,
7652 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007654/* end confdefs.h. */
7655#ifdef __STDC__
7656# include <limits.h>
7657#else
7658# include <assert.h>
7659#endif
7660 Syntax error
7661_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007662if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007663
cristy8b350f62009-11-15 23:12:43 +00007664else
cristy3ed852e2009-09-05 21:47:34 +00007665 # Broken: fails on valid input.
7666continue
7667fi
cristyda16f162011-02-19 23:52:17 +00007668rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007669
7670 # OK, works on sane cases. Now check whether nonexistent headers
7671 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007673/* end confdefs.h. */
7674#include <ac_nonexistent.h>
7675_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007676if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007677 # Broken: success on invalid input.
7678continue
7679else
cristy3ed852e2009-09-05 21:47:34 +00007680 # Passes both tests.
7681ac_preproc_ok=:
7682break
7683fi
cristyda16f162011-02-19 23:52:17 +00007684rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007685
7686done
7687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007688rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007689if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007690 break
7691fi
7692
7693 done
7694 ac_cv_prog_CPP=$CPP
7695
7696fi
7697 CPP=$ac_cv_prog_CPP
7698else
7699 ac_cv_prog_CPP=$CPP
7700fi
cristy8b350f62009-11-15 23:12:43 +00007701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007702$as_echo "$CPP" >&6; }
7703ac_preproc_ok=false
7704for ac_c_preproc_warn_flag in '' yes
7705do
7706 # Use a header file that comes with gcc, so configuring glibc
7707 # with a fresh cross-compiler works.
7708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 # <limits.h> exists even on freestanding compilers.
7710 # On the NeXT, cc -E runs the code through the compiler's parser,
7711 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007713/* end confdefs.h. */
7714#ifdef __STDC__
7715# include <limits.h>
7716#else
7717# include <assert.h>
7718#endif
7719 Syntax error
7720_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007721if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007722
cristy8b350f62009-11-15 23:12:43 +00007723else
cristy3ed852e2009-09-05 21:47:34 +00007724 # Broken: fails on valid input.
7725continue
7726fi
cristyda16f162011-02-19 23:52:17 +00007727rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007728
7729 # OK, works on sane cases. Now check whether nonexistent headers
7730 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007732/* end confdefs.h. */
7733#include <ac_nonexistent.h>
7734_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007735if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007736 # Broken: success on invalid input.
7737continue
7738else
cristy3ed852e2009-09-05 21:47:34 +00007739 # Passes both tests.
7740ac_preproc_ok=:
7741break
7742fi
cristyda16f162011-02-19 23:52:17 +00007743rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007744
7745done
7746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007747rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007748if $ac_preproc_ok; then :
7749
cristy3ed852e2009-09-05 21:47:34 +00007750else
cristy8b350f62009-11-15 23:12:43 +00007751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007753as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7754See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007755fi
7756
7757ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
cristy73bd4a52010-10-05 11:24:23 +00007763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7764$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007765if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007766 $as_echo_n "(cached) " >&6
7767else
7768 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7769 for ac_i in 1 2 3 4 5 6 7; do
7770 ac_script="$ac_script$as_nl$ac_script"
7771 done
7772 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7773 { ac_script=; unset ac_script;}
7774 if test -z "$SED"; then
7775 ac_path_SED_found=false
7776 # Loop through the user's path and test for each of PROGNAME-LIST
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_prog in sed gsed; do
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007785 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007786# Check for GNU ac_path_SED and select it if it is found.
7787 # Check for GNU $ac_path_SED
7788case `"$ac_path_SED" --version 2>&1` in
7789*GNU*)
7790 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7791*)
7792 ac_count=0
7793 $as_echo_n 0123456789 >"conftest.in"
7794 while :
7795 do
7796 cat "conftest.in" "conftest.in" >"conftest.tmp"
7797 mv "conftest.tmp" "conftest.in"
7798 cp "conftest.in" "conftest.nl"
7799 $as_echo '' >> "conftest.nl"
7800 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7802 as_fn_arith $ac_count + 1 && ac_count=$as_val
7803 if test $ac_count -gt ${ac_path_SED_max-0}; then
7804 # Best one so far, save it but keep looking for a better one
7805 ac_cv_path_SED="$ac_path_SED"
7806 ac_path_SED_max=$ac_count
7807 fi
7808 # 10*(2^10) chars as input seems more than enough
7809 test $ac_count -gt 10 && break
7810 done
7811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7812esac
7813
7814 $ac_path_SED_found && break 3
7815 done
7816 done
7817 done
7818IFS=$as_save_IFS
7819 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007820 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007821 fi
7822else
7823 ac_cv_path_SED=$SED
7824fi
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7828$as_echo "$ac_cv_path_SED" >&6; }
7829 SED="$ac_cv_path_SED"
7830 rm -f conftest.sed
7831
7832test -z "$SED" && SED=sed
7833Xsed="$SED -e 1s/^X//"
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7846$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007847if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007848 $as_echo_n "(cached) " >&6
7849else
7850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7851 then ac_cv_path_FGREP="$GREP -F"
7852 else
7853 if test -z "$FGREP"; then
7854 ac_path_FGREP_found=false
7855 # Loop through the user's path and test for each of PROGNAME-LIST
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7858do
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_prog in fgrep; do
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007864 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007865# Check for GNU ac_path_FGREP and select it if it is found.
7866 # Check for GNU $ac_path_FGREP
7867case `"$ac_path_FGREP" --version 2>&1` in
7868*GNU*)
7869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7870*)
7871 ac_count=0
7872 $as_echo_n 0123456789 >"conftest.in"
7873 while :
7874 do
7875 cat "conftest.in" "conftest.in" >"conftest.tmp"
7876 mv "conftest.tmp" "conftest.in"
7877 cp "conftest.in" "conftest.nl"
7878 $as_echo 'FGREP' >> "conftest.nl"
7879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7881 as_fn_arith $ac_count + 1 && ac_count=$as_val
7882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7883 # Best one so far, save it but keep looking for a better one
7884 ac_cv_path_FGREP="$ac_path_FGREP"
7885 ac_path_FGREP_max=$ac_count
7886 fi
7887 # 10*(2^10) chars as input seems more than enough
7888 test $ac_count -gt 10 && break
7889 done
7890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7891esac
7892
7893 $ac_path_FGREP_found && break 3
7894 done
7895 done
7896 done
7897IFS=$as_save_IFS
7898 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007899 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007900 fi
7901else
7902 ac_cv_path_FGREP=$FGREP
7903fi
7904
7905 fi
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7908$as_echo "$ac_cv_path_FGREP" >&6; }
7909 FGREP="$ac_cv_path_FGREP"
7910
7911
7912test -z "$GREP" && GREP=grep
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
cristy0c60a692010-11-04 01:09:47 +00007930ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7931ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7932ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7933
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7935$as_echo_n "checking how to print strings... " >&6; }
7936# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007937if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007938 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7939 ECHO='print -r --'
7940elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7941 ECHO='printf %s\n'
7942else
7943 # Use this function as a fallback that always works.
7944 func_fallback_echo ()
7945 {
7946 eval 'cat <<_LTECHO_EOF
7947$1
7948_LTECHO_EOF'
7949 }
7950 ECHO='func_fallback_echo'
7951fi
7952
7953# func_echo_all arg...
7954# Invoke $ECHO with all args, space-separated.
7955func_echo_all ()
7956{
7957 $ECHO ""
7958}
7959
7960case "$ECHO" in
7961 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7962$as_echo "printf" >&6; } ;;
7963 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7964$as_echo "print -r" >&6; } ;;
7965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7966$as_echo "cat" >&6; } ;;
7967esac
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
cristy73bd4a52010-10-05 11:24:23 +00007982
7983
7984# Check whether --with-gnu-ld was given.
7985if test "${with_gnu_ld+set}" = set; then :
7986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7987else
7988 with_gnu_ld=no
7989fi
7990
7991ac_prog=ld
7992if test "$GCC" = yes; then
7993 # Check if gcc -print-prog-name=ld gives a path.
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7995$as_echo_n "checking for ld used by $CC... " >&6; }
7996 case $host in
7997 *-*-mingw*)
7998 # gcc leaves a trailing carriage return which upsets mingw
7999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8000 *)
8001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8002 esac
8003 case $ac_prog in
8004 # Accept absolute paths.
8005 [\\/]* | ?:[\\/]*)
8006 re_direlt='/[^/][^/]*/\.\./'
8007 # Canonicalize the pathname of ld
8008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8011 done
8012 test -z "$LD" && LD="$ac_prog"
8013 ;;
8014 "")
8015 # If it fails, then pretend we aren't using GCC.
8016 ac_prog=ld
8017 ;;
8018 *)
8019 # If it is relative, then search for the first ld in PATH.
8020 with_gnu_ld=unknown
8021 ;;
8022 esac
8023elif test "$with_gnu_ld" = yes; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8025$as_echo_n "checking for GNU ld... " >&6; }
8026else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8028$as_echo_n "checking for non-GNU ld... " >&6; }
8029fi
cristyda16f162011-02-19 23:52:17 +00008030if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008031 $as_echo_n "(cached) " >&6
8032else
8033 if test -z "$LD"; then
8034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8035 for ac_dir in $PATH; do
8036 IFS="$lt_save_ifs"
8037 test -z "$ac_dir" && ac_dir=.
8038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8039 lt_cv_path_LD="$ac_dir/$ac_prog"
8040 # Check to see if the program is GNU ld. I'd rather use --version,
8041 # but apparently some variants of GNU ld only accept -v.
8042 # Break only if it was the GNU/non-GNU ld that we prefer.
8043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8044 *GNU* | *'with BFD'*)
8045 test "$with_gnu_ld" != no && break
8046 ;;
8047 *)
8048 test "$with_gnu_ld" != yes && break
8049 ;;
8050 esac
8051 fi
8052 done
8053 IFS="$lt_save_ifs"
8054else
8055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8056fi
8057fi
8058
8059LD="$lt_cv_path_LD"
8060if test -n "$LD"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8062$as_echo "$LD" >&6; }
8063else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
cristy98dddb52010-11-04 00:30:15 +00008067test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8069$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008070if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008071 $as_echo_n "(cached) " >&6
8072else
8073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8074case `$LD -v 2>&1 </dev/null` in
8075*GNU* | *'with BFD'*)
8076 lt_cv_prog_gnu_ld=yes
8077 ;;
8078*)
8079 lt_cv_prog_gnu_ld=no
8080 ;;
8081esac
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8084$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8085with_gnu_ld=$lt_cv_prog_gnu_ld
8086
8087
8088
8089
8090
8091
8092
8093
8094
cristy3ed852e2009-09-05 21:47:34 +00008095
cristy837d6dc2010-02-27 01:16:57 +00008096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8097$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008098if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008099 $as_echo_n "(cached) " >&6
8100else
8101 ac_cv_prog_cc_c99=no
8102ac_save_CC=$CC
8103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h. */
8105#include <stdarg.h>
8106#include <stdbool.h>
8107#include <stdlib.h>
8108#include <wchar.h>
8109#include <stdio.h>
8110
8111// Check varargs macros. These examples are taken from C99 6.10.3.5.
8112#define debug(...) fprintf (stderr, __VA_ARGS__)
8113#define showlist(...) puts (#__VA_ARGS__)
8114#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8115static void
8116test_varargs_macros (void)
8117{
8118 int x = 1234;
8119 int y = 5678;
8120 debug ("Flag");
8121 debug ("X = %d\n", x);
8122 showlist (The first, second, and third items.);
8123 report (x>y, "x is %d but y is %d", x, y);
8124}
8125
8126// Check long long types.
8127#define BIG64 18446744073709551615ull
8128#define BIG32 4294967295ul
8129#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8130#if !BIG_OK
8131 your preprocessor is broken;
8132#endif
8133#if BIG_OK
8134#else
8135 your preprocessor is broken;
8136#endif
8137static long long int bignum = -9223372036854775807LL;
8138static unsigned long long int ubignum = BIG64;
8139
8140struct incomplete_array
8141{
8142 int datasize;
8143 double data[];
8144};
8145
8146struct named_init {
8147 int number;
8148 const wchar_t *name;
8149 double average;
8150};
8151
8152typedef const char *ccp;
8153
8154static inline int
8155test_restrict (ccp restrict text)
8156{
8157 // See if C++-style comments work.
8158 // Iterate through items via the restricted pointer.
8159 // Also check for declarations in for loops.
8160 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8161 continue;
8162 return 0;
8163}
8164
8165// Check varargs and va_copy.
8166static void
8167test_varargs (const char *format, ...)
8168{
8169 va_list args;
8170 va_start (args, format);
8171 va_list args_copy;
8172 va_copy (args_copy, args);
8173
8174 const char *str;
8175 int number;
8176 float fnumber;
8177
8178 while (*format)
8179 {
8180 switch (*format++)
8181 {
8182 case 's': // string
8183 str = va_arg (args_copy, const char *);
8184 break;
8185 case 'd': // int
8186 number = va_arg (args_copy, int);
8187 break;
8188 case 'f': // float
8189 fnumber = va_arg (args_copy, double);
8190 break;
8191 default:
8192 break;
8193 }
8194 }
8195 va_end (args_copy);
8196 va_end (args);
8197}
8198
8199int
8200main ()
8201{
8202
8203 // Check bool.
8204 _Bool success = false;
8205
8206 // Check restrict.
8207 if (test_restrict ("String literal") == 0)
8208 success = true;
8209 char *restrict newvar = "Another string";
8210
8211 // Check varargs.
8212 test_varargs ("s, d' f .", "string", 65, 34.234);
8213 test_varargs_macros ();
8214
8215 // Check flexible array members.
8216 struct incomplete_array *ia =
8217 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8218 ia->datasize = 10;
8219 for (int i = 0; i < ia->datasize; ++i)
8220 ia->data[i] = i * 1.234;
8221
8222 // Check named initializers.
8223 struct named_init ni = {
8224 .number = 34,
8225 .name = L"Test wide string",
8226 .average = 543.34343,
8227 };
8228
8229 ni.number = 58;
8230
8231 int dynamic_array[ni.number];
8232 dynamic_array[ni.number - 1] = 543;
8233
8234 // work around unused variable warnings
8235 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8236 || dynamic_array[ni.number - 1] != 543);
8237
8238 ;
8239 return 0;
8240}
8241_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008242for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008243do
8244 CC="$ac_save_CC $ac_arg"
8245 if ac_fn_c_try_compile "$LINENO"; then :
8246 ac_cv_prog_cc_c99=$ac_arg
8247fi
8248rm -f core conftest.err conftest.$ac_objext
8249 test "x$ac_cv_prog_cc_c99" != "xno" && break
8250done
8251rm -f conftest.$ac_ext
8252CC=$ac_save_CC
8253
8254fi
8255# AC_CACHE_VAL
8256case "x$ac_cv_prog_cc_c99" in
8257 x)
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8259$as_echo "none needed" >&6; } ;;
8260 xno)
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8262$as_echo "unsupported" >&6; } ;;
8263 *)
8264 CC="$CC $ac_cv_prog_cc_c99"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8266$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8267esac
8268if test "x$ac_cv_prog_cc_c99" != xno; then :
8269
8270fi
8271
8272
cristy73bd4a52010-10-05 11:24:23 +00008273
cristy17491be2014-06-24 01:10:53 +00008274ac_ext=c
8275ac_cpp='$CPP $CPPFLAGS'
8276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8278ac_compiler_gnu=$ac_cv_c_compiler_gnu
8279
cristy73bd4a52010-10-05 11:24:23 +00008280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8281$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008282if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008283 $as_echo_n "(cached) " >&6
8284else
8285 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008286ac_save_CFLAGS="$CFLAGS"
8287for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristy73bd4a52010-10-05 11:24:23 +00008288do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h. */
8291
8292int
8293main ()
8294{
cristy24fc1fe2010-10-23 21:13:01 +00008295
cristy73bd4a52010-10-05 11:24:23 +00008296 ;
8297 return 0;
8298}
8299_ACEOF
8300if ac_fn_c_try_compile "$LINENO"; then :
8301 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304done
cristy17491be2014-06-24 01:10:53 +00008305CFLAGS="$ac_save_CFLAGS"
8306
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8309$as_echo "$ac_cv_cflags_warn_all" >&6; }
8310
8311
8312case ".$ac_cv_cflags_warn_all" in
8313 .ok|.ok,*) ;;
8314 .|.no|.no,*) ;;
8315 *) if ${CFLAGS+:} false; then :
8316 case " $CFLAGS " in
8317 *" $ac_cv_cflags_warn_all "*)
8318 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8319 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8320 ac_status=$?
8321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322 test $ac_status = 0; }
8323 ;;
8324 *)
8325 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8326 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8327 ac_status=$?
8328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8329 test $ac_status = 0; }
8330 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8331 ;;
8332 esac
8333else
8334 CFLAGS="$ac_cv_cflags_warn_all"
8335fi
8336 ;;
8337esac
8338
8339ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008340ac_cpp='$CPP $CPPFLAGS'
8341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8343ac_compiler_gnu=$ac_cv_c_compiler_gnu
8344
8345
cristya0b81c32010-01-22 02:54:33 +00008346
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8348$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8349set x ${MAKE-make}
8350ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008351if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008352 $as_echo_n "(cached) " >&6
8353else
8354 cat >conftest.make <<\_ACEOF
8355SHELL = /bin/sh
8356all:
8357 @echo '@@@%%%=$(MAKE)=@@@%%%'
8358_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008359# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008360case `${MAKE-make} -f conftest.make 2>/dev/null` in
8361 *@@@%%%=?*=@@@%%%*)
8362 eval ac_cv_prog_make_${ac_make}_set=yes;;
8363 *)
8364 eval ac_cv_prog_make_${ac_make}_set=no;;
8365esac
8366rm -f conftest.make
8367fi
8368if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8370$as_echo "yes" >&6; }
8371 SET_MAKE=
8372else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374$as_echo "no" >&6; }
8375 SET_MAKE="MAKE=${MAKE-make}"
8376fi
8377
cristy8b350f62009-11-15 23:12:43 +00008378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008379$as_echo_n "checking whether ln -s works... " >&6; }
8380LN_S=$as_ln_s
8381if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008383$as_echo "yes" >&6; }
8384else
cristy8b350f62009-11-15 23:12:43 +00008385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008386$as_echo "no, using $LN_S" >&6; }
8387fi
8388
cristy8d0ff762013-03-10 20:33:28 +00008389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8390$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8391if ${ac_cv_path_SED+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393else
8394 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8395 for ac_i in 1 2 3 4 5 6 7; do
8396 ac_script="$ac_script$as_nl$ac_script"
8397 done
8398 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8399 { ac_script=; unset ac_script;}
8400 if test -z "$SED"; then
8401 ac_path_SED_found=false
8402 # Loop through the user's path and test for each of PROGNAME-LIST
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_prog in sed gsed; do
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8411 as_fn_executable_p "$ac_path_SED" || continue
8412# Check for GNU ac_path_SED and select it if it is found.
8413 # Check for GNU $ac_path_SED
8414case `"$ac_path_SED" --version 2>&1` in
8415*GNU*)
8416 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8417*)
8418 ac_count=0
8419 $as_echo_n 0123456789 >"conftest.in"
8420 while :
8421 do
8422 cat "conftest.in" "conftest.in" >"conftest.tmp"
8423 mv "conftest.tmp" "conftest.in"
8424 cp "conftest.in" "conftest.nl"
8425 $as_echo '' >> "conftest.nl"
8426 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8428 as_fn_arith $ac_count + 1 && ac_count=$as_val
8429 if test $ac_count -gt ${ac_path_SED_max-0}; then
8430 # Best one so far, save it but keep looking for a better one
8431 ac_cv_path_SED="$ac_path_SED"
8432 ac_path_SED_max=$ac_count
8433 fi
8434 # 10*(2^10) chars as input seems more than enough
8435 test $ac_count -gt 10 && break
8436 done
8437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8438esac
8439
8440 $ac_path_SED_found && break 3
8441 done
8442 done
8443 done
8444IFS=$as_save_IFS
8445 if test -z "$ac_cv_path_SED"; then
8446 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8447 fi
8448else
8449 ac_cv_path_SED=$SED
8450fi
8451
8452fi
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8454$as_echo "$ac_cv_path_SED" >&6; }
8455 SED="$ac_cv_path_SED"
8456 rm -f conftest.sed
8457
cristybc556452012-08-17 19:44:03 +00008458for ac_prog in gawk mawk nawk awk
8459do
8460 # Extract the first word of "$ac_prog", so it can be a program name with args.
8461set dummy $ac_prog; ac_word=$2
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if ${ac_cv_prog_AWK+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 if test -n "$AWK"; then
8468 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_AWK="$ac_prog"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485fi
8486fi
8487AWK=$ac_cv_prog_AWK
8488if test -n "$AWK"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8490$as_echo "$AWK" >&6; }
8491else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
8494fi
8495
8496
8497 test -n "$AWK" && break
8498done
8499
cristy73bd4a52010-10-05 11:24:23 +00008500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8501$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8502
8503# Check whether --with-dmalloc was given.
8504if test "${with_dmalloc+set}" = set; then :
8505 withval=$with_dmalloc; if test "$withval" = yes; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8507$as_echo "yes" >&6; }
8508
8509$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8510
8511 LIBS="$LIBS -ldmalloc"
8512 LDFLAGS="$LDFLAGS -g"
8513else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
8517else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
8520fi
8521
8522
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8525$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008526if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008527 $as_echo_n "(cached) " >&6
8528else
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h. */
8531#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008532 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008533 static void
8534 foo(void) {
8535 exit(1);
8536 }
8537
8538int
8539main ()
8540{
8541
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546if ac_fn_c_try_compile "$LINENO"; then :
8547 ax_cv___attribute__=yes
8548else
8549 ax_cv___attribute__=no
8550
8551fi
8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8556$as_echo "$ax_cv___attribute__" >&6; }
8557 if test "$ax_cv___attribute__" = "yes"; then
8558
8559$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8560
8561 fi
8562
8563
8564
cristya0459972013-11-03 18:09:35 +00008565
8566
cristy17491be2014-06-24 01:10:53 +00008567
cristya0459972013-11-03 18:09:35 +00008568# Check whether --with-gcc-arch was given.
8569if test "${with_gcc_arch+set}" = set; then :
8570 withval=$with_gcc_arch; ax_gcc_arch=$withval
8571else
cristy17491be2014-06-24 01:10:53 +00008572 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008573fi
8574
8575
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8577$as_echo_n "checking for gcc architecture flag... " >&6; }
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8579$as_echo "" >&6; }
8580if ${ax_cv_gcc_archflag+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582else
8583
8584ax_cv_gcc_archflag="unknown"
8585
8586if test "$GCC" = yes; then
8587
8588if test "x$ax_gcc_arch" = xyes; then
8589ax_gcc_arch=""
8590if test "$cross_compiling" = no; then
8591case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008592 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008593
8594ac_ext=c
8595ac_cpp='$CPP $CPPFLAGS'
8596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8598ac_compiler_gnu=$ac_cv_c_compiler_gnu
8599
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8601$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8602if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604else
8605 if test "$cross_compiling" = yes; then :
8606 ax_cv_gcc_x86_cpuid_0=unknown
8607else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h. */
8610#include <stdio.h>
8611int
8612main ()
8613{
8614
8615 int op = 0, eax, ebx, ecx, edx;
8616 FILE *f;
8617 __asm__("cpuid"
8618 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8619 : "a" (op));
8620 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8621 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8622 fclose(f);
8623 return 0;
8624
8625 ;
8626 return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_run "$LINENO"; then :
8630 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8631else
8632 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8633fi
8634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8635 conftest.$ac_objext conftest.beam conftest.$ac_ext
8636fi
8637
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8640$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8641ac_ext=c
8642ac_cpp='$CPP $CPPFLAGS'
8643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646
8647
8648
8649ac_ext=c
8650ac_cpp='$CPP $CPPFLAGS'
8651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8653ac_compiler_gnu=$ac_cv_c_compiler_gnu
8654
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8656$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8657if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659else
8660 if test "$cross_compiling" = yes; then :
8661 ax_cv_gcc_x86_cpuid_1=unknown
8662else
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h. */
8665#include <stdio.h>
8666int
8667main ()
8668{
8669
8670 int op = 1, eax, ebx, ecx, edx;
8671 FILE *f;
8672 __asm__("cpuid"
8673 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8674 : "a" (op));
8675 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8676 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8677 fclose(f);
8678 return 0;
8679
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_run "$LINENO"; then :
8685 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8686else
8687 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8688fi
8689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8690 conftest.$ac_objext conftest.beam conftest.$ac_ext
8691fi
8692
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8695$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8696ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703 case $ax_cv_gcc_x86_cpuid_0 in
8704 *:756e6547:*:*) # Intel
8705 case $ax_cv_gcc_x86_cpuid_1 in
8706 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8707 *5??:*:*:*) ax_gcc_arch=pentium ;;
cristya0459972013-11-03 18:09:35 +00008708 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8709 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8710 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8711 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008712 *[1-9a-f]?6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8713 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8714 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8715 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8716 *6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8717 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8718 *6f?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8719 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8720 *f3[347]:*:*:*|*f41347:*:*:*|*f6?:*:*:*)
cristya0459972013-11-03 18:09:35 +00008721 case $host_cpu in
8722 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8723 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8724 esac ;;
cristy17491be2014-06-24 01:10:53 +00008725 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
cristya0459972013-11-03 18:09:35 +00008726 esac ;;
8727 *:68747541:*:*) # AMD
8728 case $ax_cv_gcc_x86_cpuid_1 in
8729 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8730 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8731 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8732 *60?:*:*:*) ax_gcc_arch=k7 ;;
8733 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8734 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8735 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8736 *6[68a]?:*:*:*)
8737
8738ac_ext=c
8739ac_cpp='$CPP $CPPFLAGS'
8740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8745$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8746if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748else
8749 if test "$cross_compiling" = yes; then :
8750 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8751else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h. */
8754#include <stdio.h>
8755int
8756main ()
8757{
8758
8759 int op = 0x80000006, eax, ebx, ecx, edx;
8760 FILE *f;
8761 __asm__("cpuid"
8762 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8763 : "a" (op));
8764 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8765 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8766 fclose(f);
8767 return 0;
8768
8769 ;
8770 return 0;
8771}
8772_ACEOF
8773if ac_fn_c_try_run "$LINENO"; then :
8774 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8775else
8776 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8777fi
8778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8779 conftest.$ac_objext conftest.beam conftest.$ac_ext
8780fi
8781
8782fi
8783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8784$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8785ac_ext=c
8786ac_cpp='$CPP $CPPFLAGS'
8787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789ac_compiler_gnu=$ac_cv_c_compiler_gnu
8790
8791 # L2 cache size
8792 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8793 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8794 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8795 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8796 esac ;;
cristy17491be2014-06-24 01:10:53 +00008797 *5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8798 *6??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8799 *[1-9a-f]??f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8800 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8801 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8802 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8803 *f??:*:*:*) ax_gcc_arch="k8" ;;
cristya0459972013-11-03 18:09:35 +00008804 esac ;;
8805 *:746e6543:*:*) # IDT
8806 case $ax_cv_gcc_x86_cpuid_1 in
8807 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8808 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8809 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8810 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8811 esac ;;
8812 esac
8813 if test x"$ax_gcc_arch" = x; then # fallback
8814 case $host_cpu in
8815 i586*) ax_gcc_arch=pentium ;;
8816 i686*) ax_gcc_arch=pentiumpro ;;
8817 esac
8818 fi
8819 ;;
8820
8821 sparc*)
8822 # Extract the first word of "prtdiag", so it can be a program name with args.
8823set dummy prtdiag; ac_word=$2
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
8826if ${ac_cv_path_PRTDIAG+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828else
8829 case $PRTDIAG in
8830 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8832 ;;
8833 *)
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8836for as_dir in $as_dummy
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8842 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846done
8847 done
8848IFS=$as_save_IFS
8849
8850 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8851 ;;
8852esac
8853fi
8854PRTDIAG=$ac_cv_path_PRTDIAG
8855if test -n "$PRTDIAG"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8857$as_echo "$PRTDIAG" >&6; }
8858else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
8861fi
8862
8863
8864 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
cristy17491be2014-06-24 01:10:53 +00008865 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008866 case $cputype in
8867 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8868 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8869 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8870 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8871 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8872 *cypress*) ax_gcc_arch=cypress ;;
8873 esac ;;
8874
8875 alphaev5) ax_gcc_arch=ev5 ;;
8876 alphaev56) ax_gcc_arch=ev56 ;;
8877 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8878 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8879 alphaev6) ax_gcc_arch=ev6 ;;
8880 alphaev67) ax_gcc_arch=ev67 ;;
8881 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8882 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8883 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8884 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8885
8886 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008887 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`
8888 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008889 case $cputype in
8890 *750*) ax_gcc_arch="750 G3" ;;
8891 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8892 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8893 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8894 *970*) ax_gcc_arch="970 G5 power4";;
8895 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8896 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8897 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8898 *) ax_gcc_arch=$cputype ;;
8899 esac
8900 ax_gcc_arch="$ax_gcc_arch powerpc"
8901 ;;
8902esac
8903fi # not cross-compiling
8904fi # guess arch
8905
8906if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8907for arch in $ax_gcc_arch; do
8908 if test "xno" = xyes; then # if we require portable code
8909 flags="-mtune=$arch"
8910 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8911 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8912 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8913 else
8914 flags="-march=$arch -mcpu=$arch -m$arch"
8915 fi
8916 for flag in $flags; do
8917 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8919$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8920if eval \${$as_CACHEVAR+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922else
8923
8924 ax_check_save_flags=$CFLAGS
8925 CFLAGS="$CFLAGS $flag"
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h. */
8928
8929int
8930main ()
8931{
8932
8933 ;
8934 return 0;
8935}
8936_ACEOF
8937if ac_fn_c_try_compile "$LINENO"; then :
8938 eval "$as_CACHEVAR=yes"
8939else
8940 eval "$as_CACHEVAR=no"
8941fi
8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 CFLAGS=$ax_check_save_flags
8944fi
8945eval ac_res=\$$as_CACHEVAR
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8947$as_echo "$ac_res" >&6; }
8948if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8949 ax_cv_gcc_archflag=$flag; break
8950else
8951 :
8952fi
8953
8954 done
8955 test "x$ax_cv_gcc_archflag" = xunknown || break
8956done
8957fi
8958
8959fi # $GCC=yes
8960
8961fi
8962
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8964$as_echo_n "checking for gcc architecture flag... " >&6; }
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8966$as_echo "$ax_cv_gcc_archflag" >&6; }
8967if test "x$ax_cv_gcc_archflag" = xunknown; then
8968 :
8969else
8970 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8971fi
8972
8973
8974
cristy73bd4a52010-10-05 11:24:23 +00008975if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8976 if test -n "$ac_tool_prefix"; then
8977 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8978set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008981if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008982 $as_echo_n "(cached) " >&6
8983else
8984 case $PKG_CONFIG in
8985 [\\/]* | ?:[\\/]*)
8986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8987 ;;
8988 *)
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990for as_dir in $PATH
8991do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
8999 fi
9000done
9001 done
9002IFS=$as_save_IFS
9003
9004 ;;
9005esac
9006fi
9007PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9008if test -n "$PKG_CONFIG"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9010$as_echo "$PKG_CONFIG" >&6; }
9011else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013$as_echo "no" >&6; }
9014fi
9015
9016
9017fi
9018if test -z "$ac_cv_path_PKG_CONFIG"; then
9019 ac_pt_PKG_CONFIG=$PKG_CONFIG
9020 # Extract the first word of "pkg-config", so it can be a program name with args.
9021set dummy pkg-config; ac_word=$2
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009024if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009025 $as_echo_n "(cached) " >&6
9026else
9027 case $ac_pt_PKG_CONFIG in
9028 [\\/]* | ?:[\\/]*)
9029 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9030 ;;
9031 *)
9032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035 IFS=$as_save_IFS
9036 test -z "$as_dir" && as_dir=.
9037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 break 2
9042 fi
9043done
9044 done
9045IFS=$as_save_IFS
9046
9047 ;;
9048esac
9049fi
9050ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9051if test -n "$ac_pt_PKG_CONFIG"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9053$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9054else
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056$as_echo "no" >&6; }
9057fi
9058
9059 if test "x$ac_pt_PKG_CONFIG" = x; then
9060 PKG_CONFIG=""
9061 else
9062 case $cross_compiling:$ac_tool_warned in
9063yes:)
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9066ac_tool_warned=yes ;;
9067esac
9068 PKG_CONFIG=$ac_pt_PKG_CONFIG
9069 fi
9070else
9071 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9072fi
9073
9074fi
9075if test -n "$PKG_CONFIG"; then
9076 _pkg_min_version=0.9.0
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9078$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9079 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9081$as_echo "yes" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
9085 PKG_CONFIG=""
9086 fi
9087
9088fi
cristy3ed852e2009-09-05 21:47:34 +00009089
cristy9af1cbf2014-12-28 22:03:09 +00009090
9091
cristyd95b7a52013-10-23 13:12:53 +00009092# Test for 64-bit build.
9093# The cast to long int works around a bug in the HP C Compiler
9094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9096# This bug is HP SR number 8606223364.
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9098$as_echo_n "checking size of size_t... " >&6; }
9099if ${ac_cv_sizeof_size_t+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101else
9102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9103
9104else
9105 if test "$ac_cv_type_size_t" = yes; then
9106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9108as_fn_error 77 "cannot compute sizeof (size_t)
9109See \`config.log' for more details" "$LINENO" 5; }
9110 else
9111 ac_cv_sizeof_size_t=0
9112 fi
9113fi
9114
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9117$as_echo "$ac_cv_sizeof_size_t" >&6; }
9118
9119
9120
9121cat >>confdefs.h <<_ACEOF
9122#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9123_ACEOF
9124
9125
9126
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9128$as_echo_n "checking for C compiler vendor... " >&6; }
9129if ${ax_cv_c_compiler_vendor+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131else
9132 # note: don't check for gcc first since some other compilers define __GNUC__
9133 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9134 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9135 pathscale: __PATHCC__,__PATHSCALE__
9136 clang: __clang__
cristy17491be2014-06-24 01:10:53 +00009137 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009138 gnu: __GNUC__
9139 sun: __SUNPRO_C,__SUNPRO_CC
9140 hp: __HP_cc,__HP_aCC
9141 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9142 borland: __BORLANDC__,__TURBOC__
9143 comeau: __COMO__
9144 cray: _CRAYC
9145 kai: __KCC
9146 lcc: __LCC__
9147 sgi: __sgi,sgi
9148 microsoft: _MSC_VER
9149 metrowerks: __MWERKS__
9150 watcom: __WATCOMC__
9151 portland: __PGI
9152 unknown: UNKNOWN"
9153 for ventest in $vendors; do
9154 case $ventest in
9155 *:) vendor=$ventest; continue ;;
9156 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9157 esac
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h. */
9160
9161int
9162main ()
9163{
9164
9165 #if !($vencpp)
9166 thisisanerror;
9167 #endif
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_compile "$LINENO"; then :
9174 break
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 done
9178 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9179
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9182$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9183
cristyd95b7a52013-10-23 13:12:53 +00009184# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9185# compiler.
9186if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009187 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009188ac_cpp='$CPP $CPPFLAGS'
9189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191ac_compiler_gnu=$ac_cv_c_compiler_gnu
9192
cristy17491be2014-06-24 01:10:53 +00009193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9194$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9195if ${ac_cv_cflags_warn_all+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197else
9198 ac_cv_cflags_warn_all="no, unknown"
9199ac_save_CFLAGS="$CFLAGS"
9200for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristyd95b7a52013-10-23 13:12:53 +00009201do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h. */
9204
9205int
9206main ()
9207{
9208
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217done
cristy17491be2014-06-24 01:10:53 +00009218CFLAGS="$ac_save_CFLAGS"
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9222$as_echo "$ac_cv_cflags_warn_all" >&6; }
9223
9224
9225case ".$ac_cv_cflags_warn_all" in
9226 .ok|.ok,*) ;;
9227 .|.no|.no,*) ;;
9228 *) if ${CFLAGS+:} false; then :
9229 case " $CFLAGS " in
9230 *" $ac_cv_cflags_warn_all "*)
9231 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
9232 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9233 ac_status=$?
9234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9235 test $ac_status = 0; }
9236 ;;
9237 *)
9238 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9239 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9240 ac_status=$?
9241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9242 test $ac_status = 0; }
9243 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9244 ;;
9245 esac
9246else
9247 CFLAGS="$ac_cv_cflags_warn_all"
9248fi
9249 ;;
9250esac
9251
9252ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009253ac_cpp='$CPP $CPPFLAGS'
9254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9256ac_compiler_gnu=$ac_cv_c_compiler_gnu
9257
9258
9259fi
cristyd95b7a52013-10-23 13:12:53 +00009260
9261if test "x$GCC" = "xyes"; then
9262 CFLAGS="$CFLAGS -fexceptions"
9263 touch local.exp
9264else
9265 cat > local.exp <<EOF
9266set CC_FOR_TARGET "$CC"
9267EOF
9268fi
9269
cristy9b86f202012-11-28 21:55:35 +00009270# Check for linker script support
9271
9272 # Check whether --enable-ld-version-script was given.
9273if test "${enable_ld_version_script+set}" = set; then :
9274 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9275fi
9276
9277 if test -z "$have_ld_version_script"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9279$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9280 save_LDFLAGS="$LDFLAGS"
9281 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9282 cat > conftest.map <<EOF
9283foo
9284EOF
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h. */
9287
9288int
9289main ()
9290{
9291
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297 accepts_syntax_errors=yes
9298else
9299 accepts_syntax_errors=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 if test "$accepts_syntax_errors" = no; then
9304 cat > conftest.map <<EOF
9305VERS_1 {
9306 global: sym;
9307};
9308
9309VERS_2 {
9310 global: sym;
9311} VERS_1;
9312EOF
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h. */
9315
9316int
9317main ()
9318{
9319
9320 ;
9321 return 0;
9322}
9323_ACEOF
9324if ac_fn_c_try_link "$LINENO"; then :
9325 have_ld_version_script=yes
9326else
9327 have_ld_version_script=no
9328fi
9329rm -f core conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 else
9332 have_ld_version_script=no
9333 fi
9334 rm -f conftest.map
9335 LDFLAGS="$save_LDFLAGS"
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9337$as_echo "$have_ld_version_script" >&6; }
9338 fi
9339 if test "$have_ld_version_script" = "yes"; then
9340 HAVE_LD_VERSION_SCRIPT_TRUE=
9341 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9342else
9343 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9344 HAVE_LD_VERSION_SCRIPT_FALSE=
9345fi
9346
9347
9348
cristy3ed852e2009-09-05 21:47:34 +00009349#
cristy3ed852e2009-09-05 21:47:34 +00009350# Enable run-time checking.
9351#
9352# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009353if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009354 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9355else
9356 enable_bounds_checking='no'
9357fi
9358
9359
9360if test "$enable_bounds_checking" = yes; then
9361
cristy8b350f62009-11-15 23:12:43 +00009362$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009363
9364fi
9365
9366#
9367# Tests for Windows
9368#
9369
9370
9371
9372GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009373native_win32_build='no'
9374cygwin_build='no'
9375case "${host_os}" in
9376 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009377 cygwin_build='yes'
9378 GDI32_LIBS='-lgdi32'
9379 ;;
9380 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009381 native_win32_build='yes'
9382 GDI32_LIBS='-lgdi32'
9383 ;;
9384esac
9385if test "${GDI32_LIBS}x" != 'x'; then
9386
cristy8b350f62009-11-15 23:12:43 +00009387$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009388
9389fi
9390
cristy73bd4a52010-10-05 11:24:23 +00009391 if test "${GDI32_LIBS}x" != 'x' ; then
9392 WINGDI32_DELEGATE_TRUE=
9393 WINGDI32_DELEGATE_FALSE='#'
9394else
9395 WINGDI32_DELEGATE_TRUE='#'
9396 WINGDI32_DELEGATE_FALSE=
9397fi
9398
9399 if test "${native_win32_build}" = 'yes' ; then
9400 WIN32_NATIVE_BUILD_TRUE=
9401 WIN32_NATIVE_BUILD_FALSE='#'
9402else
9403 WIN32_NATIVE_BUILD_TRUE='#'
9404 WIN32_NATIVE_BUILD_FALSE=
9405fi
9406
9407 if test "${cygwin_build}" = 'yes' ; then
9408 CYGWIN_BUILD_TRUE=
9409 CYGWIN_BUILD_FALSE='#'
9410else
9411 CYGWIN_BUILD_TRUE='#'
9412 CYGWIN_BUILD_FALSE=
9413fi
9414
9415 if test "x${CC}" = 'xcl.exe' ; then
9416 USING_CL_TRUE=
9417 USING_CL_FALSE='#'
9418else
9419 USING_CL_TRUE='#'
9420 USING_CL_FALSE=
9421fi
9422
cristy3ed852e2009-09-05 21:47:34 +00009423
9424WinPathScript="${srcdirfull}/winpath.sh"
9425
9426
9427#
9428# Compiler flags tweaks
9429#
9430if test "${GCC}" != "yes"; then
9431 case "${host}" in
9432 *-*-hpux* )
9433 # aCC: HP ANSI C++ B3910B A.03.34
9434 CFLAGS="${CFLAGS} -Wp,-H30000"
9435 if test -n "${CXXFLAGS}"; then
9436 CXXFLAGS='-AA'
9437 else
9438 CXXFLAGS="${CXXFLAGS} -AA"
9439 fi
9440 ;;
9441 *-dec-osf5.* )
9442 # Compaq alphaev68-dec-osf5.1 compiler
9443 if test -n "${CXXFLAGS}"; then
9444 CXXFLAGS='-std strict_ansi -noimplicit_include'
9445 else
9446 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9447 fi
9448 esac
9449fi
9450
9451# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009453$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009454if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009455 $as_echo_n "(cached) " >&6
9456else
9457
9458im_cv_ld_lazyload='none'
9459case "${host}" in
9460 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9461 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9462 im_cv_ld_lazyload='-Wl,-zlazyload'
9463 fi
9464 ;;
9465esac
9466
9467fi
cristy8b350f62009-11-15 23:12:43 +00009468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009469$as_echo "$im_cv_ld_lazyload" >&6; }
9470if test "${im_cv_ld_lazyload}" != 'none' ; then
9471 if test -z "${LDFLAGS}" ; then
9472 LDFLAGS="${im_cv_ld_lazyload}"
9473 else
9474 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9475 fi
9476fi
9477
9478case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009479 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009480 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009481 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009482if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009483 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9484else
9485 build_osxuniversal=no
9486fi
9487
9488
cristyc37574e2013-02-16 01:04:55 +00009489 if test "${build_osxuniversal}" != no ; then
9490 if test "$enable_dependency_tracking" != no ; then
9491 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009492Please re-run configure with these options:
9493 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009494 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009495 fi
9496 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9497 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9498 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009499 fi
9500 ;;
9501esac
9502
cristy0151ae12011-10-28 16:32:29 +00009503#
9504# ARCH specific include directory
9505#
9506
cristy670aa3c2011-11-03 00:54:00 +00009507# Check whether --with-includearch-dir was given.
9508if test "${with_includearch_dir+set}" = set; then :
9509 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009510else
cristy670aa3c2011-11-03 00:54:00 +00009511 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009512fi
9513
9514
cristyd286fd72013-02-24 19:25:33 +00009515eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009516
cristy0151ae12011-10-28 16:32:29 +00009517
9518#
9519# ARCH specific configuration directory
9520#
9521
cristy670aa3c2011-11-03 00:54:00 +00009522# Check whether --with-sharearch-dir was given.
9523if test "${with_sharearch_dir+set}" = set; then :
9524 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009525else
cristy408ebcd2011-11-14 01:36:57 +00009526 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009527fi
9528
9529
cristy670aa3c2011-11-03 00:54:00 +00009530eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009531
cristy0151ae12011-10-28 16:32:29 +00009532
cristy2ec87cc2013-02-18 17:46:50 +00009533# Path to the pkgconfig folder
9534
9535# Check whether --with-pkgconfigdir was given.
9536if test "${with_pkgconfigdir+set}" = set; then :
9537 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9538else
9539 pkgconfigdir='${libdir}/pkgconfig'
9540fi
9541
9542
9543
cristy0151ae12011-10-28 16:32:29 +00009544#
cristy3ed852e2009-09-05 21:47:34 +00009545# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009546#
9547# Find Posix threads library
9548#
cristy3ed852e2009-09-05 21:47:34 +00009549
9550# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009551if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009552 withval=$with_threads; with_threads=$withval
9553else
9554 with_threads='yes'
9555fi
9556
9557
cristy1ae5c992013-07-30 14:55:07 +00009558THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009559have_threads=no
9560if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009561
9562
cristy73bd4a52010-10-05 11:24:23 +00009563ac_ext=c
9564ac_cpp='$CPP $CPPFLAGS'
9565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9567ac_compiler_gnu=$ac_cv_c_compiler_gnu
9568
9569ax_pthread_ok=no
9570
9571# We used to check for pthread.h first, but this fails if pthread.h
9572# requires special compiler flags (e.g. on True64 or Sequent).
9573# It gets checked for in the link test anyway.
9574
9575# First of all, check if the user has set any of the PTHREAD_LIBS,
9576# etcetera environment variables, and if threads linking works using
9577# them:
9578if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9579 save_CFLAGS="$CFLAGS"
9580 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9581 save_LIBS="$LIBS"
9582 LIBS="$PTHREAD_LIBS $LIBS"
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9584$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587
9588/* Override any GCC internal prototype to avoid an error.
9589 Use char because int might match the return type of a GCC
9590 builtin and then its argument prototype would still apply. */
9591#ifdef __cplusplus
9592extern "C"
9593#endif
9594char pthread_join ();
9595int
9596main ()
9597{
9598return pthread_join ();
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 ax_pthread_ok=yes
9605fi
9606rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9609$as_echo "$ax_pthread_ok" >&6; }
9610 if test x"$ax_pthread_ok" = xno; then
9611 PTHREAD_LIBS=""
9612 PTHREAD_CFLAGS=""
9613 fi
9614 LIBS="$save_LIBS"
9615 CFLAGS="$save_CFLAGS"
9616fi
9617
9618# We must check for the threads library under a number of different
9619# names; the ordering is very important because some systems
9620# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9621# libraries is broken (non-POSIX).
9622
9623# Create a list of thread flags to try. Items starting with a "-" are
9624# C compiler flags, and other items are library names, except for "none"
9625# which indicates that we try without any flags at all, and "pthread-config"
9626# which is a program returning the flags for the Pth emulation library.
9627
cristy2ec87cc2013-02-18 17:46:50 +00009628ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009629
9630# The ordering *is* (sometimes) important. Some notes on the
9631# individual items follow:
9632
9633# pthreads: AIX (must check this before -lpthread)
9634# none: in case threads are in libc; should be tried before -Kthread and
9635# other compiler flags to prevent continual compiler warnings
9636# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9637# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9638# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9639# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9640# -pthreads: Solaris/gcc
9641# -mthreads: Mingw32/gcc, Lynx/gcc
9642# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9643# doesn't hurt to check since this sometimes defines pthreads too;
9644# also defines -D_REENTRANT)
9645# ... -mt is also the pthreads flag for HP/aCC
9646# pthread: Linux, etcetera
9647# --thread-safe: KAI C++
9648# pthread-config: use pthread-config program (for GNU Pth library)
9649
cristy2ec87cc2013-02-18 17:46:50 +00009650case ${host_os} in
9651 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009652
9653 # On Solaris (at least, for some versions), libc contains stubbed
9654 # (non-functional) versions of the pthreads routines, so link-based
9655 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9656 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9657 # a function called by this macro, so we could check for that, but
9658 # who knows whether they'll stub that too in a future libc.) So,
9659 # we'll just look for -pthreads and -lpthread first:
9660
9661 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9662 ;;
9663
cristy2ec87cc2013-02-18 17:46:50 +00009664 darwin*)
cristya316db12011-10-24 00:49:45 +00009665 ax_pthread_flags="-pthread $ax_pthread_flags"
9666 ;;
cristy73bd4a52010-10-05 11:24:23 +00009667esac
9668
cristy17491be2014-06-24 01:10:53 +00009669# Clang doesn't consider unrecognized options an error unless we specify
9670# -Werror. We throw in some extra Clang-specific options to ensure that
9671# this doesn't happen for GCC, which also accepts -Werror.
9672
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9674$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9675save_CFLAGS="$CFLAGS"
9676ax_pthread_extra_flags="-Werror"
9677CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
9680int foo(void);
9681int
9682main ()
9683{
9684foo()
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689if ac_fn_c_try_compile "$LINENO"; then :
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9691$as_echo "yes" >&6; }
9692else
9693 ax_pthread_extra_flags=
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698CFLAGS="$save_CFLAGS"
9699
cristy73bd4a52010-10-05 11:24:23 +00009700if test x"$ax_pthread_ok" = xno; then
9701for flag in $ax_pthread_flags; do
9702
9703 case $flag in
9704 none)
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9706$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9707 ;;
9708
9709 -*)
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9711$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9712 PTHREAD_CFLAGS="$flag"
9713 ;;
9714
cristya316db12011-10-24 00:49:45 +00009715 pthread-config)
9716 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009717set dummy pthread-config; ac_word=$2
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009720if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009721 $as_echo_n "(cached) " >&6
9722else
9723 if test -n "$ax_pthread_config"; then
9724 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009733 ac_cv_prog_ax_pthread_config="yes"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737done
9738 done
9739IFS=$as_save_IFS
9740
9741 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9742fi
9743fi
9744ax_pthread_config=$ac_cv_prog_ax_pthread_config
9745if test -n "$ax_pthread_config"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9747$as_echo "$ax_pthread_config" >&6; }
9748else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753
cristya316db12011-10-24 00:49:45 +00009754 if test x"$ax_pthread_config" = xno; then continue; fi
9755 PTHREAD_CFLAGS="`pthread-config --cflags`"
9756 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9757 ;;
cristy73bd4a52010-10-05 11:24:23 +00009758
9759 *)
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9761$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9762 PTHREAD_LIBS="-l$flag"
9763 ;;
9764 esac
9765
9766 save_LIBS="$LIBS"
9767 save_CFLAGS="$CFLAGS"
9768 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009769 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009770
9771 # Check for various functions. We must include pthread.h,
9772 # since some functions may be macros. (On the Sequent, we
9773 # need a special flag -Kthread to make this header compile.)
9774 # We check for pthread_join because it is in -lpthread on IRIX
9775 # while pthread_create is in libc. We check for pthread_attr_init
9776 # due to DEC craziness with -lpthreads. We check for
9777 # pthread_cleanup_push because it is one of the few pthread
9778 # functions on Solaris that doesn't have a non-functional libc stub.
9779 # We try pthread_create on general principles.
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h. */
9782#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009783 static void routine(void *a) { a = 0; }
9784 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009785int
9786main ()
9787{
9788pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009789 pthread_create(&th, 0, start_routine, 0);
9790 pthread_join(th, 0);
9791 pthread_attr_init(&attr);
9792 pthread_cleanup_push(routine, 0);
9793 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009794 ;
9795 return 0;
9796}
9797_ACEOF
9798if ac_fn_c_try_link "$LINENO"; then :
9799 ax_pthread_ok=yes
9800fi
9801rm -f core conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803
9804 LIBS="$save_LIBS"
9805 CFLAGS="$save_CFLAGS"
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9808$as_echo "$ax_pthread_ok" >&6; }
9809 if test "x$ax_pthread_ok" = xyes; then
9810 break;
9811 fi
9812
9813 PTHREAD_LIBS=""
9814 PTHREAD_CFLAGS=""
9815done
9816fi
9817
9818# Various other checks:
9819if test "x$ax_pthread_ok" = xyes; then
9820 save_LIBS="$LIBS"
9821 LIBS="$PTHREAD_LIBS $LIBS"
9822 save_CFLAGS="$CFLAGS"
9823 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9824
9825 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009827$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009828 attr_name=unknown
9829 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009831/* end confdefs.h. */
9832#include <pthread.h>
9833int
9834main ()
9835{
cristya316db12011-10-24 00:49:45 +00009836int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009837 ;
9838 return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842 attr_name=$attr; break
9843fi
9844rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009846 done
cristy73bd4a52010-10-05 11:24:23 +00009847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9848$as_echo "$attr_name" >&6; }
9849 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9850
9851cat >>confdefs.h <<_ACEOF
9852#define PTHREAD_CREATE_JOINABLE $attr_name
9853_ACEOF
9854
9855 fi
9856
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9858$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9859 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009860 case ${host_os} in
9861 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9862 osf* | hpux*) flag="-D_REENTRANT";;
9863 solaris*)
9864 if test "$GCC" = "yes"; then
9865 flag="-D_REENTRANT"
9866 else
cristy17491be2014-06-24 01:10:53 +00009867 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009868 flag="-mt -D_REENTRANT"
9869 fi
9870 ;;
cristy73bd4a52010-10-05 11:24:23 +00009871 esac
cristy17491be2014-06-24 01:10:53 +00009872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9873$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009874 if test "x$flag" != xno; then
9875 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9876 fi
9877
cristya316db12011-10-24 00:49:45 +00009878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9879$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9880if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882else
9883
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009886#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009887int
9888main ()
9889{
9890int i = PTHREAD_PRIO_INHERIT;
9891 ;
9892 return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_link "$LINENO"; then :
9896 ax_cv_PTHREAD_PRIO_INHERIT=yes
9897else
9898 ax_cv_PTHREAD_PRIO_INHERIT=no
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9905$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9906 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9907
9908$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9909
9910fi
9911
cristy73bd4a52010-10-05 11:24:23 +00009912 LIBS="$save_LIBS"
9913 CFLAGS="$save_CFLAGS"
9914
cristy23493c42013-04-11 16:04:59 +00009915 # More AIX lossage: compile with *_r variant
9916 if test "x$GCC" != xyes; then
9917 case $host_os in
9918 aix*)
9919 case "x/$CC" in #(
9920 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9921 #handle absolute path differently from PATH based program lookup
9922 case "x$CC" in #(
9923 x/*) :
9924 if as_fn_executable_p ${CC}_r; then :
9925 PTHREAD_CC="${CC}_r"
9926fi ;; #(
9927 *) :
9928 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009929do
9930 # Extract the first word of "$ac_prog", so it can be a program name with args.
9931set dummy $ac_prog; ac_word=$2
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009934if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009935 $as_echo_n "(cached) " >&6
9936else
9937 if test -n "$PTHREAD_CC"; then
9938 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9939else
9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941for as_dir in $PATH
9942do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009947 ac_cv_prog_PTHREAD_CC="$ac_prog"
9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951done
9952 done
9953IFS=$as_save_IFS
9954
9955fi
9956fi
9957PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9958if test -n "$PTHREAD_CC"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9960$as_echo "$PTHREAD_CC" >&6; }
9961else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9964fi
9965
9966
9967 test -n "$PTHREAD_CC" && break
9968done
cristy23493c42013-04-11 16:04:59 +00009969test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9970 ;;
9971esac ;; #(
9972 *) :
9973 ;;
9974esac
9975 ;;
9976 esac
cristya316db12011-10-24 00:49:45 +00009977 fi
cristy73bd4a52010-10-05 11:24:23 +00009978fi
9979
cristy23493c42013-04-11 16:04:59 +00009980test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9981
cristy73bd4a52010-10-05 11:24:23 +00009982
9983
9984
9985
9986# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9987if test x"$ax_pthread_ok" = xyes; then
9988
9989$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9990
9991 :
9992else
9993 ax_pthread_ok=no
9994
9995fi
9996ac_ext=c
9997ac_cpp='$CPP $CPPFLAGS'
9998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000ac_compiler_gnu=$ac_cv_c_compiler_gnu
10001
10002
cristy7acf8fb2010-09-23 19:58:53 +000010003 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010004 have_threads=yes
10005 DEF_THREAD="$PTHREAD_CFLAGS"
10006 CFLAGS="$CFLAGS $DEF_THREAD"
10007 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010008 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010009 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010010 { $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 +000010011$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10012 CC="$PTHREAD_CC"
10013 fi
cristy55bf91c2010-09-24 00:29:41 +000010014
10015$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10016
cristy3ed852e2009-09-05 21:47:34 +000010017 fi
10018fi
cristy1ae5c992013-07-30 14:55:07 +000010019LIBS="$LIBS $THREAD_LIBS"
10020
cristy3ed852e2009-09-05 21:47:34 +000010021
10022# Enable support for OpenMP
10023if test "$have_threads" != 'yes'; then
10024 ac_cv_prog_c_openmp=unsupported
10025fi
10026
10027 OPENMP_CFLAGS=
10028 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010029if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010030 enableval=$enable_openmp;
10031fi
10032
10033 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010035$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010036if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010037 $as_echo_n "(cached) " >&6
10038else
cristy8b350f62009-11-15 23:12:43 +000010039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010041
10042#ifndef _OPENMP
10043 choke me
10044#endif
10045#include <omp.h>
10046int main () { return omp_get_num_threads (); }
10047
10048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010050 ac_cv_prog_c_openmp='none needed'
10051else
cristy8b350f62009-11-15 23:12:43 +000010052 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010053 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10054 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010055 ac_save_CFLAGS=$CFLAGS
10056 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010059
10060#ifndef _OPENMP
10061 choke me
10062#endif
10063#include <omp.h>
10064int main () { return omp_get_num_threads (); }
10065
10066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010068 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010069fi
cristy8b350f62009-11-15 23:12:43 +000010070rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010072 CFLAGS=$ac_save_CFLAGS
10073 if test "$ac_cv_prog_c_openmp" != unsupported; then
10074 break
10075 fi
10076 done
10077fi
cristy8b350f62009-11-15 23:12:43 +000010078rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010080fi
cristy8b350f62009-11-15 23:12:43 +000010081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010082$as_echo "$ac_cv_prog_c_openmp" >&6; }
10083 case $ac_cv_prog_c_openmp in #(
10084 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010085 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010086 *)
cristy8b350f62009-11-15 23:12:43 +000010087 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010088 esac
10089 fi
10090
10091
10092CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10093MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10094
cristy391f1ce2010-09-09 17:23:28 +000010095if test "$enable_openmp" != no; then
10096 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10097 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10098 fi
10099fi
cristy3ed852e2009-09-05 21:47:34 +000010100
cristy736173a2009-09-20 21:18:22 +000010101# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010102
10103
cristy73bd4a52010-10-05 11:24:23 +000010104ac_ext=c
10105ac_cpp='$CPP $CPPFLAGS'
10106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10108ac_compiler_gnu=$ac_cv_c_compiler_gnu
10109
10110ax_pthread_ok=no
10111
10112# We used to check for pthread.h first, but this fails if pthread.h
10113# requires special compiler flags (e.g. on True64 or Sequent).
10114# It gets checked for in the link test anyway.
10115
10116# First of all, check if the user has set any of the PTHREAD_LIBS,
10117# etcetera environment variables, and if threads linking works using
10118# them:
10119if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10120 save_CFLAGS="$CFLAGS"
10121 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10122 save_LIBS="$LIBS"
10123 LIBS="$PTHREAD_LIBS $LIBS"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10125$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h. */
10128
10129/* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132#ifdef __cplusplus
10133extern "C"
10134#endif
10135char pthread_join ();
10136int
10137main ()
10138{
10139return pthread_join ();
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144if ac_fn_c_try_link "$LINENO"; then :
10145 ax_pthread_ok=yes
10146fi
10147rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10150$as_echo "$ax_pthread_ok" >&6; }
10151 if test x"$ax_pthread_ok" = xno; then
10152 PTHREAD_LIBS=""
10153 PTHREAD_CFLAGS=""
10154 fi
10155 LIBS="$save_LIBS"
10156 CFLAGS="$save_CFLAGS"
10157fi
10158
10159# We must check for the threads library under a number of different
10160# names; the ordering is very important because some systems
10161# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10162# libraries is broken (non-POSIX).
10163
10164# Create a list of thread flags to try. Items starting with a "-" are
10165# C compiler flags, and other items are library names, except for "none"
10166# which indicates that we try without any flags at all, and "pthread-config"
10167# which is a program returning the flags for the Pth emulation library.
10168
cristy2ec87cc2013-02-18 17:46:50 +000010169ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010170
10171# The ordering *is* (sometimes) important. Some notes on the
10172# individual items follow:
10173
10174# pthreads: AIX (must check this before -lpthread)
10175# none: in case threads are in libc; should be tried before -Kthread and
10176# other compiler flags to prevent continual compiler warnings
10177# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10178# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10179# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10180# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10181# -pthreads: Solaris/gcc
10182# -mthreads: Mingw32/gcc, Lynx/gcc
10183# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10184# doesn't hurt to check since this sometimes defines pthreads too;
10185# also defines -D_REENTRANT)
10186# ... -mt is also the pthreads flag for HP/aCC
10187# pthread: Linux, etcetera
10188# --thread-safe: KAI C++
10189# pthread-config: use pthread-config program (for GNU Pth library)
10190
cristy2ec87cc2013-02-18 17:46:50 +000010191case ${host_os} in
10192 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010193
10194 # On Solaris (at least, for some versions), libc contains stubbed
10195 # (non-functional) versions of the pthreads routines, so link-based
10196 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10197 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10198 # a function called by this macro, so we could check for that, but
10199 # who knows whether they'll stub that too in a future libc.) So,
10200 # we'll just look for -pthreads and -lpthread first:
10201
10202 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10203 ;;
10204
cristy2ec87cc2013-02-18 17:46:50 +000010205 darwin*)
cristya316db12011-10-24 00:49:45 +000010206 ax_pthread_flags="-pthread $ax_pthread_flags"
10207 ;;
cristy73bd4a52010-10-05 11:24:23 +000010208esac
10209
cristy17491be2014-06-24 01:10:53 +000010210# Clang doesn't consider unrecognized options an error unless we specify
10211# -Werror. We throw in some extra Clang-specific options to ensure that
10212# this doesn't happen for GCC, which also accepts -Werror.
10213
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10215$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10216save_CFLAGS="$CFLAGS"
10217ax_pthread_extra_flags="-Werror"
10218CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h. */
10221int foo(void);
10222int
10223main ()
10224{
10225foo()
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230if ac_fn_c_try_compile "$LINENO"; then :
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10232$as_echo "yes" >&6; }
10233else
10234 ax_pthread_extra_flags=
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236$as_echo "no" >&6; }
10237fi
10238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239CFLAGS="$save_CFLAGS"
10240
cristy73bd4a52010-10-05 11:24:23 +000010241if test x"$ax_pthread_ok" = xno; then
10242for flag in $ax_pthread_flags; do
10243
10244 case $flag in
10245 none)
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10247$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10248 ;;
10249
10250 -*)
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10252$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10253 PTHREAD_CFLAGS="$flag"
10254 ;;
10255
cristya316db12011-10-24 00:49:45 +000010256 pthread-config)
10257 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010258set dummy pthread-config; ac_word=$2
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010261if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010262 $as_echo_n "(cached) " >&6
10263else
10264 if test -n "$ax_pthread_config"; then
10265 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10266else
10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010274 ac_cv_prog_ax_pthread_config="yes"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278done
10279 done
10280IFS=$as_save_IFS
10281
10282 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10283fi
10284fi
10285ax_pthread_config=$ac_cv_prog_ax_pthread_config
10286if test -n "$ax_pthread_config"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10288$as_echo "$ax_pthread_config" >&6; }
10289else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
10292fi
10293
10294
cristya316db12011-10-24 00:49:45 +000010295 if test x"$ax_pthread_config" = xno; then continue; fi
10296 PTHREAD_CFLAGS="`pthread-config --cflags`"
10297 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10298 ;;
cristy73bd4a52010-10-05 11:24:23 +000010299
10300 *)
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10302$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10303 PTHREAD_LIBS="-l$flag"
10304 ;;
10305 esac
10306
10307 save_LIBS="$LIBS"
10308 save_CFLAGS="$CFLAGS"
10309 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010310 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010311
10312 # Check for various functions. We must include pthread.h,
10313 # since some functions may be macros. (On the Sequent, we
10314 # need a special flag -Kthread to make this header compile.)
10315 # We check for pthread_join because it is in -lpthread on IRIX
10316 # while pthread_create is in libc. We check for pthread_attr_init
10317 # due to DEC craziness with -lpthreads. We check for
10318 # pthread_cleanup_push because it is one of the few pthread
10319 # functions on Solaris that doesn't have a non-functional libc stub.
10320 # We try pthread_create on general principles.
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h. */
10323#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010324 static void routine(void *a) { a = 0; }
10325 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010326int
10327main ()
10328{
10329pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010330 pthread_create(&th, 0, start_routine, 0);
10331 pthread_join(th, 0);
10332 pthread_attr_init(&attr);
10333 pthread_cleanup_push(routine, 0);
10334 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010335 ;
10336 return 0;
10337}
10338_ACEOF
10339if ac_fn_c_try_link "$LINENO"; then :
10340 ax_pthread_ok=yes
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344
10345 LIBS="$save_LIBS"
10346 CFLAGS="$save_CFLAGS"
10347
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10349$as_echo "$ax_pthread_ok" >&6; }
10350 if test "x$ax_pthread_ok" = xyes; then
10351 break;
10352 fi
10353
10354 PTHREAD_LIBS=""
10355 PTHREAD_CFLAGS=""
10356done
10357fi
10358
10359# Various other checks:
10360if test "x$ax_pthread_ok" = xyes; then
10361 save_LIBS="$LIBS"
10362 LIBS="$PTHREAD_LIBS $LIBS"
10363 save_CFLAGS="$CFLAGS"
10364 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10365
10366 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010368$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010369 attr_name=unknown
10370 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010372/* end confdefs.h. */
10373#include <pthread.h>
10374int
10375main ()
10376{
cristya316db12011-10-24 00:49:45 +000010377int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010378 ;
10379 return 0;
10380}
10381_ACEOF
10382if ac_fn_c_try_link "$LINENO"; then :
10383 attr_name=$attr; break
10384fi
10385rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010387 done
cristy73bd4a52010-10-05 11:24:23 +000010388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10389$as_echo "$attr_name" >&6; }
10390 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10391
10392cat >>confdefs.h <<_ACEOF
10393#define PTHREAD_CREATE_JOINABLE $attr_name
10394_ACEOF
10395
10396 fi
10397
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10399$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10400 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010401 case ${host_os} in
10402 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10403 osf* | hpux*) flag="-D_REENTRANT";;
10404 solaris*)
10405 if test "$GCC" = "yes"; then
10406 flag="-D_REENTRANT"
10407 else
cristy17491be2014-06-24 01:10:53 +000010408 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010409 flag="-mt -D_REENTRANT"
10410 fi
10411 ;;
cristy73bd4a52010-10-05 11:24:23 +000010412 esac
cristy17491be2014-06-24 01:10:53 +000010413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10414$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010415 if test "x$flag" != xno; then
10416 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10417 fi
10418
cristya316db12011-10-24 00:49:45 +000010419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10420$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10421if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010427#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010428int
10429main ()
10430{
10431int i = PTHREAD_PRIO_INHERIT;
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436if ac_fn_c_try_link "$LINENO"; then :
10437 ax_cv_PTHREAD_PRIO_INHERIT=yes
10438else
10439 ax_cv_PTHREAD_PRIO_INHERIT=no
10440fi
10441rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443
10444fi
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10446$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10447 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10448
10449$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10450
10451fi
10452
cristy73bd4a52010-10-05 11:24:23 +000010453 LIBS="$save_LIBS"
10454 CFLAGS="$save_CFLAGS"
10455
cristy23493c42013-04-11 16:04:59 +000010456 # More AIX lossage: compile with *_r variant
10457 if test "x$GCC" != xyes; then
10458 case $host_os in
10459 aix*)
10460 case "x/$CC" in #(
10461 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10462 #handle absolute path differently from PATH based program lookup
10463 case "x$CC" in #(
10464 x/*) :
10465 if as_fn_executable_p ${CC}_r; then :
10466 PTHREAD_CC="${CC}_r"
10467fi ;; #(
10468 *) :
10469 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010470do
10471 # Extract the first word of "$ac_prog", so it can be a program name with args.
10472set dummy $ac_prog; ac_word=$2
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010475if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010476 $as_echo_n "(cached) " >&6
10477else
10478 if test -n "$PTHREAD_CC"; then
10479 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10480else
10481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482for as_dir in $PATH
10483do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010488 ac_cv_prog_PTHREAD_CC="$ac_prog"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492done
10493 done
10494IFS=$as_save_IFS
10495
10496fi
10497fi
10498PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10499if test -n "$PTHREAD_CC"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10501$as_echo "$PTHREAD_CC" >&6; }
10502else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504$as_echo "no" >&6; }
10505fi
10506
10507
10508 test -n "$PTHREAD_CC" && break
10509done
cristy23493c42013-04-11 16:04:59 +000010510test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10511 ;;
10512esac ;; #(
10513 *) :
10514 ;;
10515esac
10516 ;;
10517 esac
cristya316db12011-10-24 00:49:45 +000010518 fi
cristy73bd4a52010-10-05 11:24:23 +000010519fi
10520
cristy23493c42013-04-11 16:04:59 +000010521test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10522
cristy73bd4a52010-10-05 11:24:23 +000010523
10524
10525
10526
10527# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10528if test x"$ax_pthread_ok" = xyes; then
10529
10530$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10531
10532 :
10533else
10534 ax_pthread_ok=no
10535
10536fi
10537ac_ext=c
10538ac_cpp='$CPP $CPPFLAGS'
10539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10541ac_compiler_gnu=$ac_cv_c_compiler_gnu
10542
10543
10544
10545# Check whether --enable-opencl was given.
10546if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010547 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010548else
cristy48794642012-09-02 15:19:08 +000010549 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010550fi
10551
10552
cristy48794642012-09-02 15:19:08 +000010553if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010554 ac_ext=c
10555ac_cpp='$CPP $CPPFLAGS'
10556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
cristy75314cc2012-09-15 23:08:29 +000010560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10561$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10562if ${ax_cv_c_compiler_ms+:} false; then :
10563 $as_echo_n "(cached) " >&6
10564else
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
10567
10568int
10569main ()
10570{
10571#ifndef _MSC_VER
10572 choke me
10573#endif
10574
10575 ;
10576 return 0;
10577}
10578_ACEOF
10579if ac_fn_c_try_compile "$LINENO"; then :
10580 ax_compiler_ms=yes
10581else
10582 ax_compiler_ms=no
10583fi
10584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585ax_cv_c_compiler_ms=$ax_compiler_ms
10586
10587fi
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10589$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010590 if test X$ax_compiler_ms = Xno; then :
10591 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10592fi
10593
10594 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010595 ax_save_CL_CFLAGS=$CL_CFLAGS
10596
10597 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010598 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10599 for ac_header in CL/cl.h OpenCL/cl.h
10600do :
10601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010604 cat >>confdefs.h <<_ACEOF
10605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10606_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010607 found_opencl_header='yes'
10608 break;
10609else
10610 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010611fi
10612
10613done
10614
cristyfdc7d122013-08-17 20:46:45 +000010615
10616 if test X$found_opencl_header = Xno; then :
10617 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10618 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10619 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10620 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10621 for ac_header in CL/cl.h OpenCL/cl.h
10622do :
10623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10626 cat >>confdefs.h <<_ACEOF
10627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628_ACEOF
10629 found_opencl_header='yes'
10630 break;
10631else
10632 found_opencl_header='no'
10633fi
10634
10635done
10636
10637
10638fi
10639
10640 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010641
10642 for ac_header in windows.h
10643do :
10644 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010645if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010646 cat >>confdefs.h <<_ACEOF
10647#define HAVE_WINDOWS_H 1
10648_ACEOF
10649
10650fi
10651
10652done
10653
10654
10655
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10658$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010659if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010660 $as_echo_n "(cached) " >&6
10661else
10662 ax_cv_check_cl_libcl=no
10663 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010664 x86_64) ax_check_cl_libdir=lib64
10665 ax_check_cl_amd_libdir=x86_64
10666 ;;
10667 *) ax_check_cl_libdir=lib
10668 ax_check_cl_amd_libdir=x86
10669 ;;
cristy73bd4a52010-10-05 11:24:23 +000010670 esac
10671 ax_save_CPPFLAGS=$CPPFLAGS
10672 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10673 ax_save_LIBS=$LIBS
10674 LIBS=""
10675 ax_check_libs="-lOpenCL -lCL -lclparser"
10676 for ax_lib in $ax_check_libs; do
10677 if test X$ax_compiler_ms = Xyes; then :
10678 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10679else
10680 ax_try_lib=$ax_lib
10681fi
10682 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h. */
10685
10686 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10687 # include <windows.h>
10688 # endif
10689 # ifdef HAVE_CL_CL_H
10690 # include <CL/cl.h>
10691 # elif defined(HAVE_OPENCL_CL_H)
10692 # include <OpenCL/cl.h>
10693 # else
10694 # error no CL.h
10695 # endif
10696int
10697main ()
10698{
10699clCreateContextFromType(0,0,0,0,0)
10700 ;
10701 return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"; then :
10705 ax_cv_check_cl_libcl=$ax_try_lib; break
10706else
10707 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"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h. */
10710
10711 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10712 # include <windows.h>
10713 # endif
10714 # ifdef HAVE_CL_CL_H
10715 # include <CL/cl.h>
10716 # elif defined(HAVE_OPENCL_CL_H)
10717 # include <OpenCL/cl.h>
10718 # else
10719 # error no CL.h
10720 # endif
10721int
10722main ()
10723{
10724clCreateContextFromType(0,0,0,0,0)
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729if ac_fn_c_try_link "$LINENO"; then :
10730 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10731else
cristy78c5a0c2010-12-04 20:00:59 +000010732 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 +000010733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734/* end confdefs.h. */
10735
10736 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10737 # include <windows.h>
10738 # endif
10739 # ifdef HAVE_CL_CL_H
10740 # include <CL/cl.h>
10741 # elif defined(HAVE_OPENCL_CL_H)
10742 # include <OpenCL/cl.h>
10743 # else
10744 # error no CL.h
10745 # endif
10746int
10747main ()
10748{
10749clCreateContextFromType(0,0,0,0,0)
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754if ac_fn_c_try_link "$LINENO"; then :
10755 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010756else
10757 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h. */
10760
10761 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10762 # include <windows.h>
10763 # endif
10764 # ifdef HAVE_CL_CL_H
10765 # include <CL/cl.h>
10766 # elif defined(HAVE_OPENCL_CL_H)
10767 # include <OpenCL/cl.h>
10768 # else
10769 # error no CL.h
10770 # endif
10771int
10772main ()
10773{
10774clCreateContextFromType(0,0,0,0,0)
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779if ac_fn_c_try_link "$LINENO"; then :
10780 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10781
10782fi
10783rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785
10786
cristy73bd4a52010-10-05 11:24:23 +000010787fi
10788rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790fi
10791rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793fi
10794rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 done
10797
cristyc3f8b8e2011-12-22 14:55:16 +000010798 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010799 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h. */
10802
10803 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10804 # include <windows.h>
10805 # endif
10806 # ifdef HAVE_CL_CL_H
10807 # include <CL/cl.h>
10808 # elif defined(HAVE_OPENCL_CL_H)
10809 # include <OpenCL/cl.h>
10810 # else
10811 # error no CL.h
10812 # endif
10813int
10814main ()
10815{
10816clCreateContextFromType(0,0,0,0,0)
10817 ;
10818 return 0;
10819}
10820_ACEOF
10821if ac_fn_c_try_link "$LINENO"; then :
10822 ax_cv_check_cl_libcl=$LIBS
10823fi
10824rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826fi
10827
10828 LIBS=$ax_save_LIBS
10829 CPPFLAGS=$ax_save_CPPFLAGS
10830fi
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10832$as_echo "$ax_cv_check_cl_libcl" >&6; }
10833
10834 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10835 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10836else
10837 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10838$as_echo "#define _OPENCL 1" >>confdefs.h
10839
10840fi
10841 ac_ext=c
10842ac_cpp='$CPP $CPPFLAGS'
10843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10845ac_compiler_gnu=$ac_cv_c_compiler_gnu
10846
10847fi
10848
10849
10850
cristy0c832c62014-03-07 22:21:04 +000010851#remove static link on Linux
10852CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10853
cristy73bd4a52010-10-05 11:24:23 +000010854
cristyc7083c12009-10-14 03:16:55 +000010855CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010856CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010857LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010858
cristy391f1ce2010-09-09 17:23:28 +000010859if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010860 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010861 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10862 fi
cristyfd9dcd42010-08-08 18:07:02 +000010863fi
cristy2e8b51d2009-10-17 18:26:15 +000010864
cristy3ed852e2009-09-05 21:47:34 +000010865########
10866#
10867# Check for large file support
10868#
10869########
10870# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010871if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010872 enableval=$enable_largefile;
10873fi
10874
10875if test "$enable_largefile" != no; then
10876
cristy8b350f62009-11-15 23:12:43 +000010877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010878$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010879if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010880 $as_echo_n "(cached) " >&6
10881else
10882 ac_cv_sys_largefile_CC=no
10883 if test "$GCC" != yes; then
10884 ac_save_CC=$CC
10885 while :; do
10886 # IRIX 6.2 and later do not support large files by default,
10887 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010889/* end confdefs.h. */
10890#include <sys/types.h>
10891 /* Check that off_t can represent 2**63 - 1 correctly.
10892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10893 since some C++ compilers masquerading as C compilers
10894 incorrectly reject 9223372036854775807. */
10895#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10897 && LARGE_OFF_T % 2147483647 == 1)
10898 ? 1 : -1];
10899int
10900main ()
10901{
10902
10903 ;
10904 return 0;
10905}
10906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010907 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010908 break
cristy3ed852e2009-09-05 21:47:34 +000010909fi
cristy3ed852e2009-09-05 21:47:34 +000010910rm -f core conftest.err conftest.$ac_objext
10911 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010912 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010913 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010914fi
cristy3ed852e2009-09-05 21:47:34 +000010915rm -f core conftest.err conftest.$ac_objext
10916 break
10917 done
10918 CC=$ac_save_CC
10919 rm -f conftest.$ac_ext
10920 fi
10921fi
cristy8b350f62009-11-15 23:12:43 +000010922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010923$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10924 if test "$ac_cv_sys_largefile_CC" != no; then
10925 CC=$CC$ac_cv_sys_largefile_CC
10926 fi
10927
cristy8b350f62009-11-15 23:12:43 +000010928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010929$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010930if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010931 $as_echo_n "(cached) " >&6
10932else
10933 while :; do
cristy8b350f62009-11-15 23:12:43 +000010934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010935/* end confdefs.h. */
10936#include <sys/types.h>
10937 /* Check that off_t can represent 2**63 - 1 correctly.
10938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10939 since some C++ compilers masquerading as C compilers
10940 incorrectly reject 9223372036854775807. */
10941#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10943 && LARGE_OFF_T % 2147483647 == 1)
10944 ? 1 : -1];
10945int
10946main ()
10947{
10948
10949 ;
10950 return 0;
10951}
10952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010953if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010954 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010955fi
cristy3ed852e2009-09-05 21:47:34 +000010956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010958/* end confdefs.h. */
10959#define _FILE_OFFSET_BITS 64
10960#include <sys/types.h>
10961 /* Check that off_t can represent 2**63 - 1 correctly.
10962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10963 since some C++ compilers masquerading as C compilers
10964 incorrectly reject 9223372036854775807. */
10965#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10967 && LARGE_OFF_T % 2147483647 == 1)
10968 ? 1 : -1];
10969int
10970main ()
10971{
10972
10973 ;
10974 return 0;
10975}
10976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010978 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010979fi
cristy3ed852e2009-09-05 21:47:34 +000010980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 ac_cv_sys_file_offset_bits=unknown
10982 break
10983done
10984fi
cristy8b350f62009-11-15 23:12:43 +000010985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010986$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10987case $ac_cv_sys_file_offset_bits in #(
10988 no | unknown) ;;
10989 *)
10990cat >>confdefs.h <<_ACEOF
10991#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10992_ACEOF
10993;;
10994esac
10995rm -rf conftest*
10996 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010998$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010999if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011000 $as_echo_n "(cached) " >&6
11001else
11002 while :; do
cristy8b350f62009-11-15 23:12:43 +000011003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011004/* end confdefs.h. */
11005#include <sys/types.h>
11006 /* Check that off_t can represent 2**63 - 1 correctly.
11007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11008 since some C++ compilers masquerading as C compilers
11009 incorrectly reject 9223372036854775807. */
11010#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11012 && LARGE_OFF_T % 2147483647 == 1)
11013 ? 1 : -1];
11014int
11015main ()
11016{
11017
11018 ;
11019 return 0;
11020}
11021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011022if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011023 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011024fi
cristy3ed852e2009-09-05 21:47:34 +000011025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011027/* end confdefs.h. */
11028#define _LARGE_FILES 1
11029#include <sys/types.h>
11030 /* Check that off_t can represent 2**63 - 1 correctly.
11031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11032 since some C++ compilers masquerading as C compilers
11033 incorrectly reject 9223372036854775807. */
11034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11036 && LARGE_OFF_T % 2147483647 == 1)
11037 ? 1 : -1];
11038int
11039main ()
11040{
11041
11042 ;
11043 return 0;
11044}
11045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011047 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011048fi
cristy3ed852e2009-09-05 21:47:34 +000011049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 ac_cv_sys_large_files=unknown
11051 break
11052done
11053fi
cristy8b350f62009-11-15 23:12:43 +000011054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011055$as_echo "$ac_cv_sys_large_files" >&6; }
11056case $ac_cv_sys_large_files in #(
11057 no | unknown) ;;
11058 *)
11059cat >>confdefs.h <<_ACEOF
11060#define _LARGE_FILES $ac_cv_sys_large_files
11061_ACEOF
11062;;
11063esac
11064rm -rf conftest*
11065 fi
cristy14fefe52012-05-21 00:59:18 +000011066
11067
cristy3ed852e2009-09-05 21:47:34 +000011068fi
11069
cristy8b350f62009-11-15 23:12:43 +000011070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011071$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011072if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011073 $as_echo_n "(cached) " >&6
11074else
11075 while :; do
cristy8b350f62009-11-15 23:12:43 +000011076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011077/* end confdefs.h. */
11078#include <sys/types.h> /* for off_t */
11079 #include <stdio.h>
11080int
11081main ()
11082{
11083int (*fp) (FILE *, off_t, int) = fseeko;
11084 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11085 ;
11086 return 0;
11087}
11088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011090 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011091fi
cristy8b350f62009-11-15 23:12:43 +000011092rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011095/* end confdefs.h. */
11096#define _LARGEFILE_SOURCE 1
11097#include <sys/types.h> /* for off_t */
11098 #include <stdio.h>
11099int
11100main ()
11101{
11102int (*fp) (FILE *, off_t, int) = fseeko;
11103 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11104 ;
11105 return 0;
11106}
11107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011108if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011109 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011110fi
cristy8b350f62009-11-15 23:12:43 +000011111rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011113 ac_cv_sys_largefile_source=unknown
11114 break
11115done
11116fi
cristy8b350f62009-11-15 23:12:43 +000011117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011118$as_echo "$ac_cv_sys_largefile_source" >&6; }
11119case $ac_cv_sys_largefile_source in #(
11120 no | unknown) ;;
11121 *)
11122cat >>confdefs.h <<_ACEOF
11123#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11124_ACEOF
11125;;
11126esac
11127rm -rf conftest*
11128
11129# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11130# in glibc 2.1.3, but that breaks too many other things.
11131# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11132if test $ac_cv_sys_largefile_source != unknown; then
11133
cristy8b350f62009-11-15 23:12:43 +000011134$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011135
11136fi
11137
11138LFS_CPPFLAGS=''
11139if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011140 case $ac_cv_sys_file_offset_bits in
11141 no)
11142 # nothing to do here as the host supports LFS fine
11143 ;;
11144 unknown)
cristy8b350f62009-11-15 23:12:43 +000011145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011146$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011147 if test "$cross_compiling" = yes; then :
11148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011150as_fn_error $? "cannot run test program while cross compiling
11151See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011152else
cristy8b350f62009-11-15 23:12:43 +000011153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011155#include <unistd.h>
11156 main () {
11157 exit(!(sizeof(off_t) == 8));
11158 }
cristyda16f162011-02-19 23:52:17 +000011159int
11160main ()
11161{
11162
11163 ;
11164 return 0;
11165}
cristy3ed852e2009-09-05 21:47:34 +000011166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011167if ac_fn_c_try_run "$LINENO"; then :
11168 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011169
cristyad38abe2012-12-23 23:03:21 +000011170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011172else
cristyad38abe2012-12-23 23:03:21 +000011173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011175fi
cristy8b350f62009-11-15 23:12:43 +000011176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11177 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011178fi
11179
cristyc1e0cc12011-09-21 16:41:16 +000011180 ;;
11181 *)
11182 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11183 ;;
11184 esac
cristy3ed852e2009-09-05 21:47:34 +000011185 if test "$ac_cv_sys_large_files" != 'no'; then
11186 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11187 fi
11188 if test "$ac_cv_sys_largefile_source" != 'no'; then
11189 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11190 fi
11191fi
11192
11193
cristy3ed852e2009-09-05 21:47:34 +000011194# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011195enable_dlopen=yes
11196
11197
11198
11199case `pwd` in
11200 *\ * | *\ *)
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11202$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11203esac
11204
11205
11206
cristy99bd5232011-12-07 14:38:20 +000011207macro_version='2.4.2'
11208macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222ltmain="$ac_aux_dir/ltmain.sh"
11223
cristy0c60a692010-11-04 01:09:47 +000011224# Backslashify metacharacters that are still active within
11225# double-quoted strings.
11226sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11227
11228# Same as above, but do not quote variable references.
11229double_quote_subst='s/\(["`\\]\)/\\\1/g'
11230
11231# Sed substitution to delay expansion of an escaped shell variable in a
11232# double_quote_subst'ed string.
11233delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11234
11235# Sed substitution to delay expansion of an escaped single quote.
11236delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11237
11238# Sed substitution to avoid accidental globbing in evaled expressions
11239no_glob_subst='s/\*/\\\*/g'
11240
cristy73bd4a52010-10-05 11:24:23 +000011241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11242$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011243if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011244 $as_echo_n "(cached) " >&6
11245else
11246 if test -n "$NM"; then
11247 # Let the user override the test.
11248 lt_cv_path_NM="$NM"
11249else
11250 lt_nm_to_check="${ac_tool_prefix}nm"
11251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11252 lt_nm_to_check="$lt_nm_to_check nm"
11253 fi
11254 for lt_tmp_nm in $lt_nm_to_check; do
11255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11257 IFS="$lt_save_ifs"
11258 test -z "$ac_dir" && ac_dir=.
11259 tmp_nm="$ac_dir/$lt_tmp_nm"
11260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11261 # Check to see if the nm accepts a BSD-compat flag.
11262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11263 # nm: unknown option "B" ignored
11264 # Tru64's nm complains that /dev/null is an invalid object file
11265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11266 */dev/null* | *'Invalid file or object type'*)
11267 lt_cv_path_NM="$tmp_nm -B"
11268 break
11269 ;;
11270 *)
11271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11272 */dev/null*)
11273 lt_cv_path_NM="$tmp_nm -p"
11274 break
11275 ;;
11276 *)
11277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11278 continue # so that we can try to find one that supports BSD flags
11279 ;;
11280 esac
11281 ;;
11282 esac
11283 fi
11284 done
11285 IFS="$lt_save_ifs"
11286 done
11287 : ${lt_cv_path_NM=no}
11288fi
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11291$as_echo "$lt_cv_path_NM" >&6; }
11292if test "$lt_cv_path_NM" != "no"; then
11293 NM="$lt_cv_path_NM"
11294else
11295 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011296 if test -n "$DUMPBIN"; then :
11297 # Let the user override the test.
11298 else
11299 if test -n "$ac_tool_prefix"; then
11300 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011301 do
11302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11303set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011306if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011307 $as_echo_n "(cached) " >&6
11308else
11309 if test -n "$DUMPBIN"; then
11310 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11311else
11312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011319 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323done
11324 done
11325IFS=$as_save_IFS
11326
11327fi
11328fi
11329DUMPBIN=$ac_cv_prog_DUMPBIN
11330if test -n "$DUMPBIN"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11332$as_echo "$DUMPBIN" >&6; }
11333else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335$as_echo "no" >&6; }
11336fi
11337
11338
11339 test -n "$DUMPBIN" && break
11340 done
11341fi
11342if test -z "$DUMPBIN"; then
11343 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011344 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011345do
11346 # Extract the first word of "$ac_prog", so it can be a program name with args.
11347set dummy $ac_prog; ac_word=$2
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011350if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011351 $as_echo_n "(cached) " >&6
11352else
11353 if test -n "$ac_ct_DUMPBIN"; then
11354 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11355else
11356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011363 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367done
11368 done
11369IFS=$as_save_IFS
11370
11371fi
11372fi
11373ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11374if test -n "$ac_ct_DUMPBIN"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11376$as_echo "$ac_ct_DUMPBIN" >&6; }
11377else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380fi
11381
11382
11383 test -n "$ac_ct_DUMPBIN" && break
11384done
11385
11386 if test "x$ac_ct_DUMPBIN" = x; then
11387 DUMPBIN=":"
11388 else
11389 case $cross_compiling:$ac_tool_warned in
11390yes:)
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11393ac_tool_warned=yes ;;
11394esac
11395 DUMPBIN=$ac_ct_DUMPBIN
11396 fi
11397fi
11398
cristy0c60a692010-11-04 01:09:47 +000011399 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11400 *COFF*)
11401 DUMPBIN="$DUMPBIN -symbols"
11402 ;;
11403 *)
11404 DUMPBIN=:
11405 ;;
11406 esac
11407 fi
cristy73bd4a52010-10-05 11:24:23 +000011408
11409 if test "$DUMPBIN" != ":"; then
11410 NM="$DUMPBIN"
11411 fi
11412fi
11413test -z "$NM" && NM=nm
11414
11415
11416
11417
11418
11419
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11421$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011422if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011423 $as_echo_n "(cached) " >&6
11424else
11425 lt_cv_nm_interface="BSD nm"
11426 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011427 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011428 (eval "$ac_compile" 2>conftest.err)
11429 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011430 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11432 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011433 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011434 cat conftest.out >&5
11435 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11436 lt_cv_nm_interface="MS dumpbin"
11437 fi
11438 rm -f conftest*
11439fi
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11441$as_echo "$lt_cv_nm_interface" >&6; }
11442
11443# find the maximum length of command line arguments
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11445$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011446if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011447 $as_echo_n "(cached) " >&6
11448else
11449 i=0
11450 teststring="ABCD"
11451
11452 case $build_os in
11453 msdosdjgpp*)
11454 # On DJGPP, this test can blow up pretty badly due to problems in libc
11455 # (any single argument exceeding 2000 bytes causes a buffer overrun
11456 # during glob expansion). Even if it were fixed, the result of this
11457 # check would be larger than it should be.
11458 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11459 ;;
11460
11461 gnu*)
11462 # Under GNU Hurd, this test is not required because there is
11463 # no limit to the length of command line arguments.
11464 # Libtool will interpret -1 as no limit whatsoever
11465 lt_cv_sys_max_cmd_len=-1;
11466 ;;
11467
11468 cygwin* | mingw* | cegcc*)
11469 # On Win9x/ME, this test blows up -- it succeeds, but takes
11470 # about 5 minutes as the teststring grows exponentially.
11471 # Worse, since 9x/ME are not pre-emptively multitasking,
11472 # you end up with a "frozen" computer, even though with patience
11473 # the test eventually succeeds (with a max line length of 256k).
11474 # Instead, let's just punt: use the minimum linelength reported by
11475 # all of the supported platforms: 8192 (on NT/2K/XP).
11476 lt_cv_sys_max_cmd_len=8192;
11477 ;;
11478
cristy0c60a692010-11-04 01:09:47 +000011479 mint*)
11480 # On MiNT this can take a long time and run out of memory.
11481 lt_cv_sys_max_cmd_len=8192;
11482 ;;
11483
cristy73bd4a52010-10-05 11:24:23 +000011484 amigaos*)
11485 # On AmigaOS with pdksh, this test takes hours, literally.
11486 # So we just punt and use a minimum line length of 8192.
11487 lt_cv_sys_max_cmd_len=8192;
11488 ;;
11489
11490 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11491 # This has been around since 386BSD, at least. Likely further.
11492 if test -x /sbin/sysctl; then
11493 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11494 elif test -x /usr/sbin/sysctl; then
11495 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11496 else
11497 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11498 fi
11499 # And add a safety zone
11500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11502 ;;
11503
11504 interix*)
11505 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11506 lt_cv_sys_max_cmd_len=196608
11507 ;;
11508
cristy99bd5232011-12-07 14:38:20 +000011509 os2*)
11510 # The test takes a long time on OS/2.
11511 lt_cv_sys_max_cmd_len=8192
11512 ;;
11513
cristy73bd4a52010-10-05 11:24:23 +000011514 osf*)
11515 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11516 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11517 # nice to cause kernel panics so lets avoid the loop below.
11518 # First set a reasonable default.
11519 lt_cv_sys_max_cmd_len=16384
11520 #
11521 if test -x /sbin/sysconfig; then
11522 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11523 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11524 esac
11525 fi
11526 ;;
11527 sco3.2v5*)
11528 lt_cv_sys_max_cmd_len=102400
11529 ;;
11530 sysv5* | sco5v6* | sysv4.2uw2*)
11531 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11532 if test -n "$kargmax"; then
11533 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11534 else
11535 lt_cv_sys_max_cmd_len=32768
11536 fi
11537 ;;
11538 *)
11539 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11540 if test -n "$lt_cv_sys_max_cmd_len"; then
11541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11543 else
11544 # Make teststring a little bigger before we do anything with it.
11545 # a 1K string should be a reasonable start.
11546 for i in 1 2 3 4 5 6 7 8 ; do
11547 teststring=$teststring$teststring
11548 done
11549 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11550 # If test is not a shell built-in, we'll probably end up computing a
11551 # maximum length that is only half of the actual maximum length, but
11552 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011553 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011554 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011555 test $i != 17 # 1/2 MB should be enough
11556 do
11557 i=`expr $i + 1`
11558 teststring=$teststring$teststring
11559 done
11560 # Only check the string length outside the loop.
11561 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11562 teststring=
11563 # Add a significant safety factor because C++ compilers can tack on
11564 # massive amounts of additional arguments before passing them to the
11565 # linker. It appears as though 1/2 is a usable value.
11566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11567 fi
11568 ;;
11569 esac
11570
11571fi
11572
11573if test -n $lt_cv_sys_max_cmd_len ; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11575$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11576else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11578$as_echo "none" >&6; }
11579fi
11580max_cmd_len=$lt_cv_sys_max_cmd_len
11581
11582
11583
11584
11585
11586
11587: ${CP="cp -f"}
11588: ${MV="mv -f"}
11589: ${RM="rm -f"}
11590
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11592$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11593# Try some XSI features
11594xsi_shell=no
11595( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011596 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11597 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011598 && eval 'test $(( 1 + 1 )) -eq 2 \
11599 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11600 && xsi_shell=yes
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11602$as_echo "$xsi_shell" >&6; }
11603
11604
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11606$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11607lt_shell_append=no
11608( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11609 >/dev/null 2>&1 \
11610 && lt_shell_append=yes
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11612$as_echo "$lt_shell_append" >&6; }
11613
11614
11615if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11616 lt_unset=unset
11617else
11618 lt_unset=false
11619fi
11620
11621
11622
11623
11624
11625# test EBCDIC or ASCII
11626case `echo X|tr X '\101'` in
11627 A) # ASCII based system
11628 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11629 lt_SP2NL='tr \040 \012'
11630 lt_NL2SP='tr \015\012 \040\040'
11631 ;;
11632 *) # EBCDIC based system
11633 lt_SP2NL='tr \100 \n'
11634 lt_NL2SP='tr \r\n \100\100'
11635 ;;
11636esac
11637
11638
11639
11640
11641
11642
11643
11644
11645
cristyda16f162011-02-19 23:52:17 +000011646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11647$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11648if ${lt_cv_to_host_file_cmd+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650else
11651 case $host in
11652 *-*-mingw* )
11653 case $build in
11654 *-*-mingw* ) # actually msys
11655 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11656 ;;
11657 *-*-cygwin* )
11658 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11659 ;;
11660 * ) # otherwise, assume *nix
11661 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11662 ;;
11663 esac
11664 ;;
11665 *-*-cygwin* )
11666 case $build in
11667 *-*-mingw* ) # actually msys
11668 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11669 ;;
11670 *-*-cygwin* )
11671 lt_cv_to_host_file_cmd=func_convert_file_noop
11672 ;;
11673 * ) # otherwise, assume *nix
11674 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11675 ;;
11676 esac
11677 ;;
11678 * ) # unhandled hosts (and "normal" native builds)
11679 lt_cv_to_host_file_cmd=func_convert_file_noop
11680 ;;
11681esac
11682
11683fi
11684
11685to_host_file_cmd=$lt_cv_to_host_file_cmd
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11687$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11688
11689
11690
11691
11692
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11694$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11695if ${lt_cv_to_tool_file_cmd+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697else
11698 #assume ordinary cross tools, or native build.
11699lt_cv_to_tool_file_cmd=func_convert_file_noop
11700case $host in
11701 *-*-mingw* )
11702 case $build in
11703 *-*-mingw* ) # actually msys
11704 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11705 ;;
11706 esac
11707 ;;
11708esac
11709
11710fi
11711
11712to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11714$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11715
11716
11717
11718
11719
cristy73bd4a52010-10-05 11:24:23 +000011720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11721$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011722if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011723 $as_echo_n "(cached) " >&6
11724else
11725 lt_cv_ld_reload_flag='-r'
11726fi
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11728$as_echo "$lt_cv_ld_reload_flag" >&6; }
11729reload_flag=$lt_cv_ld_reload_flag
11730case $reload_flag in
11731"" | " "*) ;;
11732*) reload_flag=" $reload_flag" ;;
11733esac
11734reload_cmds='$LD$reload_flag -o $output$reload_objs'
11735case $host_os in
cristyda16f162011-02-19 23:52:17 +000011736 cygwin* | mingw* | pw32* | cegcc*)
11737 if test "$GCC" != yes; then
11738 reload_cmds=false
11739 fi
11740 ;;
cristy73bd4a52010-10-05 11:24:23 +000011741 darwin*)
11742 if test "$GCC" = yes; then
11743 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11744 else
11745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11746 fi
11747 ;;
11748esac
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758if test -n "$ac_tool_prefix"; then
11759 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11760set dummy ${ac_tool_prefix}objdump; ac_word=$2
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011763if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011764 $as_echo_n "(cached) " >&6
11765else
11766 if test -n "$OBJDUMP"; then
11767 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11768else
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011776 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11779 fi
11780done
11781 done
11782IFS=$as_save_IFS
11783
11784fi
11785fi
11786OBJDUMP=$ac_cv_prog_OBJDUMP
11787if test -n "$OBJDUMP"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11789$as_echo "$OBJDUMP" >&6; }
11790else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
11793fi
11794
11795
11796fi
11797if test -z "$ac_cv_prog_OBJDUMP"; then
11798 ac_ct_OBJDUMP=$OBJDUMP
11799 # Extract the first word of "objdump", so it can be a program name with args.
11800set dummy objdump; ac_word=$2
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011803if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011804 $as_echo_n "(cached) " >&6
11805else
11806 if test -n "$ac_ct_OBJDUMP"; then
11807 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11808else
11809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810for as_dir in $PATH
11811do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011816 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
11820done
11821 done
11822IFS=$as_save_IFS
11823
11824fi
11825fi
11826ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11827if test -n "$ac_ct_OBJDUMP"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11829$as_echo "$ac_ct_OBJDUMP" >&6; }
11830else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832$as_echo "no" >&6; }
11833fi
11834
11835 if test "x$ac_ct_OBJDUMP" = x; then
11836 OBJDUMP="false"
11837 else
11838 case $cross_compiling:$ac_tool_warned in
11839yes:)
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11842ac_tool_warned=yes ;;
11843esac
11844 OBJDUMP=$ac_ct_OBJDUMP
11845 fi
11846else
11847 OBJDUMP="$ac_cv_prog_OBJDUMP"
11848fi
11849
11850test -z "$OBJDUMP" && OBJDUMP=objdump
11851
11852
11853
11854
11855
11856
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11858$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011859if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011860 $as_echo_n "(cached) " >&6
11861else
11862 lt_cv_file_magic_cmd='$MAGIC_CMD'
11863lt_cv_file_magic_test_file=
11864lt_cv_deplibs_check_method='unknown'
11865# Need to set the preceding variable on all platforms that support
11866# interlibrary dependencies.
11867# 'none' -- dependencies not supported.
11868# `unknown' -- same as none, but documents that we really don't know.
11869# 'pass_all' -- all dependencies passed with no checks.
11870# 'test_compile' -- check by making test program.
11871# 'file_magic [[regex]]' -- check by looking for files in library path
11872# which responds to the $file_magic_cmd with a given extended regex.
11873# If you have `file' or equivalent on your system and you're not sure
11874# whether `pass_all' will *always* work, you probably want this one.
11875
11876case $host_os in
11877aix[4-9]*)
11878 lt_cv_deplibs_check_method=pass_all
11879 ;;
11880
11881beos*)
11882 lt_cv_deplibs_check_method=pass_all
11883 ;;
11884
11885bsdi[45]*)
11886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11887 lt_cv_file_magic_cmd='/usr/bin/file -L'
11888 lt_cv_file_magic_test_file=/shlib/libc.so
11889 ;;
11890
11891cygwin*)
11892 # func_win32_libid is a shell function defined in ltmain.sh
11893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11894 lt_cv_file_magic_cmd='func_win32_libid'
11895 ;;
11896
11897mingw* | pw32*)
11898 # Base MSYS/MinGW do not provide the 'file' command needed by
11899 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11900 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011901 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11902 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11904 lt_cv_file_magic_cmd='func_win32_libid'
11905 else
cristy0c60a692010-11-04 01:09:47 +000011906 # Keep this pattern in sync with the one in func_win32_libid.
11907 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 +000011908 lt_cv_file_magic_cmd='$OBJDUMP -f'
11909 fi
11910 ;;
11911
cristy0c60a692010-11-04 01:09:47 +000011912cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011913 # use the weaker test based on 'objdump'. See mingw*.
11914 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11915 lt_cv_file_magic_cmd='$OBJDUMP -f'
11916 ;;
11917
11918darwin* | rhapsody*)
11919 lt_cv_deplibs_check_method=pass_all
11920 ;;
11921
11922freebsd* | dragonfly*)
11923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11924 case $host_cpu in
11925 i*86 )
11926 # Not sure whether the presence of OpenBSD here was a mistake.
11927 # Let's accept both of them until this is cleared up.
11928 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11929 lt_cv_file_magic_cmd=/usr/bin/file
11930 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11931 ;;
11932 esac
11933 else
11934 lt_cv_deplibs_check_method=pass_all
11935 fi
11936 ;;
11937
11938gnu*)
11939 lt_cv_deplibs_check_method=pass_all
11940 ;;
11941
cristy0c60a692010-11-04 01:09:47 +000011942haiku*)
11943 lt_cv_deplibs_check_method=pass_all
11944 ;;
11945
cristy73bd4a52010-10-05 11:24:23 +000011946hpux10.20* | hpux11*)
11947 lt_cv_file_magic_cmd=/usr/bin/file
11948 case $host_cpu in
11949 ia64*)
11950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11952 ;;
11953 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011954 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 +000011955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11956 ;;
11957 *)
cristy0c60a692010-11-04 01:09:47 +000011958 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 +000011959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11960 ;;
11961 esac
11962 ;;
11963
11964interix[3-9]*)
11965 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11967 ;;
11968
11969irix5* | irix6* | nonstopux*)
11970 case $LD in
11971 *-32|*"-32 ") libmagic=32-bit;;
11972 *-n32|*"-n32 ") libmagic=N32;;
11973 *-64|*"-64 ") libmagic=64-bit;;
11974 *) libmagic=never-match;;
11975 esac
11976 lt_cv_deplibs_check_method=pass_all
11977 ;;
11978
cristy99bd5232011-12-07 14:38:20 +000011979# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011980linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011981 lt_cv_deplibs_check_method=pass_all
11982 ;;
11983
11984netbsd*)
11985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11987 else
11988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11989 fi
11990 ;;
11991
11992newos6*)
11993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11994 lt_cv_file_magic_cmd=/usr/bin/file
11995 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11996 ;;
11997
11998*nto* | *qnx*)
11999 lt_cv_deplibs_check_method=pass_all
12000 ;;
12001
12002openbsd*)
12003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12005 else
12006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12007 fi
12008 ;;
12009
12010osf3* | osf4* | osf5*)
12011 lt_cv_deplibs_check_method=pass_all
12012 ;;
12013
12014rdos*)
12015 lt_cv_deplibs_check_method=pass_all
12016 ;;
12017
12018solaris*)
12019 lt_cv_deplibs_check_method=pass_all
12020 ;;
12021
12022sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12023 lt_cv_deplibs_check_method=pass_all
12024 ;;
12025
12026sysv4 | sysv4.3*)
12027 case $host_vendor in
12028 motorola)
12029 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]'
12030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12031 ;;
12032 ncr)
12033 lt_cv_deplibs_check_method=pass_all
12034 ;;
12035 sequent)
12036 lt_cv_file_magic_cmd='/bin/file'
12037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12038 ;;
12039 sni)
12040 lt_cv_file_magic_cmd='/bin/file'
12041 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12042 lt_cv_file_magic_test_file=/lib/libc.so
12043 ;;
12044 siemens)
12045 lt_cv_deplibs_check_method=pass_all
12046 ;;
12047 pc)
12048 lt_cv_deplibs_check_method=pass_all
12049 ;;
12050 esac
12051 ;;
12052
12053tpf*)
12054 lt_cv_deplibs_check_method=pass_all
12055 ;;
12056esac
12057
12058fi
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12060$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012061
12062file_magic_glob=
12063want_nocaseglob=no
12064if test "$build" = "$host"; then
12065 case $host_os in
12066 mingw* | pw32*)
12067 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12068 want_nocaseglob=yes
12069 else
12070 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12071 fi
12072 ;;
12073 esac
12074fi
12075
cristy73bd4a52010-10-05 11:24:23 +000012076file_magic_cmd=$lt_cv_file_magic_cmd
12077deplibs_check_method=$lt_cv_deplibs_check_method
12078test -z "$deplibs_check_method" && deplibs_check_method=unknown
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
cristyda16f162011-02-19 23:52:17 +000012091
12092
12093
12094
12095
12096
12097
12098
12099
12100
cristy73bd4a52010-10-05 11:24:23 +000012101if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012102 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12103set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012106if ${ac_cv_prog_DLLTOOL+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108else
12109 if test -n "$DLLTOOL"; then
12110 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12111else
12112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113for as_dir in $PATH
12114do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012119 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123done
12124 done
12125IFS=$as_save_IFS
12126
12127fi
12128fi
12129DLLTOOL=$ac_cv_prog_DLLTOOL
12130if test -n "$DLLTOOL"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12132$as_echo "$DLLTOOL" >&6; }
12133else
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
12136fi
12137
12138
12139fi
12140if test -z "$ac_cv_prog_DLLTOOL"; then
12141 ac_ct_DLLTOOL=$DLLTOOL
12142 # Extract the first word of "dlltool", so it can be a program name with args.
12143set dummy dlltool; ac_word=$2
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
12146if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 if test -n "$ac_ct_DLLTOOL"; then
12150 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012159 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12170if test -n "$ac_ct_DLLTOOL"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12172$as_echo "$ac_ct_DLLTOOL" >&6; }
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177
12178 if test "x$ac_ct_DLLTOOL" = x; then
12179 DLLTOOL="false"
12180 else
12181 case $cross_compiling:$ac_tool_warned in
12182yes:)
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12185ac_tool_warned=yes ;;
12186esac
12187 DLLTOOL=$ac_ct_DLLTOOL
12188 fi
12189else
12190 DLLTOOL="$ac_cv_prog_DLLTOOL"
12191fi
12192
12193test -z "$DLLTOOL" && DLLTOOL=dlltool
12194
12195
12196
12197
12198
12199
12200
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12202$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12203if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205else
12206 lt_cv_sharedlib_from_linklib_cmd='unknown'
12207
12208case $host_os in
12209cygwin* | mingw* | pw32* | cegcc*)
12210 # two different shell functions defined in ltmain.sh
12211 # decide which to use based on capabilities of $DLLTOOL
12212 case `$DLLTOOL --help 2>&1` in
12213 *--identify-strict*)
12214 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12215 ;;
12216 *)
12217 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12218 ;;
12219 esac
12220 ;;
12221*)
12222 # fallback: assume linklib IS sharedlib
12223 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12224 ;;
12225esac
12226
12227fi
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12229$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12230sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12231test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12232
12233
12234
12235
12236
12237
12238
12239if test -n "$ac_tool_prefix"; then
12240 for ac_prog in ar
12241 do
12242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
12246if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012247 $as_echo_n "(cached) " >&6
12248else
12249 if test -n "$AR"; then
12250 ac_cv_prog_AR="$AR" # Let the user override the test.
12251else
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012259 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263done
12264 done
12265IFS=$as_save_IFS
12266
12267fi
12268fi
12269AR=$ac_cv_prog_AR
12270if test -n "$AR"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12272$as_echo "$AR" >&6; }
12273else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
12276fi
12277
12278
cristyda16f162011-02-19 23:52:17 +000012279 test -n "$AR" && break
12280 done
cristy73bd4a52010-10-05 11:24:23 +000012281fi
cristyda16f162011-02-19 23:52:17 +000012282if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012283 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012284 for ac_prog in ar
12285do
12286 # Extract the first word of "$ac_prog", so it can be a program name with args.
12287set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012290if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012291 $as_echo_n "(cached) " >&6
12292else
12293 if test -n "$ac_ct_AR"; then
12294 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12295else
12296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297for as_dir in $PATH
12298do
12299 IFS=$as_save_IFS
12300 test -z "$as_dir" && as_dir=.
12301 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012303 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305 break 2
12306 fi
12307done
12308 done
12309IFS=$as_save_IFS
12310
12311fi
12312fi
12313ac_ct_AR=$ac_cv_prog_ac_ct_AR
12314if test -n "$ac_ct_AR"; then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12316$as_echo "$ac_ct_AR" >&6; }
12317else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
12320fi
12321
cristyda16f162011-02-19 23:52:17 +000012322
12323 test -n "$ac_ct_AR" && break
12324done
12325
cristy73bd4a52010-10-05 11:24:23 +000012326 if test "x$ac_ct_AR" = x; then
12327 AR="false"
12328 else
12329 case $cross_compiling:$ac_tool_warned in
12330yes:)
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12333ac_tool_warned=yes ;;
12334esac
12335 AR=$ac_ct_AR
12336 fi
cristy73bd4a52010-10-05 11:24:23 +000012337fi
12338
cristyda16f162011-02-19 23:52:17 +000012339: ${AR=ar}
12340: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
cristyda16f162011-02-19 23:52:17 +000012352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12353$as_echo_n "checking for archiver @FILE support... " >&6; }
12354if ${lt_cv_ar_at_file+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356else
12357 lt_cv_ar_at_file=no
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h. */
12360
12361int
12362main ()
12363{
12364
12365 ;
12366 return 0;
12367}
12368_ACEOF
12369if ac_fn_c_try_compile "$LINENO"; then :
12370 echo conftest.$ac_objext > conftest.lst
12371 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12373 (eval $lt_ar_try) 2>&5
12374 ac_status=$?
12375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376 test $ac_status = 0; }
12377 if test "$ac_status" -eq 0; then
12378 # Ensure the archiver fails upon bogus file names.
12379 rm -f conftest.$ac_objext libconftest.a
12380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12381 (eval $lt_ar_try) 2>&5
12382 ac_status=$?
12383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12384 test $ac_status = 0; }
12385 if test "$ac_status" -ne 0; then
12386 lt_cv_ar_at_file=@
12387 fi
12388 fi
12389 rm -f conftest.* libconftest.a
12390
12391fi
12392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393
12394fi
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12396$as_echo "$lt_cv_ar_at_file" >&6; }
12397
12398if test "x$lt_cv_ar_at_file" = xno; then
12399 archiver_list_spec=
12400else
12401 archiver_list_spec=$lt_cv_ar_at_file
12402fi
12403
12404
12405
12406
12407
12408
12409
cristy73bd4a52010-10-05 11:24:23 +000012410if test -n "$ac_tool_prefix"; then
12411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12412set dummy ${ac_tool_prefix}strip; ac_word=$2
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012415if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012416 $as_echo_n "(cached) " >&6
12417else
12418 if test -n "$STRIP"; then
12419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12420else
12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012428 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12431 fi
12432done
12433 done
12434IFS=$as_save_IFS
12435
12436fi
12437fi
12438STRIP=$ac_cv_prog_STRIP
12439if test -n "$STRIP"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12441$as_echo "$STRIP" >&6; }
12442else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444$as_echo "no" >&6; }
12445fi
12446
12447
12448fi
12449if test -z "$ac_cv_prog_STRIP"; then
12450 ac_ct_STRIP=$STRIP
12451 # Extract the first word of "strip", so it can be a program name with args.
12452set dummy strip; ac_word=$2
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012455if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012456 $as_echo_n "(cached) " >&6
12457else
12458 if test -n "$ac_ct_STRIP"; then
12459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012468 ac_cv_prog_ac_ct_STRIP="strip"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12471 fi
12472done
12473 done
12474IFS=$as_save_IFS
12475
12476fi
12477fi
12478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12479if test -n "$ac_ct_STRIP"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12481$as_echo "$ac_ct_STRIP" >&6; }
12482else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487 if test "x$ac_ct_STRIP" = x; then
12488 STRIP=":"
12489 else
12490 case $cross_compiling:$ac_tool_warned in
12491yes:)
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12494ac_tool_warned=yes ;;
12495esac
12496 STRIP=$ac_ct_STRIP
12497 fi
12498else
12499 STRIP="$ac_cv_prog_STRIP"
12500fi
12501
12502test -z "$STRIP" && STRIP=:
12503
12504
12505
12506
12507
12508
12509if test -n "$ac_tool_prefix"; then
12510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12511set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012514if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012515 $as_echo_n "(cached) " >&6
12516else
12517 if test -n "$RANLIB"; then
12518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12519else
12520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521for as_dir in $PATH
12522do
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12530 fi
12531done
12532 done
12533IFS=$as_save_IFS
12534
12535fi
12536fi
12537RANLIB=$ac_cv_prog_RANLIB
12538if test -n "$RANLIB"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12540$as_echo "$RANLIB" >&6; }
12541else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
12544fi
12545
12546
12547fi
12548if test -z "$ac_cv_prog_RANLIB"; then
12549 ac_ct_RANLIB=$RANLIB
12550 # Extract the first word of "ranlib", so it can be a program name with args.
12551set dummy ranlib; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$ac_ct_RANLIB"; then
12558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012567 ac_cv_prog_ac_ct_RANLIB="ranlib"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12578if test -n "$ac_ct_RANLIB"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12580$as_echo "$ac_ct_RANLIB" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586 if test "x$ac_ct_RANLIB" = x; then
12587 RANLIB=":"
12588 else
12589 case $cross_compiling:$ac_tool_warned in
12590yes:)
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12593ac_tool_warned=yes ;;
12594esac
12595 RANLIB=$ac_ct_RANLIB
12596 fi
12597else
12598 RANLIB="$ac_cv_prog_RANLIB"
12599fi
12600
12601test -z "$RANLIB" && RANLIB=:
12602
12603
12604
12605
12606
12607
12608# Determine commands to create old-style static archives.
12609old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12610old_postinstall_cmds='chmod 644 $oldlib'
12611old_postuninstall_cmds=
12612
12613if test -n "$RANLIB"; then
12614 case $host_os in
12615 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012616 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012617 ;;
12618 *)
cristy99bd5232011-12-07 14:38:20 +000012619 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012620 ;;
12621 esac
cristy99bd5232011-12-07 14:38:20 +000012622 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012623fi
12624
cristy0c60a692010-11-04 01:09:47 +000012625case $host_os in
12626 darwin*)
12627 lock_old_archive_extraction=yes ;;
12628 *)
12629 lock_old_archive_extraction=no ;;
12630esac
12631
12632
12633
12634
12635
12636
cristy73bd4a52010-10-05 11:24:23 +000012637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670# If no C compiler was specified, use CC.
12671LTCC=${LTCC-"$CC"}
12672
12673# If no C compiler flags were specified, use CFLAGS.
12674LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12675
12676# Allow CC to be a program name with arguments.
12677compiler=$CC
12678
12679
12680# Check for command to grab the raw symbol name followed by C symbol from nm.
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12682$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012683if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686
12687# These are sane defaults that work on at least a few old systems.
12688# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12689
12690# Character class describing NM global symbol codes.
12691symcode='[BCDEGRST]'
12692
12693# Regexp to match symbols that can be accessed directly from C.
12694sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12695
12696# Define system-specific variables.
12697case $host_os in
12698aix*)
12699 symcode='[BCDT]'
12700 ;;
12701cygwin* | mingw* | pw32* | cegcc*)
12702 symcode='[ABCDGISTW]'
12703 ;;
12704hpux*)
12705 if test "$host_cpu" = ia64; then
12706 symcode='[ABCDEGRST]'
12707 fi
12708 ;;
12709irix* | nonstopux*)
12710 symcode='[BCDEGRST]'
12711 ;;
12712osf*)
12713 symcode='[BCDEGQRST]'
12714 ;;
12715solaris*)
12716 symcode='[BDRT]'
12717 ;;
12718sco3.2v5*)
12719 symcode='[DT]'
12720 ;;
12721sysv4.2uw2*)
12722 symcode='[DT]'
12723 ;;
12724sysv5* | sco5v6* | unixware* | OpenUNIX*)
12725 symcode='[ABDT]'
12726 ;;
12727sysv4)
12728 symcode='[DFNSTU]'
12729 ;;
12730esac
12731
12732# If we're using GNU nm, then use its standard symbol codes.
12733case `$NM -V 2>&1` in
12734*GNU* | *'with BFD'*)
12735 symcode='[ABCDGIRSTW]' ;;
12736esac
12737
12738# Transform an extracted symbol line into a proper C declaration.
12739# Some systems (esp. on ia64) link data and code symbols differently,
12740# so use this general approach.
12741lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12742
12743# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012744lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12745lt_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 +000012746
12747# Handle CRLF in mingw tool chain
12748opt_cr=
12749case $build_os in
12750mingw*)
12751 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12752 ;;
12753esac
12754
12755# Try without a prefix underscore, then with it.
12756for ac_symprfx in "" "_"; do
12757
12758 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12759 symxfrm="\\1 $ac_symprfx\\2 \\2"
12760
12761 # Write the raw and C identifiers.
12762 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12763 # Fake it for dumpbin and say T for any non-static function
12764 # and D for any global variable.
12765 # Also find C++ and __fastcall symbols from MSVC++,
12766 # which start with @ or ?.
12767 lt_cv_sys_global_symbol_pipe="$AWK '"\
12768" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012769" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012770" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12771" \$ 0!~/External *\|/{next};"\
12772" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12773" {if(hide[section]) next};"\
12774" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12775" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12776" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12777" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12778" ' prfx=^$ac_symprfx"
12779 else
12780 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12781 fi
cristyda16f162011-02-19 23:52:17 +000012782 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012783
12784 # Check to see that the pipe works correctly.
12785 pipe_works=no
12786
12787 rm -f conftest*
12788 cat > conftest.$ac_ext <<_LT_EOF
12789#ifdef __cplusplus
12790extern "C" {
12791#endif
12792char nm_test_var;
12793void nm_test_func(void);
12794void nm_test_func(void){}
12795#ifdef __cplusplus
12796}
12797#endif
12798int main(){nm_test_var='a';nm_test_func();return(0);}
12799_LT_EOF
12800
12801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12802 (eval $ac_compile) 2>&5
12803 ac_status=$?
12804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12805 test $ac_status = 0; }; then
12806 # Now try to grab the symbols.
12807 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12809 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012810 ac_status=$?
12811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812 test $ac_status = 0; } && test -s "$nlist"; then
12813 # Try sorting and uniquifying the output.
12814 if sort "$nlist" | uniq > "$nlist"T; then
12815 mv -f "$nlist"T "$nlist"
12816 else
12817 rm -f "$nlist"T
12818 fi
12819
12820 # Make sure that we snagged all the symbols we need.
12821 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12822 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12823 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012824/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12825#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12826/* DATA imports from DLLs on WIN32 con't be const, because runtime
12827 relocations are performed -- see ld's documentation on pseudo-relocs. */
12828# define LT_DLSYM_CONST
12829#elif defined(__osf__)
12830/* This system does not cope well with relocations in const data. */
12831# define LT_DLSYM_CONST
12832#else
12833# define LT_DLSYM_CONST const
12834#endif
12835
cristy73bd4a52010-10-05 11:24:23 +000012836#ifdef __cplusplus
12837extern "C" {
12838#endif
12839
12840_LT_EOF
12841 # Now generate the symbol file.
12842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12843
12844 cat <<_LT_EOF >> conftest.$ac_ext
12845
12846/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012847LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012848 const char *name;
12849 void *address;
12850}
12851lt__PROGRAM__LTX_preloaded_symbols[] =
12852{
12853 { "@PROGRAM@", (void *) 0 },
12854_LT_EOF
12855 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12856 cat <<\_LT_EOF >> conftest.$ac_ext
12857 {0, (void *) 0}
12858};
12859
12860/* This works around a problem in FreeBSD linker */
12861#ifdef FREEBSD_WORKAROUND
12862static const void *lt_preloaded_setup() {
12863 return lt__PROGRAM__LTX_preloaded_symbols;
12864}
12865#endif
12866
12867#ifdef __cplusplus
12868}
12869#endif
12870_LT_EOF
12871 # Now try linking the two files.
12872 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012873 lt_globsym_save_LIBS=$LIBS
12874 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012875 LIBS="conftstm.$ac_objext"
12876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12878 (eval $ac_link) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12882 pipe_works=yes
12883 fi
cristyda16f162011-02-19 23:52:17 +000012884 LIBS=$lt_globsym_save_LIBS
12885 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012886 else
12887 echo "cannot find nm_test_func in $nlist" >&5
12888 fi
12889 else
12890 echo "cannot find nm_test_var in $nlist" >&5
12891 fi
12892 else
12893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12894 fi
12895 else
12896 echo "$progname: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 fi
12899 rm -rf conftest* conftst*
12900
12901 # Do not use the global_symbol_pipe unless it works.
12902 if test "$pipe_works" = yes; then
12903 break
12904 else
12905 lt_cv_sys_global_symbol_pipe=
12906 fi
12907done
12908
12909fi
12910
12911if test -z "$lt_cv_sys_global_symbol_pipe"; then
12912 lt_cv_sys_global_symbol_to_cdecl=
12913fi
12914if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12916$as_echo "failed" >&6; }
12917else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12919$as_echo "ok" >&6; }
12920fi
12921
cristyda16f162011-02-19 23:52:17 +000012922# Response file support.
12923if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12924 nm_file_list_spec='@'
12925elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12926 nm_file_list_spec='@'
12927fi
cristy73bd4a52010-10-05 11:24:23 +000012928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
cristyda16f162011-02-19 23:52:17 +000012949
12950
12951
12952
12953
12954
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12956$as_echo_n "checking for sysroot... " >&6; }
12957
12958# Check whether --with-sysroot was given.
12959if test "${with_sysroot+set}" = set; then :
12960 withval=$with_sysroot;
12961else
12962 with_sysroot=no
12963fi
12964
12965
12966lt_sysroot=
12967case ${with_sysroot} in #(
12968 yes)
12969 if test "$GCC" = yes; then
12970 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12971 fi
12972 ;; #(
12973 /*)
12974 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12975 ;; #(
12976 no|'')
12977 ;; #(
12978 *)
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12980$as_echo "${with_sysroot}" >&6; }
12981 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12982 ;;
12983esac
12984
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12986$as_echo "${lt_sysroot:-no}" >&6; }
12987
12988
12989
12990
12991
cristy73bd4a52010-10-05 11:24:23 +000012992# Check whether --enable-libtool-lock was given.
12993if test "${enable_libtool_lock+set}" = set; then :
12994 enableval=$enable_libtool_lock;
12995fi
12996
12997test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12998
12999# Some flags need to be propagated to the compiler or linker for good
13000# libtool support.
13001case $host in
13002ia64-*-hpux*)
13003 # Find out which ABI we are using.
13004 echo 'int i;' > conftest.$ac_ext
13005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13006 (eval $ac_compile) 2>&5
13007 ac_status=$?
13008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13009 test $ac_status = 0; }; then
13010 case `/usr/bin/file conftest.$ac_objext` in
13011 *ELF-32*)
13012 HPUX_IA64_MODE="32"
13013 ;;
13014 *ELF-64*)
13015 HPUX_IA64_MODE="64"
13016 ;;
13017 esac
13018 fi
13019 rm -rf conftest*
13020 ;;
13021*-*-irix6*)
13022 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013023 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13025 (eval $ac_compile) 2>&5
13026 ac_status=$?
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; }; then
13029 if test "$lt_cv_prog_gnu_ld" = yes; then
13030 case `/usr/bin/file conftest.$ac_objext` in
13031 *32-bit*)
13032 LD="${LD-ld} -melf32bsmip"
13033 ;;
13034 *N32*)
13035 LD="${LD-ld} -melf32bmipn32"
13036 ;;
13037 *64-bit*)
13038 LD="${LD-ld} -melf64bmip"
13039 ;;
13040 esac
13041 else
13042 case `/usr/bin/file conftest.$ac_objext` in
13043 *32-bit*)
13044 LD="${LD-ld} -32"
13045 ;;
13046 *N32*)
13047 LD="${LD-ld} -n32"
13048 ;;
13049 *64-bit*)
13050 LD="${LD-ld} -64"
13051 ;;
13052 esac
13053 fi
13054 fi
13055 rm -rf conftest*
13056 ;;
13057
cristyd95b7a52013-10-23 13:12:53 +000013058x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013059s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13060 # Find out which ABI we are using.
13061 echo 'int i;' > conftest.$ac_ext
13062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13063 (eval $ac_compile) 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066 test $ac_status = 0; }; then
13067 case `/usr/bin/file conftest.o` in
13068 *32-bit*)
13069 case $host in
13070 x86_64-*kfreebsd*-gnu)
13071 LD="${LD-ld} -m elf_i386_fbsd"
13072 ;;
13073 x86_64-*linux*)
13074 LD="${LD-ld} -m elf_i386"
13075 ;;
cristya5bda012013-11-03 18:05:38 +000013076 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013077 LD="${LD-ld} -m elf32lppclinux"
13078 ;;
cristya5bda012013-11-03 18:05:38 +000013079 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013080 LD="${LD-ld} -m elf32ppclinux"
13081 ;;
13082 s390x-*linux*)
13083 LD="${LD-ld} -m elf_s390"
13084 ;;
13085 sparc64-*linux*)
13086 LD="${LD-ld} -m elf32_sparc"
13087 ;;
13088 esac
13089 ;;
13090 *64-bit*)
13091 case $host in
13092 x86_64-*kfreebsd*-gnu)
13093 LD="${LD-ld} -m elf_x86_64_fbsd"
13094 ;;
13095 x86_64-*linux*)
13096 LD="${LD-ld} -m elf_x86_64"
13097 ;;
cristyd95b7a52013-10-23 13:12:53 +000013098 powerpcle-*linux*)
13099 LD="${LD-ld} -m elf64lppc"
13100 ;;
13101 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013102 LD="${LD-ld} -m elf64ppc"
13103 ;;
13104 s390*-*linux*|s390*-*tpf*)
13105 LD="${LD-ld} -m elf64_s390"
13106 ;;
13107 sparc*-*linux*)
13108 LD="${LD-ld} -m elf64_sparc"
13109 ;;
13110 esac
13111 ;;
13112 esac
13113 fi
13114 rm -rf conftest*
13115 ;;
13116
13117*-*-sco3.2v5*)
13118 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13119 SAVE_CFLAGS="$CFLAGS"
13120 CFLAGS="$CFLAGS -belf"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13122$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013123if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013124 $as_echo_n "(cached) " >&6
13125else
13126 ac_ext=c
13127ac_cpp='$CPP $CPPFLAGS'
13128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13130ac_compiler_gnu=$ac_cv_c_compiler_gnu
13131
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133/* end confdefs.h. */
13134
13135int
13136main ()
13137{
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143if ac_fn_c_try_link "$LINENO"; then :
13144 lt_cv_cc_needs_belf=yes
13145else
13146 lt_cv_cc_needs_belf=no
13147fi
13148rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 ac_ext=c
13151ac_cpp='$CPP $CPPFLAGS'
13152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155
13156fi
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13158$as_echo "$lt_cv_cc_needs_belf" >&6; }
13159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13161 CFLAGS="$SAVE_CFLAGS"
13162 fi
13163 ;;
cristy99bd5232011-12-07 14:38:20 +000013164*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013165 # Find out which ABI we are using.
13166 echo 'int i;' > conftest.$ac_ext
13167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13168 (eval $ac_compile) 2>&5
13169 ac_status=$?
13170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171 test $ac_status = 0; }; then
13172 case `/usr/bin/file conftest.o` in
13173 *64-bit*)
13174 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013175 yes*)
13176 case $host in
13177 i?86-*-solaris*)
13178 LD="${LD-ld} -m elf_x86_64"
13179 ;;
13180 sparc*-*-solaris*)
13181 LD="${LD-ld} -m elf64_sparc"
13182 ;;
13183 esac
13184 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13185 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13186 LD="${LD-ld}_sol2"
13187 fi
13188 ;;
cristy73bd4a52010-10-05 11:24:23 +000013189 *)
13190 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13191 LD="${LD-ld} -64"
13192 fi
13193 ;;
13194 esac
13195 ;;
13196 esac
13197 fi
13198 rm -rf conftest*
13199 ;;
13200esac
13201
13202need_locks="$enable_libtool_lock"
13203
cristyda16f162011-02-19 23:52:17 +000013204if test -n "$ac_tool_prefix"; then
13205 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13206set dummy ${ac_tool_prefix}mt; ac_word=$2
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
13209if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211else
13212 if test -n "$MANIFEST_TOOL"; then
13213 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013222 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226done
13227 done
13228IFS=$as_save_IFS
13229
13230fi
13231fi
13232MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13233if test -n "$MANIFEST_TOOL"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13235$as_echo "$MANIFEST_TOOL" >&6; }
13236else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239fi
13240
13241
13242fi
13243if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13244 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13245 # Extract the first word of "mt", so it can be a program name with args.
13246set dummy mt; ac_word=$2
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248$as_echo_n "checking for $ac_word... " >&6; }
13249if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251else
13252 if test -n "$ac_ct_MANIFEST_TOOL"; then
13253 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13254else
13255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013262 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266done
13267 done
13268IFS=$as_save_IFS
13269
13270fi
13271fi
13272ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13273if test -n "$ac_ct_MANIFEST_TOOL"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13275$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13276else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
13279fi
13280
13281 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13282 MANIFEST_TOOL=":"
13283 else
13284 case $cross_compiling:$ac_tool_warned in
13285yes:)
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13288ac_tool_warned=yes ;;
13289esac
13290 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13291 fi
13292else
13293 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13294fi
13295
13296test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13298$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13299if ${lt_cv_path_mainfest_tool+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301else
13302 lt_cv_path_mainfest_tool=no
13303 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13304 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13305 cat conftest.err >&5
13306 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13307 lt_cv_path_mainfest_tool=yes
13308 fi
13309 rm -f conftest*
13310fi
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13312$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13313if test "x$lt_cv_path_mainfest_tool" != xyes; then
13314 MANIFEST_TOOL=:
13315fi
13316
13317
13318
13319
13320
cristy73bd4a52010-10-05 11:24:23 +000013321
13322 case $host_os in
13323 rhapsody* | darwin*)
13324 if test -n "$ac_tool_prefix"; then
13325 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13326set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013329if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013330 $as_echo_n "(cached) " >&6
13331else
13332 if test -n "$DSYMUTIL"; then
13333 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13334else
13335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336for as_dir in $PATH
13337do
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013342 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13345 fi
13346done
13347 done
13348IFS=$as_save_IFS
13349
13350fi
13351fi
13352DSYMUTIL=$ac_cv_prog_DSYMUTIL
13353if test -n "$DSYMUTIL"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13355$as_echo "$DSYMUTIL" >&6; }
13356else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358$as_echo "no" >&6; }
13359fi
13360
13361
13362fi
13363if test -z "$ac_cv_prog_DSYMUTIL"; then
13364 ac_ct_DSYMUTIL=$DSYMUTIL
13365 # Extract the first word of "dsymutil", so it can be a program name with args.
13366set dummy dsymutil; ac_word=$2
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013369if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013370 $as_echo_n "(cached) " >&6
13371else
13372 if test -n "$ac_ct_DSYMUTIL"; then
13373 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13374else
13375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376for as_dir in $PATH
13377do
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013382 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13385 fi
13386done
13387 done
13388IFS=$as_save_IFS
13389
13390fi
13391fi
13392ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13393if test -n "$ac_ct_DSYMUTIL"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13395$as_echo "$ac_ct_DSYMUTIL" >&6; }
13396else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
13399fi
13400
13401 if test "x$ac_ct_DSYMUTIL" = x; then
13402 DSYMUTIL=":"
13403 else
13404 case $cross_compiling:$ac_tool_warned in
13405yes:)
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13408ac_tool_warned=yes ;;
13409esac
13410 DSYMUTIL=$ac_ct_DSYMUTIL
13411 fi
13412else
13413 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13414fi
13415
13416 if test -n "$ac_tool_prefix"; then
13417 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13418set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013421if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013422 $as_echo_n "(cached) " >&6
13423else
13424 if test -n "$NMEDIT"; then
13425 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13426else
13427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13428for as_dir in $PATH
13429do
13430 IFS=$as_save_IFS
13431 test -z "$as_dir" && as_dir=.
13432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013434 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13436 break 2
13437 fi
13438done
13439 done
13440IFS=$as_save_IFS
13441
13442fi
13443fi
13444NMEDIT=$ac_cv_prog_NMEDIT
13445if test -n "$NMEDIT"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13447$as_echo "$NMEDIT" >&6; }
13448else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450$as_echo "no" >&6; }
13451fi
13452
13453
13454fi
13455if test -z "$ac_cv_prog_NMEDIT"; then
13456 ac_ct_NMEDIT=$NMEDIT
13457 # Extract the first word of "nmedit", so it can be a program name with args.
13458set dummy nmedit; ac_word=$2
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013461if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013462 $as_echo_n "(cached) " >&6
13463else
13464 if test -n "$ac_ct_NMEDIT"; then
13465 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13466else
13467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468for as_dir in $PATH
13469do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013474 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 break 2
13477 fi
13478done
13479 done
13480IFS=$as_save_IFS
13481
13482fi
13483fi
13484ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13485if test -n "$ac_ct_NMEDIT"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13487$as_echo "$ac_ct_NMEDIT" >&6; }
13488else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490$as_echo "no" >&6; }
13491fi
13492
13493 if test "x$ac_ct_NMEDIT" = x; then
13494 NMEDIT=":"
13495 else
13496 case $cross_compiling:$ac_tool_warned in
13497yes:)
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13500ac_tool_warned=yes ;;
13501esac
13502 NMEDIT=$ac_ct_NMEDIT
13503 fi
13504else
13505 NMEDIT="$ac_cv_prog_NMEDIT"
13506fi
13507
13508 if test -n "$ac_tool_prefix"; then
13509 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13510set dummy ${ac_tool_prefix}lipo; ac_word=$2
13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013513if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013514 $as_echo_n "(cached) " >&6
13515else
13516 if test -n "$LIPO"; then
13517 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13518else
13519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520for as_dir in $PATH
13521do
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013526 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 break 2
13529 fi
13530done
13531 done
13532IFS=$as_save_IFS
13533
13534fi
13535fi
13536LIPO=$ac_cv_prog_LIPO
13537if test -n "$LIPO"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13539$as_echo "$LIPO" >&6; }
13540else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542$as_echo "no" >&6; }
13543fi
13544
13545
13546fi
13547if test -z "$ac_cv_prog_LIPO"; then
13548 ac_ct_LIPO=$LIPO
13549 # Extract the first word of "lipo", so it can be a program name with args.
13550set dummy lipo; ac_word=$2
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013553if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013554 $as_echo_n "(cached) " >&6
13555else
13556 if test -n "$ac_ct_LIPO"; then
13557 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13558else
13559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560for as_dir in $PATH
13561do
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013566 ac_cv_prog_ac_ct_LIPO="lipo"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13569 fi
13570done
13571 done
13572IFS=$as_save_IFS
13573
13574fi
13575fi
13576ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13577if test -n "$ac_ct_LIPO"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13579$as_echo "$ac_ct_LIPO" >&6; }
13580else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582$as_echo "no" >&6; }
13583fi
13584
13585 if test "x$ac_ct_LIPO" = x; then
13586 LIPO=":"
13587 else
13588 case $cross_compiling:$ac_tool_warned in
13589yes:)
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13592ac_tool_warned=yes ;;
13593esac
13594 LIPO=$ac_ct_LIPO
13595 fi
13596else
13597 LIPO="$ac_cv_prog_LIPO"
13598fi
13599
13600 if test -n "$ac_tool_prefix"; then
13601 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13602set dummy ${ac_tool_prefix}otool; ac_word=$2
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013605if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013606 $as_echo_n "(cached) " >&6
13607else
13608 if test -n "$OTOOL"; then
13609 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13610else
13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612for as_dir in $PATH
13613do
13614 IFS=$as_save_IFS
13615 test -z "$as_dir" && as_dir=.
13616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013618 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13620 break 2
13621 fi
13622done
13623 done
13624IFS=$as_save_IFS
13625
13626fi
13627fi
13628OTOOL=$ac_cv_prog_OTOOL
13629if test -n "$OTOOL"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13631$as_echo "$OTOOL" >&6; }
13632else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635fi
13636
13637
13638fi
13639if test -z "$ac_cv_prog_OTOOL"; then
13640 ac_ct_OTOOL=$OTOOL
13641 # Extract the first word of "otool", so it can be a program name with args.
13642set dummy otool; ac_word=$2
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013645if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013646 $as_echo_n "(cached) " >&6
13647else
13648 if test -n "$ac_ct_OTOOL"; then
13649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13650else
13651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652for as_dir in $PATH
13653do
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013658 ac_cv_prog_ac_ct_OTOOL="otool"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13661 fi
13662done
13663 done
13664IFS=$as_save_IFS
13665
13666fi
13667fi
13668ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13669if test -n "$ac_ct_OTOOL"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13671$as_echo "$ac_ct_OTOOL" >&6; }
13672else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674$as_echo "no" >&6; }
13675fi
13676
13677 if test "x$ac_ct_OTOOL" = x; then
13678 OTOOL=":"
13679 else
13680 case $cross_compiling:$ac_tool_warned in
13681yes:)
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13684ac_tool_warned=yes ;;
13685esac
13686 OTOOL=$ac_ct_OTOOL
13687 fi
13688else
13689 OTOOL="$ac_cv_prog_OTOOL"
13690fi
13691
13692 if test -n "$ac_tool_prefix"; then
13693 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13694set dummy ${ac_tool_prefix}otool64; ac_word=$2
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013697if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013698 $as_echo_n "(cached) " >&6
13699else
13700 if test -n "$OTOOL64"; then
13701 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13702else
13703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704for as_dir in $PATH
13705do
13706 IFS=$as_save_IFS
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013710 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712 break 2
13713 fi
13714done
13715 done
13716IFS=$as_save_IFS
13717
13718fi
13719fi
13720OTOOL64=$ac_cv_prog_OTOOL64
13721if test -n "$OTOOL64"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13723$as_echo "$OTOOL64" >&6; }
13724else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726$as_echo "no" >&6; }
13727fi
13728
13729
13730fi
13731if test -z "$ac_cv_prog_OTOOL64"; then
13732 ac_ct_OTOOL64=$OTOOL64
13733 # Extract the first word of "otool64", so it can be a program name with args.
13734set dummy otool64; ac_word=$2
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013737if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013738 $as_echo_n "(cached) " >&6
13739else
13740 if test -n "$ac_ct_OTOOL64"; then
13741 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13742else
13743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744for as_dir in $PATH
13745do
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013750 ac_cv_prog_ac_ct_OTOOL64="otool64"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13753 fi
13754done
13755 done
13756IFS=$as_save_IFS
13757
13758fi
13759fi
13760ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13761if test -n "$ac_ct_OTOOL64"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13763$as_echo "$ac_ct_OTOOL64" >&6; }
13764else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766$as_echo "no" >&6; }
13767fi
13768
13769 if test "x$ac_ct_OTOOL64" = x; then
13770 OTOOL64=":"
13771 else
13772 case $cross_compiling:$ac_tool_warned in
13773yes:)
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13776ac_tool_warned=yes ;;
13777esac
13778 OTOOL64=$ac_ct_OTOOL64
13779 fi
13780else
13781 OTOOL64="$ac_cv_prog_OTOOL64"
13782fi
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13811$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013812if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013813 $as_echo_n "(cached) " >&6
13814else
13815 lt_cv_apple_cc_single_mod=no
13816 if test -z "${LT_MULTI_MODULE}"; then
13817 # By default we will add the -single_module flag. You can override
13818 # by either setting the environment variable LT_MULTI_MODULE
13819 # non-empty at configure time, or by adding -multi_module to the
13820 # link flags.
13821 rm -rf libconftest.dylib*
13822 echo "int foo(void){return 1;}" > conftest.c
13823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13824-dynamiclib -Wl,-single_module conftest.c" >&5
13825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13827 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013828 # If there is a non-empty error log, and "single_module"
13829 # appears in it, assume the flag caused a linker warning
13830 if test -s conftest.err && $GREP single_module conftest.err; then
13831 cat conftest.err >&5
13832 # Otherwise, if the output was created with a 0 exit code from
13833 # the compiler, it worked.
13834 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013835 lt_cv_apple_cc_single_mod=yes
13836 else
13837 cat conftest.err >&5
13838 fi
13839 rm -rf libconftest.dylib*
13840 rm -f conftest.*
13841 fi
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13844$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013845
cristy73bd4a52010-10-05 11:24:23 +000013846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13847$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013848if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013849 $as_echo_n "(cached) " >&6
13850else
13851 lt_cv_ld_exported_symbols_list=no
13852 save_LDFLAGS=$LDFLAGS
13853 echo "_main" > conftest.sym
13854 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h. */
13857
13858int
13859main ()
13860{
13861
13862 ;
13863 return 0;
13864}
13865_ACEOF
13866if ac_fn_c_try_link "$LINENO"; then :
13867 lt_cv_ld_exported_symbols_list=yes
13868else
13869 lt_cv_ld_exported_symbols_list=no
13870fi
13871rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 LDFLAGS="$save_LDFLAGS"
13874
13875fi
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13877$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013878
cristy0c60a692010-11-04 01:09:47 +000013879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13880$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013881if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013882 $as_echo_n "(cached) " >&6
13883else
13884 lt_cv_ld_force_load=no
13885 cat > conftest.c << _LT_EOF
13886int forced_loaded() { return 2;}
13887_LT_EOF
13888 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13889 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13890 echo "$AR cru libconftest.a conftest.o" >&5
13891 $AR cru libconftest.a conftest.o 2>&5
13892 echo "$RANLIB libconftest.a" >&5
13893 $RANLIB libconftest.a 2>&5
13894 cat > conftest.c << _LT_EOF
13895int main() { return 0;}
13896_LT_EOF
13897 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13898 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13899 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013900 if test -s conftest.err && $GREP force_load conftest.err; then
13901 cat conftest.err >&5
13902 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013903 lt_cv_ld_force_load=yes
13904 else
13905 cat conftest.err >&5
13906 fi
13907 rm -f conftest.err libconftest.a conftest conftest.c
13908 rm -rf conftest.dSYM
13909
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13912$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013913 case $host_os in
13914 rhapsody* | darwin1.[012])
13915 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13916 darwin1.*)
13917 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13918 darwin*) # darwin 5.x on
13919 # if running on 10.5 or later, the deployment target defaults
13920 # to the OS version, if on x86, and 10.4, the deployment
13921 # target defaults to 10.4. Don't you love it?
13922 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13923 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13924 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13925 10.[012]*)
13926 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13927 10.*)
13928 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13929 esac
13930 ;;
13931 esac
13932 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13933 _lt_dar_single_mod='$single_module'
13934 fi
13935 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13936 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13937 else
13938 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13939 fi
cristy0c60a692010-11-04 01:09:47 +000013940 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013941 _lt_dsymutil='~$DSYMUTIL $lib || :'
13942 else
13943 _lt_dsymutil=
13944 fi
13945 ;;
13946 esac
13947
13948for ac_header in dlfcn.h
13949do :
13950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13951"
cristyda16f162011-02-19 23:52:17 +000013952if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013953 cat >>confdefs.h <<_ACEOF
13954#define HAVE_DLFCN_H 1
13955_ACEOF
13956
13957fi
13958
13959done
13960
13961
13962
cristy73bd4a52010-10-05 11:24:23 +000013963
cristyda16f162011-02-19 23:52:17 +000013964func_stripname_cnf ()
13965{
13966 case ${2} in
13967 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13968 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13969 esac
13970} # func_stripname_cnf
13971
13972
13973
cristy73bd4a52010-10-05 11:24:23 +000013974
13975
13976# Set options
13977enable_win32_dll=yes
13978
13979case $host in
cristy0c60a692010-11-04 01:09:47 +000013980*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013981 if test -n "$ac_tool_prefix"; then
13982 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13983set dummy ${ac_tool_prefix}as; ac_word=$2
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013986if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013987 $as_echo_n "(cached) " >&6
13988else
13989 if test -n "$AS"; then
13990 ac_cv_prog_AS="$AS" # Let the user override the test.
13991else
13992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993for as_dir in $PATH
13994do
13995 IFS=$as_save_IFS
13996 test -z "$as_dir" && as_dir=.
13997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013999 ac_cv_prog_AS="${ac_tool_prefix}as"
14000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14001 break 2
14002 fi
14003done
14004 done
14005IFS=$as_save_IFS
14006
14007fi
14008fi
14009AS=$ac_cv_prog_AS
14010if test -n "$AS"; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14012$as_echo "$AS" >&6; }
14013else
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015$as_echo "no" >&6; }
14016fi
14017
14018
14019fi
14020if test -z "$ac_cv_prog_AS"; then
14021 ac_ct_AS=$AS
14022 # Extract the first word of "as", so it can be a program name with args.
14023set dummy as; ac_word=$2
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014026if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014027 $as_echo_n "(cached) " >&6
14028else
14029 if test -n "$ac_ct_AS"; then
14030 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14031else
14032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033for as_dir in $PATH
14034do
14035 IFS=$as_save_IFS
14036 test -z "$as_dir" && as_dir=.
14037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014039 ac_cv_prog_ac_ct_AS="as"
14040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14041 break 2
14042 fi
14043done
14044 done
14045IFS=$as_save_IFS
14046
14047fi
14048fi
14049ac_ct_AS=$ac_cv_prog_ac_ct_AS
14050if test -n "$ac_ct_AS"; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14052$as_echo "$ac_ct_AS" >&6; }
14053else
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055$as_echo "no" >&6; }
14056fi
14057
14058 if test "x$ac_ct_AS" = x; then
14059 AS="false"
14060 else
14061 case $cross_compiling:$ac_tool_warned in
14062yes:)
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14065ac_tool_warned=yes ;;
14066esac
14067 AS=$ac_ct_AS
14068 fi
14069else
14070 AS="$ac_cv_prog_AS"
14071fi
14072
14073 if test -n "$ac_tool_prefix"; then
14074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14075set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014078if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014079 $as_echo_n "(cached) " >&6
14080else
14081 if test -n "$DLLTOOL"; then
14082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14083else
14084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085for as_dir in $PATH
14086do
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014091 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14094 fi
14095done
14096 done
14097IFS=$as_save_IFS
14098
14099fi
14100fi
14101DLLTOOL=$ac_cv_prog_DLLTOOL
14102if test -n "$DLLTOOL"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14104$as_echo "$DLLTOOL" >&6; }
14105else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107$as_echo "no" >&6; }
14108fi
14109
14110
14111fi
14112if test -z "$ac_cv_prog_DLLTOOL"; then
14113 ac_ct_DLLTOOL=$DLLTOOL
14114 # Extract the first word of "dlltool", so it can be a program name with args.
14115set dummy dlltool; ac_word=$2
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014118if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014119 $as_echo_n "(cached) " >&6
14120else
14121 if test -n "$ac_ct_DLLTOOL"; then
14122 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14123else
14124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125for as_dir in $PATH
14126do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014131 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14133 break 2
14134 fi
14135done
14136 done
14137IFS=$as_save_IFS
14138
14139fi
14140fi
14141ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14142if test -n "$ac_ct_DLLTOOL"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14144$as_echo "$ac_ct_DLLTOOL" >&6; }
14145else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147$as_echo "no" >&6; }
14148fi
14149
14150 if test "x$ac_ct_DLLTOOL" = x; then
14151 DLLTOOL="false"
14152 else
14153 case $cross_compiling:$ac_tool_warned in
14154yes:)
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14157ac_tool_warned=yes ;;
14158esac
14159 DLLTOOL=$ac_ct_DLLTOOL
14160 fi
14161else
14162 DLLTOOL="$ac_cv_prog_DLLTOOL"
14163fi
14164
14165 if test -n "$ac_tool_prefix"; then
14166 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14167set dummy ${ac_tool_prefix}objdump; ac_word=$2
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014170if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014171 $as_echo_n "(cached) " >&6
14172else
14173 if test -n "$OBJDUMP"; then
14174 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14175else
14176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177for as_dir in $PATH
14178do
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014183 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14186 fi
14187done
14188 done
14189IFS=$as_save_IFS
14190
14191fi
14192fi
14193OBJDUMP=$ac_cv_prog_OBJDUMP
14194if test -n "$OBJDUMP"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14196$as_echo "$OBJDUMP" >&6; }
14197else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199$as_echo "no" >&6; }
14200fi
14201
14202
14203fi
14204if test -z "$ac_cv_prog_OBJDUMP"; then
14205 ac_ct_OBJDUMP=$OBJDUMP
14206 # Extract the first word of "objdump", so it can be a program name with args.
14207set dummy objdump; ac_word=$2
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014210if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014211 $as_echo_n "(cached) " >&6
14212else
14213 if test -n "$ac_ct_OBJDUMP"; then
14214 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14215else
14216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217for as_dir in $PATH
14218do
14219 IFS=$as_save_IFS
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014223 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14225 break 2
14226 fi
14227done
14228 done
14229IFS=$as_save_IFS
14230
14231fi
14232fi
14233ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14234if test -n "$ac_ct_OBJDUMP"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14236$as_echo "$ac_ct_OBJDUMP" >&6; }
14237else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239$as_echo "no" >&6; }
14240fi
14241
14242 if test "x$ac_ct_OBJDUMP" = x; then
14243 OBJDUMP="false"
14244 else
14245 case $cross_compiling:$ac_tool_warned in
14246yes:)
14247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14249ac_tool_warned=yes ;;
14250esac
14251 OBJDUMP=$ac_ct_OBJDUMP
14252 fi
14253else
14254 OBJDUMP="$ac_cv_prog_OBJDUMP"
14255fi
14256
14257 ;;
14258esac
14259
14260test -z "$AS" && AS=as
14261
14262
14263
14264
14265
14266test -z "$DLLTOOL" && DLLTOOL=dlltool
14267
14268
14269
14270
14271
14272test -z "$OBJDUMP" && OBJDUMP=objdump
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 # Check whether --enable-shared was given.
14283if test "${enable_shared+set}" = set; then :
14284 enableval=$enable_shared; p=${PACKAGE-default}
14285 case $enableval in
14286 yes) enable_shared=yes ;;
14287 no) enable_shared=no ;;
14288 *)
14289 enable_shared=no
14290 # Look at the argument we got. We use all the common list separators.
14291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14292 for pkg in $enableval; do
14293 IFS="$lt_save_ifs"
14294 if test "X$pkg" = "X$p"; then
14295 enable_shared=yes
14296 fi
14297 done
14298 IFS="$lt_save_ifs"
14299 ;;
14300 esac
14301else
14302 enable_shared=yes
14303fi
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313 # Check whether --enable-static was given.
14314if test "${enable_static+set}" = set; then :
14315 enableval=$enable_static; p=${PACKAGE-default}
14316 case $enableval in
14317 yes) enable_static=yes ;;
14318 no) enable_static=no ;;
14319 *)
14320 enable_static=no
14321 # Look at the argument we got. We use all the common list separators.
14322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14323 for pkg in $enableval; do
14324 IFS="$lt_save_ifs"
14325 if test "X$pkg" = "X$p"; then
14326 enable_static=yes
14327 fi
14328 done
14329 IFS="$lt_save_ifs"
14330 ;;
14331 esac
14332else
14333 enable_static=yes
14334fi
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345# Check whether --with-pic was given.
14346if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014347 withval=$with_pic; lt_p=${PACKAGE-default}
14348 case $withval in
14349 yes|no) pic_mode=$withval ;;
14350 *)
14351 pic_mode=default
14352 # Look at the argument we got. We use all the common list separators.
14353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14354 for lt_pkg in $withval; do
14355 IFS="$lt_save_ifs"
14356 if test "X$lt_pkg" = "X$lt_p"; then
14357 pic_mode=yes
14358 fi
14359 done
14360 IFS="$lt_save_ifs"
14361 ;;
14362 esac
cristy73bd4a52010-10-05 11:24:23 +000014363else
14364 pic_mode=default
14365fi
14366
14367
14368test -z "$pic_mode" && pic_mode=default
14369
14370
14371
14372
14373
14374
14375
14376 # Check whether --enable-fast-install was given.
14377if test "${enable_fast_install+set}" = set; then :
14378 enableval=$enable_fast_install; p=${PACKAGE-default}
14379 case $enableval in
14380 yes) enable_fast_install=yes ;;
14381 no) enable_fast_install=no ;;
14382 *)
14383 enable_fast_install=no
14384 # Look at the argument we got. We use all the common list separators.
14385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14386 for pkg in $enableval; do
14387 IFS="$lt_save_ifs"
14388 if test "X$pkg" = "X$p"; then
14389 enable_fast_install=yes
14390 fi
14391 done
14392 IFS="$lt_save_ifs"
14393 ;;
14394 esac
14395else
14396 enable_fast_install=yes
14397fi
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409# This can be used to rebuild libtool when needed
14410LIBTOOL_DEPS="$ltmain"
14411
14412# Always use our own libtool.
14413LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
cristy0c60a692010-11-04 01:09:47 +000014439
cristy99bd5232011-12-07 14:38:20 +000014440
14441
14442
14443
cristy73bd4a52010-10-05 11:24:23 +000014444test -z "$LN_S" && LN_S="ln -s"
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459if test -n "${ZSH_VERSION+set}" ; then
14460 setopt NO_GLOB_SUBST
14461fi
14462
14463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14464$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014465if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014466 $as_echo_n "(cached) " >&6
14467else
14468 rm -f .libs 2>/dev/null
14469mkdir .libs 2>/dev/null
14470if test -d .libs; then
14471 lt_cv_objdir=.libs
14472else
14473 # MS-DOS does not allow filenames that begin with a dot.
14474 lt_cv_objdir=_libs
14475fi
14476rmdir .libs 2>/dev/null
14477fi
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14479$as_echo "$lt_cv_objdir" >&6; }
14480objdir=$lt_cv_objdir
14481
14482
14483
14484
14485
14486cat >>confdefs.h <<_ACEOF
14487#define LT_OBJDIR "$lt_cv_objdir/"
14488_ACEOF
14489
14490
14491
14492
cristy73bd4a52010-10-05 11:24:23 +000014493case $host_os in
14494aix3*)
14495 # AIX sometimes has problems with the GCC collect2 program. For some
14496 # reason, if we set the COLLECT_NAMES environment variable, the problems
14497 # vanish in a puff of smoke.
14498 if test "X${COLLECT_NAMES+set}" != Xset; then
14499 COLLECT_NAMES=
14500 export COLLECT_NAMES
14501 fi
14502 ;;
14503esac
14504
cristy73bd4a52010-10-05 11:24:23 +000014505# Global variables:
14506ofile=libtool
14507can_build_shared=yes
14508
14509# All known linkers require a `.a' archive for static linking (except MSVC,
14510# which needs '.lib').
14511libext=a
14512
14513with_gnu_ld="$lt_cv_prog_gnu_ld"
14514
14515old_CC="$CC"
14516old_CFLAGS="$CFLAGS"
14517
14518# Set sane defaults for various variables
14519test -z "$CC" && CC=cc
14520test -z "$LTCC" && LTCC=$CC
14521test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14522test -z "$LD" && LD=ld
14523test -z "$ac_objext" && ac_objext=o
14524
14525for cc_temp in $compiler""; do
14526 case $cc_temp in
14527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14529 \-*) ;;
14530 *) break;;
14531 esac
14532done
cristy0c60a692010-11-04 01:09:47 +000014533cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014534
14535
14536# Only perform the check for file, if the check method requires it
14537test -z "$MAGIC_CMD" && MAGIC_CMD=file
14538case $deplibs_check_method in
14539file_magic*)
14540 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14542$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014543if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014544 $as_echo_n "(cached) " >&6
14545else
14546 case $MAGIC_CMD in
14547[\\/*] | ?:[\\/]*)
14548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14549 ;;
14550*)
14551 lt_save_MAGIC_CMD="$MAGIC_CMD"
14552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14554 for ac_dir in $ac_dummy; do
14555 IFS="$lt_save_ifs"
14556 test -z "$ac_dir" && ac_dir=.
14557 if test -f $ac_dir/${ac_tool_prefix}file; then
14558 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14559 if test -n "$file_magic_test_file"; then
14560 case $deplibs_check_method in
14561 "file_magic "*)
14562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14565 $EGREP "$file_magic_regex" > /dev/null; then
14566 :
14567 else
14568 cat <<_LT_EOF 1>&2
14569
14570*** Warning: the command libtool uses to detect shared libraries,
14571*** $file_magic_cmd, produces output that libtool cannot recognize.
14572*** The result is that libtool may fail to recognize shared libraries
14573*** as such. This will affect the creation of libtool libraries that
14574*** depend on shared libraries, but programs linked with such libtool
14575*** libraries will work regardless of this problem. Nevertheless, you
14576*** may want to report the problem to your system manager and/or to
14577*** bug-libtool@gnu.org
14578
14579_LT_EOF
14580 fi ;;
14581 esac
14582 fi
14583 break
14584 fi
14585 done
14586 IFS="$lt_save_ifs"
14587 MAGIC_CMD="$lt_save_MAGIC_CMD"
14588 ;;
14589esac
14590fi
14591
14592MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14593if test -n "$MAGIC_CMD"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14595$as_echo "$MAGIC_CMD" >&6; }
14596else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
14599fi
14600
14601
14602
14603
14604
14605if test -z "$lt_cv_path_MAGIC_CMD"; then
14606 if test -n "$ac_tool_prefix"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14608$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014609if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014610 $as_echo_n "(cached) " >&6
14611else
14612 case $MAGIC_CMD in
14613[\\/*] | ?:[\\/]*)
14614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14615 ;;
14616*)
14617 lt_save_MAGIC_CMD="$MAGIC_CMD"
14618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14620 for ac_dir in $ac_dummy; do
14621 IFS="$lt_save_ifs"
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/file; then
14624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14625 if test -n "$file_magic_test_file"; then
14626 case $deplibs_check_method in
14627 "file_magic "*)
14628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14631 $EGREP "$file_magic_regex" > /dev/null; then
14632 :
14633 else
14634 cat <<_LT_EOF 1>&2
14635
14636*** Warning: the command libtool uses to detect shared libraries,
14637*** $file_magic_cmd, produces output that libtool cannot recognize.
14638*** The result is that libtool may fail to recognize shared libraries
14639*** as such. This will affect the creation of libtool libraries that
14640*** depend on shared libraries, but programs linked with such libtool
14641*** libraries will work regardless of this problem. Nevertheless, you
14642*** may want to report the problem to your system manager and/or to
14643*** bug-libtool@gnu.org
14644
14645_LT_EOF
14646 fi ;;
14647 esac
14648 fi
14649 break
14650 fi
14651 done
14652 IFS="$lt_save_ifs"
14653 MAGIC_CMD="$lt_save_MAGIC_CMD"
14654 ;;
14655esac
14656fi
14657
14658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14659if test -n "$MAGIC_CMD"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14661$as_echo "$MAGIC_CMD" >&6; }
14662else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664$as_echo "no" >&6; }
14665fi
14666
14667
14668 else
14669 MAGIC_CMD=:
14670 fi
14671fi
14672
14673 fi
14674 ;;
14675esac
14676
14677# Use C for the default configuration in the libtool script
14678
14679lt_save_CC="$CC"
14680ac_ext=c
14681ac_cpp='$CPP $CPPFLAGS'
14682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684ac_compiler_gnu=$ac_cv_c_compiler_gnu
14685
14686
14687# Source file extension for C test sources.
14688ac_ext=c
14689
14690# Object file extension for compiled C test sources.
14691objext=o
14692objext=$objext
14693
14694# Code to be used in simple compile tests
14695lt_simple_compile_test_code="int some_variable = 0;"
14696
14697# Code to be used in simple link tests
14698lt_simple_link_test_code='int main(){return(0);}'
14699
14700
14701
14702
14703
14704
14705
14706# If no C compiler was specified, use CC.
14707LTCC=${LTCC-"$CC"}
14708
14709# If no C compiler flags were specified, use CFLAGS.
14710LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14711
14712# Allow CC to be a program name with arguments.
14713compiler=$CC
14714
14715# Save the default compiler, since it gets overwritten when the other
14716# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14717compiler_DEFAULT=$CC
14718
14719# save warnings/boilerplate of simple test code
14720ac_outfile=conftest.$ac_objext
14721echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14723_lt_compiler_boilerplate=`cat conftest.err`
14724$RM conftest*
14725
14726ac_outfile=conftest.$ac_objext
14727echo "$lt_simple_link_test_code" >conftest.$ac_ext
14728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14729_lt_linker_boilerplate=`cat conftest.err`
14730$RM -r conftest*
14731
14732
14733## CAVEAT EMPTOR:
14734## There is no encapsulation within the following macros, do not change
14735## the running order or otherwise move them around unless you know exactly
14736## what you are doing...
14737if test -n "$compiler"; then
14738
14739lt_prog_compiler_no_builtin_flag=
14740
14741if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014742 case $cc_basename in
14743 nvcc*)
14744 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14745 *)
14746 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14747 esac
cristy73bd4a52010-10-05 11:24:23 +000014748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14750$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014751if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014752 $as_echo_n "(cached) " >&6
14753else
14754 lt_cv_prog_compiler_rtti_exceptions=no
14755 ac_outfile=conftest.$ac_objext
14756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="-fno-rtti -fno-exceptions"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014768 (eval "$lt_compile" 2>conftest.err)
14769 ac_status=$?
14770 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_rtti_exceptions=yes
14779 fi
14780 fi
14781 $RM conftest*
14782
14783fi
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14785$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14786
14787if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14788 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14789else
14790 :
14791fi
14792
14793fi
14794
14795
14796
14797
14798
14799
14800 lt_prog_compiler_wl=
14801lt_prog_compiler_pic=
14802lt_prog_compiler_static=
14803
cristy73bd4a52010-10-05 11:24:23 +000014804
14805 if test "$GCC" = yes; then
14806 lt_prog_compiler_wl='-Wl,'
14807 lt_prog_compiler_static='-static'
14808
14809 case $host_os in
14810 aix*)
14811 # All AIX code is PIC.
14812 if test "$host_cpu" = ia64; then
14813 # AIX 5 now supports IA64 processor
14814 lt_prog_compiler_static='-Bstatic'
14815 fi
14816 ;;
14817
14818 amigaos*)
14819 case $host_cpu in
14820 powerpc)
14821 # see comment about AmigaOS4 .so support
14822 lt_prog_compiler_pic='-fPIC'
14823 ;;
14824 m68k)
14825 # FIXME: we need at least 68020 code to build shared libraries, but
14826 # adding the `-m68020' flag to GCC prevents building anything better,
14827 # like `-m68040'.
14828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14829 ;;
14830 esac
14831 ;;
14832
14833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14834 # PIC is the default for these OSes.
14835 ;;
14836
14837 mingw* | cygwin* | pw32* | os2* | cegcc*)
14838 # This hack is so that the source file can tell whether it is being
14839 # built for inclusion in a dll (and should export symbols for example).
14840 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14841 # (--disable-auto-import) libraries
14842 lt_prog_compiler_pic='-DDLL_EXPORT'
14843 ;;
14844
14845 darwin* | rhapsody*)
14846 # PIC is the default on this platform
14847 # Common symbols not allowed in MH_DYLIB files
14848 lt_prog_compiler_pic='-fno-common'
14849 ;;
14850
cristy0c60a692010-11-04 01:09:47 +000014851 haiku*)
14852 # PIC is the default for Haiku.
14853 # The "-static" flag exists, but is broken.
14854 lt_prog_compiler_static=
14855 ;;
14856
cristy73bd4a52010-10-05 11:24:23 +000014857 hpux*)
14858 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14859 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14860 # sets the default TLS model and affects inlining.
14861 case $host_cpu in
14862 hppa*64*)
14863 # +Z the default
14864 ;;
14865 *)
14866 lt_prog_compiler_pic='-fPIC'
14867 ;;
14868 esac
14869 ;;
14870
14871 interix[3-9]*)
14872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14873 # Instead, we relocate shared libraries at runtime.
14874 ;;
14875
14876 msdosdjgpp*)
14877 # Just because we use GCC doesn't mean we suddenly get shared libraries
14878 # on systems that don't support them.
14879 lt_prog_compiler_can_build_shared=no
14880 enable_shared=no
14881 ;;
14882
14883 *nto* | *qnx*)
14884 # QNX uses GNU C++, but need to define -shared option too, otherwise
14885 # it will coredump.
14886 lt_prog_compiler_pic='-fPIC -shared'
14887 ;;
14888
14889 sysv4*MP*)
14890 if test -d /usr/nec; then
14891 lt_prog_compiler_pic=-Kconform_pic
14892 fi
14893 ;;
14894
14895 *)
14896 lt_prog_compiler_pic='-fPIC'
14897 ;;
14898 esac
cristy0c60a692010-11-04 01:09:47 +000014899
14900 case $cc_basename in
14901 nvcc*) # Cuda Compiler Driver 2.2
14902 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014903 if test -n "$lt_prog_compiler_pic"; then
14904 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14905 fi
cristy0c60a692010-11-04 01:09:47 +000014906 ;;
14907 esac
cristy73bd4a52010-10-05 11:24:23 +000014908 else
14909 # PORTME Check for flag to pass linker flags through the system compiler.
14910 case $host_os in
14911 aix*)
14912 lt_prog_compiler_wl='-Wl,'
14913 if test "$host_cpu" = ia64; then
14914 # AIX 5 now supports IA64 processor
14915 lt_prog_compiler_static='-Bstatic'
14916 else
14917 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14918 fi
14919 ;;
14920
14921 mingw* | cygwin* | pw32* | os2* | cegcc*)
14922 # This hack is so that the source file can tell whether it is being
14923 # built for inclusion in a dll (and should export symbols for example).
14924 lt_prog_compiler_pic='-DDLL_EXPORT'
14925 ;;
14926
14927 hpux9* | hpux10* | hpux11*)
14928 lt_prog_compiler_wl='-Wl,'
14929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14930 # not for PA HP-UX.
14931 case $host_cpu in
14932 hppa*64*|ia64*)
14933 # +Z the default
14934 ;;
14935 *)
14936 lt_prog_compiler_pic='+Z'
14937 ;;
14938 esac
14939 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14940 lt_prog_compiler_static='${wl}-a ${wl}archive'
14941 ;;
14942
14943 irix5* | irix6* | nonstopux*)
14944 lt_prog_compiler_wl='-Wl,'
14945 # PIC (with -KPIC) is the default.
14946 lt_prog_compiler_static='-non_shared'
14947 ;;
14948
cristy0c60a692010-11-04 01:09:47 +000014949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014950 case $cc_basename in
14951 # old Intel for x86_64 which still supported -KPIC.
14952 ecc*)
14953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_pic='-KPIC'
14955 lt_prog_compiler_static='-static'
14956 ;;
14957 # icc used to be incompatible with GCC.
14958 # ICC 10 doesn't accept -KPIC any more.
14959 icc* | ifort*)
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_pic='-fPIC'
14962 lt_prog_compiler_static='-static'
14963 ;;
14964 # Lahey Fortran 8.1.
14965 lf95*)
14966 lt_prog_compiler_wl='-Wl,'
14967 lt_prog_compiler_pic='--shared'
14968 lt_prog_compiler_static='--static'
14969 ;;
cristyda16f162011-02-19 23:52:17 +000014970 nagfor*)
14971 # NAG Fortran compiler
14972 lt_prog_compiler_wl='-Wl,-Wl,,'
14973 lt_prog_compiler_pic='-PIC'
14974 lt_prog_compiler_static='-Bstatic'
14975 ;;
cristy0c60a692010-11-04 01:09:47 +000014976 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014977 # Portland Group compilers (*not* the Pentium gcc compiler,
14978 # which looks to be a dead project)
14979 lt_prog_compiler_wl='-Wl,'
14980 lt_prog_compiler_pic='-fpic'
14981 lt_prog_compiler_static='-Bstatic'
14982 ;;
14983 ccc*)
14984 lt_prog_compiler_wl='-Wl,'
14985 # All Alpha code is PIC.
14986 lt_prog_compiler_static='-non_shared'
14987 ;;
cristy0c60a692010-11-04 01:09:47 +000014988 xl* | bgxl* | bgf* | mpixl*)
14989 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014990 lt_prog_compiler_wl='-Wl,'
14991 lt_prog_compiler_pic='-qpic'
14992 lt_prog_compiler_static='-qstaticlink'
14993 ;;
14994 *)
14995 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014996 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014997 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14998 lt_prog_compiler_pic='-KPIC'
14999 lt_prog_compiler_static='-Bstatic'
15000 lt_prog_compiler_wl=''
15001 ;;
cristy99bd5232011-12-07 14:38:20 +000015002 *Sun\ F* | *Sun*Fortran*)
15003 lt_prog_compiler_pic='-KPIC'
15004 lt_prog_compiler_static='-Bstatic'
15005 lt_prog_compiler_wl='-Qoption ld '
15006 ;;
cristy73bd4a52010-10-05 11:24:23 +000015007 *Sun\ C*)
15008 # Sun C 5.9
15009 lt_prog_compiler_pic='-KPIC'
15010 lt_prog_compiler_static='-Bstatic'
15011 lt_prog_compiler_wl='-Wl,'
15012 ;;
cristy99bd5232011-12-07 14:38:20 +000015013 *Intel*\ [CF]*Compiler*)
15014 lt_prog_compiler_wl='-Wl,'
15015 lt_prog_compiler_pic='-fPIC'
15016 lt_prog_compiler_static='-static'
15017 ;;
15018 *Portland\ Group*)
15019 lt_prog_compiler_wl='-Wl,'
15020 lt_prog_compiler_pic='-fpic'
15021 lt_prog_compiler_static='-Bstatic'
15022 ;;
cristy73bd4a52010-10-05 11:24:23 +000015023 esac
15024 ;;
15025 esac
15026 ;;
15027
15028 newsos6)
15029 lt_prog_compiler_pic='-KPIC'
15030 lt_prog_compiler_static='-Bstatic'
15031 ;;
15032
15033 *nto* | *qnx*)
15034 # QNX uses GNU C++, but need to define -shared option too, otherwise
15035 # it will coredump.
15036 lt_prog_compiler_pic='-fPIC -shared'
15037 ;;
15038
15039 osf3* | osf4* | osf5*)
15040 lt_prog_compiler_wl='-Wl,'
15041 # All OSF/1 code is PIC.
15042 lt_prog_compiler_static='-non_shared'
15043 ;;
15044
15045 rdos*)
15046 lt_prog_compiler_static='-non_shared'
15047 ;;
15048
15049 solaris*)
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015053 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015054 lt_prog_compiler_wl='-Qoption ld ';;
15055 *)
15056 lt_prog_compiler_wl='-Wl,';;
15057 esac
15058 ;;
15059
15060 sunos4*)
15061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 sysv4 | sysv4.2uw2* | sysv4.3*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
15070 ;;
15071
15072 sysv4*MP*)
15073 if test -d /usr/nec ;then
15074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
15076 fi
15077 ;;
15078
15079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15083 ;;
15084
15085 unicos*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15088 ;;
15089
15090 uts4*)
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 ;;
15094
15095 *)
15096 lt_prog_compiler_can_build_shared=no
15097 ;;
15098 esac
15099 fi
15100
15101case $host_os in
15102 # For platforms which do not support PIC, -DPIC is meaningless:
15103 *djgpp*)
15104 lt_prog_compiler_pic=
15105 ;;
15106 *)
15107 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15108 ;;
15109esac
cristy73bd4a52010-10-05 11:24:23 +000015110
cristyda16f162011-02-19 23:52:17 +000015111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15112$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15113if ${lt_cv_prog_compiler_pic+:} false; then :
15114 $as_echo_n "(cached) " >&6
15115else
15116 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15117fi
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15119$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15120lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015121
15122#
15123# Check to make sure the PIC flag actually works.
15124#
15125if test -n "$lt_prog_compiler_pic"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15127$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015128if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015129 $as_echo_n "(cached) " >&6
15130else
15131 lt_cv_prog_compiler_pic_works=no
15132 ac_outfile=conftest.$ac_objext
15133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15135 # Insert the option either (1) after the last *FLAGS variable, or
15136 # (2) before a word containing "conftest.", or (3) at the end.
15137 # Note that $ac_compile itself does not contain backslashes and begins
15138 # with a dollar sign (not a hyphen), so the echo should work correctly.
15139 # The option is referenced via a variable to avoid confusing sed.
15140 lt_compile=`echo "$ac_compile" | $SED \
15141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15143 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015145 (eval "$lt_compile" 2>conftest.err)
15146 ac_status=$?
15147 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015149 if (exit $ac_status) && test -s "$ac_outfile"; then
15150 # The compiler can only warn and ignore the option if not recognized
15151 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15155 lt_cv_prog_compiler_pic_works=yes
15156 fi
15157 fi
15158 $RM conftest*
15159
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15162$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15163
15164if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15165 case $lt_prog_compiler_pic in
15166 "" | " "*) ;;
15167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15168 esac
15169else
15170 lt_prog_compiler_pic=
15171 lt_prog_compiler_can_build_shared=no
15172fi
15173
15174fi
15175
15176
15177
15178
15179
15180
cristyda16f162011-02-19 23:52:17 +000015181
15182
15183
15184
15185
cristy73bd4a52010-10-05 11:24:23 +000015186#
15187# Check to make sure the static flag actually works.
15188#
15189wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15191$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015192if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015193 $as_echo_n "(cached) " >&6
15194else
15195 lt_cv_prog_compiler_static_works=no
15196 save_LDFLAGS="$LDFLAGS"
15197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15200 # The linker can only warn and ignore the option if not recognized
15201 # So say no if there are warnings
15202 if test -s conftest.err; then
15203 # Append any errors to the config.log.
15204 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15207 if diff conftest.exp conftest.er2 >/dev/null; then
15208 lt_cv_prog_compiler_static_works=yes
15209 fi
15210 else
15211 lt_cv_prog_compiler_static_works=yes
15212 fi
15213 fi
15214 $RM -r conftest*
15215 LDFLAGS="$save_LDFLAGS"
15216
15217fi
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15219$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15220
15221if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15222 :
15223else
15224 lt_prog_compiler_static=
15225fi
15226
15227
15228
15229
15230
15231
15232
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15234$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015235if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015236 $as_echo_n "(cached) " >&6
15237else
15238 lt_cv_prog_compiler_c_o=no
15239 $RM -r conftest 2>/dev/null
15240 mkdir conftest
15241 cd conftest
15242 mkdir out
15243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15244
15245 lt_compiler_flag="-o out/conftest2.$ac_objext"
15246 # Insert the option either (1) after the last *FLAGS variable, or
15247 # (2) before a word containing "conftest.", or (3) at the end.
15248 # Note that $ac_compile itself does not contain backslashes and begins
15249 # with a dollar sign (not a hyphen), so the echo should work correctly.
15250 lt_compile=`echo "$ac_compile" | $SED \
15251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15253 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015255 (eval "$lt_compile" 2>out/conftest.err)
15256 ac_status=$?
15257 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15260 then
15261 # The compiler can only warn and ignore the option if not recognized
15262 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15266 lt_cv_prog_compiler_c_o=yes
15267 fi
15268 fi
15269 chmod u+w . 2>&5
15270 $RM conftest*
15271 # SGI C++ compiler will create directory out/ii_files/ for
15272 # template instantiation
15273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15274 $RM out/* && rmdir out
15275 cd ..
15276 $RM -r conftest
15277 $RM conftest*
15278
15279fi
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15281$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15282
15283
15284
15285
15286
15287
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015290if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015291 $as_echo_n "(cached) " >&6
15292else
15293 lt_cv_prog_compiler_c_o=no
15294 $RM -r conftest 2>/dev/null
15295 mkdir conftest
15296 cd conftest
15297 mkdir out
15298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299
15300 lt_compiler_flag="-o out/conftest2.$ac_objext"
15301 # Insert the option either (1) after the last *FLAGS variable, or
15302 # (2) before a word containing "conftest.", or (3) at the end.
15303 # Note that $ac_compile itself does not contain backslashes and begins
15304 # with a dollar sign (not a hyphen), so the echo should work correctly.
15305 lt_compile=`echo "$ac_compile" | $SED \
15306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015310 (eval "$lt_compile" 2>out/conftest.err)
15311 ac_status=$?
15312 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15315 then
15316 # The compiler can only warn and ignore the option if not recognized
15317 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321 lt_cv_prog_compiler_c_o=yes
15322 fi
15323 fi
15324 chmod u+w . 2>&5
15325 $RM conftest*
15326 # SGI C++ compiler will create directory out/ii_files/ for
15327 # template instantiation
15328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329 $RM out/* && rmdir out
15330 cd ..
15331 $RM -r conftest
15332 $RM conftest*
15333
15334fi
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15336$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15337
15338
15339
15340
15341hard_links="nottested"
15342if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15343 # do not overwrite the value of need_locks provided by the user
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15345$as_echo_n "checking if we can lock with hard links... " >&6; }
15346 hard_links=yes
15347 $RM conftest*
15348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349 touch conftest.a
15350 ln conftest.a conftest.b 2>&5 || hard_links=no
15351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15353$as_echo "$hard_links" >&6; }
15354 if test "$hard_links" = no; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15356$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15357 need_locks=warn
15358 fi
15359else
15360 need_locks=no
15361fi
15362
15363
15364
15365
15366
15367
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15369$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15370
15371 runpath_var=
15372 allow_undefined_flag=
15373 always_export_symbols=no
15374 archive_cmds=
15375 archive_expsym_cmds=
15376 compiler_needs_object=no
15377 enable_shared_with_static_runtimes=no
15378 export_dynamic_flag_spec=
15379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15380 hardcode_automatic=no
15381 hardcode_direct=no
15382 hardcode_direct_absolute=no
15383 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015384 hardcode_libdir_separator=
15385 hardcode_minus_L=no
15386 hardcode_shlibpath_var=unsupported
15387 inherit_rpath=no
15388 link_all_deplibs=unknown
15389 module_cmds=
15390 module_expsym_cmds=
15391 old_archive_from_new_cmds=
15392 old_archive_from_expsyms_cmds=
15393 thread_safe_flag_spec=
15394 whole_archive_flag_spec=
15395 # include_expsyms should be a list of space-separated symbols to be *always*
15396 # included in the symbol list
15397 include_expsyms=
15398 # exclude_expsyms can be an extended regexp of symbols to exclude
15399 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15400 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15401 # as well as any symbol that contains `d'.
15402 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15403 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15404 # platforms (ab)use it in PIC code, but their linkers get confused if
15405 # the symbol is explicitly referenced. Since portable code cannot
15406 # rely on this symbol name, it's probably fine to never include it in
15407 # preloaded symbol tables.
15408 # Exclude shared library initialization/finalization symbols.
15409 extract_expsyms_cmds=
15410
15411 case $host_os in
15412 cygwin* | mingw* | pw32* | cegcc*)
15413 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15414 # When not using gcc, we currently assume that we are using
15415 # Microsoft Visual C++.
15416 if test "$GCC" != yes; then
15417 with_gnu_ld=no
15418 fi
15419 ;;
15420 interix*)
15421 # we just hope/assume this is gcc and not c89 (= MSVC++)
15422 with_gnu_ld=yes
15423 ;;
15424 openbsd*)
15425 with_gnu_ld=no
15426 ;;
15427 esac
15428
15429 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015430
15431 # On some targets, GNU ld is compatible enough with the native linker
15432 # that we're better off using the native interface for both.
15433 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015434 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015435 case $host_os in
15436 aix*)
15437 # The AIX port of GNU ld has always aspired to compatibility
15438 # with the native linker. However, as the warning in the GNU ld
15439 # block says, versions before 2.19.5* couldn't really create working
15440 # shared libraries, regardless of the interface used.
15441 case `$LD -v 2>&1` in
15442 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15443 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15444 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15445 *)
15446 lt_use_gnu_ld_interface=yes
15447 ;;
15448 esac
15449 ;;
15450 *)
15451 lt_use_gnu_ld_interface=yes
15452 ;;
15453 esac
15454 fi
15455
15456 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015457 # If archive_cmds runs LD, not CC, wlarc should be empty
15458 wlarc='${wl}'
15459
15460 # Set some defaults for GNU ld with shared library support. These
15461 # are reset later if shared libraries are not supported. Putting them
15462 # here allows them to be overridden if necessary.
15463 runpath_var=LD_RUN_PATH
15464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 export_dynamic_flag_spec='${wl}--export-dynamic'
15466 # ancient GNU ld didn't support --whole-archive et. al.
15467 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15468 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15469 else
15470 whole_archive_flag_spec=
15471 fi
15472 supports_anon_versioning=no
15473 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015474 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015475 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15476 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15477 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15478 *\ 2.11.*) ;; # other 2.11 versions
15479 *) supports_anon_versioning=yes ;;
15480 esac
15481
15482 # See if GNU ld supports shared libraries.
15483 case $host_os in
15484 aix[3-9]*)
15485 # On AIX/PPC, the GNU linker is very broken
15486 if test "$host_cpu" != ia64; then
15487 ld_shlibs=no
15488 cat <<_LT_EOF 1>&2
15489
cristy0c60a692010-11-04 01:09:47 +000015490*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015491*** to be unable to reliably create shared libraries on AIX.
15492*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015493*** really care for shared libraries, you may want to install binutils
15494*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15495*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015496
15497_LT_EOF
15498 fi
15499 ;;
15500
15501 amigaos*)
15502 case $host_cpu in
15503 powerpc)
15504 # see comment about AmigaOS4 .so support
15505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15506 archive_expsym_cmds=''
15507 ;;
15508 m68k)
15509 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)'
15510 hardcode_libdir_flag_spec='-L$libdir'
15511 hardcode_minus_L=yes
15512 ;;
15513 esac
15514 ;;
15515
15516 beos*)
15517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15518 allow_undefined_flag=unsupported
15519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15520 # support --undefined. This deserves some investigation. FIXME
15521 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15522 else
15523 ld_shlibs=no
15524 fi
15525 ;;
15526
15527 cygwin* | mingw* | pw32* | cegcc*)
15528 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15529 # as there is no search path for DLLs.
15530 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015531 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015532 allow_undefined_flag=unsupported
15533 always_export_symbols=no
15534 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015535 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'
15536 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 +000015537
15538 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15540 # If the export-symbols file already is a .def file (1st line
15541 # is EXPORTS), use it as is; otherwise, prepend...
15542 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15543 cp $export_symbols $output_objdir/$soname.def;
15544 else
15545 echo EXPORTS > $output_objdir/$soname.def;
15546 cat $export_symbols >> $output_objdir/$soname.def;
15547 fi~
15548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15549 else
15550 ld_shlibs=no
15551 fi
15552 ;;
15553
cristy0c60a692010-11-04 01:09:47 +000015554 haiku*)
15555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15556 link_all_deplibs=yes
15557 ;;
15558
cristy73bd4a52010-10-05 11:24:23 +000015559 interix[3-9]*)
15560 hardcode_direct=no
15561 hardcode_shlibpath_var=no
15562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15563 export_dynamic_flag_spec='${wl}-E'
15564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15565 # Instead, shared libraries are loaded at an image base (0x10000000 by
15566 # default) and relocated if they conflict, which is a slow very memory
15567 # consuming and fragmenting process. To avoid this, we pick a random,
15568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15571 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'
15572 ;;
15573
cristy0c60a692010-11-04 01:09:47 +000015574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015575 tmp_diet=no
15576 if test "$host_os" = linux-dietlibc; then
15577 case $cc_basename in
15578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15579 esac
15580 fi
15581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15582 && test "$tmp_diet" = no
15583 then
cristyda16f162011-02-19 23:52:17 +000015584 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015585 tmp_sharedflag='-shared'
15586 case $cc_basename,$host_cpu in
15587 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015588 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 +000015589 tmp_addflag=' $pic_flag'
15590 ;;
cristy0c60a692010-11-04 01:09:47 +000015591 pgf77* | pgf90* | pgf95* | pgfortran*)
15592 # Portland Group f77 and f90 compilers
15593 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 +000015594 tmp_addflag=' $pic_flag -Mnomain' ;;
15595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15596 tmp_addflag=' -i_dynamic' ;;
15597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15598 tmp_addflag=' -i_dynamic -nofor_main' ;;
15599 ifc* | ifort*) # Intel Fortran compiler
15600 tmp_addflag=' -nofor_main' ;;
15601 lf95*) # Lahey Fortran 8.1
15602 whole_archive_flag_spec=
15603 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015604 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015605 tmp_sharedflag='-qmkshrobj'
15606 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015607 nvcc*) # Cuda Compiler Driver 2.2
15608 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'
15609 compiler_needs_object=yes
15610 ;;
cristy73bd4a52010-10-05 11:24:23 +000015611 esac
15612 case `$CC -V 2>&1 | sed 5q` in
15613 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015614 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 +000015615 compiler_needs_object=yes
15616 tmp_sharedflag='-G' ;;
15617 *Sun\ F*) # Sun Fortran 8.3
15618 tmp_sharedflag='-G' ;;
15619 esac
15620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15621
15622 if test "x$supports_anon_versioning" = xyes; then
15623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15625 echo "local: *; };" >> $output_objdir/$libname.ver~
15626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15627 fi
15628
15629 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015630 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015634 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015635 if test "x$supports_anon_versioning" = xyes; then
15636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15638 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015639 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015640 fi
15641 ;;
15642 esac
15643 else
15644 ld_shlibs=no
15645 fi
15646 ;;
15647
15648 netbsd*)
15649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15651 wlarc=
15652 else
cristyda16f162011-02-19 23:52:17 +000015653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 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 +000015655 fi
15656 ;;
15657
15658 solaris*)
15659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15660 ld_shlibs=no
15661 cat <<_LT_EOF 1>&2
15662
15663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15664*** create shared libraries on Solaris systems. Therefore, libtool
15665*** is disabling shared libraries support. We urge you to upgrade GNU
15666*** binutils to release 2.9.1 or newer. Another option is to modify
15667*** your PATH or compiler configuration so that the native linker is
15668*** used, and then restart.
15669
15670_LT_EOF
15671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15673 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 +000015674 else
15675 ld_shlibs=no
15676 fi
15677 ;;
15678
15679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15680 case `$LD -v 2>&1` in
15681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15682 ld_shlibs=no
15683 cat <<_LT_EOF 1>&2
15684
15685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15686*** reliably create shared libraries on SCO systems. Therefore, libtool
15687*** is disabling shared libraries support. We urge you to upgrade GNU
15688*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15689*** your PATH or compiler configuration so that the native linker is
15690*** used, and then restart.
15691
15692_LT_EOF
15693 ;;
15694 *)
15695 # For security reasons, it is highly recommended that you always
15696 # use absolute paths for naming shared libraries, and exclude the
15697 # DT_RUNPATH tag from executables and libraries. But doing so
15698 # requires that you compile everything twice, which is a pain.
15699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15703 else
15704 ld_shlibs=no
15705 fi
15706 ;;
15707 esac
15708 ;;
15709
15710 sunos4*)
15711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15712 wlarc=
15713 hardcode_direct=yes
15714 hardcode_shlibpath_var=no
15715 ;;
15716
15717 *)
15718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15720 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 +000015721 else
15722 ld_shlibs=no
15723 fi
15724 ;;
15725 esac
15726
15727 if test "$ld_shlibs" = no; then
15728 runpath_var=
15729 hardcode_libdir_flag_spec=
15730 export_dynamic_flag_spec=
15731 whole_archive_flag_spec=
15732 fi
15733 else
15734 # PORTME fill in a description of your system's linker (not GNU ld)
15735 case $host_os in
15736 aix3*)
15737 allow_undefined_flag=unsupported
15738 always_export_symbols=yes
15739 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'
15740 # Note: this linker hardcodes the directories in LIBPATH if there
15741 # are no directories specified by -L.
15742 hardcode_minus_L=yes
15743 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15744 # Neither direct hardcoding nor static linking is supported with a
15745 # broken collect2.
15746 hardcode_direct=unsupported
15747 fi
15748 ;;
15749
15750 aix[4-9]*)
15751 if test "$host_cpu" = ia64; then
15752 # On IA64, the linker does run time linking by default, so we don't
15753 # have to do anything special.
15754 aix_use_runtimelinking=no
15755 exp_sym_flag='-Bexport'
15756 no_entry_flag=""
15757 else
15758 # If we're using GNU nm, then we don't want the "-C" option.
15759 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015760 # Also, AIX nm treats weak defined symbols like other global
15761 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015763 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 +000015764 else
15765 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'
15766 fi
15767 aix_use_runtimelinking=no
15768
15769 # Test if we are trying to use run time linking or normal
15770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15771 # need to do runtime linking.
15772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15773 for ld_flag in $LDFLAGS; do
15774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15775 aix_use_runtimelinking=yes
15776 break
15777 fi
15778 done
15779 ;;
15780 esac
15781
15782 exp_sym_flag='-bexport'
15783 no_entry_flag='-bnoentry'
15784 fi
15785
15786 # When large executables or shared objects are built, AIX ld can
15787 # have problems creating the table of contents. If linking a library
15788 # or program results in "error TOC overflow" add -mminimal-toc to
15789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15791
15792 archive_cmds=''
15793 hardcode_direct=yes
15794 hardcode_direct_absolute=yes
15795 hardcode_libdir_separator=':'
15796 link_all_deplibs=yes
15797 file_list_spec='${wl}-f,'
15798
15799 if test "$GCC" = yes; then
15800 case $host_os in aix4.[012]|aix4.[012].*)
15801 # We only want to do this on AIX 4.2 and lower, the check
15802 # below for broken collect2 doesn't work under 4.3+
15803 collect2name=`${CC} -print-prog-name=collect2`
15804 if test -f "$collect2name" &&
15805 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15806 then
15807 # We have reworked collect2
15808 :
15809 else
15810 # We have old collect2
15811 hardcode_direct=unsupported
15812 # It fails to find uninstalled libraries when the uninstalled
15813 # path is not listed in the libpath. Setting hardcode_minus_L
15814 # to unsupported forces relinking
15815 hardcode_minus_L=yes
15816 hardcode_libdir_flag_spec='-L$libdir'
15817 hardcode_libdir_separator=
15818 fi
15819 ;;
15820 esac
15821 shared_flag='-shared'
15822 if test "$aix_use_runtimelinking" = yes; then
15823 shared_flag="$shared_flag "'${wl}-G'
15824 fi
15825 else
15826 # not using gcc
15827 if test "$host_cpu" = ia64; then
15828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15829 # chokes on -Wl,-G. The following line is correct:
15830 shared_flag='-G'
15831 else
15832 if test "$aix_use_runtimelinking" = yes; then
15833 shared_flag='${wl}-G'
15834 else
15835 shared_flag='${wl}-bM:SRE'
15836 fi
15837 fi
15838 fi
15839
15840 export_dynamic_flag_spec='${wl}-bexpall'
15841 # It seems that -bexpall does not export symbols beginning with
15842 # underscore (_), so it is better to generate a list of symbols to export.
15843 always_export_symbols=yes
15844 if test "$aix_use_runtimelinking" = yes; then
15845 # Warning - without using the other runtime loading flags (-brtl),
15846 # -berok will link without error, but may produce a broken library.
15847 allow_undefined_flag='-berok'
15848 # Determine the default libpath from the value encoded in an
15849 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015850 if test "${lt_cv_aix_libpath+set}" = set; then
15851 aix_libpath=$lt_cv_aix_libpath
15852else
15853 if ${lt_cv_aix_libpath_+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855else
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015857/* end confdefs.h. */
15858
15859int
15860main ()
15861{
15862
15863 ;
15864 return 0;
15865}
15866_ACEOF
15867if ac_fn_c_try_link "$LINENO"; then :
15868
cristyda16f162011-02-19 23:52:17 +000015869 lt_aix_libpath_sed='
15870 /Import File Strings/,/^$/ {
15871 /^0/ {
15872 s/^0 *\([^ ]*\) *$/\1/
15873 p
15874 }
15875 }'
15876 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15877 # Check for a 64-bit object if we didn't find anything.
15878 if test -z "$lt_cv_aix_libpath_"; then
15879 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15880 fi
cristy73bd4a52010-10-05 11:24:23 +000015881fi
15882rm -f core conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015884 if test -z "$lt_cv_aix_libpath_"; then
15885 lt_cv_aix_libpath_="/usr/lib:/lib"
15886 fi
15887
15888fi
15889
15890 aix_libpath=$lt_cv_aix_libpath_
15891fi
cristy73bd4a52010-10-05 11:24:23 +000015892
15893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015894 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 +000015895 else
15896 if test "$host_cpu" = ia64; then
15897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15898 allow_undefined_flag="-z nodefs"
15899 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"
15900 else
15901 # Determine the default libpath from the value encoded in an
15902 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015903 if test "${lt_cv_aix_libpath+set}" = set; then
15904 aix_libpath=$lt_cv_aix_libpath
15905else
15906 if ${lt_cv_aix_libpath_+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908else
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015910/* end confdefs.h. */
15911
15912int
15913main ()
15914{
15915
15916 ;
15917 return 0;
15918}
15919_ACEOF
15920if ac_fn_c_try_link "$LINENO"; then :
15921
cristyda16f162011-02-19 23:52:17 +000015922 lt_aix_libpath_sed='
15923 /Import File Strings/,/^$/ {
15924 /^0/ {
15925 s/^0 *\([^ ]*\) *$/\1/
15926 p
15927 }
15928 }'
15929 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15930 # Check for a 64-bit object if we didn't find anything.
15931 if test -z "$lt_cv_aix_libpath_"; then
15932 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15933 fi
cristy73bd4a52010-10-05 11:24:23 +000015934fi
15935rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015937 if test -z "$lt_cv_aix_libpath_"; then
15938 lt_cv_aix_libpath_="/usr/lib:/lib"
15939 fi
15940
15941fi
15942
15943 aix_libpath=$lt_cv_aix_libpath_
15944fi
cristy73bd4a52010-10-05 11:24:23 +000015945
15946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15947 # Warning - without using the other run time loading flags,
15948 # -berok will link without error, but may produce a broken library.
15949 no_undefined_flag=' ${wl}-bernotok'
15950 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015951 if test "$with_gnu_ld" = yes; then
15952 # We only use this code for GNU lds that support --whole-archive.
15953 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15954 else
15955 # Exported symbols can be pulled into shared objects from archives
15956 whole_archive_flag_spec='$convenience'
15957 fi
cristy73bd4a52010-10-05 11:24:23 +000015958 archive_cmds_need_lc=yes
15959 # This is similar to how AIX traditionally builds its shared libraries.
15960 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'
15961 fi
15962 fi
15963 ;;
15964
15965 amigaos*)
15966 case $host_cpu in
15967 powerpc)
15968 # see comment about AmigaOS4 .so support
15969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds=''
15971 ;;
15972 m68k)
15973 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)'
15974 hardcode_libdir_flag_spec='-L$libdir'
15975 hardcode_minus_L=yes
15976 ;;
15977 esac
15978 ;;
15979
15980 bsdi[45]*)
15981 export_dynamic_flag_spec=-rdynamic
15982 ;;
15983
15984 cygwin* | mingw* | pw32* | cegcc*)
15985 # When not using gcc, we currently assume that we are using
15986 # Microsoft Visual C++.
15987 # hardcode_libdir_flag_spec is actually meaningless, as there is
15988 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015989 case $cc_basename in
15990 cl*)
15991 # Native MSVC
15992 hardcode_libdir_flag_spec=' '
15993 allow_undefined_flag=unsupported
15994 always_export_symbols=yes
15995 file_list_spec='@'
15996 # Tell ltmain to make .lib files, not .a files.
15997 libext=lib
15998 # Tell ltmain to make .dll files, not .so files.
15999 shrext_cmds=".dll"
16000 # FIXME: Setting linknames here is a bad hack.
16001 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16002 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16003 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16004 else
16005 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16006 fi~
16007 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16008 linknames='
16009 # The linker will not automatically build a static lib if we build a DLL.
16010 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16011 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016012 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16014 # Don't use ranlib
16015 old_postinstall_cmds='chmod 644 $oldlib'
16016 postlink_cmds='lt_outputfile="@OUTPUT@"~
16017 lt_tool_outputfile="@TOOL_OUTPUT@"~
16018 case $lt_outputfile in
16019 *.exe|*.EXE) ;;
16020 *)
16021 lt_outputfile="$lt_outputfile.exe"
16022 lt_tool_outputfile="$lt_tool_outputfile.exe"
16023 ;;
16024 esac~
16025 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16026 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16027 $RM "$lt_outputfile.manifest";
16028 fi'
16029 ;;
16030 *)
16031 # Assume MSVC wrapper
16032 hardcode_libdir_flag_spec=' '
16033 allow_undefined_flag=unsupported
16034 # Tell ltmain to make .lib files, not .a files.
16035 libext=lib
16036 # Tell ltmain to make .dll files, not .so files.
16037 shrext_cmds=".dll"
16038 # FIXME: Setting linknames here is a bad hack.
16039 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16040 # The linker will automatically build a .lib file if we build a DLL.
16041 old_archive_from_new_cmds='true'
16042 # FIXME: Should let the user specify the lib program.
16043 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16044 enable_shared_with_static_runtimes=yes
16045 ;;
16046 esac
cristy73bd4a52010-10-05 11:24:23 +000016047 ;;
16048
16049 darwin* | rhapsody*)
16050
16051
16052 archive_cmds_need_lc=no
16053 hardcode_direct=no
16054 hardcode_automatic=yes
16055 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016056 if test "$lt_cv_ld_force_load" = "yes"; then
16057 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 +000016058
cristy0c60a692010-11-04 01:09:47 +000016059 else
16060 whole_archive_flag_spec=''
16061 fi
cristy73bd4a52010-10-05 11:24:23 +000016062 link_all_deplibs=yes
16063 allow_undefined_flag="$_lt_dar_allow_undefined"
16064 case $cc_basename in
16065 ifort*) _lt_dar_can_shared=yes ;;
16066 *) _lt_dar_can_shared=$GCC ;;
16067 esac
16068 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016069 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016070 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16071 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16072 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}"
16073 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}"
16074
16075 else
16076 ld_shlibs=no
16077 fi
16078
16079 ;;
16080
16081 dgux*)
16082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16083 hardcode_libdir_flag_spec='-L$libdir'
16084 hardcode_shlibpath_var=no
16085 ;;
16086
cristy73bd4a52010-10-05 11:24:23 +000016087 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16088 # support. Future versions do this automatically, but an explicit c++rt0.o
16089 # does not break anything, and helps significantly (at the cost of a little
16090 # extra space).
16091 freebsd2.2*)
16092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16093 hardcode_libdir_flag_spec='-R$libdir'
16094 hardcode_direct=yes
16095 hardcode_shlibpath_var=no
16096 ;;
16097
16098 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016099 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=yes
16102 hardcode_minus_L=yes
16103 hardcode_shlibpath_var=no
16104 ;;
16105
16106 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16107 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016108 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016109 hardcode_libdir_flag_spec='-R$libdir'
16110 hardcode_direct=yes
16111 hardcode_shlibpath_var=no
16112 ;;
16113
16114 hpux9*)
16115 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016116 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 +000016117 else
16118 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'
16119 fi
16120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16121 hardcode_libdir_separator=:
16122 hardcode_direct=yes
16123
16124 # hardcode_minus_L: Not really in the search PATH,
16125 # but as the default location of the library.
16126 hardcode_minus_L=yes
16127 export_dynamic_flag_spec='${wl}-E'
16128 ;;
16129
16130 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016131 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016132 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 +000016133 else
16134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16135 fi
16136 if test "$with_gnu_ld" = no; then
16137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016138 hardcode_libdir_separator=:
16139 hardcode_direct=yes
16140 hardcode_direct_absolute=yes
16141 export_dynamic_flag_spec='${wl}-E'
16142 # hardcode_minus_L: Not really in the search PATH,
16143 # but as the default location of the library.
16144 hardcode_minus_L=yes
16145 fi
16146 ;;
16147
16148 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016149 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016150 case $host_cpu in
16151 hppa*64*)
16152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16153 ;;
16154 ia64*)
cristyda16f162011-02-19 23:52:17 +000016155 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016156 ;;
16157 *)
cristyda16f162011-02-19 23:52:17 +000016158 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 +000016159 ;;
16160 esac
16161 else
16162 case $host_cpu in
16163 hppa*64*)
16164 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 ;;
16166 ia64*)
16167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16168 ;;
16169 *)
cristy0c60a692010-11-04 01:09:47 +000016170
16171 # Older versions of the 11.00 compiler do not understand -b yet
16172 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16174$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016175if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016176 $as_echo_n "(cached) " >&6
16177else
16178 lt_cv_prog_compiler__b=no
16179 save_LDFLAGS="$LDFLAGS"
16180 LDFLAGS="$LDFLAGS -b"
16181 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16183 # The linker can only warn and ignore the option if not recognized
16184 # So say no if there are warnings
16185 if test -s conftest.err; then
16186 # Append any errors to the config.log.
16187 cat conftest.err 1>&5
16188 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16190 if diff conftest.exp conftest.er2 >/dev/null; then
16191 lt_cv_prog_compiler__b=yes
16192 fi
16193 else
16194 lt_cv_prog_compiler__b=yes
16195 fi
16196 fi
16197 $RM -r conftest*
16198 LDFLAGS="$save_LDFLAGS"
16199
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16202$as_echo "$lt_cv_prog_compiler__b" >&6; }
16203
16204if test x"$lt_cv_prog_compiler__b" = xyes; then
16205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16206else
16207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16208fi
16209
cristy73bd4a52010-10-05 11:24:23 +000016210 ;;
16211 esac
16212 fi
16213 if test "$with_gnu_ld" = no; then
16214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16215 hardcode_libdir_separator=:
16216
16217 case $host_cpu in
16218 hppa*64*|ia64*)
16219 hardcode_direct=no
16220 hardcode_shlibpath_var=no
16221 ;;
16222 *)
16223 hardcode_direct=yes
16224 hardcode_direct_absolute=yes
16225 export_dynamic_flag_spec='${wl}-E'
16226
16227 # hardcode_minus_L: Not really in the search PATH,
16228 # but as the default location of the library.
16229 hardcode_minus_L=yes
16230 ;;
16231 esac
16232 fi
16233 ;;
16234
16235 irix5* | irix6* | nonstopux*)
16236 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016237 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 +000016238 # Try to use the -exported_symbol ld option, if it does not
16239 # work, assume that -exports_file does not work either and
16240 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016241 # This should be the same for all languages, so no per-tag cache variable.
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16243$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16244if ${lt_cv_irix_exported_symbol+:} false; then :
16245 $as_echo_n "(cached) " >&6
16246else
16247 save_LDFLAGS="$LDFLAGS"
16248 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016250/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016251int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016252_ACEOF
16253if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016254 lt_cv_irix_exported_symbol=yes
16255else
16256 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016257fi
16258rm -f core conftest.err conftest.$ac_objext \
16259 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016260 LDFLAGS="$save_LDFLAGS"
16261fi
16262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16263$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16264 if test "$lt_cv_irix_exported_symbol" = yes; then
16265 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'
16266 fi
cristy73bd4a52010-10-05 11:24:23 +000016267 else
cristy0c60a692010-11-04 01:09:47 +000016268 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'
16269 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 +000016270 fi
16271 archive_cmds_need_lc='no'
16272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16273 hardcode_libdir_separator=:
16274 inherit_rpath=yes
16275 link_all_deplibs=yes
16276 ;;
16277
16278 netbsd*)
16279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16281 else
16282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16283 fi
16284 hardcode_libdir_flag_spec='-R$libdir'
16285 hardcode_direct=yes
16286 hardcode_shlibpath_var=no
16287 ;;
16288
16289 newsos6)
16290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 hardcode_direct=yes
16292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16293 hardcode_libdir_separator=:
16294 hardcode_shlibpath_var=no
16295 ;;
16296
16297 *nto* | *qnx*)
16298 ;;
16299
16300 openbsd*)
16301 if test -f /usr/libexec/ld.so; then
16302 hardcode_direct=yes
16303 hardcode_shlibpath_var=no
16304 hardcode_direct_absolute=yes
16305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16309 export_dynamic_flag_spec='${wl}-E'
16310 else
16311 case $host_os in
16312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16314 hardcode_libdir_flag_spec='-R$libdir'
16315 ;;
16316 *)
16317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16319 ;;
16320 esac
16321 fi
16322 else
16323 ld_shlibs=no
16324 fi
16325 ;;
16326
16327 os2*)
16328 hardcode_libdir_flag_spec='-L$libdir'
16329 hardcode_minus_L=yes
16330 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016331 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 +000016332 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16333 ;;
16334
16335 osf3*)
16336 if test "$GCC" = yes; then
16337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016338 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 +000016339 else
16340 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016341 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 +000016342 fi
16343 archive_cmds_need_lc='no'
16344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16345 hardcode_libdir_separator=:
16346 ;;
16347
16348 osf4* | osf5*) # as osf3* with the addition of -msym flag
16349 if test "$GCC" = yes; then
16350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016351 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 +000016352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16353 else
16354 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016355 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 +000016356 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 +000016357 $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 +000016358
16359 # Both c and cxx compiler support -rpath directly
16360 hardcode_libdir_flag_spec='-rpath $libdir'
16361 fi
16362 archive_cmds_need_lc='no'
16363 hardcode_libdir_separator=:
16364 ;;
16365
16366 solaris*)
16367 no_undefined_flag=' -z defs'
16368 if test "$GCC" = yes; then
16369 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016370 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 +000016371 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 +000016372 $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 +000016373 else
16374 case `$CC -V 2>&1` in
16375 *"Compilers 5.0"*)
16376 wlarc=''
16377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16380 ;;
16381 *)
16382 wlarc='${wl}'
16383 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16385 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16386 ;;
16387 esac
16388 fi
16389 hardcode_libdir_flag_spec='-R$libdir'
16390 hardcode_shlibpath_var=no
16391 case $host_os in
16392 solaris2.[0-5] | solaris2.[0-5].*) ;;
16393 *)
16394 # The compiler driver will combine and reorder linker options,
16395 # but understands `-z linker_flag'. GCC discards it without `$wl',
16396 # but is careful enough not to reorder.
16397 # Supported since Solaris 2.6 (maybe 2.5.1?)
16398 if test "$GCC" = yes; then
16399 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16400 else
16401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16402 fi
16403 ;;
16404 esac
16405 link_all_deplibs=yes
16406 ;;
16407
16408 sunos4*)
16409 if test "x$host_vendor" = xsequent; then
16410 # Use $CC to link under sequent, because it throws in some extra .o
16411 # files that make .init and .fini sections work.
16412 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16413 else
16414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16415 fi
16416 hardcode_libdir_flag_spec='-L$libdir'
16417 hardcode_direct=yes
16418 hardcode_minus_L=yes
16419 hardcode_shlibpath_var=no
16420 ;;
16421
16422 sysv4)
16423 case $host_vendor in
16424 sni)
16425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426 hardcode_direct=yes # is this really true???
16427 ;;
16428 siemens)
16429 ## LD is ld it makes a PLAMLIB
16430 ## CC just makes a GrossModule.
16431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16432 reload_cmds='$CC -r -o $output$reload_objs'
16433 hardcode_direct=no
16434 ;;
16435 motorola)
16436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16438 ;;
16439 esac
16440 runpath_var='LD_RUN_PATH'
16441 hardcode_shlibpath_var=no
16442 ;;
16443
16444 sysv4.3*)
16445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 hardcode_shlibpath_var=no
16447 export_dynamic_flag_spec='-Bexport'
16448 ;;
16449
16450 sysv4*MP*)
16451 if test -d /usr/nec; then
16452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453 hardcode_shlibpath_var=no
16454 runpath_var=LD_RUN_PATH
16455 hardcode_runpath_var=yes
16456 ld_shlibs=yes
16457 fi
16458 ;;
16459
16460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16461 no_undefined_flag='${wl}-z,text'
16462 archive_cmds_need_lc=no
16463 hardcode_shlibpath_var=no
16464 runpath_var='LD_RUN_PATH'
16465
16466 if test "$GCC" = yes; then
16467 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 else
16470 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16472 fi
16473 ;;
16474
16475 sysv5* | sco3.2v5* | sco5v6*)
16476 # Note: We can NOT use -z defs as we might desire, because we do not
16477 # link with -lc, and that would cause any symbols used from libc to
16478 # always be unresolved, which means just about no library would
16479 # ever link correctly. If we're not using GNU ld we use -z text
16480 # though, which does catch some bad symbols but isn't as heavy-handed
16481 # as -z defs.
16482 no_undefined_flag='${wl}-z,text'
16483 allow_undefined_flag='${wl}-z,nodefs'
16484 archive_cmds_need_lc=no
16485 hardcode_shlibpath_var=no
16486 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16487 hardcode_libdir_separator=':'
16488 link_all_deplibs=yes
16489 export_dynamic_flag_spec='${wl}-Bexport'
16490 runpath_var='LD_RUN_PATH'
16491
16492 if test "$GCC" = yes; then
16493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 else
16496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16498 fi
16499 ;;
16500
16501 uts4*)
16502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_libdir_flag_spec='-L$libdir'
16504 hardcode_shlibpath_var=no
16505 ;;
16506
16507 *)
16508 ld_shlibs=no
16509 ;;
16510 esac
16511
16512 if test x$host_vendor = xsni; then
16513 case $host in
16514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16515 export_dynamic_flag_spec='${wl}-Blargedynsym'
16516 ;;
16517 esac
16518 fi
16519 fi
16520
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16522$as_echo "$ld_shlibs" >&6; }
16523test "$ld_shlibs" = no && can_build_shared=no
16524
16525with_gnu_ld=$with_gnu_ld
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541#
16542# Do we need to explicitly link libc?
16543#
16544case "x$archive_cmds_need_lc" in
16545x|xyes)
16546 # Assume -lc should be added
16547 archive_cmds_need_lc=yes
16548
16549 if test "$enable_shared" = yes && test "$GCC" = yes; then
16550 case $archive_cmds in
16551 *'~'*)
16552 # FIXME: we may have to deal with multi-command sequences.
16553 ;;
16554 '$CC '*)
16555 # Test whether the compiler implicitly links with -lc since on some
16556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16557 # to ld, don't add -lc before -lgcc.
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16559$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016560if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016561 $as_echo_n "(cached) " >&6
16562else
16563 $RM conftest*
16564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016565
cristy0c60a692010-11-04 01:09:47 +000016566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016567 (eval $ac_compile) 2>&5
16568 ac_status=$?
16569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16570 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016571 soname=conftest
16572 lib=conftest
16573 libobjs=conftest.$ac_objext
16574 deplibs=
16575 wl=$lt_prog_compiler_wl
16576 pic_flag=$lt_prog_compiler_pic
16577 compiler_flags=-v
16578 linker_flags=-v
16579 verstring=
16580 output_objdir=.
16581 libname=conftest
16582 lt_save_allow_undefined_flag=$allow_undefined_flag
16583 allow_undefined_flag=
16584 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 +000016585 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16588 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016589 then
16590 lt_cv_archive_cmds_need_lc=no
16591 else
16592 lt_cv_archive_cmds_need_lc=yes
16593 fi
16594 allow_undefined_flag=$lt_save_allow_undefined_flag
16595 else
16596 cat conftest.err 1>&5
16597 fi
16598 $RM conftest*
16599
16600fi
16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16602$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16603 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016604 ;;
16605 esac
16606 fi
16607 ;;
16608esac
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
cristy73bd4a52010-10-05 11:24:23 +000016761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16762$as_echo_n "checking dynamic linker characteristics... " >&6; }
16763
16764if test "$GCC" = yes; then
16765 case $host_os in
16766 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16767 *) lt_awk_arg="/^libraries:/" ;;
16768 esac
cristy0c60a692010-11-04 01:09:47 +000016769 case $host_os in
16770 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16771 *) lt_sed_strip_eq="s,=/,/,g" ;;
16772 esac
16773 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16774 case $lt_search_path_spec in
16775 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016776 # if the path contains ";" then we assume it to be the separator
16777 # otherwise default to the standard path separator (i.e. ":") - it is
16778 # assumed that no part of a normal pathname contains ";" but that should
16779 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016780 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16781 ;;
16782 *)
16783 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16784 ;;
16785 esac
cristy73bd4a52010-10-05 11:24:23 +000016786 # Ok, now we have the path, separated by spaces, we can step through it
16787 # and add multilib dir if necessary.
16788 lt_tmp_lt_search_path_spec=
16789 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16790 for lt_sys_path in $lt_search_path_spec; do
16791 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16792 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16793 else
16794 test -d "$lt_sys_path" && \
16795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16796 fi
16797 done
cristy0c60a692010-11-04 01:09:47 +000016798 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016799BEGIN {RS=" "; FS="/|\n";} {
16800 lt_foo="";
16801 lt_count=0;
16802 for (lt_i = NF; lt_i > 0; lt_i--) {
16803 if ($lt_i != "" && $lt_i != ".") {
16804 if ($lt_i == "..") {
16805 lt_count++;
16806 } else {
16807 if (lt_count == 0) {
16808 lt_foo="/" $lt_i lt_foo;
16809 } else {
16810 lt_count--;
16811 }
16812 }
16813 }
16814 }
16815 if (lt_foo != "") { lt_freq[lt_foo]++; }
16816 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16817}'`
cristy0c60a692010-11-04 01:09:47 +000016818 # AWK program above erroneously prepends '/' to C:/dos/paths
16819 # for these hosts.
16820 case $host_os in
16821 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16822 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16823 esac
16824 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016825else
16826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16827fi
16828library_names_spec=
16829libname_spec='lib$name'
16830soname_spec=
16831shrext_cmds=".so"
16832postinstall_cmds=
16833postuninstall_cmds=
16834finish_cmds=
16835finish_eval=
16836shlibpath_var=
16837shlibpath_overrides_runpath=unknown
16838version_type=none
16839dynamic_linker="$host_os ld.so"
16840sys_lib_dlsearch_path_spec="/lib /usr/lib"
16841need_lib_prefix=unknown
16842hardcode_into_libs=no
16843
16844# when you set need_version to no, make sure it does not cause -set_version
16845# flags to be left without arguments
16846need_version=unknown
16847
16848case $host_os in
16849aix3*)
cristy99bd5232011-12-07 14:38:20 +000016850 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16852 shlibpath_var=LIBPATH
16853
16854 # AIX 3 has no versioning support, so we append a major version to the name.
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 ;;
16857
16858aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016859 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016860 need_lib_prefix=no
16861 need_version=no
16862 hardcode_into_libs=yes
16863 if test "$host_cpu" = ia64; then
16864 # AIX 5 supports IA64
16865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 else
16868 # With GCC up to 2.95.x, collect2 would create an import file
16869 # for dependence libraries. The import file would start with
16870 # the line `#! .'. This would cause the generated library to
16871 # depend on `.', always an invalid library. This was fixed in
16872 # development snapshots of GCC prior to 3.0.
16873 case $host_os in
16874 aix4 | aix4.[01] | aix4.[01].*)
16875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16876 echo ' yes '
16877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16878 :
16879 else
16880 can_build_shared=no
16881 fi
16882 ;;
16883 esac
16884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16885 # soname into executable. Probably we can add versioning support to
16886 # collect2, so additional links can be useful in future.
16887 if test "$aix_use_runtimelinking" = yes; then
16888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16889 # instead of lib<name>.a to let people know that these are not
16890 # typical AIX shared libraries.
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 else
16893 # We preserve .a as extension for shared libraries through AIX4.2
16894 # and later when we are not doing run time linking.
16895 library_names_spec='${libname}${release}.a $libname.a'
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 fi
16898 shlibpath_var=LIBPATH
16899 fi
16900 ;;
16901
16902amigaos*)
16903 case $host_cpu in
16904 powerpc)
16905 # Since July 2007 AmigaOS4 officially supports .so libraries.
16906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 ;;
16909 m68k)
16910 library_names_spec='$libname.ixlibrary $libname.a'
16911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016912 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 +000016913 ;;
16914 esac
16915 ;;
16916
16917beos*)
16918 library_names_spec='${libname}${shared_ext}'
16919 dynamic_linker="$host_os ld.so"
16920 shlibpath_var=LIBRARY_PATH
16921 ;;
16922
16923bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016924 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016925 need_version=no
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16932 # the default ld.so.conf also contains /usr/contrib/lib and
16933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16934 # libtool to hard-code these into programs
16935 ;;
16936
16937cygwin* | mingw* | pw32* | cegcc*)
16938 version_type=windows
16939 shrext_cmds=".dll"
16940 need_version=no
16941 need_lib_prefix=no
16942
cristyda16f162011-02-19 23:52:17 +000016943 case $GCC,$cc_basename in
16944 yes,*)
16945 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016946 library_names_spec='$libname.dll.a'
16947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16948 postinstall_cmds='base_file=`basename \${file}`~
16949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16950 dldir=$destdir/`dirname \$dlpath`~
16951 test -d \$dldir || mkdir -p \$dldir~
16952 $install_prog $dir/$dlname \$dldir/$dlname~
16953 chmod a+x \$dldir/$dlname~
16954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16956 fi'
16957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16958 dlpath=$dir/\$dldll~
16959 $RM \$dlpath'
16960 shlibpath_overrides_runpath=yes
16961
16962 case $host_os in
16963 cygwin*)
16964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016966
16967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016968 ;;
16969 mingw* | cegcc*)
16970 # MinGW DLLs use traditional 'lib' prefix
16971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016972 ;;
16973 pw32*)
16974 # pw32 DLLs use 'pw' prefix rather than 'lib'
16975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16976 ;;
16977 esac
cristyda16f162011-02-19 23:52:17 +000016978 dynamic_linker='Win32 ld.exe'
16979 ;;
16980
16981 *,cl*)
16982 # Native MSVC
16983 libname_spec='$name'
16984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16985 library_names_spec='${libname}.dll.lib'
16986
16987 case $build_os in
16988 mingw*)
16989 sys_lib_search_path_spec=
16990 lt_save_ifs=$IFS
16991 IFS=';'
16992 for lt_path in $LIB
16993 do
16994 IFS=$lt_save_ifs
16995 # Let DOS variable expansion print the short 8.3 style file name.
16996 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16997 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16998 done
16999 IFS=$lt_save_ifs
17000 # Convert to MSYS style.
17001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17002 ;;
17003 cygwin*)
17004 # Convert to unix form, then to dos form, then back to unix form
17005 # but this time dos style (no spaces!) so that the unix form looks
17006 # like /cygdrive/c/PROGRA~1:/cygdr...
17007 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17008 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17009 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17010 ;;
17011 *)
17012 sys_lib_search_path_spec="$LIB"
17013 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17014 # It is most probably a Windows format PATH.
17015 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17016 else
17017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018 fi
17019 # FIXME: find the short name or the path components, as spaces are
17020 # common. (e.g. "Program Files" -> "PROGRA~1")
17021 ;;
17022 esac
17023
17024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17025 postinstall_cmds='base_file=`basename \${file}`~
17026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17027 dldir=$destdir/`dirname \$dlpath`~
17028 test -d \$dldir || mkdir -p \$dldir~
17029 $install_prog $dir/$dlname \$dldir/$dlname'
17030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17031 dlpath=$dir/\$dldll~
17032 $RM \$dlpath'
17033 shlibpath_overrides_runpath=yes
17034 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017035 ;;
17036
17037 *)
cristyda16f162011-02-19 23:52:17 +000017038 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017040 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017041 ;;
17042 esac
cristy73bd4a52010-10-05 11:24:23 +000017043 # FIXME: first we should search . and the directory the executable is in
17044 shlibpath_var=PATH
17045 ;;
17046
17047darwin* | rhapsody*)
17048 dynamic_linker="$host_os dyld"
17049 version_type=darwin
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17053 soname_spec='${libname}${release}${major}$shared_ext'
17054 shlibpath_overrides_runpath=yes
17055 shlibpath_var=DYLD_LIBRARY_PATH
17056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17057
17058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17060 ;;
17061
17062dgux*)
cristy99bd5232011-12-07 14:38:20 +000017063 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 ;;
17070
cristy73bd4a52010-10-05 11:24:23 +000017071freebsd* | dragonfly*)
17072 # DragonFly does not have aout. When/if they implement a new
17073 # versioning mechanism, adjust this.
17074 if test -x /usr/bin/objformat; then
17075 objformat=`/usr/bin/objformat`
17076 else
17077 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017078 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017079 *) objformat=elf ;;
17080 esac
17081 fi
17082 version_type=freebsd-$objformat
17083 case $version_type in
17084 freebsd-elf*)
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17086 need_version=no
17087 need_lib_prefix=no
17088 ;;
17089 freebsd-*)
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091 need_version=yes
17092 ;;
17093 esac
17094 shlibpath_var=LD_LIBRARY_PATH
17095 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017096 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017097 shlibpath_overrides_runpath=yes
17098 ;;
17099 freebsd3.[01]* | freebsdelf3.[01]*)
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17102 ;;
17103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17105 shlibpath_overrides_runpath=no
17106 hardcode_into_libs=yes
17107 ;;
17108 *) # from 4.6 on, and DragonFly
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 ;;
17112 esac
17113 ;;
17114
17115gnu*)
cristy99bd5232011-12-07 14:38:20 +000017116 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017122 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017123 hardcode_into_libs=yes
17124 ;;
17125
cristy0c60a692010-11-04 01:09:47 +000017126haiku*)
cristy99bd5232011-12-07 14:38:20 +000017127 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017128 need_lib_prefix=no
17129 need_version=no
17130 dynamic_linker="$host_os runtime_loader"
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 shlibpath_var=LIBRARY_PATH
17134 shlibpath_overrides_runpath=yes
17135 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17136 hardcode_into_libs=yes
17137 ;;
17138
cristy73bd4a52010-10-05 11:24:23 +000017139hpux9* | hpux10* | hpux11*)
17140 # Give a soname corresponding to the major version so that dld.sl refuses to
17141 # link against other versions.
17142 version_type=sunos
17143 need_lib_prefix=no
17144 need_version=no
17145 case $host_cpu in
17146 ia64*)
17147 shrext_cmds='.so'
17148 hardcode_into_libs=yes
17149 dynamic_linker="$host_os dld.so"
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 if test "X$HPUX_IA64_MODE" = X32; then
17155 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17156 else
17157 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17158 fi
17159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17160 ;;
17161 hppa*64*)
17162 shrext_cmds='.sl'
17163 hardcode_into_libs=yes
17164 dynamic_linker="$host_os dld.sl"
17165 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17171 ;;
17172 *)
17173 shrext_cmds='.sl'
17174 dynamic_linker="$host_os dld.sl"
17175 shlibpath_var=SHLIB_PATH
17176 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 ;;
17180 esac
cristy0c60a692010-11-04 01:09:47 +000017181 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017182 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017183 # or fails outright, so override atomically:
17184 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017185 ;;
17186
17187interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017188 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017189 need_lib_prefix=no
17190 need_version=no
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17194 shlibpath_var=LD_LIBRARY_PATH
17195 shlibpath_overrides_runpath=no
17196 hardcode_into_libs=yes
17197 ;;
17198
17199irix5* | irix6* | nonstopux*)
17200 case $host_os in
17201 nonstopux*) version_type=nonstopux ;;
17202 *)
17203 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017204 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017205 else
17206 version_type=irix
17207 fi ;;
17208 esac
17209 need_lib_prefix=no
17210 need_version=no
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17213 case $host_os in
17214 irix5* | nonstopux*)
17215 libsuff= shlibsuff=
17216 ;;
17217 *)
17218 case $LD in # libtool.m4 will add one of these switches to LD
17219 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17220 libsuff= shlibsuff= libmagic=32-bit;;
17221 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17222 libsuff=32 shlibsuff=N32 libmagic=N32;;
17223 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17224 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17225 *) libsuff= shlibsuff= libmagic=never-match;;
17226 esac
17227 ;;
17228 esac
17229 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17230 shlibpath_overrides_runpath=no
17231 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17232 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17233 hardcode_into_libs=yes
17234 ;;
17235
17236# No shared lib support for Linux oldld, aout, or coff.
17237linux*oldld* | linux*aout* | linux*coff*)
17238 dynamic_linker=no
17239 ;;
17240
cristy99bd5232011-12-07 14:38:20 +000017241# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017242linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017243 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017244 need_lib_prefix=no
17245 need_version=no
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017251
cristy73bd4a52010-10-05 11:24:23 +000017252 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017253 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017254 $as_echo_n "(cached) " >&6
17255else
17256 lt_cv_shlibpath_overrides_runpath=no
17257 save_LDFLAGS=$LDFLAGS
17258 save_libdir=$libdir
17259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017262/* end confdefs.h. */
17263
17264int
17265main ()
17266{
17267
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272if ac_fn_c_try_link "$LINENO"; then :
17273 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017274 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017275fi
17276fi
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017279 LDFLAGS=$save_LDFLAGS
17280 libdir=$save_libdir
17281
17282fi
17283
17284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017285
17286 # This implies no fast_install, which is unacceptable.
17287 # Some rework will be needed to allow for fast_install
17288 # before this can be enabled.
17289 hardcode_into_libs=yes
17290
17291 # Add ABI-specific directories to the system library path.
17292 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17293
17294 # Append ld.so.conf contents to the search path
17295 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017296 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 +000017297 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017298
cristy73bd4a52010-10-05 11:24:23 +000017299 fi
17300
17301 # We used to test for /lib/ld.so.1 and disable shared libraries on
17302 # powerpc, because MkLinux only supported shared libraries with the
17303 # GNU dynamic linker. Since this was broken with cross compilers,
17304 # most powerpc-linux boxes support dynamic linking these days and
17305 # people can always --disable-shared, the test was removed, and we
17306 # assume the GNU/Linux dynamic linker is in use.
17307 dynamic_linker='GNU/Linux ld.so'
17308 ;;
17309
17310netbsd*)
17311 version_type=sunos
17312 need_lib_prefix=no
17313 need_version=no
17314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17317 dynamic_linker='NetBSD (a.out) ld.so'
17318 else
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 dynamic_linker='NetBSD ld.elf_so'
17322 fi
17323 shlibpath_var=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath=yes
17325 hardcode_into_libs=yes
17326 ;;
17327
17328newsos6)
cristy99bd5232011-12-07 14:38:20 +000017329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 ;;
17334
17335*nto* | *qnx*)
17336 version_type=qnx
17337 need_lib_prefix=no
17338 need_version=no
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 shlibpath_overrides_runpath=no
17343 hardcode_into_libs=yes
17344 dynamic_linker='ldqnx.so'
17345 ;;
17346
17347openbsd*)
17348 version_type=sunos
17349 sys_lib_dlsearch_path_spec="/usr/lib"
17350 need_lib_prefix=no
17351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17352 case $host_os in
17353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17354 *) need_version=no ;;
17355 esac
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17360 case $host_os in
17361 openbsd2.[89] | openbsd2.[89].*)
17362 shlibpath_overrides_runpath=no
17363 ;;
17364 *)
17365 shlibpath_overrides_runpath=yes
17366 ;;
17367 esac
17368 else
17369 shlibpath_overrides_runpath=yes
17370 fi
17371 ;;
17372
17373os2*)
17374 libname_spec='$name'
17375 shrext_cmds=".dll"
17376 need_lib_prefix=no
17377 library_names_spec='$libname${shared_ext} $libname.a'
17378 dynamic_linker='OS/2 ld.exe'
17379 shlibpath_var=LIBPATH
17380 ;;
17381
17382osf3* | osf4* | osf5*)
17383 version_type=osf
17384 need_lib_prefix=no
17385 need_version=no
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17391 ;;
17392
17393rdos*)
17394 dynamic_linker=no
17395 ;;
17396
17397solaris*)
cristy99bd5232011-12-07 14:38:20 +000017398 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017399 need_lib_prefix=no
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath=yes
17405 hardcode_into_libs=yes
17406 # ldd complains unless libraries are executable
17407 postinstall_cmds='chmod +x $lib'
17408 ;;
17409
17410sunos4*)
17411 version_type=sunos
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=yes
17416 if test "$with_gnu_ld" = yes; then
17417 need_lib_prefix=no
17418 fi
17419 need_version=yes
17420 ;;
17421
17422sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017423 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 case $host_vendor in
17428 sni)
17429 shlibpath_overrides_runpath=no
17430 need_lib_prefix=no
17431 runpath_var=LD_RUN_PATH
17432 ;;
17433 siemens)
17434 need_lib_prefix=no
17435 ;;
17436 motorola)
17437 need_lib_prefix=no
17438 need_version=no
17439 shlibpath_overrides_runpath=no
17440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17441 ;;
17442 esac
17443 ;;
17444
17445sysv4*MP*)
17446 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017447 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017448 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17449 soname_spec='$libname${shared_ext}.$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 fi
17452 ;;
17453
17454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17455 version_type=freebsd-elf
17456 need_lib_prefix=no
17457 need_version=no
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 shlibpath_var=LD_LIBRARY_PATH
17461 shlibpath_overrides_runpath=yes
17462 hardcode_into_libs=yes
17463 if test "$with_gnu_ld" = yes; then
17464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17465 else
17466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17467 case $host_os in
17468 sco3.2v5*)
17469 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17470 ;;
17471 esac
17472 fi
17473 sys_lib_dlsearch_path_spec='/usr/lib'
17474 ;;
17475
17476tpf*)
17477 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017478 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017479 need_lib_prefix=no
17480 need_version=no
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=no
17484 hardcode_into_libs=yes
17485 ;;
17486
17487uts4*)
cristy99bd5232011-12-07 14:38:20 +000017488 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490 soname_spec='${libname}${release}${shared_ext}$major'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 ;;
17493
17494*)
17495 dynamic_linker=no
17496 ;;
17497esac
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17499$as_echo "$dynamic_linker" >&6; }
17500test "$dynamic_linker" = no && can_build_shared=no
17501
17502variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17503if test "$GCC" = yes; then
17504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17505fi
17506
17507if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17508 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17509fi
17510if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17511 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17512fi
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
cristy0c60a692010-11-04 01:09:47 +000017600
17601
17602
17603
17604
cristy73bd4a52010-10-05 11:24:23 +000017605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17606$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17607hardcode_action=
17608if test -n "$hardcode_libdir_flag_spec" ||
17609 test -n "$runpath_var" ||
17610 test "X$hardcode_automatic" = "Xyes" ; then
17611
17612 # We can hardcode non-existent directories.
17613 if test "$hardcode_direct" != no &&
17614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17615 # have to relink, otherwise we might link with an installed library
17616 # when we should be linking with a yet-to-be-installed one
17617 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17618 test "$hardcode_minus_L" != no; then
17619 # Linking always hardcodes the temporary library directory.
17620 hardcode_action=relink
17621 else
17622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17623 hardcode_action=immediate
17624 fi
17625else
17626 # We cannot hardcode anything, or else we can only hardcode existing
17627 # directories.
17628 hardcode_action=unsupported
17629fi
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17631$as_echo "$hardcode_action" >&6; }
17632
17633if test "$hardcode_action" = relink ||
17634 test "$inherit_rpath" = yes; then
17635 # Fast installation is not supported
17636 enable_fast_install=no
17637elif test "$shlibpath_overrides_runpath" = yes ||
17638 test "$enable_shared" = no; then
17639 # Fast installation is not necessary
17640 enable_fast_install=needless
17641fi
17642
17643
17644
17645
17646
17647
17648 if test "x$enable_dlopen" != xyes; then
17649 enable_dlopen=unknown
17650 enable_dlopen_self=unknown
17651 enable_dlopen_self_static=unknown
17652else
17653 lt_cv_dlopen=no
17654 lt_cv_dlopen_libs=
17655
17656 case $host_os in
17657 beos*)
17658 lt_cv_dlopen="load_add_on"
17659 lt_cv_dlopen_libs=
17660 lt_cv_dlopen_self=yes
17661 ;;
17662
17663 mingw* | pw32* | cegcc*)
17664 lt_cv_dlopen="LoadLibrary"
17665 lt_cv_dlopen_libs=
17666 ;;
17667
17668 cygwin*)
17669 lt_cv_dlopen="dlopen"
17670 lt_cv_dlopen_libs=
17671 ;;
17672
17673 darwin*)
17674 # if libdl is installed we need to link against it
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17676$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017677if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017678 $as_echo_n "(cached) " >&6
17679else
17680 ac_check_lib_save_LIBS=$LIBS
17681LIBS="-ldl $LIBS"
17682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683/* end confdefs.h. */
17684
17685/* Override any GCC internal prototype to avoid an error.
17686 Use char because int might match the return type of a GCC
17687 builtin and then its argument prototype would still apply. */
17688#ifdef __cplusplus
17689extern "C"
17690#endif
17691char dlopen ();
17692int
17693main ()
17694{
17695return dlopen ();
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700if ac_fn_c_try_link "$LINENO"; then :
17701 ac_cv_lib_dl_dlopen=yes
17702else
17703 ac_cv_lib_dl_dlopen=no
17704fi
17705rm -f core conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17707LIBS=$ac_check_lib_save_LIBS
17708fi
17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17710$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017711if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17713else
17714
17715 lt_cv_dlopen="dyld"
17716 lt_cv_dlopen_libs=
17717 lt_cv_dlopen_self=yes
17718
17719fi
17720
17721 ;;
17722
17723 *)
17724 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017725if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017726 lt_cv_dlopen="shl_load"
17727else
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17729$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017730if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017731 $as_echo_n "(cached) " >&6
17732else
17733 ac_check_lib_save_LIBS=$LIBS
17734LIBS="-ldld $LIBS"
17735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h. */
17737
17738/* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741#ifdef __cplusplus
17742extern "C"
17743#endif
17744char shl_load ();
17745int
17746main ()
17747{
17748return shl_load ();
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_lib_dld_shl_load=yes
17755else
17756 ac_cv_lib_dld_shl_load=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760LIBS=$ac_check_lib_save_LIBS
17761fi
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17763$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017764if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017765 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17766else
17767 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017768if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017769 lt_cv_dlopen="dlopen"
17770else
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17772$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017773if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017774 $as_echo_n "(cached) " >&6
17775else
17776 ac_check_lib_save_LIBS=$LIBS
17777LIBS="-ldl $LIBS"
17778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h. */
17780
17781/* Override any GCC internal prototype to avoid an error.
17782 Use char because int might match the return type of a GCC
17783 builtin and then its argument prototype would still apply. */
17784#ifdef __cplusplus
17785extern "C"
17786#endif
17787char dlopen ();
17788int
17789main ()
17790{
17791return dlopen ();
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796if ac_fn_c_try_link "$LINENO"; then :
17797 ac_cv_lib_dl_dlopen=yes
17798else
17799 ac_cv_lib_dl_dlopen=no
17800fi
17801rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803LIBS=$ac_check_lib_save_LIBS
17804fi
17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017807if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17809else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17811$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017812if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017813 $as_echo_n "(cached) " >&6
17814else
17815 ac_check_lib_save_LIBS=$LIBS
17816LIBS="-lsvld $LIBS"
17817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h. */
17819
17820/* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823#ifdef __cplusplus
17824extern "C"
17825#endif
17826char dlopen ();
17827int
17828main ()
17829{
17830return dlopen ();
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835if ac_fn_c_try_link "$LINENO"; then :
17836 ac_cv_lib_svld_dlopen=yes
17837else
17838 ac_cv_lib_svld_dlopen=no
17839fi
17840rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842LIBS=$ac_check_lib_save_LIBS
17843fi
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17845$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017846if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017847 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17848else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17850$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017851if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017852 $as_echo_n "(cached) " >&6
17853else
17854 ac_check_lib_save_LIBS=$LIBS
17855LIBS="-ldld $LIBS"
17856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857/* end confdefs.h. */
17858
17859/* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17862#ifdef __cplusplus
17863extern "C"
17864#endif
17865char dld_link ();
17866int
17867main ()
17868{
17869return dld_link ();
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_dld_dld_link=yes
17876else
17877 ac_cv_lib_dld_dld_link=no
17878fi
17879rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881LIBS=$ac_check_lib_save_LIBS
17882fi
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17884$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017885if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17887fi
17888
17889
17890fi
17891
17892
17893fi
17894
17895
17896fi
17897
17898
17899fi
17900
17901
17902fi
17903
17904 ;;
17905 esac
17906
17907 if test "x$lt_cv_dlopen" != xno; then
17908 enable_dlopen=yes
17909 else
17910 enable_dlopen=no
17911 fi
17912
17913 case $lt_cv_dlopen in
17914 dlopen)
17915 save_CPPFLAGS="$CPPFLAGS"
17916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17917
17918 save_LDFLAGS="$LDFLAGS"
17919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17920
17921 save_LIBS="$LIBS"
17922 LIBS="$lt_cv_dlopen_libs $LIBS"
17923
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17925$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017926if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017927 $as_echo_n "(cached) " >&6
17928else
17929 if test "$cross_compiling" = yes; then :
17930 lt_cv_dlopen_self=cross
17931else
17932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17933 lt_status=$lt_dlunknown
17934 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017935#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017936#include "confdefs.h"
17937
17938#if HAVE_DLFCN_H
17939#include <dlfcn.h>
17940#endif
17941
17942#include <stdio.h>
17943
17944#ifdef RTLD_GLOBAL
17945# define LT_DLGLOBAL RTLD_GLOBAL
17946#else
17947# ifdef DL_GLOBAL
17948# define LT_DLGLOBAL DL_GLOBAL
17949# else
17950# define LT_DLGLOBAL 0
17951# endif
17952#endif
17953
17954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17955 find out it does not work in some platform. */
17956#ifndef LT_DLLAZY_OR_NOW
17957# ifdef RTLD_LAZY
17958# define LT_DLLAZY_OR_NOW RTLD_LAZY
17959# else
17960# ifdef DL_LAZY
17961# define LT_DLLAZY_OR_NOW DL_LAZY
17962# else
17963# ifdef RTLD_NOW
17964# define LT_DLLAZY_OR_NOW RTLD_NOW
17965# else
17966# ifdef DL_NOW
17967# define LT_DLLAZY_OR_NOW DL_NOW
17968# else
17969# define LT_DLLAZY_OR_NOW 0
17970# endif
17971# endif
17972# endif
17973# endif
17974#endif
17975
cristy0c60a692010-11-04 01:09:47 +000017976/* When -fvisbility=hidden is used, assume the code has been annotated
17977 correspondingly for the symbols needed. */
17978#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017979int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017980#endif
17981
cristyda16f162011-02-19 23:52:17 +000017982int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017983int main ()
17984{
17985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17986 int status = $lt_dlunknown;
17987
17988 if (self)
17989 {
17990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017991 else
17992 {
17993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17994 else puts (dlerror ());
17995 }
cristy73bd4a52010-10-05 11:24:23 +000017996 /* dlclose (self); */
17997 }
17998 else
17999 puts (dlerror ());
18000
18001 return status;
18002}
18003_LT_EOF
18004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18005 (eval $ac_link) 2>&5
18006 ac_status=$?
18007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18009 (./conftest; exit; ) >&5 2>/dev/null
18010 lt_status=$?
18011 case x$lt_status in
18012 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18013 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18014 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18015 esac
18016 else :
18017 # compilation failed
18018 lt_cv_dlopen_self=no
18019 fi
18020fi
18021rm -fr conftest*
18022
18023
18024fi
18025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18026$as_echo "$lt_cv_dlopen_self" >&6; }
18027
18028 if test "x$lt_cv_dlopen_self" = xyes; then
18029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18031$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018032if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018033 $as_echo_n "(cached) " >&6
18034else
18035 if test "$cross_compiling" = yes; then :
18036 lt_cv_dlopen_self_static=cross
18037else
18038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18039 lt_status=$lt_dlunknown
18040 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018041#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018042#include "confdefs.h"
18043
18044#if HAVE_DLFCN_H
18045#include <dlfcn.h>
18046#endif
18047
18048#include <stdio.h>
18049
18050#ifdef RTLD_GLOBAL
18051# define LT_DLGLOBAL RTLD_GLOBAL
18052#else
18053# ifdef DL_GLOBAL
18054# define LT_DLGLOBAL DL_GLOBAL
18055# else
18056# define LT_DLGLOBAL 0
18057# endif
18058#endif
18059
18060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18061 find out it does not work in some platform. */
18062#ifndef LT_DLLAZY_OR_NOW
18063# ifdef RTLD_LAZY
18064# define LT_DLLAZY_OR_NOW RTLD_LAZY
18065# else
18066# ifdef DL_LAZY
18067# define LT_DLLAZY_OR_NOW DL_LAZY
18068# else
18069# ifdef RTLD_NOW
18070# define LT_DLLAZY_OR_NOW RTLD_NOW
18071# else
18072# ifdef DL_NOW
18073# define LT_DLLAZY_OR_NOW DL_NOW
18074# else
18075# define LT_DLLAZY_OR_NOW 0
18076# endif
18077# endif
18078# endif
18079# endif
18080#endif
18081
cristy0c60a692010-11-04 01:09:47 +000018082/* When -fvisbility=hidden is used, assume the code has been annotated
18083 correspondingly for the symbols needed. */
18084#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018085int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018086#endif
18087
cristyda16f162011-02-19 23:52:17 +000018088int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018089int main ()
18090{
18091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18092 int status = $lt_dlunknown;
18093
18094 if (self)
18095 {
18096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018097 else
18098 {
18099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18100 else puts (dlerror ());
18101 }
cristy73bd4a52010-10-05 11:24:23 +000018102 /* dlclose (self); */
18103 }
18104 else
18105 puts (dlerror ());
18106
18107 return status;
18108}
18109_LT_EOF
18110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18111 (eval $ac_link) 2>&5
18112 ac_status=$?
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18115 (./conftest; exit; ) >&5 2>/dev/null
18116 lt_status=$?
18117 case x$lt_status in
18118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18121 esac
18122 else :
18123 # compilation failed
18124 lt_cv_dlopen_self_static=no
18125 fi
18126fi
18127rm -fr conftest*
18128
18129
18130fi
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18132$as_echo "$lt_cv_dlopen_self_static" >&6; }
18133 fi
18134
18135 CPPFLAGS="$save_CPPFLAGS"
18136 LDFLAGS="$save_LDFLAGS"
18137 LIBS="$save_LIBS"
18138 ;;
18139 esac
18140
18141 case $lt_cv_dlopen_self in
18142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18143 *) enable_dlopen_self=unknown ;;
18144 esac
18145
18146 case $lt_cv_dlopen_self_static in
18147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18148 *) enable_dlopen_self_static=unknown ;;
18149 esac
18150fi
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168striplib=
18169old_striplib=
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18171$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18172if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18176$as_echo "yes" >&6; }
18177else
18178# FIXME - insert some real tests, host_os isn't really good enough
18179 case $host_os in
18180 darwin*)
18181 if test -n "$STRIP" ; then
18182 striplib="$STRIP -x"
18183 old_striplib="$STRIP -S"
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185$as_echo "yes" >&6; }
18186 else
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188$as_echo "no" >&6; }
18189 fi
18190 ;;
18191 *)
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193$as_echo "no" >&6; }
18194 ;;
18195 esac
18196fi
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209 # Report which library types will actually be built
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18211$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18213$as_echo "$can_build_shared" >&6; }
18214
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18216$as_echo_n "checking whether to build shared libraries... " >&6; }
18217 test "$can_build_shared" = "no" && enable_shared=no
18218
18219 # On AIX, shared libraries and static libraries use the same namespace, and
18220 # are all built from PIC.
18221 case $host_os in
18222 aix3*)
18223 test "$enable_shared" = yes && enable_static=no
18224 if test -n "$RANLIB"; then
18225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18226 postinstall_cmds='$RANLIB $lib'
18227 fi
18228 ;;
18229
18230 aix[4-9]*)
18231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18232 test "$enable_shared" = yes && enable_static=no
18233 fi
18234 ;;
18235 esac
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18237$as_echo "$enable_shared" >&6; }
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18240$as_echo_n "checking whether to build static libraries... " >&6; }
18241 # Make sure either enable_shared or enable_static is yes.
18242 test "$enable_shared" = yes || enable_static=yes
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18244$as_echo "$enable_static" >&6; }
18245
18246
18247
18248
18249fi
18250ac_ext=c
18251ac_cpp='$CPP $CPPFLAGS'
18252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254ac_compiler_gnu=$ac_cv_c_compiler_gnu
18255
18256CC="$lt_save_CC"
18257
cristy0c60a692010-11-04 01:09:47 +000018258 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18259 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18260 (test "X$CXX" != "Xg++"))) ; then
18261 ac_ext=cpp
18262ac_cpp='$CXXCPP $CPPFLAGS'
18263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18267$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18268if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018269 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018270 $as_echo_n "(cached) " >&6
18271else
18272 # Double quotes because CXXCPP needs to be expanded
18273 for CXXCPP in "$CXX -E" "/lib/cpp"
18274 do
18275 ac_preproc_ok=false
18276for ac_cxx_preproc_warn_flag in '' yes
18277do
18278 # Use a header file that comes with gcc, so configuring glibc
18279 # with a fresh cross-compiler works.
18280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 # <limits.h> exists even on freestanding compilers.
18282 # On the NeXT, cc -E runs the code through the compiler's parser,
18283 # not just through cpp. "Syntax error" is here to catch this case.
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285/* end confdefs.h. */
18286#ifdef __STDC__
18287# include <limits.h>
18288#else
18289# include <assert.h>
18290#endif
18291 Syntax error
18292_ACEOF
18293if ac_fn_cxx_try_cpp "$LINENO"; then :
18294
18295else
18296 # Broken: fails on valid input.
18297continue
18298fi
cristyda16f162011-02-19 23:52:17 +000018299rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018300
18301 # OK, works on sane cases. Now check whether nonexistent headers
18302 # can be detected and how.
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304/* end confdefs.h. */
18305#include <ac_nonexistent.h>
18306_ACEOF
18307if ac_fn_cxx_try_cpp "$LINENO"; then :
18308 # Broken: success on invalid input.
18309continue
18310else
18311 # Passes both tests.
18312ac_preproc_ok=:
18313break
18314fi
cristyda16f162011-02-19 23:52:17 +000018315rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018316
18317done
18318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018319rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018320if $ac_preproc_ok; then :
18321 break
18322fi
18323
18324 done
18325 ac_cv_prog_CXXCPP=$CXXCPP
18326
18327fi
18328 CXXCPP=$ac_cv_prog_CXXCPP
18329else
18330 ac_cv_prog_CXXCPP=$CXXCPP
18331fi
18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18333$as_echo "$CXXCPP" >&6; }
18334ac_preproc_ok=false
18335for ac_cxx_preproc_warn_flag in '' yes
18336do
18337 # Use a header file that comes with gcc, so configuring glibc
18338 # with a fresh cross-compiler works.
18339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 # <limits.h> exists even on freestanding compilers.
18341 # On the NeXT, cc -E runs the code through the compiler's parser,
18342 # not just through cpp. "Syntax error" is here to catch this case.
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344/* end confdefs.h. */
18345#ifdef __STDC__
18346# include <limits.h>
18347#else
18348# include <assert.h>
18349#endif
18350 Syntax error
18351_ACEOF
18352if ac_fn_cxx_try_cpp "$LINENO"; then :
18353
18354else
18355 # Broken: fails on valid input.
18356continue
18357fi
cristyda16f162011-02-19 23:52:17 +000018358rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018359
18360 # OK, works on sane cases. Now check whether nonexistent headers
18361 # can be detected and how.
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363/* end confdefs.h. */
18364#include <ac_nonexistent.h>
18365_ACEOF
18366if ac_fn_cxx_try_cpp "$LINENO"; then :
18367 # Broken: success on invalid input.
18368continue
18369else
18370 # Passes both tests.
18371ac_preproc_ok=:
18372break
18373fi
cristyda16f162011-02-19 23:52:17 +000018374rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018375
18376done
18377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018378rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018379if $ac_preproc_ok; then :
18380
18381else
18382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18384as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18385See \`config.log' for more details" "$LINENO" 5; }
18386fi
18387
18388ac_ext=c
18389ac_cpp='$CPP $CPPFLAGS'
18390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392ac_compiler_gnu=$ac_cv_c_compiler_gnu
18393
18394else
18395 _lt_caught_CXX_error=yes
18396fi
cristy73bd4a52010-10-05 11:24:23 +000018397
18398ac_ext=cpp
18399ac_cpp='$CXXCPP $CPPFLAGS'
18400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18403
18404archive_cmds_need_lc_CXX=no
18405allow_undefined_flag_CXX=
18406always_export_symbols_CXX=no
18407archive_expsym_cmds_CXX=
18408compiler_needs_object_CXX=no
18409export_dynamic_flag_spec_CXX=
18410hardcode_direct_CXX=no
18411hardcode_direct_absolute_CXX=no
18412hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018413hardcode_libdir_separator_CXX=
18414hardcode_minus_L_CXX=no
18415hardcode_shlibpath_var_CXX=unsupported
18416hardcode_automatic_CXX=no
18417inherit_rpath_CXX=no
18418module_cmds_CXX=
18419module_expsym_cmds_CXX=
18420link_all_deplibs_CXX=unknown
18421old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018422reload_flag_CXX=$reload_flag
18423reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018424no_undefined_flag_CXX=
18425whole_archive_flag_spec_CXX=
18426enable_shared_with_static_runtimes_CXX=no
18427
18428# Source file extension for C++ test sources.
18429ac_ext=cpp
18430
18431# Object file extension for compiled C++ test sources.
18432objext=o
18433objext_CXX=$objext
18434
18435# No sense in running all these tests if we already determined that
18436# the CXX compiler isn't working. Some variables (like enable_shared)
18437# are currently assumed to apply to all compilers on this platform,
18438# and will be corrupted by setting them based on a non-working compiler.
18439if test "$_lt_caught_CXX_error" != yes; then
18440 # Code to be used in simple compile tests
18441 lt_simple_compile_test_code="int some_variable = 0;"
18442
18443 # Code to be used in simple link tests
18444 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18445
18446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18447
18448
18449
18450
18451
18452
18453# If no C compiler was specified, use CC.
18454LTCC=${LTCC-"$CC"}
18455
18456# If no C compiler flags were specified, use CFLAGS.
18457LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18458
18459# Allow CC to be a program name with arguments.
18460compiler=$CC
18461
18462
18463 # save warnings/boilerplate of simple test code
18464 ac_outfile=conftest.$ac_objext
18465echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18466eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18467_lt_compiler_boilerplate=`cat conftest.err`
18468$RM conftest*
18469
18470 ac_outfile=conftest.$ac_objext
18471echo "$lt_simple_link_test_code" >conftest.$ac_ext
18472eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18473_lt_linker_boilerplate=`cat conftest.err`
18474$RM -r conftest*
18475
18476
18477 # Allow CC to be a program name with arguments.
18478 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018479 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018480 lt_save_LD=$LD
18481 lt_save_GCC=$GCC
18482 GCC=$GXX
18483 lt_save_with_gnu_ld=$with_gnu_ld
18484 lt_save_path_LD=$lt_cv_path_LD
18485 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18486 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18487 else
18488 $as_unset lt_cv_prog_gnu_ld
18489 fi
18490 if test -n "${lt_cv_path_LDCXX+set}"; then
18491 lt_cv_path_LD=$lt_cv_path_LDCXX
18492 else
18493 $as_unset lt_cv_path_LD
18494 fi
18495 test -z "${LDCXX+set}" || LD=$LDCXX
18496 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018497 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018498 compiler=$CC
18499 compiler_CXX=$CC
18500 for cc_temp in $compiler""; do
18501 case $cc_temp in
18502 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18503 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18504 \-*) ;;
18505 *) break;;
18506 esac
18507done
cristy0c60a692010-11-04 01:09:47 +000018508cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018509
18510
18511 if test -n "$compiler"; then
18512 # We don't want -fno-exception when compiling C++ code, so set the
18513 # no_builtin_flag separately
18514 if test "$GXX" = yes; then
18515 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18516 else
18517 lt_prog_compiler_no_builtin_flag_CXX=
18518 fi
18519
18520 if test "$GXX" = yes; then
18521 # Set up default GNU C++ configuration
18522
18523
18524
18525# Check whether --with-gnu-ld was given.
18526if test "${with_gnu_ld+set}" = set; then :
18527 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18528else
18529 with_gnu_ld=no
18530fi
18531
18532ac_prog=ld
18533if test "$GCC" = yes; then
18534 # Check if gcc -print-prog-name=ld gives a path.
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18536$as_echo_n "checking for ld used by $CC... " >&6; }
18537 case $host in
18538 *-*-mingw*)
18539 # gcc leaves a trailing carriage return which upsets mingw
18540 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18541 *)
18542 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18543 esac
18544 case $ac_prog in
18545 # Accept absolute paths.
18546 [\\/]* | ?:[\\/]*)
18547 re_direlt='/[^/][^/]*/\.\./'
18548 # Canonicalize the pathname of ld
18549 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18550 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18551 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18552 done
18553 test -z "$LD" && LD="$ac_prog"
18554 ;;
18555 "")
18556 # If it fails, then pretend we aren't using GCC.
18557 ac_prog=ld
18558 ;;
18559 *)
18560 # If it is relative, then search for the first ld in PATH.
18561 with_gnu_ld=unknown
18562 ;;
18563 esac
18564elif test "$with_gnu_ld" = yes; then
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18566$as_echo_n "checking for GNU ld... " >&6; }
18567else
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18569$as_echo_n "checking for non-GNU ld... " >&6; }
18570fi
cristyda16f162011-02-19 23:52:17 +000018571if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018572 $as_echo_n "(cached) " >&6
18573else
18574 if test -z "$LD"; then
18575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18576 for ac_dir in $PATH; do
18577 IFS="$lt_save_ifs"
18578 test -z "$ac_dir" && ac_dir=.
18579 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18580 lt_cv_path_LD="$ac_dir/$ac_prog"
18581 # Check to see if the program is GNU ld. I'd rather use --version,
18582 # but apparently some variants of GNU ld only accept -v.
18583 # Break only if it was the GNU/non-GNU ld that we prefer.
18584 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18585 *GNU* | *'with BFD'*)
18586 test "$with_gnu_ld" != no && break
18587 ;;
18588 *)
18589 test "$with_gnu_ld" != yes && break
18590 ;;
18591 esac
18592 fi
18593 done
18594 IFS="$lt_save_ifs"
18595else
18596 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18597fi
18598fi
18599
18600LD="$lt_cv_path_LD"
18601if test -n "$LD"; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18603$as_echo "$LD" >&6; }
18604else
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606$as_echo "no" >&6; }
18607fi
cristy98dddb52010-11-04 00:30:15 +000018608test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18610$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018611if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018612 $as_echo_n "(cached) " >&6
18613else
18614 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18615case `$LD -v 2>&1 </dev/null` in
18616*GNU* | *'with BFD'*)
18617 lt_cv_prog_gnu_ld=yes
18618 ;;
18619*)
18620 lt_cv_prog_gnu_ld=no
18621 ;;
18622esac
18623fi
18624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18625$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18626with_gnu_ld=$lt_cv_prog_gnu_ld
18627
18628
18629
18630
18631
18632
18633
18634 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18635 # archiving commands below assume that GNU ld is being used.
18636 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018637 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638 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 +000018639
18640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642
18643 # If archive_cmds runs LD, not CC, wlarc should be empty
18644 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18645 # investigate it a little bit more. (MM)
18646 wlarc='${wl}'
18647
18648 # ancient GNU ld didn't support --whole-archive et. al.
18649 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18650 $GREP 'no-whole-archive' > /dev/null; then
18651 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18652 else
18653 whole_archive_flag_spec_CXX=
18654 fi
18655 else
18656 with_gnu_ld=no
18657 wlarc=
18658
18659 # A generic and very simple default shared library creation
18660 # command for GNU C++ for the case where it uses the native
18661 # linker, instead of GNU ld. If possible, this setting should
18662 # overridden to take advantage of the native linker features on
18663 # the platform it is being used on.
18664 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18665 fi
18666
18667 # Commands to make compiler produce verbose output that lists
18668 # what "hidden" libraries, object files and flags are used when
18669 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018671
18672 else
18673 GXX=no
18674 with_gnu_ld=no
18675 wlarc=
18676 fi
18677
18678 # PORTME: fill in a description of your system's C++ link characteristics
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18680$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18681 ld_shlibs_CXX=yes
18682 case $host_os in
18683 aix3*)
18684 # FIXME: insert proper C++ library support
18685 ld_shlibs_CXX=no
18686 ;;
18687 aix[4-9]*)
18688 if test "$host_cpu" = ia64; then
18689 # On IA64, the linker does run time linking by default, so we don't
18690 # have to do anything special.
18691 aix_use_runtimelinking=no
18692 exp_sym_flag='-Bexport'
18693 no_entry_flag=""
18694 else
18695 aix_use_runtimelinking=no
18696
18697 # Test if we are trying to use run time linking or normal
18698 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18699 # need to do runtime linking.
18700 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18701 for ld_flag in $LDFLAGS; do
18702 case $ld_flag in
18703 *-brtl*)
18704 aix_use_runtimelinking=yes
18705 break
18706 ;;
18707 esac
18708 done
18709 ;;
18710 esac
18711
18712 exp_sym_flag='-bexport'
18713 no_entry_flag='-bnoentry'
18714 fi
18715
18716 # When large executables or shared objects are built, AIX ld can
18717 # have problems creating the table of contents. If linking a library
18718 # or program results in "error TOC overflow" add -mminimal-toc to
18719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18721
18722 archive_cmds_CXX=''
18723 hardcode_direct_CXX=yes
18724 hardcode_direct_absolute_CXX=yes
18725 hardcode_libdir_separator_CXX=':'
18726 link_all_deplibs_CXX=yes
18727 file_list_spec_CXX='${wl}-f,'
18728
18729 if test "$GXX" = yes; then
18730 case $host_os in aix4.[012]|aix4.[012].*)
18731 # We only want to do this on AIX 4.2 and lower, the check
18732 # below for broken collect2 doesn't work under 4.3+
18733 collect2name=`${CC} -print-prog-name=collect2`
18734 if test -f "$collect2name" &&
18735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18736 then
18737 # We have reworked collect2
18738 :
18739 else
18740 # We have old collect2
18741 hardcode_direct_CXX=unsupported
18742 # It fails to find uninstalled libraries when the uninstalled
18743 # path is not listed in the libpath. Setting hardcode_minus_L
18744 # to unsupported forces relinking
18745 hardcode_minus_L_CXX=yes
18746 hardcode_libdir_flag_spec_CXX='-L$libdir'
18747 hardcode_libdir_separator_CXX=
18748 fi
18749 esac
18750 shared_flag='-shared'
18751 if test "$aix_use_runtimelinking" = yes; then
18752 shared_flag="$shared_flag "'${wl}-G'
18753 fi
18754 else
18755 # not using gcc
18756 if test "$host_cpu" = ia64; then
18757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18758 # chokes on -Wl,-G. The following line is correct:
18759 shared_flag='-G'
18760 else
18761 if test "$aix_use_runtimelinking" = yes; then
18762 shared_flag='${wl}-G'
18763 else
18764 shared_flag='${wl}-bM:SRE'
18765 fi
18766 fi
18767 fi
18768
18769 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18770 # It seems that -bexpall does not export symbols beginning with
18771 # underscore (_), so it is better to generate a list of symbols to
18772 # export.
18773 always_export_symbols_CXX=yes
18774 if test "$aix_use_runtimelinking" = yes; then
18775 # Warning - without using the other runtime loading flags (-brtl),
18776 # -berok will link without error, but may produce a broken library.
18777 allow_undefined_flag_CXX='-berok'
18778 # Determine the default libpath from the value encoded in an empty
18779 # executable.
cristyda16f162011-02-19 23:52:17 +000018780 if test "${lt_cv_aix_libpath+set}" = set; then
18781 aix_libpath=$lt_cv_aix_libpath
18782else
18783 if ${lt_cv_aix_libpath__CXX+:} false; then :
18784 $as_echo_n "(cached) " >&6
18785else
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018787/* end confdefs.h. */
18788
18789int
18790main ()
18791{
18792
18793 ;
18794 return 0;
18795}
18796_ACEOF
18797if ac_fn_cxx_try_link "$LINENO"; then :
18798
cristyda16f162011-02-19 23:52:17 +000018799 lt_aix_libpath_sed='
18800 /Import File Strings/,/^$/ {
18801 /^0/ {
18802 s/^0 *\([^ ]*\) *$/\1/
18803 p
18804 }
18805 }'
18806 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18807 # Check for a 64-bit object if we didn't find anything.
18808 if test -z "$lt_cv_aix_libpath__CXX"; then
18809 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18810 fi
cristy73bd4a52010-10-05 11:24:23 +000018811fi
18812rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018814 if test -z "$lt_cv_aix_libpath__CXX"; then
18815 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18816 fi
18817
18818fi
18819
18820 aix_libpath=$lt_cv_aix_libpath__CXX
18821fi
cristy73bd4a52010-10-05 11:24:23 +000018822
18823 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18824
cristy0c60a692010-11-04 01:09:47 +000018825 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 +000018826 else
18827 if test "$host_cpu" = ia64; then
18828 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18829 allow_undefined_flag_CXX="-z nodefs"
18830 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"
18831 else
18832 # Determine the default libpath from the value encoded in an
18833 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018834 if test "${lt_cv_aix_libpath+set}" = set; then
18835 aix_libpath=$lt_cv_aix_libpath
18836else
18837 if ${lt_cv_aix_libpath__CXX+:} false; then :
18838 $as_echo_n "(cached) " >&6
18839else
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018841/* end confdefs.h. */
18842
18843int
18844main ()
18845{
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851if ac_fn_cxx_try_link "$LINENO"; then :
18852
cristyda16f162011-02-19 23:52:17 +000018853 lt_aix_libpath_sed='
18854 /Import File Strings/,/^$/ {
18855 /^0/ {
18856 s/^0 *\([^ ]*\) *$/\1/
18857 p
18858 }
18859 }'
18860 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18861 # Check for a 64-bit object if we didn't find anything.
18862 if test -z "$lt_cv_aix_libpath__CXX"; then
18863 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18864 fi
cristy73bd4a52010-10-05 11:24:23 +000018865fi
18866rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018868 if test -z "$lt_cv_aix_libpath__CXX"; then
18869 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18870 fi
18871
18872fi
18873
18874 aix_libpath=$lt_cv_aix_libpath__CXX
18875fi
cristy73bd4a52010-10-05 11:24:23 +000018876
18877 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18878 # Warning - without using the other run time loading flags,
18879 # -berok will link without error, but may produce a broken library.
18880 no_undefined_flag_CXX=' ${wl}-bernotok'
18881 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018882 if test "$with_gnu_ld" = yes; then
18883 # We only use this code for GNU lds that support --whole-archive.
18884 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18885 else
18886 # Exported symbols can be pulled into shared objects from archives
18887 whole_archive_flag_spec_CXX='$convenience'
18888 fi
cristy73bd4a52010-10-05 11:24:23 +000018889 archive_cmds_need_lc_CXX=yes
18890 # This is similar to how AIX traditionally builds its shared
18891 # libraries.
18892 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'
18893 fi
18894 fi
18895 ;;
18896
18897 beos*)
18898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18899 allow_undefined_flag_CXX=unsupported
18900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18901 # support --undefined. This deserves some investigation. FIXME
18902 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18903 else
18904 ld_shlibs_CXX=no
18905 fi
18906 ;;
18907
18908 chorus*)
18909 case $cc_basename in
18910 *)
18911 # FIXME: insert proper C++ library support
18912 ld_shlibs_CXX=no
18913 ;;
18914 esac
18915 ;;
18916
18917 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018918 case $GXX,$cc_basename in
18919 ,cl* | no,cl*)
18920 # Native MSVC
18921 # hardcode_libdir_flag_spec is actually meaningless, as there is
18922 # no search path for DLLs.
18923 hardcode_libdir_flag_spec_CXX=' '
18924 allow_undefined_flag_CXX=unsupported
18925 always_export_symbols_CXX=yes
18926 file_list_spec_CXX='@'
18927 # Tell ltmain to make .lib files, not .a files.
18928 libext=lib
18929 # Tell ltmain to make .dll files, not .so files.
18930 shrext_cmds=".dll"
18931 # FIXME: Setting linknames here is a bad hack.
18932 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18933 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18934 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18935 else
18936 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18937 fi~
18938 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18939 linknames='
18940 # The linker will not automatically build a static lib if we build a DLL.
18941 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18942 enable_shared_with_static_runtimes_CXX=yes
18943 # Don't use ranlib
18944 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18945 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18946 lt_tool_outputfile="@TOOL_OUTPUT@"~
18947 case $lt_outputfile in
18948 *.exe|*.EXE) ;;
18949 *)
18950 lt_outputfile="$lt_outputfile.exe"
18951 lt_tool_outputfile="$lt_tool_outputfile.exe"
18952 ;;
18953 esac~
18954 func_to_tool_file "$lt_outputfile"~
18955 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18957 $RM "$lt_outputfile.manifest";
18958 fi'
18959 ;;
18960 *)
18961 # g++
18962 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18963 # as there is no search path for DLLs.
18964 hardcode_libdir_flag_spec_CXX='-L$libdir'
18965 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18966 allow_undefined_flag_CXX=unsupported
18967 always_export_symbols_CXX=no
18968 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018969
cristyda16f162011-02-19 23:52:17 +000018970 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18971 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'
18972 # If the export-symbols file already is a .def file (1st line
18973 # is EXPORTS), use it as is; otherwise, prepend...
18974 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18975 cp $export_symbols $output_objdir/$soname.def;
18976 else
18977 echo EXPORTS > $output_objdir/$soname.def;
18978 cat $export_symbols >> $output_objdir/$soname.def;
18979 fi~
18980 $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'
18981 else
18982 ld_shlibs_CXX=no
18983 fi
18984 ;;
18985 esac
18986 ;;
cristy73bd4a52010-10-05 11:24:23 +000018987 darwin* | rhapsody*)
18988
18989
18990 archive_cmds_need_lc_CXX=no
18991 hardcode_direct_CXX=no
18992 hardcode_automatic_CXX=yes
18993 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018994 if test "$lt_cv_ld_force_load" = "yes"; then
18995 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 +000018996
cristy0c60a692010-11-04 01:09:47 +000018997 else
18998 whole_archive_flag_spec_CXX=''
18999 fi
cristy73bd4a52010-10-05 11:24:23 +000019000 link_all_deplibs_CXX=yes
19001 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19002 case $cc_basename in
19003 ifort*) _lt_dar_can_shared=yes ;;
19004 *) _lt_dar_can_shared=$GCC ;;
19005 esac
19006 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019007 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019008 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}"
19009 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19010 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}"
19011 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}"
19012 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19013 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}"
19014 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}"
19015 fi
19016
19017 else
19018 ld_shlibs_CXX=no
19019 fi
19020
19021 ;;
19022
19023 dgux*)
19024 case $cc_basename in
19025 ec++*)
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 ghcx*)
19030 # Green Hills C++ Compiler
19031 # FIXME: insert proper C++ library support
19032 ld_shlibs_CXX=no
19033 ;;
19034 *)
19035 # FIXME: insert proper C++ library support
19036 ld_shlibs_CXX=no
19037 ;;
19038 esac
19039 ;;
19040
cristy99bd5232011-12-07 14:38:20 +000019041 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019042 # C++ shared libraries reported to be fairly broken before
19043 # switch to ELF
19044 ld_shlibs_CXX=no
19045 ;;
19046
19047 freebsd-elf*)
19048 archive_cmds_need_lc_CXX=no
19049 ;;
19050
19051 freebsd* | dragonfly*)
19052 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19053 # conventions
19054 ld_shlibs_CXX=yes
19055 ;;
19056
19057 gnu*)
19058 ;;
19059
cristy0c60a692010-11-04 01:09:47 +000019060 haiku*)
19061 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062 link_all_deplibs_CXX=yes
19063 ;;
19064
cristy73bd4a52010-10-05 11:24:23 +000019065 hpux9*)
19066 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19067 hardcode_libdir_separator_CXX=:
19068 export_dynamic_flag_spec_CXX='${wl}-E'
19069 hardcode_direct_CXX=yes
19070 hardcode_minus_L_CXX=yes # Not in the search PATH,
19071 # but as the default
19072 # location of the library.
19073
19074 case $cc_basename in
19075 CC*)
19076 # FIXME: insert proper C++ library support
19077 ld_shlibs_CXX=no
19078 ;;
19079 aCC*)
19080 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'
19081 # Commands to make compiler produce verbose output that lists
19082 # what "hidden" libraries, object files and flags are used when
19083 # linking a shared library.
19084 #
19085 # There doesn't appear to be a way to prevent this compiler from
19086 # explicitly linking system object files so we need to strip them
19087 # from the output so that they don't get included in the library
19088 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019089 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 +000019090 ;;
19091 *)
19092 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019093 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 +000019094 else
19095 # FIXME: insert proper C++ library support
19096 ld_shlibs_CXX=no
19097 fi
19098 ;;
19099 esac
19100 ;;
19101
19102 hpux10*|hpux11*)
19103 if test $with_gnu_ld = no; then
19104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19105 hardcode_libdir_separator_CXX=:
19106
19107 case $host_cpu in
19108 hppa*64*|ia64*)
19109 ;;
19110 *)
19111 export_dynamic_flag_spec_CXX='${wl}-E'
19112 ;;
19113 esac
19114 fi
19115 case $host_cpu in
19116 hppa*64*|ia64*)
19117 hardcode_direct_CXX=no
19118 hardcode_shlibpath_var_CXX=no
19119 ;;
19120 *)
19121 hardcode_direct_CXX=yes
19122 hardcode_direct_absolute_CXX=yes
19123 hardcode_minus_L_CXX=yes # Not in the search PATH,
19124 # but as the default
19125 # location of the library.
19126 ;;
19127 esac
19128
19129 case $cc_basename in
19130 CC*)
19131 # FIXME: insert proper C++ library support
19132 ld_shlibs_CXX=no
19133 ;;
19134 aCC*)
19135 case $host_cpu in
19136 hppa*64*)
19137 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19138 ;;
19139 ia64*)
19140 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141 ;;
19142 *)
19143 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 ;;
19145 esac
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19149 #
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19153 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019154 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 +000019155 ;;
19156 *)
19157 if test "$GXX" = yes; then
19158 if test $with_gnu_ld = no; then
19159 case $host_cpu in
19160 hppa*64*)
19161 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19162 ;;
19163 ia64*)
cristyda16f162011-02-19 23:52:17 +000019164 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 +000019165 ;;
19166 *)
cristyda16f162011-02-19 23:52:17 +000019167 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 +000019168 ;;
19169 esac
19170 fi
19171 else
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 fi
19175 ;;
19176 esac
19177 ;;
19178
19179 interix[3-9]*)
19180 hardcode_direct_CXX=no
19181 hardcode_shlibpath_var_CXX=no
19182 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19183 export_dynamic_flag_spec_CXX='${wl}-E'
19184 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19185 # Instead, shared libraries are loaded at an image base (0x10000000 by
19186 # default) and relocated if they conflict, which is a slow very memory
19187 # consuming and fragmenting process. To avoid this, we pick a random,
19188 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19189 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19190 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'
19191 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'
19192 ;;
19193 irix5* | irix6*)
19194 case $cc_basename in
19195 CC*)
19196 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019197 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 +000019198
19199 # Archives containing C++ object files must be created using
19200 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19201 # necessary to make sure instantiated templates are included
19202 # in the archive.
19203 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19204 ;;
19205 *)
19206 if test "$GXX" = yes; then
19207 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019208 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 +000019209 else
cristyda16f162011-02-19 23:52:17 +000019210 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 +000019211 fi
19212 fi
19213 link_all_deplibs_CXX=yes
19214 ;;
19215 esac
19216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19217 hardcode_libdir_separator_CXX=:
19218 inherit_rpath_CXX=yes
19219 ;;
19220
cristy0c60a692010-11-04 01:09:47 +000019221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019222 case $cc_basename in
19223 KCC*)
19224 # Kuck and Associates, Inc. (KAI) C++ Compiler
19225
19226 # KCC will only create a shared library if the output file
19227 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19228 # to its proper name (with version) after linking.
19229 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'
19230 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'
19231 # Commands to make compiler produce verbose output that lists
19232 # what "hidden" libraries, object files and flags are used when
19233 # linking a shared library.
19234 #
19235 # There doesn't appear to be a way to prevent this compiler from
19236 # explicitly linking system object files so we need to strip them
19237 # from the output so that they don't get included in the library
19238 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019239 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 +000019240
19241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19243
19244 # Archives containing C++ object files must be created using
19245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19247 ;;
19248 icpc* | ecpc* )
19249 # Intel C++
19250 with_gnu_ld=yes
19251 # version 8.0 and above of icpc choke on multiply defined symbols
19252 # if we add $predep_objects and $postdep_objects, however 7.1 and
19253 # earlier do not add the objects themselves.
19254 case `$CC -V 2>&1` in
19255 *"Version 7."*)
19256 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257 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'
19258 ;;
19259 *) # Version 8.0 or newer
19260 tmp_idyn=
19261 case $host_cpu in
19262 ia64*) tmp_idyn=' -i_dynamic';;
19263 esac
19264 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19265 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'
19266 ;;
19267 esac
19268 archive_cmds_need_lc_CXX=no
19269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19271 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19272 ;;
19273 pgCC* | pgcpp*)
19274 # Portland Group C++ compiler
19275 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019276 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019277 prelink_cmds_CXX='tpldir=Template.dir~
19278 rm -rf $tpldir~
19279 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019280 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019281 old_archive_cmds_CXX='tpldir=Template.dir~
19282 rm -rf $tpldir~
19283 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019284 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019285 $RANLIB $oldlib'
19286 archive_cmds_CXX='tpldir=Template.dir~
19287 rm -rf $tpldir~
19288 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019289 $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 +000019290 archive_expsym_cmds_CXX='tpldir=Template.dir~
19291 rm -rf $tpldir~
19292 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019293 $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 +000019294 ;;
cristy0c60a692010-11-04 01:09:47 +000019295 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019296 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19297 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'
19298 ;;
19299 esac
19300
19301 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019303 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 +000019304 ;;
19305 cxx*)
19306 # Compaq C++
19307 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19308 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'
19309
19310 runpath_var=LD_RUN_PATH
19311 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19312 hardcode_libdir_separator_CXX=:
19313
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19317 #
19318 # There doesn't appear to be a way to prevent this compiler from
19319 # explicitly linking system object files so we need to strip them
19320 # from the output so that they don't get included in the library
19321 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019322 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 +000019323 ;;
cristy0c60a692010-11-04 01:09:47 +000019324 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019325 # IBM XL 8.0 on PPC, with GNU ld
19326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19327 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19328 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 if test "x$supports_anon_versioning" = xyes; then
19330 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19332 echo "local: *; };" >> $output_objdir/$libname.ver~
19333 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19334 fi
19335 ;;
19336 *)
19337 case `$CC -V 2>&1 | sed 5q` in
19338 *Sun\ C*)
19339 # Sun C++ 5.9
19340 no_undefined_flag_CXX=' -zdefs'
19341 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19342 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'
19343 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019344 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 +000019345 compiler_needs_object_CXX=yes
19346
19347 # Not sure whether something based on
19348 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19349 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019350 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019351
19352 # Archives containing C++ object files must be created using
19353 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19354 # necessary to make sure instantiated templates are included
19355 # in the archive.
19356 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19357 ;;
19358 esac
19359 ;;
19360 esac
19361 ;;
19362
19363 lynxos*)
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19366 ;;
19367
19368 m88k*)
19369 # FIXME: insert proper C++ library support
19370 ld_shlibs_CXX=no
19371 ;;
19372
19373 mvs*)
19374 case $cc_basename in
19375 cxx*)
19376 # FIXME: insert proper C++ library support
19377 ld_shlibs_CXX=no
19378 ;;
19379 *)
19380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
19383 esac
19384 ;;
19385
19386 netbsd*)
19387 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19388 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19389 wlarc=
19390 hardcode_libdir_flag_spec_CXX='-R$libdir'
19391 hardcode_direct_CXX=yes
19392 hardcode_shlibpath_var_CXX=no
19393 fi
19394 # Workaround some broken pre-1.5 toolchains
19395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19396 ;;
19397
19398 *nto* | *qnx*)
19399 ld_shlibs_CXX=yes
19400 ;;
19401
19402 openbsd2*)
19403 # C++ shared libraries are fairly broken
19404 ld_shlibs_CXX=no
19405 ;;
19406
19407 openbsd*)
19408 if test -f /usr/libexec/ld.so; then
19409 hardcode_direct_CXX=yes
19410 hardcode_shlibpath_var_CXX=no
19411 hardcode_direct_absolute_CXX=yes
19412 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19415 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19416 export_dynamic_flag_spec_CXX='${wl}-E'
19417 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19418 fi
cristy0c60a692010-11-04 01:09:47 +000019419 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019420 else
19421 ld_shlibs_CXX=no
19422 fi
19423 ;;
19424
19425 osf3* | osf4* | osf5*)
19426 case $cc_basename in
19427 KCC*)
19428 # Kuck and Associates, Inc. (KAI) C++ Compiler
19429
19430 # KCC will only create a shared library if the output file
19431 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19432 # to its proper name (with version) after linking.
19433 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'
19434
19435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19436 hardcode_libdir_separator_CXX=:
19437
19438 # Archives containing C++ object files must be created using
19439 # the KAI C++ compiler.
19440 case $host in
19441 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19442 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19443 esac
19444 ;;
19445 RCC*)
19446 # Rational C++ 2.4.1
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19449 ;;
19450 cxx*)
19451 case $host in
19452 osf3*)
19453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019454 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 +000019455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19456 ;;
19457 *)
19458 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019459 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 +000019460 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19461 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019462 $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 +000019463 $RM $lib.exp'
19464 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19465 ;;
19466 esac
19467
19468 hardcode_libdir_separator_CXX=:
19469
19470 # Commands to make compiler produce verbose output that lists
19471 # what "hidden" libraries, object files and flags are used when
19472 # linking a shared library.
19473 #
19474 # There doesn't appear to be a way to prevent this compiler from
19475 # explicitly linking system object files so we need to strip them
19476 # from the output so that they don't get included in the library
19477 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019478 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 +000019479 ;;
19480 *)
19481 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19483 case $host in
19484 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019485 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 +000019486 ;;
19487 *)
cristyda16f162011-02-19 23:52:17 +000019488 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 +000019489 ;;
19490 esac
19491
19492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19493 hardcode_libdir_separator_CXX=:
19494
19495 # Commands to make compiler produce verbose output that lists
19496 # what "hidden" libraries, object files and flags are used when
19497 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019499
19500 else
19501 # FIXME: insert proper C++ library support
19502 ld_shlibs_CXX=no
19503 fi
19504 ;;
19505 esac
19506 ;;
19507
19508 psos*)
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19511 ;;
19512
19513 sunos4*)
19514 case $cc_basename in
19515 CC*)
19516 # Sun C++ 4.x
19517 # FIXME: insert proper C++ library support
19518 ld_shlibs_CXX=no
19519 ;;
19520 lcc*)
19521 # Lucid
19522 # FIXME: insert proper C++ library support
19523 ld_shlibs_CXX=no
19524 ;;
19525 *)
19526 # FIXME: insert proper C++ library support
19527 ld_shlibs_CXX=no
19528 ;;
19529 esac
19530 ;;
19531
19532 solaris*)
19533 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019534 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019535 # Sun C++ 4.2, 5.x and Centerline C++
19536 archive_cmds_need_lc_CXX=yes
19537 no_undefined_flag_CXX=' -zdefs'
19538 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19539 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19540 $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'
19541
19542 hardcode_libdir_flag_spec_CXX='-R$libdir'
19543 hardcode_shlibpath_var_CXX=no
19544 case $host_os in
19545 solaris2.[0-5] | solaris2.[0-5].*) ;;
19546 *)
19547 # The compiler driver will combine and reorder linker options,
19548 # but understands `-z linker_flag'.
19549 # Supported since Solaris 2.6 (maybe 2.5.1?)
19550 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19551 ;;
19552 esac
19553 link_all_deplibs_CXX=yes
19554
cristy0c60a692010-11-04 01:09:47 +000019555 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019556
19557 # Archives containing C++ object files must be created using
19558 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19559 # necessary to make sure instantiated templates are included
19560 # in the archive.
19561 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19562 ;;
19563 gcx*)
19564 # Green Hills C++ Compiler
19565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19566
19567 # The C++ compiler must be used to create the archive.
19568 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19569 ;;
19570 *)
19571 # GNU C++ compiler with Solaris linker
19572 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19573 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19574 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019575 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 +000019576 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 +000019577 $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 +000019578
19579 # Commands to make compiler produce verbose output that lists
19580 # what "hidden" libraries, object files and flags are used when
19581 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019583 else
19584 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19585 # platform.
19586 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19587 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19588 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19589
19590 # Commands to make compiler produce verbose output that lists
19591 # what "hidden" libraries, object files and flags are used when
19592 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019593 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019594 fi
19595
19596 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19597 case $host_os in
19598 solaris2.[0-5] | solaris2.[0-5].*) ;;
19599 *)
19600 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19601 ;;
19602 esac
19603 fi
19604 ;;
19605 esac
19606 ;;
19607
19608 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19609 no_undefined_flag_CXX='${wl}-z,text'
19610 archive_cmds_need_lc_CXX=no
19611 hardcode_shlibpath_var_CXX=no
19612 runpath_var='LD_RUN_PATH'
19613
19614 case $cc_basename in
19615 CC*)
19616 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19617 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19618 ;;
19619 *)
19620 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19622 ;;
19623 esac
19624 ;;
19625
19626 sysv5* | sco3.2v5* | sco5v6*)
19627 # Note: We can NOT use -z defs as we might desire, because we do not
19628 # link with -lc, and that would cause any symbols used from libc to
19629 # always be unresolved, which means just about no library would
19630 # ever link correctly. If we're not using GNU ld we use -z text
19631 # though, which does catch some bad symbols but isn't as heavy-handed
19632 # as -z defs.
19633 no_undefined_flag_CXX='${wl}-z,text'
19634 allow_undefined_flag_CXX='${wl}-z,nodefs'
19635 archive_cmds_need_lc_CXX=no
19636 hardcode_shlibpath_var_CXX=no
19637 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19638 hardcode_libdir_separator_CXX=':'
19639 link_all_deplibs_CXX=yes
19640 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19641 runpath_var='LD_RUN_PATH'
19642
19643 case $cc_basename in
19644 CC*)
19645 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19646 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 +000019647 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19648 '"$old_archive_cmds_CXX"
19649 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19650 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019651 ;;
19652 *)
19653 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19654 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19655 ;;
19656 esac
19657 ;;
19658
19659 tandem*)
19660 case $cc_basename in
19661 NCC*)
19662 # NonStop-UX NCC 3.20
19663 # FIXME: insert proper C++ library support
19664 ld_shlibs_CXX=no
19665 ;;
19666 *)
19667 # FIXME: insert proper C++ library support
19668 ld_shlibs_CXX=no
19669 ;;
19670 esac
19671 ;;
19672
19673 vxworks*)
19674 # FIXME: insert proper C++ library support
19675 ld_shlibs_CXX=no
19676 ;;
19677
19678 *)
19679 # FIXME: insert proper C++ library support
19680 ld_shlibs_CXX=no
19681 ;;
19682 esac
19683
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19685$as_echo "$ld_shlibs_CXX" >&6; }
19686 test "$ld_shlibs_CXX" = no && can_build_shared=no
19687
19688 GCC_CXX="$GXX"
19689 LD_CXX="$LD"
19690
19691 ## CAVEAT EMPTOR:
19692 ## There is no encapsulation within the following macros, do not change
19693 ## the running order or otherwise move them around unless you know exactly
19694 ## what you are doing...
19695 # Dependencies to place before and after the object being linked:
19696predep_objects_CXX=
19697postdep_objects_CXX=
19698predeps_CXX=
19699postdeps_CXX=
19700compiler_lib_search_path_CXX=
19701
19702cat > conftest.$ac_ext <<_LT_EOF
19703class Foo
19704{
19705public:
19706 Foo (void) { a = 0; }
19707private:
19708 int a;
19709};
19710_LT_EOF
19711
cristyda16f162011-02-19 23:52:17 +000019712
19713_lt_libdeps_save_CFLAGS=$CFLAGS
19714case "$CC $CFLAGS " in #(
19715*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19716*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019717*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019718esac
19719
cristy73bd4a52010-10-05 11:24:23 +000019720if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19721 (eval $ac_compile) 2>&5
19722 ac_status=$?
19723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724 test $ac_status = 0; }; then
19725 # Parse the compiler output and extract the necessary
19726 # objects, libraries and library flags.
19727
19728 # Sentinel used to keep track of whether or not we are before
19729 # the conftest object file.
19730 pre_test_object_deps_done=no
19731
19732 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019733 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019734
19735 -L* | -R* | -l*)
19736 # Some compilers place space between "-{L,R}" and the path.
19737 # Remove the space.
19738 if test $p = "-L" ||
19739 test $p = "-R"; then
19740 prev=$p
19741 continue
cristy73bd4a52010-10-05 11:24:23 +000019742 fi
19743
cristyda16f162011-02-19 23:52:17 +000019744 # Expand the sysroot to ease extracting the directories later.
19745 if test -z "$prev"; then
19746 case $p in
19747 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19748 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19749 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19750 esac
19751 fi
19752 case $p in
19753 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19754 esac
cristy73bd4a52010-10-05 11:24:23 +000019755 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019756 case ${prev} in
19757 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019758 # Internal compiler library paths should come after those
19759 # provided the user. The postdeps already come after the
19760 # user supplied libs so there is no need to process them.
19761 if test -z "$compiler_lib_search_path_CXX"; then
19762 compiler_lib_search_path_CXX="${prev}${p}"
19763 else
19764 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19765 fi
19766 ;;
19767 # The "-l" case would never come before the object being
19768 # linked, so don't bother handling this case.
19769 esac
19770 else
19771 if test -z "$postdeps_CXX"; then
19772 postdeps_CXX="${prev}${p}"
19773 else
19774 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19775 fi
19776 fi
cristyda16f162011-02-19 23:52:17 +000019777 prev=
cristy73bd4a52010-10-05 11:24:23 +000019778 ;;
19779
cristyda16f162011-02-19 23:52:17 +000019780 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019781 *.$objext)
19782 # This assumes that the test object file only shows up
19783 # once in the compiler output.
19784 if test "$p" = "conftest.$objext"; then
19785 pre_test_object_deps_done=yes
19786 continue
19787 fi
19788
19789 if test "$pre_test_object_deps_done" = no; then
19790 if test -z "$predep_objects_CXX"; then
19791 predep_objects_CXX="$p"
19792 else
19793 predep_objects_CXX="$predep_objects_CXX $p"
19794 fi
19795 else
19796 if test -z "$postdep_objects_CXX"; then
19797 postdep_objects_CXX="$p"
19798 else
19799 postdep_objects_CXX="$postdep_objects_CXX $p"
19800 fi
19801 fi
19802 ;;
19803
19804 *) ;; # Ignore the rest.
19805
19806 esac
19807 done
19808
19809 # Clean up.
19810 rm -f a.out a.exe
19811else
19812 echo "libtool.m4: error: problem compiling CXX test program"
19813fi
19814
19815$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019816CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019817
19818# PORTME: override above test on systems where it is broken
19819case $host_os in
19820interix[3-9]*)
19821 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19822 # hack all around it, let's just trust "g++" to DTRT.
19823 predep_objects_CXX=
19824 postdep_objects_CXX=
19825 postdeps_CXX=
19826 ;;
19827
19828linux*)
19829 case `$CC -V 2>&1 | sed 5q` in
19830 *Sun\ C*)
19831 # Sun C++ 5.9
19832
19833 # The more standards-conforming stlport4 library is
19834 # incompatible with the Cstd library. Avoid specifying
19835 # it if it's in CXXFLAGS. Ignore libCrun as
19836 # -library=stlport4 depends on it.
19837 case " $CXX $CXXFLAGS " in
19838 *" -library=stlport4 "*)
19839 solaris_use_stlport4=yes
19840 ;;
19841 esac
19842
19843 if test "$solaris_use_stlport4" != yes; then
19844 postdeps_CXX='-library=Cstd -library=Crun'
19845 fi
19846 ;;
19847 esac
19848 ;;
19849
19850solaris*)
19851 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019852 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019853 # The more standards-conforming stlport4 library is
19854 # incompatible with the Cstd library. Avoid specifying
19855 # it if it's in CXXFLAGS. Ignore libCrun as
19856 # -library=stlport4 depends on it.
19857 case " $CXX $CXXFLAGS " in
19858 *" -library=stlport4 "*)
19859 solaris_use_stlport4=yes
19860 ;;
19861 esac
19862
19863 # Adding this requires a known-good setup of shared libraries for
19864 # Sun compiler versions before 5.6, else PIC objects from an old
19865 # archive will be linked into the output, leading to subtle bugs.
19866 if test "$solaris_use_stlport4" != yes; then
19867 postdeps_CXX='-library=Cstd -library=Crun'
19868 fi
19869 ;;
19870 esac
19871 ;;
19872esac
19873
19874
19875case " $postdeps_CXX " in
19876*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19877esac
19878 compiler_lib_search_dirs_CXX=
19879if test -n "${compiler_lib_search_path_CXX}"; then
19880 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19881fi
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913 lt_prog_compiler_wl_CXX=
19914lt_prog_compiler_pic_CXX=
19915lt_prog_compiler_static_CXX=
19916
cristy73bd4a52010-10-05 11:24:23 +000019917
19918 # C++ specific cases for pic, static, wl, etc.
19919 if test "$GXX" = yes; then
19920 lt_prog_compiler_wl_CXX='-Wl,'
19921 lt_prog_compiler_static_CXX='-static'
19922
19923 case $host_os in
19924 aix*)
19925 # All AIX code is PIC.
19926 if test "$host_cpu" = ia64; then
19927 # AIX 5 now supports IA64 processor
19928 lt_prog_compiler_static_CXX='-Bstatic'
19929 fi
19930 ;;
19931
19932 amigaos*)
19933 case $host_cpu in
19934 powerpc)
19935 # see comment about AmigaOS4 .so support
19936 lt_prog_compiler_pic_CXX='-fPIC'
19937 ;;
19938 m68k)
19939 # FIXME: we need at least 68020 code to build shared libraries, but
19940 # adding the `-m68020' flag to GCC prevents building anything better,
19941 # like `-m68040'.
19942 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19943 ;;
19944 esac
19945 ;;
19946
19947 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19948 # PIC is the default for these OSes.
19949 ;;
19950 mingw* | cygwin* | os2* | pw32* | cegcc*)
19951 # This hack is so that the source file can tell whether it is being
19952 # built for inclusion in a dll (and should export symbols for example).
19953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19954 # (--disable-auto-import) libraries
19955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19956 ;;
19957 darwin* | rhapsody*)
19958 # PIC is the default on this platform
19959 # Common symbols not allowed in MH_DYLIB files
19960 lt_prog_compiler_pic_CXX='-fno-common'
19961 ;;
19962 *djgpp*)
19963 # DJGPP does not support shared libraries at all
19964 lt_prog_compiler_pic_CXX=
19965 ;;
cristy0c60a692010-11-04 01:09:47 +000019966 haiku*)
19967 # PIC is the default for Haiku.
19968 # The "-static" flag exists, but is broken.
19969 lt_prog_compiler_static_CXX=
19970 ;;
cristy73bd4a52010-10-05 11:24:23 +000019971 interix[3-9]*)
19972 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19973 # Instead, we relocate shared libraries at runtime.
19974 ;;
19975 sysv4*MP*)
19976 if test -d /usr/nec; then
19977 lt_prog_compiler_pic_CXX=-Kconform_pic
19978 fi
19979 ;;
19980 hpux*)
19981 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19982 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19983 # sets the default TLS model and affects inlining.
19984 case $host_cpu in
19985 hppa*64*)
19986 ;;
19987 *)
19988 lt_prog_compiler_pic_CXX='-fPIC'
19989 ;;
19990 esac
19991 ;;
19992 *qnx* | *nto*)
19993 # QNX uses GNU C++, but need to define -shared option too, otherwise
19994 # it will coredump.
19995 lt_prog_compiler_pic_CXX='-fPIC -shared'
19996 ;;
19997 *)
19998 lt_prog_compiler_pic_CXX='-fPIC'
19999 ;;
20000 esac
20001 else
20002 case $host_os in
20003 aix[4-9]*)
20004 # All AIX code is PIC.
20005 if test "$host_cpu" = ia64; then
20006 # AIX 5 now supports IA64 processor
20007 lt_prog_compiler_static_CXX='-Bstatic'
20008 else
20009 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20010 fi
20011 ;;
20012 chorus*)
20013 case $cc_basename in
20014 cxch68*)
20015 # Green Hills C++ Compiler
20016 # _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"
20017 ;;
20018 esac
20019 ;;
cristyda16f162011-02-19 23:52:17 +000020020 mingw* | cygwin* | os2* | pw32* | cegcc*)
20021 # This hack is so that the source file can tell whether it is being
20022 # built for inclusion in a dll (and should export symbols for example).
20023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20024 ;;
cristy73bd4a52010-10-05 11:24:23 +000020025 dgux*)
20026 case $cc_basename in
20027 ec++*)
20028 lt_prog_compiler_pic_CXX='-KPIC'
20029 ;;
20030 ghcx*)
20031 # Green Hills C++ Compiler
20032 lt_prog_compiler_pic_CXX='-pic'
20033 ;;
20034 *)
20035 ;;
20036 esac
20037 ;;
20038 freebsd* | dragonfly*)
20039 # FreeBSD uses GNU C++
20040 ;;
20041 hpux9* | hpux10* | hpux11*)
20042 case $cc_basename in
20043 CC*)
20044 lt_prog_compiler_wl_CXX='-Wl,'
20045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20046 if test "$host_cpu" != ia64; then
20047 lt_prog_compiler_pic_CXX='+Z'
20048 fi
20049 ;;
20050 aCC*)
20051 lt_prog_compiler_wl_CXX='-Wl,'
20052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20053 case $host_cpu in
20054 hppa*64*|ia64*)
20055 # +Z the default
20056 ;;
20057 *)
20058 lt_prog_compiler_pic_CXX='+Z'
20059 ;;
20060 esac
20061 ;;
20062 *)
20063 ;;
20064 esac
20065 ;;
20066 interix*)
20067 # This is c89, which is MS Visual C++ (no shared libs)
20068 # Anyone wants to do a port?
20069 ;;
20070 irix5* | irix6* | nonstopux*)
20071 case $cc_basename in
20072 CC*)
20073 lt_prog_compiler_wl_CXX='-Wl,'
20074 lt_prog_compiler_static_CXX='-non_shared'
20075 # CC pic flag -KPIC is the default.
20076 ;;
20077 *)
20078 ;;
20079 esac
20080 ;;
cristy0c60a692010-11-04 01:09:47 +000020081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020082 case $cc_basename in
20083 KCC*)
20084 # KAI C++ Compiler
20085 lt_prog_compiler_wl_CXX='--backend -Wl,'
20086 lt_prog_compiler_pic_CXX='-fPIC'
20087 ;;
20088 ecpc* )
20089 # old Intel C++ for x86_64 which still supported -KPIC.
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_pic_CXX='-KPIC'
20092 lt_prog_compiler_static_CXX='-static'
20093 ;;
20094 icpc* )
20095 # Intel C++, used to be incompatible with GCC.
20096 # ICC 10 doesn't accept -KPIC any more.
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 lt_prog_compiler_pic_CXX='-fPIC'
20099 lt_prog_compiler_static_CXX='-static'
20100 ;;
20101 pgCC* | pgcpp*)
20102 # Portland Group C++ compiler
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_pic_CXX='-fpic'
20105 lt_prog_compiler_static_CXX='-Bstatic'
20106 ;;
20107 cxx*)
20108 # Compaq C++
20109 # Make sure the PIC flag is empty. It appears that all Alpha
20110 # Linux and Compaq Tru64 Unix objects are PIC.
20111 lt_prog_compiler_pic_CXX=
20112 lt_prog_compiler_static_CXX='-non_shared'
20113 ;;
cristy0c60a692010-11-04 01:09:47 +000020114 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20115 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020116 lt_prog_compiler_wl_CXX='-Wl,'
20117 lt_prog_compiler_pic_CXX='-qpic'
20118 lt_prog_compiler_static_CXX='-qstaticlink'
20119 ;;
20120 *)
20121 case `$CC -V 2>&1 | sed 5q` in
20122 *Sun\ C*)
20123 # Sun C++ 5.9
20124 lt_prog_compiler_pic_CXX='-KPIC'
20125 lt_prog_compiler_static_CXX='-Bstatic'
20126 lt_prog_compiler_wl_CXX='-Qoption ld '
20127 ;;
20128 esac
20129 ;;
20130 esac
20131 ;;
20132 lynxos*)
20133 ;;
20134 m88k*)
20135 ;;
20136 mvs*)
20137 case $cc_basename in
20138 cxx*)
20139 lt_prog_compiler_pic_CXX='-W c,exportall'
20140 ;;
20141 *)
20142 ;;
20143 esac
20144 ;;
20145 netbsd*)
20146 ;;
20147 *qnx* | *nto*)
20148 # QNX uses GNU C++, but need to define -shared option too, otherwise
20149 # it will coredump.
20150 lt_prog_compiler_pic_CXX='-fPIC -shared'
20151 ;;
20152 osf3* | osf4* | osf5*)
20153 case $cc_basename in
20154 KCC*)
20155 lt_prog_compiler_wl_CXX='--backend -Wl,'
20156 ;;
20157 RCC*)
20158 # Rational C++ 2.4.1
20159 lt_prog_compiler_pic_CXX='-pic'
20160 ;;
20161 cxx*)
20162 # Digital/Compaq C++
20163 lt_prog_compiler_wl_CXX='-Wl,'
20164 # Make sure the PIC flag is empty. It appears that all Alpha
20165 # Linux and Compaq Tru64 Unix objects are PIC.
20166 lt_prog_compiler_pic_CXX=
20167 lt_prog_compiler_static_CXX='-non_shared'
20168 ;;
20169 *)
20170 ;;
20171 esac
20172 ;;
20173 psos*)
20174 ;;
20175 solaris*)
20176 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020177 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020178 # Sun C++ 4.2, 5.x and Centerline C++
20179 lt_prog_compiler_pic_CXX='-KPIC'
20180 lt_prog_compiler_static_CXX='-Bstatic'
20181 lt_prog_compiler_wl_CXX='-Qoption ld '
20182 ;;
20183 gcx*)
20184 # Green Hills C++ Compiler
20185 lt_prog_compiler_pic_CXX='-PIC'
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
20191 sunos4*)
20192 case $cc_basename in
20193 CC*)
20194 # Sun C++ 4.x
20195 lt_prog_compiler_pic_CXX='-pic'
20196 lt_prog_compiler_static_CXX='-Bstatic'
20197 ;;
20198 lcc*)
20199 # Lucid
20200 lt_prog_compiler_pic_CXX='-pic'
20201 ;;
20202 *)
20203 ;;
20204 esac
20205 ;;
20206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20207 case $cc_basename in
20208 CC*)
20209 lt_prog_compiler_wl_CXX='-Wl,'
20210 lt_prog_compiler_pic_CXX='-KPIC'
20211 lt_prog_compiler_static_CXX='-Bstatic'
20212 ;;
20213 esac
20214 ;;
20215 tandem*)
20216 case $cc_basename in
20217 NCC*)
20218 # NonStop-UX NCC 3.20
20219 lt_prog_compiler_pic_CXX='-KPIC'
20220 ;;
20221 *)
20222 ;;
20223 esac
20224 ;;
20225 vxworks*)
20226 ;;
20227 *)
20228 lt_prog_compiler_can_build_shared_CXX=no
20229 ;;
20230 esac
20231 fi
20232
20233case $host_os in
20234 # For platforms which do not support PIC, -DPIC is meaningless:
20235 *djgpp*)
20236 lt_prog_compiler_pic_CXX=
20237 ;;
20238 *)
20239 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20240 ;;
20241esac
cristy73bd4a52010-10-05 11:24:23 +000020242
cristyda16f162011-02-19 23:52:17 +000020243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20244$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20245if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20246 $as_echo_n "(cached) " >&6
20247else
20248 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20249fi
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20251$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20252lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020253
20254#
20255# Check to make sure the PIC flag actually works.
20256#
20257if test -n "$lt_prog_compiler_pic_CXX"; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20259$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020260if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020261 $as_echo_n "(cached) " >&6
20262else
20263 lt_cv_prog_compiler_pic_works_CXX=no
20264 ac_outfile=conftest.$ac_objext
20265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20266 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20267 # Insert the option either (1) after the last *FLAGS variable, or
20268 # (2) before a word containing "conftest.", or (3) at the end.
20269 # Note that $ac_compile itself does not contain backslashes and begins
20270 # with a dollar sign (not a hyphen), so the echo should work correctly.
20271 # The option is referenced via a variable to avoid confusing sed.
20272 lt_compile=`echo "$ac_compile" | $SED \
20273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20275 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020277 (eval "$lt_compile" 2>conftest.err)
20278 ac_status=$?
20279 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020281 if (exit $ac_status) && test -s "$ac_outfile"; then
20282 # The compiler can only warn and ignore the option if not recognized
20283 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20287 lt_cv_prog_compiler_pic_works_CXX=yes
20288 fi
20289 fi
20290 $RM conftest*
20291
20292fi
20293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20294$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20295
20296if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20297 case $lt_prog_compiler_pic_CXX in
20298 "" | " "*) ;;
20299 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20300 esac
20301else
20302 lt_prog_compiler_pic_CXX=
20303 lt_prog_compiler_can_build_shared_CXX=no
20304fi
20305
20306fi
20307
20308
20309
cristyda16f162011-02-19 23:52:17 +000020310
20311
cristy73bd4a52010-10-05 11:24:23 +000020312#
20313# Check to make sure the static flag actually works.
20314#
20315wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20317$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020318if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020319 $as_echo_n "(cached) " >&6
20320else
20321 lt_cv_prog_compiler_static_works_CXX=no
20322 save_LDFLAGS="$LDFLAGS"
20323 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20324 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20326 # The linker can only warn and ignore the option if not recognized
20327 # So say no if there are warnings
20328 if test -s conftest.err; then
20329 # Append any errors to the config.log.
20330 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020331 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20333 if diff conftest.exp conftest.er2 >/dev/null; then
20334 lt_cv_prog_compiler_static_works_CXX=yes
20335 fi
20336 else
20337 lt_cv_prog_compiler_static_works_CXX=yes
20338 fi
20339 fi
20340 $RM -r conftest*
20341 LDFLAGS="$save_LDFLAGS"
20342
20343fi
20344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20345$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20346
20347if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20348 :
20349else
20350 lt_prog_compiler_static_CXX=
20351fi
20352
20353
20354
20355
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20357$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020358if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020359 $as_echo_n "(cached) " >&6
20360else
20361 lt_cv_prog_compiler_c_o_CXX=no
20362 $RM -r conftest 2>/dev/null
20363 mkdir conftest
20364 cd conftest
20365 mkdir out
20366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20367
20368 lt_compiler_flag="-o out/conftest2.$ac_objext"
20369 # Insert the option either (1) after the last *FLAGS variable, or
20370 # (2) before a word containing "conftest.", or (3) at the end.
20371 # Note that $ac_compile itself does not contain backslashes and begins
20372 # with a dollar sign (not a hyphen), so the echo should work correctly.
20373 lt_compile=`echo "$ac_compile" | $SED \
20374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20376 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020378 (eval "$lt_compile" 2>out/conftest.err)
20379 ac_status=$?
20380 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20383 then
20384 # The compiler can only warn and ignore the option if not recognized
20385 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20389 lt_cv_prog_compiler_c_o_CXX=yes
20390 fi
20391 fi
20392 chmod u+w . 2>&5
20393 $RM conftest*
20394 # SGI C++ compiler will create directory out/ii_files/ for
20395 # template instantiation
20396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20397 $RM out/* && rmdir out
20398 cd ..
20399 $RM -r conftest
20400 $RM conftest*
20401
20402fi
20403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20404$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20405
20406
20407
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20409$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020410if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020411 $as_echo_n "(cached) " >&6
20412else
20413 lt_cv_prog_compiler_c_o_CXX=no
20414 $RM -r conftest 2>/dev/null
20415 mkdir conftest
20416 cd conftest
20417 mkdir out
20418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20419
20420 lt_compiler_flag="-o out/conftest2.$ac_objext"
20421 # Insert the option either (1) after the last *FLAGS variable, or
20422 # (2) before a word containing "conftest.", or (3) at the end.
20423 # Note that $ac_compile itself does not contain backslashes and begins
20424 # with a dollar sign (not a hyphen), so the echo should work correctly.
20425 lt_compile=`echo "$ac_compile" | $SED \
20426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20428 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020430 (eval "$lt_compile" 2>out/conftest.err)
20431 ac_status=$?
20432 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20435 then
20436 # The compiler can only warn and ignore the option if not recognized
20437 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20441 lt_cv_prog_compiler_c_o_CXX=yes
20442 fi
20443 fi
20444 chmod u+w . 2>&5
20445 $RM conftest*
20446 # SGI C++ compiler will create directory out/ii_files/ for
20447 # template instantiation
20448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20449 $RM out/* && rmdir out
20450 cd ..
20451 $RM -r conftest
20452 $RM conftest*
20453
20454fi
20455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20456$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20457
20458
20459
20460
20461hard_links="nottested"
20462if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20463 # do not overwrite the value of need_locks provided by the user
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20465$as_echo_n "checking if we can lock with hard links... " >&6; }
20466 hard_links=yes
20467 $RM conftest*
20468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20469 touch conftest.a
20470 ln conftest.a conftest.b 2>&5 || hard_links=no
20471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20473$as_echo "$hard_links" >&6; }
20474 if test "$hard_links" = no; then
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20476$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20477 need_locks=warn
20478 fi
20479else
20480 need_locks=no
20481fi
20482
20483
20484
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20486$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20487
20488 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020489 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020490 case $host_os in
20491 aix[4-9]*)
20492 # If we're using GNU nm, then we don't want the "-C" option.
20493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020494 # Also, AIX nm treats weak defined symbols like other global defined
20495 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020497 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 +000020498 else
20499 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'
20500 fi
20501 ;;
20502 pw32*)
20503 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020504 ;;
cristy73bd4a52010-10-05 11:24:23 +000020505 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020506 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020507 cl*)
20508 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20509 ;;
cristyda16f162011-02-19 23:52:17 +000020510 *)
20511 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'
20512 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20513 ;;
20514 esac
20515 ;;
cristy73bd4a52010-10-05 11:24:23 +000020516 *)
20517 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020518 ;;
cristy73bd4a52010-10-05 11:24:23 +000020519 esac
cristy73bd4a52010-10-05 11:24:23 +000020520
20521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20522$as_echo "$ld_shlibs_CXX" >&6; }
20523test "$ld_shlibs_CXX" = no && can_build_shared=no
20524
20525with_gnu_ld_CXX=$with_gnu_ld
20526
20527
20528
20529
20530
20531
20532#
20533# Do we need to explicitly link libc?
20534#
20535case "x$archive_cmds_need_lc_CXX" in
20536x|xyes)
20537 # Assume -lc should be added
20538 archive_cmds_need_lc_CXX=yes
20539
20540 if test "$enable_shared" = yes && test "$GCC" = yes; then
20541 case $archive_cmds_CXX in
20542 *'~'*)
20543 # FIXME: we may have to deal with multi-command sequences.
20544 ;;
20545 '$CC '*)
20546 # Test whether the compiler implicitly links with -lc since on some
20547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20548 # to ld, don't add -lc before -lgcc.
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20550$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020551if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020552 $as_echo_n "(cached) " >&6
20553else
20554 $RM conftest*
20555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020556
cristy0c60a692010-11-04 01:09:47 +000020557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020558 (eval $ac_compile) 2>&5
20559 ac_status=$?
20560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20561 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020562 soname=conftest
20563 lib=conftest
20564 libobjs=conftest.$ac_objext
20565 deplibs=
20566 wl=$lt_prog_compiler_wl_CXX
20567 pic_flag=$lt_prog_compiler_pic_CXX
20568 compiler_flags=-v
20569 linker_flags=-v
20570 verstring=
20571 output_objdir=.
20572 libname=conftest
20573 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20574 allow_undefined_flag_CXX=
20575 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 +000020576 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20577 ac_status=$?
20578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20579 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020580 then
20581 lt_cv_archive_cmds_need_lc_CXX=no
20582 else
20583 lt_cv_archive_cmds_need_lc_CXX=yes
20584 fi
20585 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20586 else
20587 cat conftest.err 1>&5
20588 fi
20589 $RM conftest*
20590
20591fi
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20593$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20594 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020595 ;;
20596 esac
20597 fi
20598 ;;
20599esac
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
cristy73bd4a52010-10-05 11:24:23 +000020662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20663$as_echo_n "checking dynamic linker characteristics... " >&6; }
20664
20665library_names_spec=
20666libname_spec='lib$name'
20667soname_spec=
20668shrext_cmds=".so"
20669postinstall_cmds=
20670postuninstall_cmds=
20671finish_cmds=
20672finish_eval=
20673shlibpath_var=
20674shlibpath_overrides_runpath=unknown
20675version_type=none
20676dynamic_linker="$host_os ld.so"
20677sys_lib_dlsearch_path_spec="/lib /usr/lib"
20678need_lib_prefix=unknown
20679hardcode_into_libs=no
20680
20681# when you set need_version to no, make sure it does not cause -set_version
20682# flags to be left without arguments
20683need_version=unknown
20684
20685case $host_os in
20686aix3*)
cristy99bd5232011-12-07 14:38:20 +000020687 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20689 shlibpath_var=LIBPATH
20690
20691 # AIX 3 has no versioning support, so we append a major version to the name.
20692 soname_spec='${libname}${release}${shared_ext}$major'
20693 ;;
20694
20695aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020696 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020697 need_lib_prefix=no
20698 need_version=no
20699 hardcode_into_libs=yes
20700 if test "$host_cpu" = ia64; then
20701 # AIX 5 supports IA64
20702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 else
20705 # With GCC up to 2.95.x, collect2 would create an import file
20706 # for dependence libraries. The import file would start with
20707 # the line `#! .'. This would cause the generated library to
20708 # depend on `.', always an invalid library. This was fixed in
20709 # development snapshots of GCC prior to 3.0.
20710 case $host_os in
20711 aix4 | aix4.[01] | aix4.[01].*)
20712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20713 echo ' yes '
20714 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20715 :
20716 else
20717 can_build_shared=no
20718 fi
20719 ;;
20720 esac
20721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20722 # soname into executable. Probably we can add versioning support to
20723 # collect2, so additional links can be useful in future.
20724 if test "$aix_use_runtimelinking" = yes; then
20725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20726 # instead of lib<name>.a to let people know that these are not
20727 # typical AIX shared libraries.
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 else
20730 # We preserve .a as extension for shared libraries through AIX4.2
20731 # and later when we are not doing run time linking.
20732 library_names_spec='${libname}${release}.a $libname.a'
20733 soname_spec='${libname}${release}${shared_ext}$major'
20734 fi
20735 shlibpath_var=LIBPATH
20736 fi
20737 ;;
20738
20739amigaos*)
20740 case $host_cpu in
20741 powerpc)
20742 # Since July 2007 AmigaOS4 officially supports .so libraries.
20743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20745 ;;
20746 m68k)
20747 library_names_spec='$libname.ixlibrary $libname.a'
20748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020749 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 +000020750 ;;
20751 esac
20752 ;;
20753
20754beos*)
20755 library_names_spec='${libname}${shared_ext}'
20756 dynamic_linker="$host_os ld.so"
20757 shlibpath_var=LIBRARY_PATH
20758 ;;
20759
20760bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020761 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020762 need_version=no
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20764 soname_spec='${libname}${release}${shared_ext}$major'
20765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20766 shlibpath_var=LD_LIBRARY_PATH
20767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20769 # the default ld.so.conf also contains /usr/contrib/lib and
20770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20771 # libtool to hard-code these into programs
20772 ;;
20773
20774cygwin* | mingw* | pw32* | cegcc*)
20775 version_type=windows
20776 shrext_cmds=".dll"
20777 need_version=no
20778 need_lib_prefix=no
20779
cristyda16f162011-02-19 23:52:17 +000020780 case $GCC,$cc_basename in
20781 yes,*)
20782 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020783 library_names_spec='$libname.dll.a'
20784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20785 postinstall_cmds='base_file=`basename \${file}`~
20786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20787 dldir=$destdir/`dirname \$dlpath`~
20788 test -d \$dldir || mkdir -p \$dldir~
20789 $install_prog $dir/$dlname \$dldir/$dlname~
20790 chmod a+x \$dldir/$dlname~
20791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20793 fi'
20794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20795 dlpath=$dir/\$dldll~
20796 $RM \$dlpath'
20797 shlibpath_overrides_runpath=yes
20798
20799 case $host_os in
20800 cygwin*)
20801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020803
cristy73bd4a52010-10-05 11:24:23 +000020804 ;;
20805 mingw* | cegcc*)
20806 # MinGW DLLs use traditional 'lib' prefix
20807 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020808 ;;
20809 pw32*)
20810 # pw32 DLLs use 'pw' prefix rather than 'lib'
20811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20812 ;;
20813 esac
cristyda16f162011-02-19 23:52:17 +000020814 dynamic_linker='Win32 ld.exe'
20815 ;;
20816
20817 *,cl*)
20818 # Native MSVC
20819 libname_spec='$name'
20820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20821 library_names_spec='${libname}.dll.lib'
20822
20823 case $build_os in
20824 mingw*)
20825 sys_lib_search_path_spec=
20826 lt_save_ifs=$IFS
20827 IFS=';'
20828 for lt_path in $LIB
20829 do
20830 IFS=$lt_save_ifs
20831 # Let DOS variable expansion print the short 8.3 style file name.
20832 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20833 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20834 done
20835 IFS=$lt_save_ifs
20836 # Convert to MSYS style.
20837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20838 ;;
20839 cygwin*)
20840 # Convert to unix form, then to dos form, then back to unix form
20841 # but this time dos style (no spaces!) so that the unix form looks
20842 # like /cygdrive/c/PROGRA~1:/cygdr...
20843 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20844 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20845 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20846 ;;
20847 *)
20848 sys_lib_search_path_spec="$LIB"
20849 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20850 # It is most probably a Windows format PATH.
20851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20852 else
20853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20854 fi
20855 # FIXME: find the short name or the path components, as spaces are
20856 # common. (e.g. "Program Files" -> "PROGRA~1")
20857 ;;
20858 esac
20859
20860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20861 postinstall_cmds='base_file=`basename \${file}`~
20862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20863 dldir=$destdir/`dirname \$dlpath`~
20864 test -d \$dldir || mkdir -p \$dldir~
20865 $install_prog $dir/$dlname \$dldir/$dlname'
20866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20867 dlpath=$dir/\$dldll~
20868 $RM \$dlpath'
20869 shlibpath_overrides_runpath=yes
20870 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020871 ;;
20872
20873 *)
cristyda16f162011-02-19 23:52:17 +000020874 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020876 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020877 ;;
20878 esac
cristy73bd4a52010-10-05 11:24:23 +000020879 # FIXME: first we should search . and the directory the executable is in
20880 shlibpath_var=PATH
20881 ;;
20882
20883darwin* | rhapsody*)
20884 dynamic_linker="$host_os dyld"
20885 version_type=darwin
20886 need_lib_prefix=no
20887 need_version=no
20888 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20889 soname_spec='${libname}${release}${major}$shared_ext'
20890 shlibpath_overrides_runpath=yes
20891 shlibpath_var=DYLD_LIBRARY_PATH
20892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20893
20894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20895 ;;
20896
20897dgux*)
cristy99bd5232011-12-07 14:38:20 +000020898 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 shlibpath_var=LD_LIBRARY_PATH
20904 ;;
20905
cristy73bd4a52010-10-05 11:24:23 +000020906freebsd* | dragonfly*)
20907 # DragonFly does not have aout. When/if they implement a new
20908 # versioning mechanism, adjust this.
20909 if test -x /usr/bin/objformat; then
20910 objformat=`/usr/bin/objformat`
20911 else
20912 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020913 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020914 *) objformat=elf ;;
20915 esac
20916 fi
20917 version_type=freebsd-$objformat
20918 case $version_type in
20919 freebsd-elf*)
20920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20921 need_version=no
20922 need_lib_prefix=no
20923 ;;
20924 freebsd-*)
20925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20926 need_version=yes
20927 ;;
20928 esac
20929 shlibpath_var=LD_LIBRARY_PATH
20930 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020931 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020932 shlibpath_overrides_runpath=yes
20933 ;;
20934 freebsd3.[01]* | freebsdelf3.[01]*)
20935 shlibpath_overrides_runpath=yes
20936 hardcode_into_libs=yes
20937 ;;
20938 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20939 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20940 shlibpath_overrides_runpath=no
20941 hardcode_into_libs=yes
20942 ;;
20943 *) # from 4.6 on, and DragonFly
20944 shlibpath_overrides_runpath=yes
20945 hardcode_into_libs=yes
20946 ;;
20947 esac
20948 ;;
20949
20950gnu*)
cristy99bd5232011-12-07 14:38:20 +000020951 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020952 need_lib_prefix=no
20953 need_version=no
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20955 soname_spec='${libname}${release}${shared_ext}$major'
20956 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020957 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020958 hardcode_into_libs=yes
20959 ;;
20960
cristy0c60a692010-11-04 01:09:47 +000020961haiku*)
cristy99bd5232011-12-07 14:38:20 +000020962 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020963 need_lib_prefix=no
20964 need_version=no
20965 dynamic_linker="$host_os runtime_loader"
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 shlibpath_var=LIBRARY_PATH
20969 shlibpath_overrides_runpath=yes
20970 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20971 hardcode_into_libs=yes
20972 ;;
20973
cristy73bd4a52010-10-05 11:24:23 +000020974hpux9* | hpux10* | hpux11*)
20975 # Give a soname corresponding to the major version so that dld.sl refuses to
20976 # link against other versions.
20977 version_type=sunos
20978 need_lib_prefix=no
20979 need_version=no
20980 case $host_cpu in
20981 ia64*)
20982 shrext_cmds='.so'
20983 hardcode_into_libs=yes
20984 dynamic_linker="$host_os dld.so"
20985 shlibpath_var=LD_LIBRARY_PATH
20986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 soname_spec='${libname}${release}${shared_ext}$major'
20989 if test "X$HPUX_IA64_MODE" = X32; then
20990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20991 else
20992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20993 fi
20994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20995 ;;
20996 hppa*64*)
20997 shrext_cmds='.sl'
20998 hardcode_into_libs=yes
20999 dynamic_linker="$host_os dld.sl"
21000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21003 soname_spec='${libname}${release}${shared_ext}$major'
21004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21006 ;;
21007 *)
21008 shrext_cmds='.sl'
21009 dynamic_linker="$host_os dld.sl"
21010 shlibpath_var=SHLIB_PATH
21011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21013 soname_spec='${libname}${release}${shared_ext}$major'
21014 ;;
21015 esac
cristy0c60a692010-11-04 01:09:47 +000021016 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021017 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021018 # or fails outright, so override atomically:
21019 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021020 ;;
21021
21022interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021023 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021024 need_lib_prefix=no
21025 need_version=no
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21027 soname_spec='${libname}${release}${shared_ext}$major'
21028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21029 shlibpath_var=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath=no
21031 hardcode_into_libs=yes
21032 ;;
21033
21034irix5* | irix6* | nonstopux*)
21035 case $host_os in
21036 nonstopux*) version_type=nonstopux ;;
21037 *)
21038 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021039 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021040 else
21041 version_type=irix
21042 fi ;;
21043 esac
21044 need_lib_prefix=no
21045 need_version=no
21046 soname_spec='${libname}${release}${shared_ext}$major'
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21048 case $host_os in
21049 irix5* | nonstopux*)
21050 libsuff= shlibsuff=
21051 ;;
21052 *)
21053 case $LD in # libtool.m4 will add one of these switches to LD
21054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21055 libsuff= shlibsuff= libmagic=32-bit;;
21056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21057 libsuff=32 shlibsuff=N32 libmagic=N32;;
21058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21060 *) libsuff= shlibsuff= libmagic=never-match;;
21061 esac
21062 ;;
21063 esac
21064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21065 shlibpath_overrides_runpath=no
21066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21068 hardcode_into_libs=yes
21069 ;;
21070
21071# No shared lib support for Linux oldld, aout, or coff.
21072linux*oldld* | linux*aout* | linux*coff*)
21073 dynamic_linker=no
21074 ;;
21075
cristy99bd5232011-12-07 14:38:20 +000021076# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021077linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021078 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021079 need_lib_prefix=no
21080 need_version=no
21081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21082 soname_spec='${libname}${release}${shared_ext}$major'
21083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21084 shlibpath_var=LD_LIBRARY_PATH
21085 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021086
cristy73bd4a52010-10-05 11:24:23 +000021087 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021088 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021089 $as_echo_n "(cached) " >&6
21090else
21091 lt_cv_shlibpath_overrides_runpath=no
21092 save_LDFLAGS=$LDFLAGS
21093 save_libdir=$libdir
21094 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21095 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021097/* end confdefs.h. */
21098
21099int
21100main ()
21101{
21102
21103 ;
21104 return 0;
21105}
21106_ACEOF
21107if ac_fn_cxx_try_link "$LINENO"; then :
21108 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021109 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021110fi
21111fi
21112rm -f core conftest.err conftest.$ac_objext \
21113 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021114 LDFLAGS=$save_LDFLAGS
21115 libdir=$save_libdir
21116
21117fi
21118
21119 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021120
21121 # This implies no fast_install, which is unacceptable.
21122 # Some rework will be needed to allow for fast_install
21123 # before this can be enabled.
21124 hardcode_into_libs=yes
21125
21126 # Add ABI-specific directories to the system library path.
21127 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21128
21129 # Append ld.so.conf contents to the search path
21130 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021131 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 +000021132 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021133
cristy73bd4a52010-10-05 11:24:23 +000021134 fi
21135
21136 # We used to test for /lib/ld.so.1 and disable shared libraries on
21137 # powerpc, because MkLinux only supported shared libraries with the
21138 # GNU dynamic linker. Since this was broken with cross compilers,
21139 # most powerpc-linux boxes support dynamic linking these days and
21140 # people can always --disable-shared, the test was removed, and we
21141 # assume the GNU/Linux dynamic linker is in use.
21142 dynamic_linker='GNU/Linux ld.so'
21143 ;;
21144
21145netbsd*)
21146 version_type=sunos
21147 need_lib_prefix=no
21148 need_version=no
21149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21152 dynamic_linker='NetBSD (a.out) ld.so'
21153 else
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21155 soname_spec='${libname}${release}${shared_ext}$major'
21156 dynamic_linker='NetBSD ld.elf_so'
21157 fi
21158 shlibpath_var=LD_LIBRARY_PATH
21159 shlibpath_overrides_runpath=yes
21160 hardcode_into_libs=yes
21161 ;;
21162
21163newsos6)
cristy99bd5232011-12-07 14:38:20 +000021164 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 shlibpath_var=LD_LIBRARY_PATH
21167 shlibpath_overrides_runpath=yes
21168 ;;
21169
21170*nto* | *qnx*)
21171 version_type=qnx
21172 need_lib_prefix=no
21173 need_version=no
21174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21175 soname_spec='${libname}${release}${shared_ext}$major'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 shlibpath_overrides_runpath=no
21178 hardcode_into_libs=yes
21179 dynamic_linker='ldqnx.so'
21180 ;;
21181
21182openbsd*)
21183 version_type=sunos
21184 sys_lib_dlsearch_path_spec="/usr/lib"
21185 need_lib_prefix=no
21186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21187 case $host_os in
21188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21189 *) need_version=no ;;
21190 esac
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21193 shlibpath_var=LD_LIBRARY_PATH
21194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21195 case $host_os in
21196 openbsd2.[89] | openbsd2.[89].*)
21197 shlibpath_overrides_runpath=no
21198 ;;
21199 *)
21200 shlibpath_overrides_runpath=yes
21201 ;;
21202 esac
21203 else
21204 shlibpath_overrides_runpath=yes
21205 fi
21206 ;;
21207
21208os2*)
21209 libname_spec='$name'
21210 shrext_cmds=".dll"
21211 need_lib_prefix=no
21212 library_names_spec='$libname${shared_ext} $libname.a'
21213 dynamic_linker='OS/2 ld.exe'
21214 shlibpath_var=LIBPATH
21215 ;;
21216
21217osf3* | osf4* | osf5*)
21218 version_type=osf
21219 need_lib_prefix=no
21220 need_version=no
21221 soname_spec='${libname}${release}${shared_ext}$major'
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21223 shlibpath_var=LD_LIBRARY_PATH
21224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21226 ;;
21227
21228rdos*)
21229 dynamic_linker=no
21230 ;;
21231
21232solaris*)
cristy99bd5232011-12-07 14:38:20 +000021233 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021234 need_lib_prefix=no
21235 need_version=no
21236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21237 soname_spec='${libname}${release}${shared_ext}$major'
21238 shlibpath_var=LD_LIBRARY_PATH
21239 shlibpath_overrides_runpath=yes
21240 hardcode_into_libs=yes
21241 # ldd complains unless libraries are executable
21242 postinstall_cmds='chmod +x $lib'
21243 ;;
21244
21245sunos4*)
21246 version_type=sunos
21247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21249 shlibpath_var=LD_LIBRARY_PATH
21250 shlibpath_overrides_runpath=yes
21251 if test "$with_gnu_ld" = yes; then
21252 need_lib_prefix=no
21253 fi
21254 need_version=yes
21255 ;;
21256
21257sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021258 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21260 soname_spec='${libname}${release}${shared_ext}$major'
21261 shlibpath_var=LD_LIBRARY_PATH
21262 case $host_vendor in
21263 sni)
21264 shlibpath_overrides_runpath=no
21265 need_lib_prefix=no
21266 runpath_var=LD_RUN_PATH
21267 ;;
21268 siemens)
21269 need_lib_prefix=no
21270 ;;
21271 motorola)
21272 need_lib_prefix=no
21273 need_version=no
21274 shlibpath_overrides_runpath=no
21275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21276 ;;
21277 esac
21278 ;;
21279
21280sysv4*MP*)
21281 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021282 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21284 soname_spec='$libname${shared_ext}.$major'
21285 shlibpath_var=LD_LIBRARY_PATH
21286 fi
21287 ;;
21288
21289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21290 version_type=freebsd-elf
21291 need_lib_prefix=no
21292 need_version=no
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21294 soname_spec='${libname}${release}${shared_ext}$major'
21295 shlibpath_var=LD_LIBRARY_PATH
21296 shlibpath_overrides_runpath=yes
21297 hardcode_into_libs=yes
21298 if test "$with_gnu_ld" = yes; then
21299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21300 else
21301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21302 case $host_os in
21303 sco3.2v5*)
21304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21305 ;;
21306 esac
21307 fi
21308 sys_lib_dlsearch_path_spec='/usr/lib'
21309 ;;
21310
21311tpf*)
21312 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021313 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021314 need_lib_prefix=no
21315 need_version=no
21316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21317 shlibpath_var=LD_LIBRARY_PATH
21318 shlibpath_overrides_runpath=no
21319 hardcode_into_libs=yes
21320 ;;
21321
21322uts4*)
cristy99bd5232011-12-07 14:38:20 +000021323 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21325 soname_spec='${libname}${release}${shared_ext}$major'
21326 shlibpath_var=LD_LIBRARY_PATH
21327 ;;
21328
21329*)
21330 dynamic_linker=no
21331 ;;
21332esac
21333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21334$as_echo "$dynamic_linker" >&6; }
21335test "$dynamic_linker" = no && can_build_shared=no
21336
21337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21338if test "$GCC" = yes; then
21339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21340fi
21341
21342if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21343 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21344fi
21345if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21346 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21347fi
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
cristy0c60a692010-11-04 01:09:47 +000021384
21385
cristy73bd4a52010-10-05 11:24:23 +000021386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21387$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21388hardcode_action_CXX=
21389if test -n "$hardcode_libdir_flag_spec_CXX" ||
21390 test -n "$runpath_var_CXX" ||
21391 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21392
21393 # We can hardcode non-existent directories.
21394 if test "$hardcode_direct_CXX" != no &&
21395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21396 # have to relink, otherwise we might link with an installed library
21397 # when we should be linking with a yet-to-be-installed one
21398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21399 test "$hardcode_minus_L_CXX" != no; then
21400 # Linking always hardcodes the temporary library directory.
21401 hardcode_action_CXX=relink
21402 else
21403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21404 hardcode_action_CXX=immediate
21405 fi
21406else
21407 # We cannot hardcode anything, or else we can only hardcode existing
21408 # directories.
21409 hardcode_action_CXX=unsupported
21410fi
21411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21412$as_echo "$hardcode_action_CXX" >&6; }
21413
21414if test "$hardcode_action_CXX" = relink ||
21415 test "$inherit_rpath_CXX" = yes; then
21416 # Fast installation is not supported
21417 enable_fast_install=no
21418elif test "$shlibpath_overrides_runpath" = yes ||
21419 test "$enable_shared" = no; then
21420 # Fast installation is not necessary
21421 enable_fast_install=needless
21422fi
21423
21424
21425
21426
21427
21428
21429
21430 fi # test -n "$compiler"
21431
21432 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021433 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021434 LDCXX=$LD
21435 LD=$lt_save_LD
21436 GCC=$lt_save_GCC
21437 with_gnu_ld=$lt_save_with_gnu_ld
21438 lt_cv_path_LDCXX=$lt_cv_path_LD
21439 lt_cv_path_LD=$lt_save_path_LD
21440 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21441 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21442fi # test "$_lt_caught_CXX_error" != yes
21443
21444ac_ext=c
21445ac_cpp='$CPP $CPPFLAGS'
21446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
cristy99bd5232011-12-07 14:38:20 +000021462
21463
cristy73bd4a52010-10-05 11:24:23 +000021464 ac_config_commands="$ac_config_commands libtool"
21465
21466
21467
21468
21469# Only expand once:
21470
21471
21472
cristy3ed852e2009-09-05 21:47:34 +000021473
21474
cristy3ed852e2009-09-05 21:47:34 +000021475# Check to see if building shared libraries
21476libtool_build_shared_libs='no'
21477if test "$enable_shared" = 'yes'; then
21478 libtool_build_shared_libs='yes'
21479fi
21480
21481# Check to see if building static libraries
21482libtool_build_static_libs='no'
21483if test "$enable_static" = 'yes'; then
21484 libtool_build_static_libs='yes'
21485fi
21486
cristy73bd4a52010-10-05 11:24:23 +000021487 if test "${libtool_build_shared_libs}" = 'yes'; then
21488 WITH_SHARED_LIBS_TRUE=
21489 WITH_SHARED_LIBS_FALSE='#'
21490else
21491 WITH_SHARED_LIBS_TRUE='#'
21492 WITH_SHARED_LIBS_FALSE=
21493fi
21494
cristy3ed852e2009-09-05 21:47:34 +000021495#
21496# Enable support for building loadable modules
21497#
cristyaf4cbf32012-10-16 23:47:41 +000021498build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021499
21500# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021501if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021502 withval=$with_modules; with_modules=$withval
21503else
cristy5a1cefd2010-01-06 20:42:35 +000021504 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021505fi
21506
21507
21508# Only allow building loadable modules if we are building shared libraries
21509if test "$with_modules" != 'no' ; then
21510 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021511 { $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 +000021512$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021513 build_modules='no'
21514 else
21515 build_modules='yes'
21516 fi
cristy3ed852e2009-09-05 21:47:34 +000021517fi
cristyc6722092012-10-14 00:19:31 +000021518if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021519
cristy8b350f62009-11-15 23:12:43 +000021520$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021521
cristyfa161182012-12-19 15:45:28 +000021522 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021523fi
cristyc6722092012-10-14 00:19:31 +000021524 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021525 WITH_MODULES_TRUE=
21526 WITH_MODULES_FALSE='#'
21527else
21528 WITH_MODULES_TRUE='#'
21529 WITH_MODULES_FALSE=
21530fi
21531
cristy3ed852e2009-09-05 21:47:34 +000021532
cristy3ed852e2009-09-05 21:47:34 +000021533# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021534# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021535# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021536if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21538else
21539 enable_delegate_build='no'
21540fi
21541
21542
21543# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021544if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021545 enableval=$enable_deprecated; enable_deprecated=$enableval
21546else
21547 enable_deprecated='no'
21548fi
21549
21550
21551if test "$enable_deprecated" = 'yes'; then
21552
cristy8b350f62009-11-15 23:12:43 +000021553$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021554
21555else
21556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21557fi
21558
21559# Build a version of ImageMagick which operates uninstalled.
21560# Used to build distributions located via MAGICK_HOME / executable path
21561# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021562if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 enableval=$enable_installed; enable_installed=$enableval
21564else
21565 enable_installed='yes'
21566fi
21567
21568
21569if test "$enable_installed" = 'yes'; then
21570
cristy8b350f62009-11-15 23:12:43 +000021571$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021572
21573else
21574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21575fi
21576
21577# Permit enciphering and deciphering image pixels.
21578# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021579if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021580 enableval=$enable_cipher; enable_cipher=$enableval
21581else
21582 enable_cipher='yes'
21583fi
21584
21585
21586if test "$enable_cipher" = 'yes'; then
21587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
21590fi
21591
cristy6e3607c2011-09-13 13:59:17 +000021592# Build a zero-configuration version of ImageMagick.
21593# Check whether --enable-zero-configuration was given.
21594if test "${enable_zero_configuration+set}" = set; then :
21595 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021596else
cristy6e3607c2011-09-13 13:59:17 +000021597 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021598fi
21599
21600
cristy6e3607c2011-09-13 13:59:17 +000021601if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021602
cristy6e3607c2011-09-13 13:59:17 +000021603$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021604
cristy81af5702011-09-13 14:20:58 +000021605 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021606fi
21607
21608# Build a high dynamic range version of ImageMagick.
21609# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021610if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021611 enableval=$enable_hdri; enable_hdri=$enableval
21612else
cristy191c0b72012-08-12 16:29:52 +000021613 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021614fi
21615
21616
21617MAGICK_HDRI=""
21618if test "$enable_hdri" = 'yes'; then
21619 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021620 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021621 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021622else
21623 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021624fi
21625
cristye52f12f2012-12-31 15:32:36 +000021626cat >>confdefs.h <<_ACEOF
21627#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21628_ACEOF
21629
21630MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21631CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021632CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021633
cristy3ed852e2009-09-05 21:47:34 +000021634# Build a version of ImageMagick with assert statements.
21635# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021636if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021637 enableval=$enable_assert; enable_assert=$enableval
21638else
21639 enable_assert='yes'
21640fi
21641
21642
21643if test "$enable_assert" = 'no'; then
21644
cristy8b350f62009-11-15 23:12:43 +000021645$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021646
21647fi
21648
cristya448bd22011-10-14 12:38:13 +000021649# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021650
21651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21652$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21653 # Check whether --enable-maintainer-mode was given.
21654if test "${enable_maintainer_mode+set}" = set; then :
21655 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21656else
21657 USE_MAINTAINER_MODE=no
21658fi
21659
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21661$as_echo "$USE_MAINTAINER_MODE" >&6; }
21662 if test $USE_MAINTAINER_MODE = yes; then
21663 MAINTAINER_MODE_TRUE=
21664 MAINTAINER_MODE_FALSE='#'
21665else
21666 MAINTAINER_MODE_TRUE='#'
21667 MAINTAINER_MODE_FALSE=
21668fi
21669
21670 MAINT=$MAINTAINER_MODE_TRUE
21671
21672
cristy3ed852e2009-09-05 21:47:34 +000021673
cristy944e51f2013-04-16 18:45:02 +000021674# Enable hugepages support
21675# Check whether --enable-hugepages was given.
21676if test "${enable_hugepages+set}" = set; then :
21677 enableval=$enable_hugepages; enable_hugepages=$enableval
21678else
21679 enable_hugepages='no'
21680fi
21681
21682
cristy3ed852e2009-09-05 21:47:34 +000021683# Enable ccmalloc memory debugging support
21684# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021685if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021686 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21687else
21688 enable_ccmalloc='no'
21689fi
21690
21691
21692# Enable Electric Fence memory debugging support
21693# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021694if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 enableval=$enable_efence; enable_efence=$enableval
21696else
21697 enable_efence='no'
21698fi
21699
21700
21701# Enable prof-based profiling support
21702# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021703if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021704 enableval=$enable_prof; enable_prof=$enableval
21705else
21706 enable_prof='no'
21707fi
21708
21709
21710# Enable gprof-based profiling support
21711# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021712if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021713 enableval=$enable_gprof; enable_gprof=$enableval
21714else
21715 enable_gprof='no'
21716fi
21717
21718
21719# Enable gcov-based profiling support
21720# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021721if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021722 enableval=$enable_gcov; enable_gcov=$enableval
21723else
21724 enable_gcov='no'
21725fi
21726
21727
21728enable_profiling='no'
21729if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21730 enable_profiling='yes'
21731 if test "$libtool_build_shared_libs" = 'yes'; then
21732 echo "Warning: Can not profile code using shared libraries"
21733 fi
21734fi
21735
21736# Magick API method prefix
21737
21738# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021739if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021740 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021741else
cristyfc3d0222012-02-07 15:05:57 +000021742 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021743fi
21744
21745
cristyfc3d0222012-02-07 15:05:57 +000021746if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021747
21748cat >>confdefs.h <<_ACEOF
21749#define NAMESPACE_PREFIX $with_method_prefix
21750_ACEOF
21751
cristyfc3d0222012-02-07 15:05:57 +000021752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021753fi
21754
cristy71d8c202012-03-20 17:05:01 +000021755# Enable legacy support (default no)
21756# Check whether --enable-legacy-support was given.
21757if test "${enable_legacy_support+set}" = set; then :
21758 enableval=$enable_legacy_support; with_legacy_support=$enableval
21759else
21760 with_legacy_support='no'
21761fi
21762
21763 if test "$with_legacy_support" != 'no'; then
21764 LEGACY_SUPPORT_TRUE=
21765 LEGACY_SUPPORT_FALSE='#'
21766else
21767 LEGACY_SUPPORT_TRUE='#'
21768 LEGACY_SUPPORT_FALSE=
21769fi
21770
21771
cristy3ed852e2009-09-05 21:47:34 +000021772# Number of bits in a Quantum
21773
21774# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021775if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 withval=$with_quantum_depth; with_quantum_depth=$withval
21777else
21778 with_quantum_depth=16
21779fi
21780
21781
21782if test "$with_quantum_depth" != '8'; then
21783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21784fi
21785
21786case "${with_quantum_depth}" in
21787 8 ) ;;
21788 16 ) ;;
21789 32 ) ;;
21790 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021791 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021792esac
21793QUANTUM_DEPTH="$with_quantum_depth"
21794
21795cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021796#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021797_ACEOF
21798
cristya371edf2013-02-06 13:42:17 +000021799MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021800CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021801CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021802
cristy01ff9f32012-12-01 18:15:29 +000021803# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021804MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021805if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021806 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021807fi
cristy01ff9f32012-12-01 18:15:29 +000021808
21809
cristy3ed852e2009-09-05 21:47:34 +000021810# Set pixel cache threshold
21811
21812# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021813if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 withval=$with_cache; with_cache=$withval
21815else
21816 with_cache=''
21817fi
21818
21819
21820if test "$with_cache" != ''; then
21821
21822cat >>confdefs.h <<_ACEOF
21823#define PixelCacheThreshold $with_cache
21824_ACEOF
21825
21826 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21827fi
21828
21829# Disable/Enable support for full delegate paths
21830
21831# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021832if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021833 withval=$with_frozenpaths; with_frozenpaths=$withval
21834else
21835 with_frozenpaths='no'
21836fi
21837
21838
21839# Enable build/install of Magick++
21840
21841# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021842if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021843 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21844else
21845 with_magick_plus_plus='yes'
21846fi
21847
21848
cristy3a75f062012-09-08 23:29:40 +000021849# Encode the this name into the shared library.
21850
21851# Check whether --with-package-release-name was given.
21852if test "${with_package_release_name+set}" = set; then :
21853 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21854fi
21855
21856
21857
cristy3ed852e2009-09-05 21:47:34 +000021858# Disable build/install of PerlMagick.
21859
21860# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021861if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021862 withval=$with_perl; with_perl=$withval
21863else
cristyb5f4e2f2010-04-25 00:49:11 +000021864 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021865fi
21866
21867
21868# Options to pass when configuring PerlMagick
21869
21870# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021871if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021872 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021873fi
21874
21875
cristy3ed852e2009-09-05 21:47:34 +000021876
cristy3b0097d2014-11-04 15:34:47 +000021877# Enable jemalloc, object-caching memory allocation library.
21878
21879# Check whether --with-jemalloc was given.
21880if test "${with_jemalloc+set}" = set; then :
21881 withval=$with_jemalloc; with_jemalloc=$withval
21882else
21883 with_jemalloc='no'
21884fi
21885
21886if test "$with_jemalloc" != 'yes' ; then
21887 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21888fi
21889
cristy3ed852e2009-09-05 21:47:34 +000021890# Enable umem, object-caching memory allocation library.
21891
21892# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021893if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 withval=$with_umem; with_umem=$withval
21895else
21896 with_umem='no'
21897fi
21898
21899if test "$with_umem" != 'yes' ; then
21900 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21901fi
21902
21903#
21904# Specify path to shared libstdc++ if not in normal location
21905#
21906
21907# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021908if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021909 withval=$with_libstdc; with_libstdc=$withval
21910else
21911 with_libstdc=''
21912fi
21913
21914
21915if test "$with_libstdc" != ''; then
21916 if test -d "$with_libstdc"; then
21917 LIBSTDCLDFLAGS="-L$with_libstdc"
21918 fi
21919fi
21920
21921
21922# Does gcc required -traditional?
21923if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021926if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 $as_echo_n "(cached) " >&6
21928else
21929 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021931/* end confdefs.h. */
21932#include <sgtty.h>
21933Autoconf TIOCGETP
21934_ACEOF
21935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021936 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021937 ac_cv_prog_gcc_traditional=yes
21938else
21939 ac_cv_prog_gcc_traditional=no
21940fi
21941rm -f conftest*
21942
21943
21944 if test $ac_cv_prog_gcc_traditional = no; then
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 <termio.h>
21948Autoconf TCGETA
21949_ACEOF
21950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021951 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 ac_cv_prog_gcc_traditional=yes
21953fi
21954rm -f conftest*
21955
21956 fi
21957fi
cristy8b350f62009-11-15 23:12:43 +000021958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21960 if test $ac_cv_prog_gcc_traditional = yes; then
21961 CC="$CC -traditional"
21962 fi
21963fi
21964
21965
21966########
21967#
21968# Set defines required to build DLLs and modules using MinGW
21969#
21970########
21971# These options are set for multi-thread DLL module build
21972# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21973# module: _DLL
21974# executable/Magick++: _DLL _MAGICKMOD_
21975MODULE_EXTRA_CPPFLAGS=''
21976LIBRARY_EXTRA_CPPFLAGS=''
21977if test "${native_win32_build}" = 'yes'; then
21978 if test "${libtool_build_shared_libs}" = 'yes'; then
21979 CPPFLAGS="$CPPFLAGS -D_DLL"
21980 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21981 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21982 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021983 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021984 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21985 else
21986 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21987 fi
21988 else
21989 CPPFLAGS="$CPPFLAGS -D_LIB"
21990 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21991 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21992 fi
21993 if test "$with_threads" = 'yes'; then
21994 CPPFLAGS="$CPPFLAGS -D_MT"
21995 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21996 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21997 fi
21998fi
21999
22000
22001
22002# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022005if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022006 $as_echo_n "(cached) " >&6
22007else
cristy8b350f62009-11-15 23:12:43 +000022008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022009/* end confdefs.h. */
22010#include <stdlib.h>
22011#include <stdarg.h>
22012#include <string.h>
22013#include <float.h>
22014
22015int
22016main ()
22017{
22018
22019 ;
22020 return 0;
22021}
22022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022023if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 ac_cv_header_stdc=yes
22025else
cristy8b350f62009-11-15 23:12:43 +000022026 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022027fi
cristy3ed852e2009-09-05 21:47:34 +000022028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029
22030if test $ac_cv_header_stdc = yes; then
22031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022033/* end confdefs.h. */
22034#include <string.h>
22035
22036_ACEOF
22037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022038 $EGREP "memchr" >/dev/null 2>&1; then :
22039
cristy3ed852e2009-09-05 21:47:34 +000022040else
22041 ac_cv_header_stdc=no
22042fi
22043rm -f conftest*
22044
22045fi
22046
22047if test $ac_cv_header_stdc = yes; then
22048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022050/* end confdefs.h. */
22051#include <stdlib.h>
22052
22053_ACEOF
22054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022055 $EGREP "free" >/dev/null 2>&1; then :
22056
cristy3ed852e2009-09-05 21:47:34 +000022057else
22058 ac_cv_header_stdc=no
22059fi
22060rm -f conftest*
22061
22062fi
22063
22064if test $ac_cv_header_stdc = yes; then
22065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022066 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022067 :
22068else
cristy8b350f62009-11-15 23:12:43 +000022069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022070/* end confdefs.h. */
22071#include <ctype.h>
22072#include <stdlib.h>
22073#if ((' ' & 0x0FF) == 0x020)
22074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22076#else
22077# define ISLOWER(c) \
22078 (('a' <= (c) && (c) <= 'i') \
22079 || ('j' <= (c) && (c) <= 'r') \
22080 || ('s' <= (c) && (c) <= 'z'))
22081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22082#endif
22083
22084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22085int
22086main ()
22087{
22088 int i;
22089 for (i = 0; i < 256; i++)
22090 if (XOR (islower (i), ISLOWER (i))
22091 || toupper (i) != TOUPPER (i))
22092 return 2;
22093 return 0;
22094}
22095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022096if ac_fn_c_try_run "$LINENO"; then :
22097
cristy3ed852e2009-09-05 21:47:34 +000022098else
cristy8b350f62009-11-15 23:12:43 +000022099 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022100fi
cristy8b350f62009-11-15 23:12:43 +000022101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22102 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103fi
22104
cristy3ed852e2009-09-05 21:47:34 +000022105fi
22106fi
cristy8b350f62009-11-15 23:12:43 +000022107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "$ac_cv_header_stdc" >&6; }
22109if test $ac_cv_header_stdc = yes; then
22110
cristy8b350f62009-11-15 23:12:43 +000022111$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022112
22113fi
22114
22115if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022116 { $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 +000022117 header files. Compilation cannot proceed. Please install the ANSI C
22118 headers and rerun this script." >&5
22119$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22120 header files. Compilation cannot proceed. Please install the ANSI C
22121 headers and rerun this script." >&2;};
22122fi
cristya0b81c32010-01-22 02:54:33 +000022123
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22125$as_echo_n "checking whether to enable assertions... " >&6; }
22126 # Check whether --enable-assert was given.
22127if test "${enable_assert+set}" = set; then :
22128 enableval=$enable_assert; ac_enable_assert=$enableval
22129 if test "x$enableval" = xno; then :
22130
22131$as_echo "#define NDEBUG 1" >>confdefs.h
22132
22133elif test "x$enableval" != xyes; then :
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22135$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22136 ac_enable_assert=yes
22137fi
22138else
22139 ac_enable_assert=yes
22140fi
22141
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22143$as_echo "$ac_enable_assert" >&6; }
22144
cristy3ed852e2009-09-05 21:47:34 +000022145ac_header_dirent=no
22146for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22147 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022150if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 $as_echo_n "(cached) " >&6
22152else
cristy8b350f62009-11-15 23:12:43 +000022153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022154/* end confdefs.h. */
22155#include <sys/types.h>
22156#include <$ac_hdr>
22157
22158int
22159main ()
22160{
22161if ((DIR *) 0)
22162return 0;
22163 ;
22164 return 0;
22165}
22166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022167if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 eval "$as_ac_Header=yes"
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022171fi
cristy3ed852e2009-09-05 21:47:34 +000022172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173fi
cristy8b350f62009-11-15 23:12:43 +000022174eval ac_res=\$$as_ac_Header
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022176$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022177if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 cat >>confdefs.h <<_ACEOF
22179#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22180_ACEOF
22181
22182ac_header_dirent=$ac_hdr; break
22183fi
22184
22185done
22186# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22187if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022190if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022191 $as_echo_n "(cached) " >&6
22192else
22193 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022195/* end confdefs.h. */
22196
22197/* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22200#ifdef __cplusplus
22201extern "C"
22202#endif
22203char opendir ();
22204int
22205main ()
22206{
22207return opendir ();
22208 ;
22209 return 0;
22210}
22211_ACEOF
22212for ac_lib in '' dir; do
22213 if test -z "$ac_lib"; then
22214 ac_res="none required"
22215 else
22216 ac_res=-l$ac_lib
22217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22218 fi
cristy8b350f62009-11-15 23:12:43 +000022219 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022220 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022221fi
cristy8b350f62009-11-15 23:12:43 +000022222rm -f core conftest.err conftest.$ac_objext \
22223 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022224 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022225 break
22226fi
22227done
cristyda16f162011-02-19 23:52:17 +000022228if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022229
cristy3ed852e2009-09-05 21:47:34 +000022230else
22231 ac_cv_search_opendir=no
22232fi
22233rm conftest.$ac_ext
22234LIBS=$ac_func_search_save_LIBS
22235fi
cristy8b350f62009-11-15 23:12:43 +000022236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022237$as_echo "$ac_cv_search_opendir" >&6; }
22238ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022239if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22241
22242fi
22243
22244else
cristy8b350f62009-11-15 23:12:43 +000022245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022247if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022248 $as_echo_n "(cached) " >&6
22249else
22250 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022252/* end confdefs.h. */
22253
22254/* Override any GCC internal prototype to avoid an error.
22255 Use char because int might match the return type of a GCC
22256 builtin and then its argument prototype would still apply. */
22257#ifdef __cplusplus
22258extern "C"
22259#endif
22260char opendir ();
22261int
22262main ()
22263{
22264return opendir ();
22265 ;
22266 return 0;
22267}
22268_ACEOF
22269for ac_lib in '' x; do
22270 if test -z "$ac_lib"; then
22271 ac_res="none required"
22272 else
22273 ac_res=-l$ac_lib
22274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22275 fi
cristy8b350f62009-11-15 23:12:43 +000022276 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022277 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022278fi
cristy8b350f62009-11-15 23:12:43 +000022279rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022281 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022282 break
22283fi
22284done
cristyda16f162011-02-19 23:52:17 +000022285if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022286
cristy3ed852e2009-09-05 21:47:34 +000022287else
22288 ac_cv_search_opendir=no
22289fi
22290rm conftest.$ac_ext
22291LIBS=$ac_func_search_save_LIBS
22292fi
cristy8b350f62009-11-15 23:12:43 +000022293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022294$as_echo "$ac_cv_search_opendir" >&6; }
22295ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022296if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22298
22299fi
22300
22301fi
22302
22303
22304# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022305for 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 +000022306do :
22307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22308ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 cat >>confdefs.h <<_ACEOF
22311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22312_ACEOF
22313
22314fi
22315
22316done
22317
22318
22319########
22320#
22321# Checks for typedefs, structures, and compiler characteristics.
22322#
22323########
22324
cristy8b350f62009-11-15 23:12:43 +000022325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022326$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022327if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022328 $as_echo_n "(cached) " >&6
22329else
cristy8b350f62009-11-15 23:12:43 +000022330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331/* end confdefs.h. */
22332
cristy14fefe52012-05-21 00:59:18 +000022333 #include <stdbool.h>
22334 #ifndef bool
22335 "error: bool is not defined"
22336 #endif
22337 #ifndef false
22338 "error: false is not defined"
22339 #endif
22340 #if false
22341 "error: false is not 0"
22342 #endif
22343 #ifndef true
22344 "error: true is not defined"
22345 #endif
22346 #if true != 1
22347 "error: true is not 1"
22348 #endif
22349 #ifndef __bool_true_false_are_defined
22350 "error: __bool_true_false_are_defined is not defined"
22351 #endif
cristy3ed852e2009-09-05 21:47:34 +000022352
cristy14fefe52012-05-21 00:59:18 +000022353 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022354
cristy14fefe52012-05-21 00:59:18 +000022355 char a[true == 1 ? 1 : -1];
22356 char b[false == 0 ? 1 : -1];
22357 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22358 char d[(bool) 0.5 == true ? 1 : -1];
22359 /* See body of main program for 'e'. */
22360 char f[(_Bool) 0.0 == false ? 1 : -1];
22361 char g[true];
22362 char h[sizeof (_Bool)];
22363 char i[sizeof s.t];
22364 enum { j = false, k = true, l = false * true, m = true * 256 };
22365 /* The following fails for
22366 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22367 _Bool n[m];
22368 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22369 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22370 /* Catch a bug in an HP-UX C compiler. See
22371 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22372 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22373 */
22374 _Bool q = true;
22375 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022376
22377int
22378main ()
22379{
22380
cristy14fefe52012-05-21 00:59:18 +000022381 bool e = &s;
22382 *pq |= q;
22383 *pq |= ! q;
22384 /* Refer to every declared value, to avoid compiler optimizations. */
22385 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22386 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022387
22388 ;
22389 return 0;
22390}
22391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022392if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022393 ac_cv_header_stdbool_h=yes
22394else
cristy8b350f62009-11-15 23:12:43 +000022395 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022396fi
cristy3ed852e2009-09-05 21:47:34 +000022397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398fi
cristy8b350f62009-11-15 23:12:43 +000022399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022400$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022401 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022402if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022403
22404cat >>confdefs.h <<_ACEOF
22405#define HAVE__BOOL 1
22406_ACEOF
22407
22408
22409fi
22410
cristy14fefe52012-05-21 00:59:18 +000022411
cristy3ed852e2009-09-05 21:47:34 +000022412if test $ac_cv_header_stdbool_h = yes; then
22413
cristy8b350f62009-11-15 23:12:43 +000022414$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022415
22416fi
22417
cristy8b350f62009-11-15 23:12:43 +000022418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022419$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022420if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 $as_echo_n "(cached) " >&6
22422else
cristy8b350f62009-11-15 23:12:43 +000022423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022424/* end confdefs.h. */
22425
22426int
22427main ()
22428{
22429
22430volatile int x;
22431int * volatile y = (int *) 0;
22432return !x && !y;
22433 ;
22434 return 0;
22435}
22436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022437if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 ac_cv_c_volatile=yes
22439else
cristy8b350f62009-11-15 23:12:43 +000022440 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022441fi
cristy3ed852e2009-09-05 21:47:34 +000022442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443fi
cristy8b350f62009-11-15 23:12:43 +000022444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022445$as_echo "$ac_cv_c_volatile" >&6; }
22446if test $ac_cv_c_volatile = no; then
22447
cristy8b350f62009-11-15 23:12:43 +000022448$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022449
22450fi
22451
cristy8b350f62009-11-15 23:12:43 +000022452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022453$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022454if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 $as_echo_n "(cached) " >&6
22456else
cristy8b350f62009-11-15 23:12:43 +000022457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022458/* end confdefs.h. */
22459#define x(y) #y
22460
22461char *s = x(teststring);
22462_ACEOF
22463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022464 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022465 ac_cv_c_stringize=no
22466else
22467 ac_cv_c_stringize=yes
22468fi
22469rm -f conftest*
22470
22471fi
cristy8b350f62009-11-15 23:12:43 +000022472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022473$as_echo "$ac_cv_c_stringize" >&6; }
22474if test $ac_cv_c_stringize = yes; then
22475
cristy8b350f62009-11-15 23:12:43 +000022476$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022477
22478fi
22479
cristy8b350f62009-11-15 23:12:43 +000022480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022481$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022482if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 $as_echo_n "(cached) " >&6
22484else
cristy8b350f62009-11-15 23:12:43 +000022485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486/* end confdefs.h. */
22487#include <sys/types.h>
22488#include <sys/stat.h>
22489
22490#if defined S_ISBLK && defined S_IFDIR
22491extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22492#endif
22493
22494#if defined S_ISBLK && defined S_IFCHR
22495extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22496#endif
22497
22498#if defined S_ISLNK && defined S_IFREG
22499extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22500#endif
22501
22502#if defined S_ISSOCK && defined S_IFREG
22503extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22504#endif
22505
22506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022507if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 ac_cv_header_stat_broken=no
22509else
cristy8b350f62009-11-15 23:12:43 +000022510 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy3ed852e2009-09-05 21:47:34 +000022512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513fi
cristy8b350f62009-11-15 23:12:43 +000022514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022515$as_echo "$ac_cv_header_stat_broken" >&6; }
22516if test $ac_cv_header_stat_broken = yes; then
22517
cristy8b350f62009-11-15 23:12:43 +000022518$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022519
22520fi
22521
cristy8b350f62009-11-15 23:12:43 +000022522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022523$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022524if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 $as_echo_n "(cached) " >&6
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022528/* end confdefs.h. */
22529#include <sys/types.h>
22530#include <sys/time.h>
22531#include <time.h>
22532
22533int
22534main ()
22535{
22536if ((struct tm *) 0)
22537return 0;
22538 ;
22539 return 0;
22540}
22541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022543 ac_cv_header_time=yes
22544else
cristy8b350f62009-11-15 23:12:43 +000022545 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022546fi
cristy3ed852e2009-09-05 21:47:34 +000022547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548fi
cristy8b350f62009-11-15 23:12:43 +000022549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022550$as_echo "$ac_cv_header_time" >&6; }
22551if test $ac_cv_header_time = yes; then
22552
cristy8b350f62009-11-15 23:12:43 +000022553$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022554
22555fi
22556
cristy8b350f62009-11-15 23:12:43 +000022557{ $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 +000022558$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022559if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 $as_echo_n "(cached) " >&6
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022563/* end confdefs.h. */
22564#include <sys/types.h>
22565#include <time.h>
22566
22567int
22568main ()
22569{
22570struct tm tm;
22571 int *p = &tm.tm_sec;
22572 return !p;
22573 ;
22574 return 0;
22575}
22576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022577if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 ac_cv_struct_tm=time.h
22579else
cristy8b350f62009-11-15 23:12:43 +000022580 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022581fi
cristy3ed852e2009-09-05 21:47:34 +000022582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583fi
cristy8b350f62009-11-15 23:12:43 +000022584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022585$as_echo "$ac_cv_struct_tm" >&6; }
22586if test $ac_cv_struct_tm = sys/time.h; then
22587
cristy8b350f62009-11-15 23:12:43 +000022588$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022589
22590fi
22591
cristy92703d82010-04-26 00:18:18 +000022592ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22593#include <$ac_cv_struct_tm>
22594
22595"
cristyda16f162011-02-19 23:52:17 +000022596if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022597
22598cat >>confdefs.h <<_ACEOF
22599#define HAVE_STRUCT_TM_TM_ZONE 1
22600_ACEOF
22601
22602
22603fi
22604
22605if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22606
22607$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22608
22609else
22610 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22611"
cristyda16f162011-02-19 23:52:17 +000022612if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022613 ac_have_decl=1
22614else
22615 ac_have_decl=0
22616fi
22617
22618cat >>confdefs.h <<_ACEOF
22619#define HAVE_DECL_TZNAME $ac_have_decl
22620_ACEOF
22621
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22623$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022624if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022625 $as_echo_n "(cached) " >&6
22626else
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628/* end confdefs.h. */
22629#include <time.h>
22630#if !HAVE_DECL_TZNAME
22631extern char *tzname[];
22632#endif
22633
22634int
22635main ()
22636{
22637return tzname[0][0];
22638 ;
22639 return 0;
22640}
22641_ACEOF
22642if ac_fn_c_try_link "$LINENO"; then :
22643 ac_cv_var_tzname=yes
22644else
22645 ac_cv_var_tzname=no
22646fi
22647rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22649fi
22650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22651$as_echo "$ac_cv_var_tzname" >&6; }
22652 if test $ac_cv_var_tzname = yes; then
22653
22654$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22655
22656 fi
22657fi
22658
cristy8b350f62009-11-15 23:12:43 +000022659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022660$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022661if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022662 $as_echo_n "(cached) " >&6
22663else
22664 echo '#! /bin/cat
22665exit 69
22666' >conftest
22667chmod u+x conftest
22668(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22669if test $? -ne 69; then
22670 ac_cv_sys_interpreter=yes
22671else
22672 ac_cv_sys_interpreter=no
22673fi
22674rm -f conftest
22675fi
cristy8b350f62009-11-15 23:12:43 +000022676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022677$as_echo "$ac_cv_sys_interpreter" >&6; }
22678interpval=$ac_cv_sys_interpreter
22679
22680
cristye80f9cb2013-01-09 01:09:31 +000022681#
22682# Checks for language qualifiers and semantics.
22683#
22684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22685$as_echo_n "checking whether char is unsigned... " >&6; }
22686if ${ac_cv_c_char_unsigned+:} false; then :
22687 $as_echo_n "(cached) " >&6
22688else
22689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22690/* end confdefs.h. */
22691$ac_includes_default
22692int
22693main ()
22694{
22695static int test_array [1 - 2 * !(((char) -1) < 0)];
22696test_array [0] = 0;
22697return test_array [0];
22698
22699 ;
22700 return 0;
22701}
22702_ACEOF
22703if ac_fn_c_try_compile "$LINENO"; then :
22704 ac_cv_c_char_unsigned=no
22705else
22706 ac_cv_c_char_unsigned=yes
22707fi
22708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709fi
22710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22711$as_echo "$ac_cv_c_char_unsigned" >&6; }
22712if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22713 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22714
22715fi
22716
22717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22718$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22719if ${ac_cv_c_const+:} false; then :
22720 $as_echo_n "(cached) " >&6
22721else
22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22723/* end confdefs.h. */
22724
22725int
22726main ()
22727{
22728
22729#ifndef __cplusplus
22730 /* Ultrix mips cc rejects this sort of thing. */
22731 typedef int charset[2];
22732 const charset cs = { 0, 0 };
22733 /* SunOS 4.1.1 cc rejects this. */
22734 char const *const *pcpcc;
22735 char **ppc;
22736 /* NEC SVR4.0.2 mips cc rejects this. */
22737 struct point {int x, y;};
22738 static struct point const zero = {0,0};
22739 /* AIX XL C 1.02.0.0 rejects this.
22740 It does not let you subtract one const X* pointer from another in
22741 an arm of an if-expression whose if-part is not a constant
22742 expression */
22743 const char *g = "string";
22744 pcpcc = &g + (g ? g-g : 0);
22745 /* HPUX 7.0 cc rejects these. */
22746 ++pcpcc;
22747 ppc = (char**) pcpcc;
22748 pcpcc = (char const *const *) ppc;
22749 { /* SCO 3.2v4 cc rejects this sort of thing. */
22750 char tx;
22751 char *t = &tx;
22752 char const *s = 0 ? (char *) 0 : (char const *) 0;
22753
22754 *t++ = 0;
22755 if (s) return 0;
22756 }
22757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22758 int x[] = {25, 17};
22759 const int *foo = &x[0];
22760 ++foo;
22761 }
22762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22763 typedef const int *iptr;
22764 iptr p = 0;
22765 ++p;
22766 }
22767 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22769 struct s { int j; const int *ap[3]; } bx;
22770 struct s *b = &bx; b->j = 5;
22771 }
22772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22773 const int foo = 10;
22774 if (!foo) return 0;
22775 }
22776 return !cs[0] && !zero.x;
22777#endif
22778
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783if ac_fn_c_try_compile "$LINENO"; then :
22784 ac_cv_c_const=yes
22785else
22786 ac_cv_c_const=no
22787fi
22788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789fi
22790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22791$as_echo "$ac_cv_c_const" >&6; }
22792if test $ac_cv_c_const = no; then
22793
22794$as_echo "#define const /**/" >>confdefs.h
22795
22796fi
22797
cristy8b350f62009-11-15 23:12:43 +000022798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022799$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022800if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022801 $as_echo_n "(cached) " >&6
22802else
22803 ac_cv_c_inline=no
22804for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022806/* end confdefs.h. */
22807#ifndef __cplusplus
22808typedef int foo_t;
22809static $ac_kw foo_t static_foo () {return 0; }
22810$ac_kw foo_t foo () {return 0; }
22811#endif
22812
22813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022814if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022815 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022816fi
cristy3ed852e2009-09-05 21:47:34 +000022817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22818 test "$ac_cv_c_inline" != no && break
22819done
22820
22821fi
cristy8b350f62009-11-15 23:12:43 +000022822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022823$as_echo "$ac_cv_c_inline" >&6; }
22824
cristy3ed852e2009-09-05 21:47:34 +000022825case $ac_cv_c_inline in
22826 inline | yes) ;;
22827 *)
22828 case $ac_cv_c_inline in
22829 no) ac_val=;;
22830 *) ac_val=$ac_cv_c_inline;;
22831 esac
22832 cat >>confdefs.h <<_ACEOF
22833#ifndef __cplusplus
22834#define inline $ac_val
22835#endif
22836_ACEOF
22837 ;;
22838esac
22839
cristy8b350f62009-11-15 23:12:43 +000022840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022841$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022842if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 $as_echo_n "(cached) " >&6
22844else
22845 ac_cv_c_restrict=no
22846 # The order here caters to the fact that C++ does not require restrict.
22847 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022849/* end confdefs.h. */
22850typedef int * int_ptr;
22851 int foo (int_ptr $ac_kw ip) {
22852 return ip[0];
22853 }
22854int
22855main ()
22856{
22857int s[1];
22858 int * $ac_kw t = s;
22859 t[0] = 0;
22860 return foo(t)
22861 ;
22862 return 0;
22863}
22864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022865if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022866 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022867fi
cristy3ed852e2009-09-05 21:47:34 +000022868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 test "$ac_cv_c_restrict" != no && break
22870 done
22871
22872fi
cristy8b350f62009-11-15 23:12:43 +000022873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022874$as_echo "$ac_cv_c_restrict" >&6; }
22875
cristy3ed852e2009-09-05 21:47:34 +000022876 case $ac_cv_c_restrict in
22877 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022878 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022879 ;;
22880 *) cat >>confdefs.h <<_ACEOF
22881#define restrict $ac_cv_c_restrict
22882_ACEOF
22883 ;;
22884 esac
22885
cristye80f9cb2013-01-09 01:09:31 +000022886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22887$as_echo_n "checking for working volatile... " >&6; }
22888if ${ac_cv_c_volatile+:} false; then :
22889 $as_echo_n "(cached) " >&6
22890else
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893
22894int
22895main ()
22896{
22897
22898volatile int x;
22899int * volatile y = (int *) 0;
22900return !x && !y;
22901 ;
22902 return 0;
22903}
22904_ACEOF
22905if ac_fn_c_try_compile "$LINENO"; then :
22906 ac_cv_c_volatile=yes
22907else
22908 ac_cv_c_volatile=no
22909fi
22910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911fi
22912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22913$as_echo "$ac_cv_c_volatile" >&6; }
22914if test $ac_cv_c_volatile = no; then
22915
22916$as_echo "#define volatile /**/" >>confdefs.h
22917
22918fi
22919
cristy3ed852e2009-09-05 21:47:34 +000022920
22921# If words are stored with the most significant byte first (like
22922# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022924$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022925if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 $as_echo_n "(cached) " >&6
22927else
22928 ac_cv_c_bigendian=unknown
22929 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022931/* end confdefs.h. */
22932#ifndef __APPLE_CC__
22933 not a universal capable compiler
22934 #endif
22935 typedef int dummy;
22936
22937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022938if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022939
22940 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022941 # there are at least two -arch flags with different values.
22942 ac_arch=
22943 ac_prev=
22944 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22945 if test -n "$ac_prev"; then
22946 case $ac_word in
22947 i?86 | x86_64 | ppc | ppc64)
22948 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22949 ac_arch=$ac_word
22950 else
22951 ac_cv_c_bigendian=universal
22952 break
22953 fi
22954 ;;
22955 esac
22956 ac_prev=
22957 elif test "x$ac_word" = "x-arch"; then
22958 ac_prev=arch
22959 fi
22960 done
cristy3ed852e2009-09-05 21:47:34 +000022961fi
cristy3ed852e2009-09-05 21:47:34 +000022962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 if test $ac_cv_c_bigendian = unknown; then
22964 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022966/* end confdefs.h. */
22967#include <sys/types.h>
22968 #include <sys/param.h>
22969
22970int
22971main ()
22972{
22973#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22974 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22975 && LITTLE_ENDIAN)
22976 bogus endian macros
22977 #endif
22978
22979 ;
22980 return 0;
22981}
22982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022983if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022984 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022986/* end confdefs.h. */
22987#include <sys/types.h>
22988 #include <sys/param.h>
22989
22990int
22991main ()
22992{
22993#if BYTE_ORDER != BIG_ENDIAN
22994 not big endian
22995 #endif
22996
22997 ;
22998 return 0;
22999}
23000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023001if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023002 ac_cv_c_bigendian=yes
23003else
cristy8b350f62009-11-15 23:12:43 +000023004 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023005fi
cristy3ed852e2009-09-05 21:47:34 +000023006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023007fi
cristy3ed852e2009-09-05 21:47:34 +000023008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 fi
23010 if test $ac_cv_c_bigendian = unknown; then
23011 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023013/* end confdefs.h. */
23014#include <limits.h>
23015
23016int
23017main ()
23018{
23019#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23020 bogus endian macros
23021 #endif
23022
23023 ;
23024 return 0;
23025}
23026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023027if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023028 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023030/* end confdefs.h. */
23031#include <limits.h>
23032
23033int
23034main ()
23035{
23036#ifndef _BIG_ENDIAN
23037 not big endian
23038 #endif
23039
23040 ;
23041 return 0;
23042}
23043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023045 ac_cv_c_bigendian=yes
23046else
cristy8b350f62009-11-15 23:12:43 +000023047 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023048fi
cristy3ed852e2009-09-05 21:47:34 +000023049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023050fi
cristy3ed852e2009-09-05 21:47:34 +000023051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 if test $ac_cv_c_bigendian = unknown; then
23054 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023055 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023056 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023058/* end confdefs.h. */
23059short int ascii_mm[] =
23060 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23061 short int ascii_ii[] =
23062 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23063 int use_ascii (int i) {
23064 return ascii_mm[i] + ascii_ii[i];
23065 }
23066 short int ebcdic_ii[] =
23067 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23068 short int ebcdic_mm[] =
23069 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23070 int use_ebcdic (int i) {
23071 return ebcdic_mm[i] + ebcdic_ii[i];
23072 }
23073 extern int foo;
23074
23075int
23076main ()
23077{
23078return use_ascii (foo) == use_ebcdic (foo);
23079 ;
23080 return 0;
23081}
23082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023084 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23085 ac_cv_c_bigendian=yes
23086 fi
23087 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23088 if test "$ac_cv_c_bigendian" = unknown; then
23089 ac_cv_c_bigendian=no
23090 else
23091 # finding both strings is unlikely to happen, but who knows?
23092 ac_cv_c_bigendian=unknown
23093 fi
23094 fi
cristy3ed852e2009-09-05 21:47:34 +000023095fi
cristy3ed852e2009-09-05 21:47:34 +000023096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097else
cristy8b350f62009-11-15 23:12:43 +000023098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023099/* end confdefs.h. */
23100$ac_includes_default
23101int
23102main ()
23103{
23104
23105 /* Are we little or big endian? From Harbison&Steele. */
23106 union
23107 {
23108 long int l;
23109 char c[sizeof (long int)];
23110 } u;
23111 u.l = 1;
23112 return u.c[sizeof (long int) - 1] == 1;
23113
23114 ;
23115 return 0;
23116}
23117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023118if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023119 ac_cv_c_bigendian=no
23120else
cristy8b350f62009-11-15 23:12:43 +000023121 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023122fi
cristy8b350f62009-11-15 23:12:43 +000023123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23124 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023125fi
23126
cristy3ed852e2009-09-05 21:47:34 +000023127 fi
23128fi
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo "$ac_cv_c_bigendian" >&6; }
23131 case $ac_cv_c_bigendian in #(
23132 yes)
cristy8b350f62009-11-15 23:12:43 +000023133 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023134;; #(
23135 no)
23136 ;; #(
23137 universal)
23138
cristy8b350f62009-11-15 23:12:43 +000023139$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023140
23141 ;; #(
23142 *)
cristy98dddb52010-11-04 00:30:15 +000023143 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023144 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023145 esac
23146
23147
cristy501c8042011-05-26 17:46:28 +000023148# Define to a suitable type, if standard headers do not define it.
23149ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23150case $ac_cv_c_int8_t in #(
23151 no|yes) ;; #(
23152 *)
cristy3ed852e2009-09-05 21:47:34 +000023153
23154cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023155#define int8_t $ac_cv_c_int8_t
23156_ACEOF
23157;;
23158esac
23159
23160ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23161case $ac_cv_c_int16_t in #(
23162 no|yes) ;; #(
23163 *)
23164
23165cat >>confdefs.h <<_ACEOF
23166#define int16_t $ac_cv_c_int16_t
23167_ACEOF
23168;;
23169esac
23170
23171ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23172case $ac_cv_c_int32_t in #(
23173 no|yes) ;; #(
23174 *)
23175
23176cat >>confdefs.h <<_ACEOF
23177#define int32_t $ac_cv_c_int32_t
23178_ACEOF
23179;;
23180esac
23181
23182ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23183case $ac_cv_c_int64_t in #(
23184 no|yes) ;; #(
23185 *)
23186
23187cat >>confdefs.h <<_ACEOF
23188#define int64_t $ac_cv_c_int64_t
23189_ACEOF
23190;;
23191esac
23192
23193
cristy045228a2013-06-23 11:00:16 +000023194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23195$as_echo_n "checking for unsigned long long int... " >&6; }
23196if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023197 $as_echo_n "(cached) " >&6
23198else
cristy045228a2013-06-23 11:00:16 +000023199 ac_cv_type_unsigned_long_long_int=yes
23200 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023202/* end confdefs.h. */
23203
23204 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023205 implementations with broken preprocessors. Perhaps this can
23206 be revisited in 2012. In the meantime, code should not expect
23207 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023208 /* Test literals. */
23209 long long int ll = 9223372036854775807ll;
23210 long long int nll = -9223372036854775807LL;
23211 unsigned long long int ull = 18446744073709551615ULL;
23212 /* Test constant expressions. */
23213 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023214 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023215 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023216 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023217 int i = 63;
23218int
23219main ()
23220{
23221/* Test availability of runtime routines for shift and division. */
23222 long long int llmax = 9223372036854775807ll;
23223 unsigned long long int ullmax = 18446744073709551615ull;
23224 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023225 | (llmax / ll) | (llmax % ll)
23226 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23227 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023228 ;
23229 return 0;
23230}
23231
23232_ACEOF
23233if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023234
23235else
23236 ac_cv_type_unsigned_long_long_int=no
23237fi
23238rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240 fi
23241fi
23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23243$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23244 if test $ac_cv_type_unsigned_long_long_int = yes; then
23245
23246$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23247
23248 fi
23249
23250
23251
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23253$as_echo_n "checking for long long int... " >&6; }
23254if ${ac_cv_type_long_long_int+:} false; then :
23255 $as_echo_n "(cached) " >&6
23256else
cristy501c8042011-05-26 17:46:28 +000023257 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023258 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023259 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23260 if test $ac_cv_type_long_long_int = yes; then
23261 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023262 :
cristy501c8042011-05-26 17:46:28 +000023263else
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265/* end confdefs.h. */
23266#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023267 #ifndef LLONG_MAX
23268 # define HALF \
23269 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23270 # define LLONG_MAX (HALF - 1 + HALF)
23271 #endif
cristy501c8042011-05-26 17:46:28 +000023272int
23273main ()
23274{
23275long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023276 int i;
23277 for (i = 0; ; i++)
23278 {
23279 long long int m = n << i;
23280 if (m >> i != n)
23281 return 1;
23282 if (LLONG_MAX / 2 < m)
23283 break;
23284 }
23285 return 0;
cristy501c8042011-05-26 17:46:28 +000023286 ;
23287 return 0;
23288}
23289_ACEOF
23290if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023291
cristy501c8042011-05-26 17:46:28 +000023292else
23293 ac_cv_type_long_long_int=no
23294fi
23295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23296 conftest.$ac_objext conftest.beam conftest.$ac_ext
23297fi
23298
cristy5ed9c6e2013-07-14 21:20:31 +000023299 fi
cristy045228a2013-06-23 11:00:16 +000023300 fi
cristy501c8042011-05-26 17:46:28 +000023301fi
23302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23303$as_echo "$ac_cv_type_long_long_int" >&6; }
23304 if test $ac_cv_type_long_long_int = yes; then
23305
23306$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23307
23308 fi
23309
23310
23311
23312 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23313if test "x$ac_cv_type_intmax_t" = xyes; then :
23314
23315$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23316
23317else
23318 test $ac_cv_type_long_long_int = yes \
23319 && ac_type='long long int' \
23320 || ac_type='long int'
23321
23322cat >>confdefs.h <<_ACEOF
23323#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023324_ACEOF
23325
23326fi
23327
23328
cristy501c8042011-05-26 17:46:28 +000023329
23330 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23331if test "x$ac_cv_type_intptr_t" = xyes; then :
23332
23333$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023334
cristy3ed852e2009-09-05 21:47:34 +000023335else
cristy501c8042011-05-26 17:46:28 +000023336 for ac_type in 'int' 'long int' 'long long int'; do
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338/* end confdefs.h. */
23339$ac_includes_default
23340int
23341main ()
23342{
23343static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023344test_array [0] = 0;
23345return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023346
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023352
23353cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023354#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023355_ACEOF
23356
cristy501c8042011-05-26 17:46:28 +000023357 ac_type=
23358fi
23359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 test -z "$ac_type" && break
23361 done
cristy3ed852e2009-09-05 21:47:34 +000023362fi
23363
23364
cristy3ed852e2009-09-05 21:47:34 +000023365
cristy501c8042011-05-26 17:46:28 +000023366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23367$as_echo_n "checking for long double... " >&6; }
23368if ${ac_cv_type_long_double+:} false; then :
23369 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023370else
cristy501c8042011-05-26 17:46:28 +000023371 if test "$GCC" = yes; then
23372 ac_cv_type_long_double=yes
23373 else
23374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375/* end confdefs.h. */
23376/* The Stardent Vistra knows sizeof (long double), but does
23377 not support it. */
23378 long double foo = 0.0L;
23379int
23380main ()
23381{
23382static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23383 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023384test_array [0] = 0;
23385return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023386
cristy501c8042011-05-26 17:46:28 +000023387 ;
23388 return 0;
23389}
cristy3ed852e2009-09-05 21:47:34 +000023390_ACEOF
cristy501c8042011-05-26 17:46:28 +000023391if ac_fn_c_try_compile "$LINENO"; then :
23392 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023393else
cristy501c8042011-05-26 17:46:28 +000023394 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023395fi
cristy501c8042011-05-26 17:46:28 +000023396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 fi
cristy3ed852e2009-09-05 21:47:34 +000023398fi
cristy501c8042011-05-26 17:46:28 +000023399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23400$as_echo "$ac_cv_type_long_double" >&6; }
23401 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023402
cristy501c8042011-05-26 17:46:28 +000023403$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023404
cristy501c8042011-05-26 17:46:28 +000023405 fi
23406
cristy3ed852e2009-09-05 21:47:34 +000023407
cristy8b350f62009-11-15 23:12:43 +000023408 { $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 +000023409$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023410if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023411 $as_echo_n "(cached) " >&6
23412else
cristy8b350f62009-11-15 23:12:43 +000023413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023414/* end confdefs.h. */
23415#include <float.h>
23416 long double const a[] =
23417 {
23418 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23419 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23420 };
23421 long double
23422 f (long double x)
23423 {
23424 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23425 + (x ? f (x) : 'c'));
23426 }
23427
23428int
23429main ()
23430{
23431static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23432 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23433 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23434 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23435 && (int) LDBL_EPSILON == 0
23436 )];
cristy14fefe52012-05-21 00:59:18 +000023437test_array [0] = 0;
23438return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023439
23440 ;
23441 return 0;
23442}
23443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023444if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023445 ac_cv_type_long_double_wider=yes
23446else
cristy8b350f62009-11-15 23:12:43 +000023447 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023448fi
cristy3ed852e2009-09-05 21:47:34 +000023449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23450fi
cristy8b350f62009-11-15 23:12:43 +000023451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023452$as_echo "$ac_cv_type_long_double_wider" >&6; }
23453 if test $ac_cv_type_long_double_wider = yes; then
23454
cristy8b350f62009-11-15 23:12:43 +000023455$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023456
23457 fi
23458
23459
cristy045228a2013-06-23 11:00:16 +000023460
cristy501c8042011-05-26 17:46:28 +000023461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23462$as_echo_n "checking for long long int... " >&6; }
23463if ${ac_cv_type_long_long_int+:} false; then :
23464 $as_echo_n "(cached) " >&6
23465else
cristy501c8042011-05-26 17:46:28 +000023466 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023467 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023468 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23469 if test $ac_cv_type_long_long_int = yes; then
23470 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023471 :
cristy501c8042011-05-26 17:46:28 +000023472else
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474/* end confdefs.h. */
23475#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023476 #ifndef LLONG_MAX
23477 # define HALF \
23478 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23479 # define LLONG_MAX (HALF - 1 + HALF)
23480 #endif
cristy501c8042011-05-26 17:46:28 +000023481int
23482main ()
23483{
23484long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023485 int i;
23486 for (i = 0; ; i++)
23487 {
23488 long long int m = n << i;
23489 if (m >> i != n)
23490 return 1;
23491 if (LLONG_MAX / 2 < m)
23492 break;
23493 }
23494 return 0;
cristy501c8042011-05-26 17:46:28 +000023495 ;
23496 return 0;
23497}
23498_ACEOF
23499if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023500
cristy501c8042011-05-26 17:46:28 +000023501else
23502 ac_cv_type_long_long_int=no
23503fi
23504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23505 conftest.$ac_objext conftest.beam conftest.$ac_ext
23506fi
23507
cristy5ed9c6e2013-07-14 21:20:31 +000023508 fi
cristy045228a2013-06-23 11:00:16 +000023509 fi
cristy501c8042011-05-26 17:46:28 +000023510fi
23511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23512$as_echo "$ac_cv_type_long_long_int" >&6; }
23513 if test $ac_cv_type_long_long_int = yes; then
23514
23515$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23516
23517 fi
23518
23519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23520$as_echo_n "checking for mbstate_t... " >&6; }
23521if ${ac_cv_type_mbstate_t+:} false; then :
23522 $as_echo_n "(cached) " >&6
23523else
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525/* end confdefs.h. */
23526$ac_includes_default
23527# include <wchar.h>
23528int
23529main ()
23530{
23531mbstate_t x; return sizeof x;
23532 ;
23533 return 0;
23534}
23535_ACEOF
23536if ac_fn_c_try_compile "$LINENO"; then :
23537 ac_cv_type_mbstate_t=yes
23538else
23539 ac_cv_type_mbstate_t=no
23540fi
23541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542fi
23543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23544$as_echo "$ac_cv_type_mbstate_t" >&6; }
23545 if test $ac_cv_type_mbstate_t = yes; then
23546
23547$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23548
23549 else
23550
23551$as_echo "#define mbstate_t int" >>confdefs.h
23552
23553 fi
23554ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23555if test "x$ac_cv_type_mode_t" = xyes; then :
23556
23557else
23558
23559cat >>confdefs.h <<_ACEOF
23560#define mode_t int
23561_ACEOF
23562
23563fi
23564
23565ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23566if test "x$ac_cv_type_off_t" = xyes; then :
23567
23568else
23569
23570cat >>confdefs.h <<_ACEOF
23571#define off_t long int
23572_ACEOF
23573
23574fi
23575
23576ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23577if test "x$ac_cv_type_pid_t" = xyes; then :
23578
23579else
23580
23581cat >>confdefs.h <<_ACEOF
23582#define pid_t int
23583_ACEOF
23584
23585fi
23586
23587ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23588if test "x$ac_cv_type_size_t" = xyes; then :
23589
23590else
23591
23592cat >>confdefs.h <<_ACEOF
23593#define size_t unsigned int
23594_ACEOF
23595
23596fi
23597
23598ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23599if test "x$ac_cv_type_ssize_t" = xyes; then :
23600
23601else
23602
23603cat >>confdefs.h <<_ACEOF
23604#define ssize_t int
23605_ACEOF
23606
23607fi
23608
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23610$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23611if ${ac_cv_type_uid_t+:} false; then :
23612 $as_echo_n "(cached) " >&6
23613else
23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615/* end confdefs.h. */
23616#include <sys/types.h>
23617
23618_ACEOF
23619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23620 $EGREP "uid_t" >/dev/null 2>&1; then :
23621 ac_cv_type_uid_t=yes
23622else
23623 ac_cv_type_uid_t=no
23624fi
23625rm -f conftest*
23626
23627fi
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23629$as_echo "$ac_cv_type_uid_t" >&6; }
23630if test $ac_cv_type_uid_t = no; then
23631
23632$as_echo "#define uid_t int" >>confdefs.h
23633
23634
23635$as_echo "#define gid_t int" >>confdefs.h
23636
23637fi
23638
23639ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23640case $ac_cv_c_uint8_t in #(
23641 no|yes) ;; #(
23642 *)
23643
23644$as_echo "#define _UINT8_T 1" >>confdefs.h
23645
23646
23647cat >>confdefs.h <<_ACEOF
23648#define uint8_t $ac_cv_c_uint8_t
23649_ACEOF
23650;;
23651 esac
23652
23653ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23654case $ac_cv_c_uint16_t in #(
23655 no|yes) ;; #(
23656 *)
23657
23658
23659cat >>confdefs.h <<_ACEOF
23660#define uint16_t $ac_cv_c_uint16_t
23661_ACEOF
23662;;
23663 esac
23664
23665ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23666case $ac_cv_c_uint32_t in #(
23667 no|yes) ;; #(
23668 *)
23669
23670$as_echo "#define _UINT32_T 1" >>confdefs.h
23671
23672
23673cat >>confdefs.h <<_ACEOF
23674#define uint32_t $ac_cv_c_uint32_t
23675_ACEOF
23676;;
23677 esac
23678
23679ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23680case $ac_cv_c_uint64_t in #(
23681 no|yes) ;; #(
23682 *)
23683
23684$as_echo "#define _UINT64_T 1" >>confdefs.h
23685
23686
23687cat >>confdefs.h <<_ACEOF
23688#define uint64_t $ac_cv_c_uint64_t
23689_ACEOF
23690;;
23691 esac
23692
23693
cristy501c8042011-05-26 17:46:28 +000023694
23695 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23696if test "x$ac_cv_type_uintmax_t" = xyes; then :
23697
23698$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23699
23700else
23701 test $ac_cv_type_unsigned_long_long_int = yes \
23702 && ac_type='unsigned long long int' \
23703 || ac_type='unsigned long int'
23704
23705cat >>confdefs.h <<_ACEOF
23706#define uintmax_t $ac_type
23707_ACEOF
23708
23709fi
23710
23711
23712
23713 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23714if test "x$ac_cv_type_uintptr_t" = xyes; then :
23715
23716$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23717
23718else
23719 for ac_type in 'unsigned int' 'unsigned long int' \
23720 'unsigned long long int'; do
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722/* end confdefs.h. */
23723$ac_includes_default
23724int
23725main ()
23726{
23727static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023728test_array [0] = 0;
23729return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023730
23731 ;
23732 return 0;
23733}
23734_ACEOF
23735if ac_fn_c_try_compile "$LINENO"; then :
23736
23737cat >>confdefs.h <<_ACEOF
23738#define uintptr_t $ac_type
23739_ACEOF
23740
23741 ac_type=
23742fi
23743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744 test -z "$ac_type" && break
23745 done
23746fi
23747
23748
23749
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23751$as_echo_n "checking for unsigned long long int... " >&6; }
23752if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23753 $as_echo_n "(cached) " >&6
23754else
cristy045228a2013-06-23 11:00:16 +000023755 ac_cv_type_unsigned_long_long_int=yes
23756 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023758/* end confdefs.h. */
23759
23760 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023761 implementations with broken preprocessors. Perhaps this can
23762 be revisited in 2012. In the meantime, code should not expect
23763 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023764 /* Test literals. */
23765 long long int ll = 9223372036854775807ll;
23766 long long int nll = -9223372036854775807LL;
23767 unsigned long long int ull = 18446744073709551615ULL;
23768 /* Test constant expressions. */
23769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023770 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023772 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023773 int i = 63;
23774int
23775main ()
23776{
23777/* Test availability of runtime routines for shift and division. */
23778 long long int llmax = 9223372036854775807ll;
23779 unsigned long long int ullmax = 18446744073709551615ull;
23780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023781 | (llmax / ll) | (llmax % ll)
23782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23783 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023784 ;
23785 return 0;
23786}
23787
23788_ACEOF
23789if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023790
cristy501c8042011-05-26 17:46:28 +000023791else
23792 ac_cv_type_unsigned_long_long_int=no
23793fi
23794rm -f core conftest.err conftest.$ac_objext \
23795 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023796 fi
cristy501c8042011-05-26 17:46:28 +000023797fi
23798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23799$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23800 if test $ac_cv_type_unsigned_long_long_int = yes; then
23801
23802$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23803
23804 fi
23805
23806
cristyfec31822013-05-23 12:32:12 +000023807# Float_t and double_t are intended to be the the most efficient type.
23808ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23809"
23810if test "x$ac_cv_type_float_t" = xyes; then :
23811
23812cat >>confdefs.h <<_ACEOF
23813#define HAVE_FLOAT_T 1
23814_ACEOF
23815
23816
23817fi
23818
23819ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23820"
23821if test "x$ac_cv_type_double_t" = xyes; then :
23822
23823cat >>confdefs.h <<_ACEOF
23824#define HAVE_DOUBLE_T 1
23825_ACEOF
23826
23827
23828fi
23829
23830# The cast to long int works around a bug in the HP C Compiler
23831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23833# This bug is HP SR number 8606223364.
23834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23835$as_echo_n "checking size of float_t... " >&6; }
23836if ${ac_cv_sizeof_float_t+:} false; then :
23837 $as_echo_n "(cached) " >&6
23838else
23839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23840"; then :
23841
23842else
23843 if test "$ac_cv_type_float_t" = yes; then
23844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23846as_fn_error 77 "cannot compute sizeof (float_t)
23847See \`config.log' for more details" "$LINENO" 5; }
23848 else
23849 ac_cv_sizeof_float_t=0
23850 fi
23851fi
23852
23853fi
23854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23855$as_echo "$ac_cv_sizeof_float_t" >&6; }
23856
23857
23858
23859cat >>confdefs.h <<_ACEOF
23860#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23861_ACEOF
23862
23863
23864# The cast to long int works around a bug in the HP C Compiler
23865# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23866# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23867# This bug is HP SR number 8606223364.
23868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23869$as_echo_n "checking size of double_t... " >&6; }
23870if ${ac_cv_sizeof_double_t+:} false; then :
23871 $as_echo_n "(cached) " >&6
23872else
23873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23874"; then :
23875
23876else
23877 if test "$ac_cv_type_double_t" = yes; then
23878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23880as_fn_error 77 "cannot compute sizeof (double_t)
23881See \`config.log' for more details" "$LINENO" 5; }
23882 else
23883 ac_cv_sizeof_double_t=0
23884 fi
23885fi
23886
23887fi
23888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23889$as_echo "$ac_cv_sizeof_double_t" >&6; }
23890
23891
23892
23893cat >>confdefs.h <<_ACEOF
23894#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23895_ACEOF
23896
23897
23898
cristy9b86f202012-11-28 21:55:35 +000023899# Get size of float, double and long double for comparaison.
23900# The cast to long int works around a bug in the HP C Compiler
23901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23903# This bug is HP SR number 8606223364.
23904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23905$as_echo_n "checking size of float... " >&6; }
23906if ${ac_cv_sizeof_float+:} false; then :
23907 $as_echo_n "(cached) " >&6
23908else
23909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23910
23911else
23912 if test "$ac_cv_type_float" = yes; then
23913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23915as_fn_error 77 "cannot compute sizeof (float)
23916See \`config.log' for more details" "$LINENO" 5; }
23917 else
23918 ac_cv_sizeof_float=0
23919 fi
23920fi
23921
23922fi
23923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23924$as_echo "$ac_cv_sizeof_float" >&6; }
23925
23926
23927
23928cat >>confdefs.h <<_ACEOF
23929#define SIZEOF_FLOAT $ac_cv_sizeof_float
23930_ACEOF
23931
23932
23933# The cast to long int works around a bug in the HP C Compiler
23934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23936# This bug is HP SR number 8606223364.
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23938$as_echo_n "checking size of double... " >&6; }
23939if ${ac_cv_sizeof_double+:} false; then :
23940 $as_echo_n "(cached) " >&6
23941else
23942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23943
23944else
23945 if test "$ac_cv_type_double" = yes; then
23946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23948as_fn_error 77 "cannot compute sizeof (double)
23949See \`config.log' for more details" "$LINENO" 5; }
23950 else
23951 ac_cv_sizeof_double=0
23952 fi
23953fi
23954
23955fi
23956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23957$as_echo "$ac_cv_sizeof_double" >&6; }
23958
23959
23960
23961cat >>confdefs.h <<_ACEOF
23962#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23963_ACEOF
23964
23965
cristy9e2b6242014-03-25 11:49:41 +000023966# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000023967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23969# This bug is HP SR number 8606223364.
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23971$as_echo_n "checking size of long double... " >&6; }
23972if ${ac_cv_sizeof_long_double+:} false; then :
23973 $as_echo_n "(cached) " >&6
23974else
23975 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23976
23977else
23978 if test "$ac_cv_type_long_double" = yes; then
23979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23981as_fn_error 77 "cannot compute sizeof (long double)
23982See \`config.log' for more details" "$LINENO" 5; }
23983 else
23984 ac_cv_sizeof_long_double=0
23985 fi
23986fi
23987
23988fi
23989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23990$as_echo "$ac_cv_sizeof_long_double" >&6; }
23991
23992
23993
23994cat >>confdefs.h <<_ACEOF
23995#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23996_ACEOF
23997
23998
cristyf0cf9a22012-10-24 12:05:01 +000023999
cristy3ed852e2009-09-05 21:47:34 +000024000# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24001# The cast to long int works around a bug in the HP C Compiler
24002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24004# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024007if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 $as_echo_n "(cached) " >&6
24009else
cristy8b350f62009-11-15 23:12:43 +000024010 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 +000024011
cristy3ed852e2009-09-05 21:47:34 +000024012else
cristy8b350f62009-11-15 23:12:43 +000024013 if test "$ac_cv_type_signed_short" = yes; then
24014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024016as_fn_error 77 "cannot compute sizeof (signed short)
24017See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024018 else
24019 ac_cv_sizeof_signed_short=0
24020 fi
24021fi
cristy8b350f62009-11-15 23:12:43 +000024022
cristy3ed852e2009-09-05 21:47:34 +000024023fi
cristy8b350f62009-11-15 23:12:43 +000024024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024025$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24026
24027
24028
24029cat >>confdefs.h <<_ACEOF
24030#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24031_ACEOF
24032
24033
24034
24035# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24036# The cast to long int works around a bug in the HP C Compiler
24037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24039# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024041$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024042if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024043 $as_echo_n "(cached) " >&6
24044else
cristy8b350f62009-11-15 23:12:43 +000024045 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 +000024046
cristy3ed852e2009-09-05 21:47:34 +000024047else
cristy8b350f62009-11-15 23:12:43 +000024048 if test "$ac_cv_type_unsigned_short" = yes; then
24049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024051as_fn_error 77 "cannot compute sizeof (unsigned short)
24052See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024053 else
24054 ac_cv_sizeof_unsigned_short=0
24055 fi
24056fi
cristy8b350f62009-11-15 23:12:43 +000024057
cristy3ed852e2009-09-05 21:47:34 +000024058fi
cristy8b350f62009-11-15 23:12:43 +000024059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024060$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24061
24062
24063
24064cat >>confdefs.h <<_ACEOF
24065#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24066_ACEOF
24067
24068
24069
24070# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24071# The cast to long int works around a bug in the HP C Compiler
24072# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24073# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24074# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024077if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024078 $as_echo_n "(cached) " >&6
24079else
cristy8b350f62009-11-15 23:12:43 +000024080 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 +000024081
cristy3ed852e2009-09-05 21:47:34 +000024082else
cristy8b350f62009-11-15 23:12:43 +000024083 if test "$ac_cv_type_signed_int" = yes; then
24084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024086as_fn_error 77 "cannot compute sizeof (signed int)
24087See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024088 else
24089 ac_cv_sizeof_signed_int=0
24090 fi
24091fi
cristy8b350f62009-11-15 23:12:43 +000024092
cristy3ed852e2009-09-05 21:47:34 +000024093fi
cristy8b350f62009-11-15 23:12:43 +000024094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24096
24097
24098
24099cat >>confdefs.h <<_ACEOF
24100#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24101_ACEOF
24102
24103
24104
24105# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24106# The cast to long int works around a bug in the HP C Compiler
24107# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24108# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24109# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024111$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024112if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024113 $as_echo_n "(cached) " >&6
24114else
cristy8b350f62009-11-15 23:12:43 +000024115 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 +000024116
cristy3ed852e2009-09-05 21:47:34 +000024117else
cristy8b350f62009-11-15 23:12:43 +000024118 if test "$ac_cv_type_unsigned_int" = yes; then
24119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024121as_fn_error 77 "cannot compute sizeof (unsigned int)
24122See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024123 else
24124 ac_cv_sizeof_unsigned_int=0
24125 fi
24126fi
cristy8b350f62009-11-15 23:12:43 +000024127
cristy3ed852e2009-09-05 21:47:34 +000024128fi
cristy8b350f62009-11-15 23:12:43 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24131
24132
24133
24134cat >>confdefs.h <<_ACEOF
24135#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24136_ACEOF
24137
24138
24139
24140# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24141# The cast to long int works around a bug in the HP C Compiler
24142# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24143# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24144# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024147if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024148 $as_echo_n "(cached) " >&6
24149else
cristy8b350f62009-11-15 23:12:43 +000024150 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 +000024151
cristy3ed852e2009-09-05 21:47:34 +000024152else
cristy8b350f62009-11-15 23:12:43 +000024153 if test "$ac_cv_type_signed_long" = yes; then
24154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024156as_fn_error 77 "cannot compute sizeof (signed long)
24157See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024158 else
24159 ac_cv_sizeof_signed_long=0
24160 fi
24161fi
cristy8b350f62009-11-15 23:12:43 +000024162
cristy3ed852e2009-09-05 21:47:34 +000024163fi
cristy8b350f62009-11-15 23:12:43 +000024164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24166
24167
24168
24169cat >>confdefs.h <<_ACEOF
24170#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24171_ACEOF
24172
24173
24174
24175# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24176# The cast to long int works around a bug in the HP C Compiler
24177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24179# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024182if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024183 $as_echo_n "(cached) " >&6
24184else
cristy8b350f62009-11-15 23:12:43 +000024185 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 +000024186
cristy3ed852e2009-09-05 21:47:34 +000024187else
cristy8b350f62009-11-15 23:12:43 +000024188 if test "$ac_cv_type_unsigned_long" = yes; then
24189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024191as_fn_error 77 "cannot compute sizeof (unsigned long)
24192See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024193 else
24194 ac_cv_sizeof_unsigned_long=0
24195 fi
24196fi
cristy8b350f62009-11-15 23:12:43 +000024197
cristy3ed852e2009-09-05 21:47:34 +000024198fi
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24201
24202
24203
24204cat >>confdefs.h <<_ACEOF
24205#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24206_ACEOF
24207
24208
24209
24210# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24211# 'signed long long' is not supported then the value defined is zero.
24212# The cast to long int works around a bug in the HP C Compiler
24213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24215# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024218if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024219 $as_echo_n "(cached) " >&6
24220else
cristy8b350f62009-11-15 23:12:43 +000024221 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 +000024222
cristy3ed852e2009-09-05 21:47:34 +000024223else
cristy8b350f62009-11-15 23:12:43 +000024224 if test "$ac_cv_type_signed_long_long" = yes; then
24225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024227as_fn_error 77 "cannot compute sizeof (signed long long)
24228See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024229 else
24230 ac_cv_sizeof_signed_long_long=0
24231 fi
24232fi
cristy8b350f62009-11-15 23:12:43 +000024233
cristy3ed852e2009-09-05 21:47:34 +000024234fi
cristy8b350f62009-11-15 23:12:43 +000024235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24237
24238
24239
24240cat >>confdefs.h <<_ACEOF
24241#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24242_ACEOF
24243
24244
24245
24246# Obtain size of a 'unsigned long long' and define as
24247# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24248# supported then the value defined is zero.
24249# The cast to long int works around a bug in the HP C Compiler
24250# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24251# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24252# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024255if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024256 $as_echo_n "(cached) " >&6
24257else
cristy8b350f62009-11-15 23:12:43 +000024258 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 +000024259
cristy3ed852e2009-09-05 21:47:34 +000024260else
cristy8b350f62009-11-15 23:12:43 +000024261 if test "$ac_cv_type_unsigned_long_long" = yes; then
24262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024264as_fn_error 77 "cannot compute sizeof (unsigned long long)
24265See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024266 else
24267 ac_cv_sizeof_unsigned_long_long=0
24268 fi
24269fi
cristy8b350f62009-11-15 23:12:43 +000024270
cristy3ed852e2009-09-05 21:47:34 +000024271fi
cristy8b350f62009-11-15 23:12:43 +000024272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24274
24275
24276
24277cat >>confdefs.h <<_ACEOF
24278#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24279_ACEOF
24280
24281
24282
cristyfec31822013-05-23 12:32:12 +000024283# Obtain size of off_t and define as SIZEOF_OFF_T
24284# The cast to long int works around a bug in the HP C Compiler
24285# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24286# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24287# This bug is HP SR number 8606223364.
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24289$as_echo_n "checking size of off_t... " >&6; }
24290if ${ac_cv_sizeof_off_t+:} false; then :
24291 $as_echo_n "(cached) " >&6
24292else
24293 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24294
24295else
24296 if test "$ac_cv_type_off_t" = yes; then
24297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24299as_fn_error 77 "cannot compute sizeof (off_t)
24300See \`config.log' for more details" "$LINENO" 5; }
24301 else
24302 ac_cv_sizeof_off_t=0
24303 fi
24304fi
24305
24306fi
24307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24308$as_echo "$ac_cv_sizeof_off_t" >&6; }
24309
24310
24311
24312cat >>confdefs.h <<_ACEOF
24313#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24314_ACEOF
24315
24316
24317
24318# Obtain size of size_t and define as SIZEOF_SIZE_T
24319# The cast to long int works around a bug in the HP C Compiler
24320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24322# This bug is HP SR number 8606223364.
24323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24324$as_echo_n "checking size of size_t... " >&6; }
24325if ${ac_cv_sizeof_size_t+:} false; then :
24326 $as_echo_n "(cached) " >&6
24327else
24328 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24329
24330else
24331 if test "$ac_cv_type_size_t" = yes; then
24332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24334as_fn_error 77 "cannot compute sizeof (size_t)
24335See \`config.log' for more details" "$LINENO" 5; }
24336 else
24337 ac_cv_sizeof_size_t=0
24338 fi
24339fi
24340
24341fi
24342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24343$as_echo "$ac_cv_sizeof_size_t" >&6; }
24344
24345
24346
24347cat >>confdefs.h <<_ACEOF
24348#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24349_ACEOF
24350
24351
24352
24353# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24354# The cast to long int works around a bug in the HP C Compiler
24355# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24356# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24357# This bug is HP SR number 8606223364.
24358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24359$as_echo_n "checking size of ssize_t... " >&6; }
24360if ${ac_cv_sizeof_ssize_t+:} false; then :
24361 $as_echo_n "(cached) " >&6
24362else
24363 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24364
24365else
24366 if test "$ac_cv_type_ssize_t" = yes; then
24367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24369as_fn_error 77 "cannot compute sizeof (ssize_t)
24370See \`config.log' for more details" "$LINENO" 5; }
24371 else
24372 ac_cv_sizeof_ssize_t=0
24373 fi
24374fi
24375
24376fi
24377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24378$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24379
24380
24381
24382cat >>confdefs.h <<_ACEOF
24383#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24384_ACEOF
24385
24386
24387
cristy3ed852e2009-09-05 21:47:34 +000024388# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24389# The cast to long int works around a bug in the HP C Compiler
24390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24392# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024395if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 $as_echo_n "(cached) " >&6
24397else
cristy8b350f62009-11-15 23:12:43 +000024398 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 +000024399
cristy3ed852e2009-09-05 21:47:34 +000024400else
cristy8b350f62009-11-15 23:12:43 +000024401 if test "$ac_cv_type_unsigned_intp" = yes; then
24402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024404as_fn_error 77 "cannot compute sizeof (unsigned int*)
24405See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024406 else
24407 ac_cv_sizeof_unsigned_intp=0
24408 fi
24409fi
cristy8b350f62009-11-15 23:12:43 +000024410
cristy3ed852e2009-09-05 21:47:34 +000024411fi
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24414
24415
24416
24417cat >>confdefs.h <<_ACEOF
24418#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24419_ACEOF
24420
24421
24422
24423#
24424# Compute sized types for current CPU and compiler options.
24425#
24426
cristy8b350f62009-11-15 23:12:43 +000024427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024428$as_echo_n "checking for signed 8-bit type... " >&6; }
24429INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24431$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024432
24433
cristy8b350f62009-11-15 23:12:43 +000024434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024435$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24436UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24438$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024439
24440
cristy8b350f62009-11-15 23:12:43 +000024441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024442$as_echo_n "checking for signed 16-bit type... " >&6; }
24443INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24445$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024446
24447
cristy8b350f62009-11-15 23:12:43 +000024448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024449$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24450UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24452$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024453
24454
cristy8b350f62009-11-15 23:12:43 +000024455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024456$as_echo_n "checking for signed 32-bit type... " >&6; }
24457INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024458INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024459if test $ac_cv_sizeof_signed_int -eq 4; then
24460 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024461 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024462elif test $ac_cv_sizeof_signed_long -eq 4; then
24463 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024464 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024465fi
cristyad38abe2012-12-23 23:03:21 +000024466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24467$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024468
24469
cristy6d5e20f2011-04-25 13:48:54 +000024470
cristy8b350f62009-11-15 23:12:43 +000024471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024472$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24473UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024474UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024475if test $ac_cv_sizeof_unsigned_int -eq 4; then
24476 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024477 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024478elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24479 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024480 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024481fi
cristyad38abe2012-12-23 23:03:21 +000024482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24483$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024484
24485
cristy6d5e20f2011-04-25 13:48:54 +000024486
cristy8b350f62009-11-15 23:12:43 +000024487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024488$as_echo_n "checking for signed 64-bit type... " >&6; }
24489INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024490INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024491if test $ac_cv_sizeof_signed_long -eq 8; then
24492 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024493 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024494elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24495 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024496 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy3a99dcf2011-12-17 01:29:40 +000024498case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024499 mingw* )
24500 INT64_F='"I64"'
24501 ;;
24502esac
cristyad38abe2012-12-23 23:03:21 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24504$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024505
24506
cristy6d5e20f2011-04-25 13:48:54 +000024507
cristy8b350f62009-11-15 23:12:43 +000024508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024509$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24510UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024511UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024512if test $ac_cv_sizeof_unsigned_long -eq 8; then
24513 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024514 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024515elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24516 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024517 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024518fi
cristy3a99dcf2011-12-17 01:29:40 +000024519case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024520 mingw* )
24521 UINT64_F='"I64"'
24522 ;;
24523esac
cristyad38abe2012-12-23 23:03:21 +000024524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24525$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024526
24527
cristy6d5e20f2011-04-25 13:48:54 +000024528
cristy8b350f62009-11-15 23:12:43 +000024529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo_n "checking for unsigned maximum type... " >&6; }
24531UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024532UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024533if test "$UINT64_T" != 'none'; then
24534 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024535 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024536elif test "$UINT32_T" != 'none'; then
24537 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024538 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024539fi
cristyad38abe2012-12-23 23:03:21 +000024540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24541$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024542
24543
cristy6d5e20f2011-04-25 13:48:54 +000024544
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo_n "checking for pointer difference type... " >&6; }
24547UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024548UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024549if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24550 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024551 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024552elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24553 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024554 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024555fi
cristyad38abe2012-12-23 23:03:21 +000024556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24557$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024558
24559
cristy6d5e20f2011-04-25 13:48:54 +000024560
cristy8b350f62009-11-15 23:12:43 +000024561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024564/* end confdefs.h. */
24565
24566int
24567main ()
24568{
24569{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24570 ;
24571 return 0;
24572}
24573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024574if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24576$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024577else
cristyad38abe2012-12-23 23:03:21 +000024578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24579$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024581$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024583/* end confdefs.h. */
24584
24585int
24586main ()
24587{
24588{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24589 ;
24590 return 0;
24591}
24592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024593if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24595$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024596
cristy8b350f62009-11-15 23:12:43 +000024597$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024598
24599else
cristyad38abe2012-12-23 23:03:21 +000024600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24601$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024602
cristy8b350f62009-11-15 23:12:43 +000024603$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024604
24605fi
cristy3ed852e2009-09-05 21:47:34 +000024606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607fi
cristy3ed852e2009-09-05 21:47:34 +000024608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609
24610########
24611#
24612# Check for functions
24613#
24614########
cristy8b350f62009-11-15 23:12:43 +000024615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024616$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024617if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024618 $as_echo_n "(cached) " >&6
24619else
cristy8b350f62009-11-15 23:12:43 +000024620 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 ac_cv_func_closedir_void=yes
24622else
cristy8b350f62009-11-15 23:12:43 +000024623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024624/* end confdefs.h. */
24625$ac_includes_default
24626#include <$ac_header_dirent>
24627#ifndef __cplusplus
24628int closedir ();
24629#endif
24630
24631int
24632main ()
24633{
24634return closedir (opendir (".")) != 0;
24635 ;
24636 return 0;
24637}
24638_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024639if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024640 ac_cv_func_closedir_void=no
24641else
cristy8b350f62009-11-15 23:12:43 +000024642 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024643fi
cristy8b350f62009-11-15 23:12:43 +000024644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24645 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024646fi
24647
cristy3ed852e2009-09-05 21:47:34 +000024648fi
cristy8b350f62009-11-15 23:12:43 +000024649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo "$ac_cv_func_closedir_void" >&6; }
24651if test $ac_cv_func_closedir_void = yes; then
24652
cristy8b350f62009-11-15 23:12:43 +000024653$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024654
24655fi
24656
cristycd4c5312009-11-22 01:19:08 +000024657
24658
24659
24660 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024661do :
24662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024663ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24664"
cristy98dddb52010-11-04 00:30:15 +000024665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024666 cat >>confdefs.h <<_ACEOF
24667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24668_ACEOF
24669
24670fi
24671
24672done
24673
cristycd4c5312009-11-22 01:19:08 +000024674
24675
24676
24677
24678
24679
24680
cristy3ed852e2009-09-05 21:47:34 +000024681for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024682do :
24683 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024684if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024686#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024687_ACEOF
24688
24689fi
24690done
24691
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024694if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 $as_echo_n "(cached) " >&6
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 ac_cv_func_mmap_fixed_mapped=no
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024701/* end confdefs.h. */
24702$ac_includes_default
24703/* malloc might have been renamed as rpl_malloc. */
24704#undef malloc
24705
24706/* Thanks to Mike Haertel and Jim Avera for this test.
24707 Here is a matrix of mmap possibilities:
24708 mmap private not fixed
24709 mmap private fixed at somewhere currently unmapped
24710 mmap private fixed at somewhere already mapped
24711 mmap shared not fixed
24712 mmap shared fixed at somewhere currently unmapped
24713 mmap shared fixed at somewhere already mapped
24714 For private mappings, we should verify that changes cannot be read()
24715 back from the file, nor mmap's back from the file at a different
24716 address. (There have been systems where private was not correctly
24717 implemented like the infamous i386 svr4.0, and systems where the
24718 VM page cache was not coherent with the file system buffer cache
24719 like early versions of FreeBSD and possibly contemporary NetBSD.)
24720 For shared mappings, we should conversely verify that changes get
24721 propagated back to all the places they're supposed to be.
24722
24723 Grep wants private fixed already mapped.
24724 The main things grep needs to know about mmap are:
24725 * does it exist and is it safe to write into the mmap'd area
24726 * how to use it (BSD variants) */
24727
24728#include <fcntl.h>
24729#include <sys/mman.h>
24730
24731#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24732char *malloc ();
24733#endif
24734
24735/* This mess was copied from the GNU getpagesize.h. */
24736#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024737# ifdef _SC_PAGESIZE
24738# define getpagesize() sysconf(_SC_PAGESIZE)
24739# else /* no _SC_PAGESIZE */
24740# ifdef HAVE_SYS_PARAM_H
24741# include <sys/param.h>
24742# ifdef EXEC_PAGESIZE
24743# define getpagesize() EXEC_PAGESIZE
24744# else /* no EXEC_PAGESIZE */
24745# ifdef NBPG
24746# define getpagesize() NBPG * CLSIZE
24747# ifndef CLSIZE
24748# define CLSIZE 1
24749# endif /* no CLSIZE */
24750# else /* no NBPG */
24751# ifdef NBPC
24752# define getpagesize() NBPC
24753# else /* no NBPC */
24754# ifdef PAGESIZE
24755# define getpagesize() PAGESIZE
24756# endif /* PAGESIZE */
24757# endif /* no NBPC */
24758# endif /* no NBPG */
24759# endif /* no EXEC_PAGESIZE */
24760# else /* no HAVE_SYS_PARAM_H */
24761# define getpagesize() 8192 /* punt totally */
24762# endif /* no HAVE_SYS_PARAM_H */
24763# endif /* no _SC_PAGESIZE */
24764
24765#endif /* no HAVE_GETPAGESIZE */
24766
24767int
24768main ()
24769{
24770 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024771 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024772 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024773 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024774
24775 pagesize = getpagesize ();
24776
24777 /* First, make a file with some known garbage in it. */
24778 data = (char *) malloc (pagesize);
24779 if (!data)
24780 return 1;
24781 for (i = 0; i < pagesize; ++i)
24782 *(data + i) = rand ();
24783 umask (0);
24784 fd = creat ("conftest.mmap", 0600);
24785 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024786 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024787 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024788 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024789 close (fd);
24790
cristycd4c5312009-11-22 01:19:08 +000024791 /* Next, check that the tail of a page is zero-filled. File must have
24792 non-zero length, otherwise we risk SIGBUS for entire page. */
24793 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24794 if (fd2 < 0)
24795 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024796 cdata2 = "";
24797 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024798 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024799 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024800 if (data2 == MAP_FAILED)
24801 return 6;
24802 for (i = 0; i < pagesize; ++i)
24803 if (*(data2 + i))
24804 return 7;
24805 close (fd2);
24806 if (munmap (data2, pagesize))
24807 return 8;
24808
cristy3ed852e2009-09-05 21:47:34 +000024809 /* Next, try to mmap the file at a fixed address which already has
24810 something else allocated at it. If we can, also make sure that
24811 we see the same garbage. */
24812 fd = open ("conftest.mmap", O_RDWR);
24813 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024814 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024815 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24816 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024817 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024818 for (i = 0; i < pagesize; ++i)
24819 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024820 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024821
24822 /* Finally, make sure that changes to the mapped area do not
24823 percolate back to the file as seen by read(). (This is a bug on
24824 some variants of i386 svr4.0.) */
24825 for (i = 0; i < pagesize; ++i)
24826 *(data2 + i) = *(data2 + i) + 1;
24827 data3 = (char *) malloc (pagesize);
24828 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024829 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024830 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024831 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024832 for (i = 0; i < pagesize; ++i)
24833 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024834 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024835 close (fd);
24836 return 0;
24837}
24838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024839if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024840 ac_cv_func_mmap_fixed_mapped=yes
24841else
cristy8b350f62009-11-15 23:12:43 +000024842 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024843fi
cristy8b350f62009-11-15 23:12:43 +000024844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24845 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024846fi
24847
cristy3ed852e2009-09-05 21:47:34 +000024848fi
cristy8b350f62009-11-15 23:12:43 +000024849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024850$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24851if test $ac_cv_func_mmap_fixed_mapped = yes; then
24852
cristy8b350f62009-11-15 23:12:43 +000024853$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024854
24855fi
cristycd4c5312009-11-22 01:19:08 +000024856rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024857
cristy3ed852e2009-09-05 21:47:34 +000024858for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024859do :
24860 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024861if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024862 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024863#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024864_ACEOF
24865
24866fi
24867
24868done
24869
cristy3ed852e2009-09-05 21:47:34 +000024870for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024871do :
24872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 cat >>confdefs.h <<_ACEOF
24876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24877_ACEOF
24878
24879fi
24880done
24881
24882if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024884$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024885if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024886 $as_echo_n "(cached) " >&6
24887else
cristy8b350f62009-11-15 23:12:43 +000024888 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024889 ac_cv_func_fork_works=cross
24890else
cristy8b350f62009-11-15 23:12:43 +000024891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024892/* end confdefs.h. */
24893$ac_includes_default
24894int
24895main ()
24896{
24897
24898 /* By Ruediger Kuhlmann. */
24899 return fork () < 0;
24900
24901 ;
24902 return 0;
24903}
24904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 ac_cv_func_fork_works=yes
24907else
cristy8b350f62009-11-15 23:12:43 +000024908 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024909fi
cristy8b350f62009-11-15 23:12:43 +000024910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24911 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024912fi
24913
cristy3ed852e2009-09-05 21:47:34 +000024914fi
cristy8b350f62009-11-15 23:12:43 +000024915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024916$as_echo "$ac_cv_func_fork_works" >&6; }
24917
24918else
24919 ac_cv_func_fork_works=$ac_cv_func_fork
24920fi
24921if test "x$ac_cv_func_fork_works" = xcross; then
24922 case $host in
24923 *-*-amigaos* | *-*-msdosdjgpp*)
24924 # Override, as these systems have only a dummy fork() stub
24925 ac_cv_func_fork_works=no
24926 ;;
24927 *)
24928 ac_cv_func_fork_works=yes
24929 ;;
24930 esac
cristy8b350f62009-11-15 23:12:43 +000024931 { $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 +000024932$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24933fi
24934ac_cv_func_vfork_works=$ac_cv_func_vfork
24935if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024937$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024938if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024939 $as_echo_n "(cached) " >&6
24940else
cristy8b350f62009-11-15 23:12:43 +000024941 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 ac_cv_func_vfork_works=cross
24943else
cristy8b350f62009-11-15 23:12:43 +000024944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024945/* end confdefs.h. */
24946/* Thanks to Paul Eggert for this test. */
24947$ac_includes_default
24948#include <sys/wait.h>
24949#ifdef HAVE_VFORK_H
24950# include <vfork.h>
24951#endif
24952/* On some sparc systems, changes by the child to local and incoming
24953 argument registers are propagated back to the parent. The compiler
24954 is told about this with #include <vfork.h>, but some compilers
24955 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24956 static variable whose address is put into a register that is
24957 clobbered by the vfork. */
24958static void
24959#ifdef __cplusplus
24960sparc_address_test (int arg)
24961# else
24962sparc_address_test (arg) int arg;
24963#endif
24964{
24965 static pid_t child;
24966 if (!child) {
24967 child = vfork ();
24968 if (child < 0) {
24969 perror ("vfork");
24970 _exit(2);
24971 }
24972 if (!child) {
24973 arg = getpid();
24974 write(-1, "", 0);
24975 _exit (arg);
24976 }
24977 }
24978}
24979
24980int
24981main ()
24982{
24983 pid_t parent = getpid ();
24984 pid_t child;
24985
24986 sparc_address_test (0);
24987
24988 child = vfork ();
24989
24990 if (child == 0) {
24991 /* Here is another test for sparc vfork register problems. This
24992 test uses lots of local variables, at least as many local
24993 variables as main has allocated so far including compiler
24994 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24995 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24996 reuse the register of parent for one of the local variables,
24997 since it will think that parent can't possibly be used any more
24998 in this routine. Assigning to the local variable will thus
24999 munge parent in the parent process. */
25000 pid_t
25001 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25002 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25003 /* Convince the compiler that p..p7 are live; otherwise, it might
25004 use the same hardware register for all 8 local variables. */
25005 if (p != p1 || p != p2 || p != p3 || p != p4
25006 || p != p5 || p != p6 || p != p7)
25007 _exit(1);
25008
25009 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25010 from child file descriptors. If the child closes a descriptor
25011 before it execs or exits, this munges the parent's descriptor
25012 as well. Test for this by closing stdout in the child. */
25013 _exit(close(fileno(stdout)) != 0);
25014 } else {
25015 int status;
25016 struct stat st;
25017
25018 while (wait(&status) != child)
25019 ;
25020 return (
25021 /* Was there some problem with vforking? */
25022 child < 0
25023
25024 /* Did the child fail? (This shouldn't happen.) */
25025 || status
25026
25027 /* Did the vfork/compiler bug occur? */
25028 || parent != getpid()
25029
25030 /* Did the file descriptor bug occur? */
25031 || fstat(fileno(stdout), &st) != 0
25032 );
25033 }
25034}
25035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025036if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025037 ac_cv_func_vfork_works=yes
25038else
cristy8b350f62009-11-15 23:12:43 +000025039 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025040fi
cristy8b350f62009-11-15 23:12:43 +000025041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25042 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025043fi
25044
cristy3ed852e2009-09-05 21:47:34 +000025045fi
cristy8b350f62009-11-15 23:12:43 +000025046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047$as_echo "$ac_cv_func_vfork_works" >&6; }
25048
25049fi;
25050if test "x$ac_cv_func_fork_works" = xcross; then
25051 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025052 { $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 +000025053$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25054fi
25055
25056if test "x$ac_cv_func_vfork_works" = xyes; then
25057
cristy8b350f62009-11-15 23:12:43 +000025058$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025059
25060else
25061
cristy8b350f62009-11-15 23:12:43 +000025062$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025063
25064fi
25065if test "x$ac_cv_func_fork_works" = xyes; then
25066
cristy8b350f62009-11-15 23:12:43 +000025067$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025068
25069fi
25070
cristy8b350f62009-11-15 23:12:43 +000025071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025072$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025073if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025074 $as_echo_n "(cached) " >&6
25075else
cristy8b350f62009-11-15 23:12:43 +000025076 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025077 ac_cv_func_memcmp_working=no
25078else
cristy8b350f62009-11-15 23:12:43 +000025079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025080/* end confdefs.h. */
25081$ac_includes_default
25082int
25083main ()
25084{
25085
25086 /* Some versions of memcmp are not 8-bit clean. */
25087 char c0 = '\100', c1 = '\200', c2 = '\201';
25088 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25089 return 1;
25090
25091 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25092 or more and with at least one buffer not starting on a 4-byte boundary.
25093 William Lewis provided this test program. */
25094 {
25095 char foo[21];
25096 char bar[21];
25097 int i;
25098 for (i = 0; i < 4; i++)
25099 {
25100 char *a = foo + i;
25101 char *b = bar + i;
25102 strcpy (a, "--------01111111");
25103 strcpy (b, "--------10000000");
25104 if (memcmp (a, b, 16) >= 0)
25105 return 1;
25106 }
25107 return 0;
25108 }
25109
25110 ;
25111 return 0;
25112}
25113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025114if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025115 ac_cv_func_memcmp_working=yes
25116else
cristy8b350f62009-11-15 23:12:43 +000025117 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025118fi
cristy8b350f62009-11-15 23:12:43 +000025119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25120 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025121fi
25122
cristy3ed852e2009-09-05 21:47:34 +000025123fi
cristy8b350f62009-11-15 23:12:43 +000025124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025125$as_echo "$ac_cv_func_memcmp_working" >&6; }
25126test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25127 *" memcmp.$ac_objext "* ) ;;
25128 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25129 ;;
25130esac
25131
25132
cristy3ed852e2009-09-05 21:47:34 +000025133for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025134do :
25135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25136ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025137if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025138 cat >>confdefs.h <<_ACEOF
25139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25140_ACEOF
25141
25142fi
25143
25144done
25145
cristy8b350f62009-11-15 23:12:43 +000025146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025147$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025148if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025149 $as_echo_n "(cached) " >&6
25150else
25151 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25152 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25153 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025155/* end confdefs.h. */
25156$ac_includes_default
25157#ifdef HAVE_SYS_SELECT_H
25158# include <sys/select.h>
25159#endif
25160#ifdef HAVE_SYS_SOCKET_H
25161# include <sys/socket.h>
25162#endif
25163
25164int
25165main ()
25166{
25167extern int select ($ac_arg1,
25168 $ac_arg234, $ac_arg234, $ac_arg234,
25169 $ac_arg5);
25170 ;
25171 return 0;
25172}
25173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025174if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025175 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025176fi
cristy3ed852e2009-09-05 21:47:34 +000025177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 done
25179 done
25180done
25181# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025182: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025183
25184fi
cristy8b350f62009-11-15 23:12:43 +000025185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025186$as_echo "$ac_cv_func_select_args" >&6; }
25187ac_save_IFS=$IFS; IFS=','
25188set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25189IFS=$ac_save_IFS
25190shift
25191
25192cat >>confdefs.h <<_ACEOF
25193#define SELECT_TYPE_ARG1 $1
25194_ACEOF
25195
25196
25197cat >>confdefs.h <<_ACEOF
25198#define SELECT_TYPE_ARG234 ($2)
25199_ACEOF
25200
25201
25202cat >>confdefs.h <<_ACEOF
25203#define SELECT_TYPE_ARG5 ($3)
25204_ACEOF
25205
25206rm -f conftest*
25207
cristyda16f162011-02-19 23:52:17 +000025208if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025209 $as_echo_n "(cached) " >&6
25210else
25211 ac_cv_func_setvbuf_reversed=no
25212fi
25213
25214
cristy8b350f62009-11-15 23:12:43 +000025215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025217if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025218 $as_echo_n "(cached) " >&6
25219else
cristy8b350f62009-11-15 23:12:43 +000025220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025221/* end confdefs.h. */
25222#include <sys/types.h>
25223#include <signal.h>
25224
25225int
25226main ()
25227{
25228return *(signal (0, 0)) (0) == 1;
25229 ;
25230 return 0;
25231}
25232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 ac_cv_type_signal=int
25235else
cristy8b350f62009-11-15 23:12:43 +000025236 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025237fi
cristy3ed852e2009-09-05 21:47:34 +000025238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25239fi
cristy8b350f62009-11-15 23:12:43 +000025240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025241$as_echo "$ac_cv_type_signal" >&6; }
25242
25243cat >>confdefs.h <<_ACEOF
25244#define RETSIGTYPE $ac_cv_type_signal
25245_ACEOF
25246
25247
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025249$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025250if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025251 $as_echo_n "(cached) " >&6
25252else
cristy8b350f62009-11-15 23:12:43 +000025253 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025254 ac_cv_func_strtod=no
25255else
cristy8b350f62009-11-15 23:12:43 +000025256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025257/* end confdefs.h. */
25258
25259$ac_includes_default
25260#ifndef strtod
25261double strtod ();
25262#endif
25263int
25264main()
25265{
25266 {
25267 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25268 char *string = " +69";
25269 char *term;
25270 double value;
25271 value = strtod (string, &term);
25272 if (value != 69 || term != (string + 4))
25273 return 1;
25274 }
25275
25276 {
25277 /* Under Solaris 2.4, strtod returns the wrong value for the
25278 terminating character under some conditions. */
25279 char *string = "NaN";
25280 char *term;
25281 strtod (string, &term);
25282 if (term != string && *(term - 1) == 0)
25283 return 1;
25284 }
25285 return 0;
25286}
25287
25288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025289if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 ac_cv_func_strtod=yes
25291else
cristy8b350f62009-11-15 23:12:43 +000025292 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025293fi
cristy8b350f62009-11-15 23:12:43 +000025294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25295 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025296fi
25297
cristy3ed852e2009-09-05 21:47:34 +000025298fi
cristy8b350f62009-11-15 23:12:43 +000025299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025300$as_echo "$ac_cv_func_strtod" >&6; }
25301if test $ac_cv_func_strtod = no; then
25302 case " $LIBOBJS " in
25303 *" strtod.$ac_objext "* ) ;;
25304 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25305 ;;
25306esac
25307
cristy8b350f62009-11-15 23:12:43 +000025308ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025309if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025310
cristy3ed852e2009-09-05 21:47:34 +000025311fi
25312
cristy3ed852e2009-09-05 21:47:34 +000025313if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025316if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025317 $as_echo_n "(cached) " >&6
25318else
25319 ac_check_lib_save_LIBS=$LIBS
25320LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322/* end confdefs.h. */
25323
25324/* Override any GCC internal prototype to avoid an error.
25325 Use char because int might match the return type of a GCC
25326 builtin and then its argument prototype would still apply. */
25327#ifdef __cplusplus
25328extern "C"
25329#endif
25330char pow ();
25331int
25332main ()
25333{
25334return pow ();
25335 ;
25336 return 0;
25337}
25338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025340 ac_cv_lib_m_pow=yes
25341else
cristy8b350f62009-11-15 23:12:43 +000025342 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025343fi
cristy8b350f62009-11-15 23:12:43 +000025344rm -f core conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025346LIBS=$ac_check_lib_save_LIBS
25347fi
cristy8b350f62009-11-15 23:12:43 +000025348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025349$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025350if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 POW_LIB=-lm
25352else
cristy8b350f62009-11-15 23:12:43 +000025353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25355fi
25356
25357fi
25358
25359fi
25360
cristy7d4a1d62011-10-13 15:54:12 +000025361ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25362if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25363 ac_have_decl=1
25364else
25365 ac_have_decl=0
25366fi
25367
25368cat >>confdefs.h <<_ACEOF
25369#define HAVE_DECL_STRERROR_R $ac_have_decl
25370_ACEOF
25371
25372for ac_func in strerror_r
25373do :
25374 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25375if test "x$ac_cv_func_strerror_r" = xyes; then :
25376 cat >>confdefs.h <<_ACEOF
25377#define HAVE_STRERROR_R 1
25378_ACEOF
25379
25380fi
25381done
25382
25383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25384$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25385if ${ac_cv_func_strerror_r_char_p+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387else
25388
25389 ac_cv_func_strerror_r_char_p=no
25390 if test $ac_cv_have_decl_strerror_r = yes; then
25391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392/* end confdefs.h. */
25393$ac_includes_default
25394int
25395main ()
25396{
25397
25398 char buf[100];
25399 char x = *strerror_r (0, buf, sizeof buf);
25400 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025401 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025402
25403 ;
25404 return 0;
25405}
25406_ACEOF
25407if ac_fn_c_try_compile "$LINENO"; then :
25408 ac_cv_func_strerror_r_char_p=yes
25409fi
25410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25411 else
25412 # strerror_r is not declared. Choose between
25413 # systems that have relatively inaccessible declarations for the
25414 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25415 # former has a strerror_r that returns char*, while the latter
25416 # has a strerror_r that returns `int'.
25417 # This test should segfault on the DEC system.
25418 if test "$cross_compiling" = yes; then :
25419 :
25420else
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422/* end confdefs.h. */
25423$ac_includes_default
25424 extern char *strerror_r ();
25425int
25426main ()
25427{
25428char buf[100];
25429 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025430 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025431 ;
25432 return 0;
25433}
25434_ACEOF
25435if ac_fn_c_try_run "$LINENO"; then :
25436 ac_cv_func_strerror_r_char_p=yes
25437fi
25438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25439 conftest.$ac_objext conftest.beam conftest.$ac_ext
25440fi
25441
25442 fi
25443
25444fi
25445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25446$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25447if test $ac_cv_func_strerror_r_char_p = yes; then
25448
25449$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25450
25451fi
25452
cristy3ed852e2009-09-05 21:47:34 +000025453for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025454do :
25455 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025456if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025457 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025458#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025459_ACEOF
25460
cristy8b350f62009-11-15 23:12:43 +000025461ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025462if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025463
cristy8b350f62009-11-15 23:12:43 +000025464$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025465
25466fi
25467
25468fi
25469done
25470
25471
25472
cristy161b9262010-03-20 19:34:32 +000025473#
25474# Find math library
25475#
25476MATH_LIBS=''
25477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25478$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025479if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025480 $as_echo_n "(cached) " >&6
25481else
25482 ac_check_lib_save_LIBS=$LIBS
25483LIBS="-lm $LIBS"
25484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485/* end confdefs.h. */
25486
25487/* Override any GCC internal prototype to avoid an error.
25488 Use char because int might match the return type of a GCC
25489 builtin and then its argument prototype would still apply. */
25490#ifdef __cplusplus
25491extern "C"
25492#endif
25493char sqrt ();
25494int
25495main ()
25496{
25497return sqrt ();
25498 ;
25499 return 0;
25500}
25501_ACEOF
25502if ac_fn_c_try_link "$LINENO"; then :
25503 ac_cv_lib_m_sqrt=yes
25504else
25505 ac_cv_lib_m_sqrt=no
25506fi
25507rm -f core conftest.err conftest.$ac_objext \
25508 conftest$ac_exeext conftest.$ac_ext
25509LIBS=$ac_check_lib_save_LIBS
25510fi
25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25512$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025513if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025514 MATH_LIBS="-lm"
25515fi
25516
25517LIBS="$MATH_LIBS $LIBS"
25518
25519
cristy85572162013-01-04 19:19:32 +000025520#
25521# Find socket library
25522#
cristy8a5d7f42013-01-06 15:24:33 +000025523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25524$as_echo_n "checking for library containing gethostbyname... " >&6; }
25525if ${ac_cv_search_gethostbyname+:} false; then :
25526 $as_echo_n "(cached) " >&6
25527else
25528 ac_func_search_save_LIBS=$LIBS
25529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530/* end confdefs.h. */
25531
25532/* Override any GCC internal prototype to avoid an error.
25533 Use char because int might match the return type of a GCC
25534 builtin and then its argument prototype would still apply. */
25535#ifdef __cplusplus
25536extern "C"
25537#endif
25538char gethostbyname ();
25539int
25540main ()
25541{
25542return gethostbyname ();
25543 ;
25544 return 0;
25545}
25546_ACEOF
25547for ac_lib in '' resolv nsl; do
25548 if test -z "$ac_lib"; then
25549 ac_res="none required"
25550 else
25551 ac_res=-l$ac_lib
25552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25553 fi
25554 if ac_fn_c_try_link "$LINENO"; then :
25555 ac_cv_search_gethostbyname=$ac_res
25556fi
25557rm -f core conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext
25559 if ${ac_cv_search_gethostbyname+:} false; then :
25560 break
25561fi
25562done
25563if ${ac_cv_search_gethostbyname+:} false; then :
25564
25565else
25566 ac_cv_search_gethostbyname=no
25567fi
25568rm conftest.$ac_ext
25569LIBS=$ac_func_search_save_LIBS
25570fi
25571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25572$as_echo "$ac_cv_search_gethostbyname" >&6; }
25573ac_res=$ac_cv_search_gethostbyname
25574if test "$ac_res" != no; then :
25575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25576
25577fi
25578
cristy85572162013-01-04 19:19:32 +000025579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25580$as_echo_n "checking for library containing socket... " >&6; }
25581if ${ac_cv_search_socket+:} false; then :
25582 $as_echo_n "(cached) " >&6
25583else
25584 ac_func_search_save_LIBS=$LIBS
25585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586/* end confdefs.h. */
25587
25588/* Override any GCC internal prototype to avoid an error.
25589 Use char because int might match the return type of a GCC
25590 builtin and then its argument prototype would still apply. */
25591#ifdef __cplusplus
25592extern "C"
25593#endif
25594char socket ();
25595int
25596main ()
25597{
25598return socket ();
25599 ;
25600 return 0;
25601}
25602_ACEOF
25603for ac_lib in '' socket; do
25604 if test -z "$ac_lib"; then
25605 ac_res="none required"
25606 else
25607 ac_res=-l$ac_lib
25608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25609 fi
25610 if ac_fn_c_try_link "$LINENO"; then :
25611 ac_cv_search_socket=$ac_res
25612fi
25613rm -f core conftest.err conftest.$ac_objext \
25614 conftest$ac_exeext
25615 if ${ac_cv_search_socket+:} false; then :
25616 break
25617fi
25618done
25619if ${ac_cv_search_socket+:} false; then :
25620
25621else
25622 ac_cv_search_socket=no
25623fi
25624rm conftest.$ac_ext
25625LIBS=$ac_func_search_save_LIBS
25626fi
25627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25628$as_echo "$ac_cv_search_socket" >&6; }
25629ac_res=$ac_cv_search_socket
25630if test "$ac_res" != no; then :
25631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25632
cristy85572162013-01-04 19:19:32 +000025633
cristy8a5d7f42013-01-06 15:24:33 +000025634$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025635
cristy03f187e2013-01-24 00:22:19 +000025636 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025637
25638fi
25639
25640
25641for 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 +000025642do :
25643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25644ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025645if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 cat >>confdefs.h <<_ACEOF
25647#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25648_ACEOF
25649
25650fi
25651done
25652
25653
cristye43a45e2009-09-28 14:49:00 +000025654#
25655# Check for clock_gettime().
25656#
cristy8b350f62009-11-15 23:12:43 +000025657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025658$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025659if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025660 $as_echo_n "(cached) " >&6
25661else
25662 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025664/* end confdefs.h. */
25665
25666/* Override any GCC internal prototype to avoid an error.
25667 Use char because int might match the return type of a GCC
25668 builtin and then its argument prototype would still apply. */
25669#ifdef __cplusplus
25670extern "C"
25671#endif
25672char clock_gettime ();
25673int
25674main ()
25675{
25676return clock_gettime ();
25677 ;
25678 return 0;
25679}
25680_ACEOF
25681for ac_lib in '' rt; do
25682 if test -z "$ac_lib"; then
25683 ac_res="none required"
25684 else
25685 ac_res=-l$ac_lib
25686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25687 fi
cristy8b350f62009-11-15 23:12:43 +000025688 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025689 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025690fi
cristy8b350f62009-11-15 23:12:43 +000025691rm -f core conftest.err conftest.$ac_objext \
25692 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025693 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025694 break
25695fi
25696done
cristyda16f162011-02-19 23:52:17 +000025697if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025698
cristye43a45e2009-09-28 14:49:00 +000025699else
25700 ac_cv_search_clock_gettime=no
25701fi
25702rm conftest.$ac_ext
25703LIBS=$ac_func_search_save_LIBS
25704fi
cristy8b350f62009-11-15 23:12:43 +000025705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025706$as_echo "$ac_cv_search_clock_gettime" >&6; }
25707ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025708if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25710
25711
cristy8b350f62009-11-15 23:12:43 +000025712$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025713
cristy8b350f62009-11-15 23:12:43 +000025714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025715$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025717/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025718
25719 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025720int
25721main ()
25722{
25723clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025724 ;
25725 return 0;
25726}
25727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025728if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025729
cristyad38abe2012-12-23 23:03:21 +000025730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25731$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025732
cristy8b350f62009-11-15 23:12:43 +000025733$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025734
25735
25736else
cristyad38abe2012-12-23 23:03:21 +000025737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25738$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025739
25740fi
cristye43a45e2009-09-28 14:49:00 +000025741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742
25743else
25744
cristy8b350f62009-11-15 23:12:43 +000025745 for ac_func in gettimeofday ftime
25746do :
25747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025750 cat >>confdefs.h <<_ACEOF
25751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25752_ACEOF
25753 break
25754fi
25755done
25756
25757
25758
25759fi
25760
25761
cristy3ed852e2009-09-05 21:47:34 +000025762########
25763#
25764# Check for function prototypes
25765#
25766########
25767
cristy8b350f62009-11-15 23:12:43 +000025768ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025769#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025770"
cristyda16f162011-02-19 23:52:17 +000025771if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025772 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025773else
cristy8b350f62009-11-15 23:12:43 +000025774 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025775fi
25776
cristy3ed852e2009-09-05 21:47:34 +000025777cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025778#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025780ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025781#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025782"
cristyda16f162011-02-19 23:52:17 +000025783if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025784 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025785else
cristy8b350f62009-11-15 23:12:43 +000025786 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025787fi
25788
cristy3ed852e2009-09-05 21:47:34 +000025789cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025790#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025791_ACEOF
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025795#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025796"
cristyda16f162011-02-19 23:52:17 +000025797if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025798 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025799else
cristy8b350f62009-11-15 23:12:43 +000025800 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025801fi
25802
cristy3ed852e2009-09-05 21:47:34 +000025803cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025804#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025805_ACEOF
25806
25807
cristy8b350f62009-11-15 23:12:43 +000025808ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025809#include <stdio.h>
25810#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025811"
cristyda16f162011-02-19 23:52:17 +000025812if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025813 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025814else
cristy8b350f62009-11-15 23:12:43 +000025815 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025816fi
25817
cristy3ed852e2009-09-05 21:47:34 +000025818cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025820_ACEOF
25821
25822
cristy3ed852e2009-09-05 21:47:34 +000025823########
25824#
25825# C++ Support Tests (For Magick++)
25826#
25827########
25828have_magick_plus_plus='no'
25829if test "$with_magick_plus_plus" = 'yes'; then
25830 OLIBS="$LIBS"
25831 LIBS=''
25832 ac_ext=cpp
25833ac_cpp='$CXXCPP $CPPFLAGS'
25834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25837
25838
25839 # Full set of headers used...
25840 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25841 # functional iomanip iosfwd iostream iterator list string strstream utility
25842 ac_ext=cpp
25843ac_cpp='$CXXCPP $CPPFLAGS'
25844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25847
25848 ac_ext=cpp
25849ac_cpp='$CXXCPP $CPPFLAGS'
25850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25853if test -z "$CXX"; then
25854 if test -n "$CCC"; then
25855 CXX=$CCC
25856 else
25857 if test -n "$ac_tool_prefix"; then
25858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25859 do
25860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025864if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025865 $as_echo_n "(cached) " >&6
25866else
25867 if test -n "$CXX"; then
25868 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25869else
25870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25871for as_dir in $PATH
25872do
25873 IFS=$as_save_IFS
25874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025877 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879 break 2
25880 fi
25881done
cristy8b350f62009-11-15 23:12:43 +000025882 done
cristy3ed852e2009-09-05 21:47:34 +000025883IFS=$as_save_IFS
25884
25885fi
25886fi
25887CXX=$ac_cv_prog_CXX
25888if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025890$as_echo "$CXX" >&6; }
25891else
cristy8b350f62009-11-15 23:12:43 +000025892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025893$as_echo "no" >&6; }
25894fi
25895
25896
25897 test -n "$CXX" && break
25898 done
25899fi
25900if test -z "$CXX"; then
25901 ac_ct_CXX=$CXX
25902 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25903do
25904 # Extract the first word of "$ac_prog", so it can be a program name with args.
25905set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025908if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025909 $as_echo_n "(cached) " >&6
25910else
25911 if test -n "$ac_ct_CXX"; then
25912 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25913else
25914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25915for as_dir in $PATH
25916do
25917 IFS=$as_save_IFS
25918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025921 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025923 break 2
25924 fi
25925done
cristy8b350f62009-11-15 23:12:43 +000025926 done
cristy3ed852e2009-09-05 21:47:34 +000025927IFS=$as_save_IFS
25928
25929fi
25930fi
25931ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25932if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025934$as_echo "$ac_ct_CXX" >&6; }
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025937$as_echo "no" >&6; }
25938fi
25939
25940
25941 test -n "$ac_ct_CXX" && break
25942done
25943
25944 if test "x$ac_ct_CXX" = x; then
25945 CXX="g++"
25946 else
25947 case $cross_compiling:$ac_tool_warned in
25948yes:)
cristy8b350f62009-11-15 23:12:43 +000025949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25951ac_tool_warned=yes ;;
25952esac
25953 CXX=$ac_ct_CXX
25954 fi
25955fi
25956
25957 fi
25958fi
25959# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025960$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961set X $ac_compile
25962ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025963for ac_option in --version -v -V -qversion; do
25964 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025965case "(($ac_try" in
25966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25968esac
cristy8b350f62009-11-15 23:12:43 +000025969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25970$as_echo "$ac_try_echo"; } >&5
25971 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025972 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025973 if test -s conftest.err; then
25974 sed '10a\
25975... rest of stderr output deleted ...
25976 10q' conftest.err >conftest.er1
25977 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025978 fi
cristycd4c5312009-11-22 01:19:08 +000025979 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25981 test $ac_status = 0; }
25982done
cristy3ed852e2009-09-05 21:47:34 +000025983
cristy8b350f62009-11-15 23:12:43 +000025984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025985$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025986if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 $as_echo_n "(cached) " >&6
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025990/* end confdefs.h. */
25991
25992int
25993main ()
25994{
25995#ifndef __GNUC__
25996 choke me
25997#endif
25998
25999 ;
26000 return 0;
26001}
26002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026003if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026004 ac_compiler_gnu=yes
26005else
cristy8b350f62009-11-15 23:12:43 +000026006 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026007fi
cristy3ed852e2009-09-05 21:47:34 +000026008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26010
26011fi
cristy8b350f62009-11-15 23:12:43 +000026012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26014if test $ac_compiler_gnu = yes; then
26015 GXX=yes
26016else
26017 GXX=
26018fi
26019ac_test_CXXFLAGS=${CXXFLAGS+set}
26020ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026022$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026023if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026024 $as_echo_n "(cached) " >&6
26025else
26026 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26027 ac_cxx_werror_flag=yes
26028 ac_cv_prog_cxx_g=no
26029 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026031/* end confdefs.h. */
26032
26033int
26034main ()
26035{
26036
26037 ;
26038 return 0;
26039}
26040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026041if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 ac_cv_prog_cxx_g=yes
26043else
cristy8b350f62009-11-15 23:12:43 +000026044 CXXFLAGS=""
26045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026046/* end confdefs.h. */
26047
26048int
26049main ()
26050{
26051
26052 ;
26053 return 0;
26054}
26055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026056if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026057
cristy8b350f62009-11-15 23:12:43 +000026058else
26059 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026060 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026062/* end confdefs.h. */
26063
26064int
26065main ()
26066{
26067
26068 ;
26069 return 0;
26070}
26071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026072if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026073 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026074fi
cristy3ed852e2009-09-05 21:47:34 +000026075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26076fi
cristy3ed852e2009-09-05 21:47:34 +000026077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26078fi
cristy3ed852e2009-09-05 21:47:34 +000026079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26081fi
cristy8b350f62009-11-15 23:12:43 +000026082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo "$ac_cv_prog_cxx_g" >&6; }
26084if test "$ac_test_CXXFLAGS" = set; then
26085 CXXFLAGS=$ac_save_CXXFLAGS
26086elif test $ac_cv_prog_cxx_g = yes; then
26087 if test "$GXX" = yes; then
26088 CXXFLAGS="-g -O2"
26089 else
26090 CXXFLAGS="-g"
26091 fi
26092else
26093 if test "$GXX" = yes; then
26094 CXXFLAGS="-O2"
26095 else
26096 CXXFLAGS=
26097 fi
26098fi
26099ac_ext=cpp
26100ac_cpp='$CXXCPP $CPPFLAGS'
26101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26104
cristy73bd4a52010-10-05 11:24:23 +000026105depcc="$CXX" am_compiler_list=
26106
26107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26108$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026109if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026110 $as_echo_n "(cached) " >&6
26111else
26112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26113 # We make a subdir and do the tests there. Otherwise we can end up
26114 # making bogus files that we don't know about and never remove. For
26115 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026116 # making a dummy file named 'D' -- because '-MD' means "put the output
26117 # in D".
cristy7247bba2012-02-05 16:37:27 +000026118 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026119 mkdir conftest.dir
26120 # Copy depcomp to subdir because otherwise we won't find it if we're
26121 # using a relative directory.
26122 cp "$am_depcomp" conftest.dir
26123 cd conftest.dir
26124 # We will build objects and dependencies in a subdirectory because
26125 # it helps to detect inapplicable dependency modes. For instance
26126 # both Tru64's cc and ICC support -MD to output dependencies as a
26127 # side effect of compilation, but ICC will put the dependencies in
26128 # the current directory while Tru64 will put them in the object
26129 # directory.
26130 mkdir sub
26131
26132 am_cv_CXX_dependencies_compiler_type=none
26133 if test "$am_compiler_list" = ""; then
26134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26135 fi
26136 am__universal=false
26137 case " $depcc " in #(
26138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26139 esac
26140
26141 for depmode in $am_compiler_list; do
26142 # Setup a source with many dependencies, because some compilers
26143 # like to wrap large dependency lists on column 80 (with \), and
26144 # we should not choose a depcomp mode which is confused by this.
26145 #
26146 # We need to recreate these files for each test, as the compiler may
26147 # overwrite some of them when testing with obscure command lines.
26148 # This happens at least with the AIX C compiler.
26149 : > sub/conftest.c
26150 for i in 1 2 3 4 5 6; do
26151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026152 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26153 # Solaris 10 /bin/sh.
26154 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026155 done
26156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26157
cristyc0890a62012-07-19 00:18:20 +000026158 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026159 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026160 # handle '-M -o', and we need to detect this. Also, some Intel
26161 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026162 am__obj=sub/conftest.${OBJEXT-o}
26163 am__minus_obj="-o $am__obj"
26164 case $depmode in
26165 gcc)
26166 # This depmode causes a compiler race in universal mode.
26167 test "$am__universal" = false || continue
26168 ;;
26169 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026170 # After this tag, mechanisms are not by side-effect, so they'll
26171 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026172 if test "x$enable_dependency_tracking" = xyes; then
26173 continue
26174 else
26175 break
26176 fi
26177 ;;
cristy7247bba2012-02-05 16:37:27 +000026178 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026179 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026180 # not run yet. These depmodes are late enough in the game, and
26181 # so weak that their functioning should not be impacted.
26182 am__obj=conftest.${OBJEXT-o}
26183 am__minus_obj=
26184 ;;
26185 none) break ;;
26186 esac
26187 if depmode=$depmode \
26188 source=sub/conftest.c object=$am__obj \
26189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26191 >/dev/null 2>conftest.err &&
26192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26196 # icc doesn't choke on unknown options, it will just issue warnings
26197 # or remarks (even with -Werror). So we grep stderr for any message
26198 # that says an option was ignored or not supported.
26199 # When given -MP, icc 7.0 and 7.1 complain thusly:
26200 # icc: Command line warning: ignoring option '-M'; no argument required
26201 # The diagnosis changed in icc 8.0:
26202 # icc: Command line remark: option '-MP' not supported
26203 if (grep 'ignoring option' conftest.err ||
26204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26205 am_cv_CXX_dependencies_compiler_type=$depmode
26206 break
26207 fi
26208 fi
26209 done
26210
26211 cd ..
26212 rm -rf conftest.dir
26213else
26214 am_cv_CXX_dependencies_compiler_type=none
26215fi
26216
26217fi
26218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26219$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26220CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26221
26222 if
26223 test "x$enable_dependency_tracking" != xno \
26224 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26225 am__fastdepCXX_TRUE=
26226 am__fastdepCXX_FALSE='#'
26227else
26228 am__fastdepCXX_TRUE='#'
26229 am__fastdepCXX_FALSE=
26230fi
26231
26232
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26234$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026235if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026236 $as_echo_n "(cached) " >&6
26237else
26238
26239 ac_ext=cpp
26240ac_cpp='$CXXCPP $CPPFLAGS'
26241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26244
26245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26246/* end confdefs.h. */
26247
26248int f(int x){return 1;}
26249int f(char x){return 1;}
26250int f(bool x){return 1;}
26251
26252int
26253main ()
26254{
26255bool b = true; return f(b);
26256 ;
26257 return 0;
26258}
26259_ACEOF
26260if ac_fn_cxx_try_compile "$LINENO"; then :
26261 ax_cv_cxx_bool=yes
26262else
26263 ax_cv_cxx_bool=no
26264fi
26265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 ac_ext=cpp
26267ac_cpp='$CXXCPP $CPPFLAGS'
26268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26271
26272
26273fi
26274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26275$as_echo "$ax_cv_cxx_bool" >&6; }
26276if test "$ax_cv_cxx_bool" = yes; then
26277
26278$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26279
26280fi
26281
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26283$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026284if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026285 $as_echo_n "(cached) " >&6
26286else
cristy17491be2014-06-24 01:10:53 +000026287 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026288ac_cpp='$CXXCPP $CPPFLAGS'
26289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26292
26293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26294/* end confdefs.h. */
26295namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026296 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026297_ACEOF
26298if ac_fn_cxx_try_compile "$LINENO"; then :
26299 ax_cv_cxx_namespaces=yes
26300else
26301 ax_cv_cxx_namespaces=no
26302fi
26303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26304 ac_ext=cpp
26305ac_cpp='$CXXCPP $CPPFLAGS'
26306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26309
26310
26311fi
26312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26313$as_echo "$ax_cv_cxx_namespaces" >&6; }
26314if test "$ax_cv_cxx_namespaces" = yes; then
26315
26316$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26317
26318fi
26319
26320
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26322$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026323if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026324 $as_echo_n "(cached) " >&6
26325else
26326
26327 ac_ext=cpp
26328ac_cpp='$CXXCPP $CPPFLAGS'
26329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26332
26333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26334/* end confdefs.h. */
26335#include <iostream>
26336 std::istream& is = std::cin;
26337int
26338main ()
26339{
26340
26341 ;
26342 return 0;
26343}
26344_ACEOF
26345if ac_fn_cxx_try_compile "$LINENO"; then :
26346 ax_cv_cxx_have_std_namespace=yes
26347else
26348 ax_cv_cxx_have_std_namespace=no
26349fi
26350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26351 ac_ext=cpp
26352ac_cpp='$CXXCPP $CPPFLAGS'
26353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26356
26357
26358fi
26359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26360$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26361 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26362
26363$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26364
26365 fi
26366
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26368$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026369if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026370 $as_echo_n "(cached) " >&6
26371else
26372
26373
26374 ac_ext=cpp
26375ac_cpp='$CXXCPP $CPPFLAGS'
26376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26379
26380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26381/* end confdefs.h. */
26382#include <iostream>
26383#include <map>
26384#include <iomanip>
26385#include <cmath>
26386#ifdef HAVE_NAMESPACES
26387using namespace std;
26388#endif
26389int
26390main ()
26391{
26392return 0;
26393 ;
26394 return 0;
26395}
26396_ACEOF
26397if ac_fn_cxx_try_compile "$LINENO"; then :
26398 ac_cv_cxx_have_std_libs=yes
26399else
26400 ac_cv_cxx_have_std_libs=no
26401fi
26402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26403 ac_ext=cpp
26404ac_cpp='$CXXCPP $CPPFLAGS'
26405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26408
26409
26410fi
26411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26412$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26413if test "$ac_cv_cxx_have_std_libs" = yes; then
26414
26415$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26416
26417fi
26418
cristy3ed852e2009-09-05 21:47:34 +000026419
26420 OPENMP_CXXFLAGS=
26421 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026422if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 enableval=$enable_openmp;
26424fi
26425
26426 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26428$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026429if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 $as_echo_n "(cached) " >&6
26431else
cristy8b350f62009-11-15 23:12:43 +000026432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026434
26435#ifndef _OPENMP
26436 choke me
26437#endif
26438#include <omp.h>
26439int main () { return omp_get_num_threads (); }
26440
26441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026442if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026443 ac_cv_prog_cxx_openmp='none needed'
26444else
cristy8b350f62009-11-15 23:12:43 +000026445 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026446 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26447 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026448 ac_save_CXXFLAGS=$CXXFLAGS
26449 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26451/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026452
26453#ifndef _OPENMP
26454 choke me
26455#endif
26456#include <omp.h>
26457int main () { return omp_get_num_threads (); }
26458
26459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026460if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026461 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026462fi
cristy8b350f62009-11-15 23:12:43 +000026463rm -f core conftest.err conftest.$ac_objext \
26464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026465 CXXFLAGS=$ac_save_CXXFLAGS
26466 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26467 break
26468 fi
26469 done
26470fi
cristy8b350f62009-11-15 23:12:43 +000026471rm -f core conftest.err conftest.$ac_objext \
26472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026473fi
cristy8b350f62009-11-15 23:12:43 +000026474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26476 case $ac_cv_prog_cxx_openmp in #(
26477 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026478 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026479 *)
cristy8b350f62009-11-15 23:12:43 +000026480 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026481 esac
26482 fi
26483
26484
26485 ac_ext=c
26486ac_cpp='$CPP $CPPFLAGS'
26487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26489ac_compiler_gnu=$ac_cv_c_compiler_gnu
26490
26491
cristy8b350f62009-11-15 23:12:43 +000026492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026493$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26494 if \
cristy964cb7f2010-04-25 23:18:00 +000026495 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026496 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026497 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026498 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026499 have_magick_plus_plus='yes'
26500 else
26501 have_magick_plus_plus='no (failed tests)'
26502 fi
cristyad38abe2012-12-23 23:03:21 +000026503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26504$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026505 LIBS="$OLIBS"
26506fi
cristy73bd4a52010-10-05 11:24:23 +000026507 if test "$have_magick_plus_plus" = 'yes'; then
26508 WITH_MAGICK_PLUS_PLUS_TRUE=
26509 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26510else
26511 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26512 WITH_MAGICK_PLUS_PLUS_FALSE=
26513fi
26514
cristy3ed852e2009-09-05 21:47:34 +000026515
26516# Only check for delegate libraries in subdirectories if requested.
26517if test "$enable_delegate_build" != 'no'; then
26518 # Check for delegate sub-directories and add -I & -L options as required.
26519 # This presumes that delegates are installed as detailed in the ImageMagick
26520 # README. If delegates are installed in a standard location where the
26521 # compiler will automatically find them then these options should not be
26522 # required.
26523
26524 #
26525 # Most delegates have includes in the same directory as the library, but not all...
26526 #
26527 # Includes
cristy31269aa2014-04-06 13:07:35 +000026528 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026529 if test -d "$builddir/$dir"; then
26530 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26531 else
26532 if test -d "$srcdirfull/$dir"; then
26533 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26534 fi
26535 fi
26536 done
26537
26538 # Libraries
cristy31269aa2014-04-06 13:07:35 +000026539 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026540 if test -d "$builddir/$dir/.libs"; then
26541 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26542 else
26543 if test -d "$srcdirfull/$dir/.libs"; then
26544 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26545 fi
26546 fi
26547 if test -d "$builddir/$dir"; then
26548 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26549 else
26550 if test -d "$srcdirfull/$dir"; then
26551 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26552 fi
26553 fi
26554 done
26555fi
26556
26557# Assume that delegate headers reside under same directory as ImageMagick
26558# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026559MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026560
26561#
26562# Find the X11 RGB database
26563#
cristy8b350f62009-11-15 23:12:43 +000026564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026565$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026566if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026567 $as_echo_n "(cached) " >&6
26568else
26569 # Look for the header file in a standard set of common directories.
26570# Check X11 before X11Rn because it is often a symlink to the current release.
26571 for ac_dir in \
26572 /lib/usr/lib/X11 \
26573 /usr/X11/lib \
26574 /usr/X11R4/lib \
26575 /usr/X11R5/lib \
26576 /usr/X11R6/lib \
26577 /usr/X11R7/lib \
26578 /usr/X386/lib \
26579 /usr/XFree86/lib/X11 \
26580 /usr/athena/lib \
26581 /usr/lib \
26582 /usr/lib/X11 \
26583 /usr/lib/X11R4 \
26584 /usr/lib/X11R5 \
26585 /usr/lib/X11R6 \
26586 /usr/lib/X11R7 \
26587 /usr/local/X11/lib \
26588 /usr/local/X11R4/lib \
26589 /usr/local/X11R5/lib \
26590 /usr/local/X11R6/lib \
26591 /usr/local/lib \
26592 /usr/local/lib/X11 \
26593 /usr/local/lib/X11R4 \
26594 /usr/local/lib/X11R5 \
26595 /usr/local/lib/X11R6 \
26596 /usr/local/lib/X11R7 \
26597 /usr/local/x11r5/lib \
26598 /usr/lpp/Xamples/lib \
26599 /usr/openwin/lib \
26600 /usr/openwin/share/lib \
26601 /usr/unsupported/lib \
26602 /usr/x386/lib \
26603 ; do
26604 if test -f "$ac_dir/X11/rgb.txt"; then
26605 im_cv_x_configure="$ac_dir/X11/"
26606 break
26607 elif test -f "$ac_dir/rgb.txt"; then
26608 im_cv_x_configure="$ac_dir/"
26609 break
26610 fi
26611
26612 done
26613fi
cristy8b350f62009-11-15 23:12:43 +000026614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo "$im_cv_x_configure" >&6; }
26616X11_CONFIGURE_PATH="$im_cv_x_configure"
26617case "${build_os}" in
26618 mingw* )
26619 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26620 ;;
26621esac
26622
26623cat >>confdefs.h <<_ACEOF
26624#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26625_ACEOF
26626
26627
26628#
26629# Find OpenMP library
26630#
26631GOMP_LIBS=''
26632if test "$enable_openmp" != 'no'; then
26633 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026634 # Open64 (passes for GCC but uses different OpenMP implementation)
26635 if test "x$GOMP_LIBS" = x ; then
26636 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26638$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26639if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26640 $as_echo_n "(cached) " >&6
26641else
26642 ac_check_lib_save_LIBS=$LIBS
26643LIBS="-lopenmp $LIBS"
26644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645/* end confdefs.h. */
26646
26647/* Override any GCC internal prototype to avoid an error.
26648 Use char because int might match the return type of a GCC
26649 builtin and then its argument prototype would still apply. */
26650#ifdef __cplusplus
26651extern "C"
26652#endif
26653char omp_get_num_procs ();
26654int
26655main ()
26656{
26657return omp_get_num_procs ();
26658 ;
26659 return 0;
26660}
26661_ACEOF
26662if ac_fn_c_try_link "$LINENO"; then :
26663 ac_cv_lib_openmp_omp_get_num_procs=yes
26664else
26665 ac_cv_lib_openmp_omp_get_num_procs=no
26666fi
26667rm -f core conftest.err conftest.$ac_objext \
26668 conftest$ac_exeext conftest.$ac_ext
26669LIBS=$ac_check_lib_save_LIBS
26670fi
26671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26672$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26673if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26674 GOMP_LIBS="-lopenmp"
26675fi
26676
26677 fi
26678 fi
26679 # GCC
26680 if test "x$GOMP_LIBS" = x ; then
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026683if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026684 $as_echo_n "(cached) " >&6
26685else
26686 ac_check_lib_save_LIBS=$LIBS
26687LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026689/* end confdefs.h. */
26690
26691/* Override any GCC internal prototype to avoid an error.
26692 Use char because int might match the return type of a GCC
26693 builtin and then its argument prototype would still apply. */
26694#ifdef __cplusplus
26695extern "C"
26696#endif
26697char GOMP_parallel_start ();
26698int
26699main ()
26700{
26701return GOMP_parallel_start ();
26702 ;
26703 return 0;
26704}
26705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026707 ac_cv_lib_gomp_GOMP_parallel_start=yes
26708else
cristy8b350f62009-11-15 23:12:43 +000026709 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026710fi
cristy8b350f62009-11-15 23:12:43 +000026711rm -f core conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026713LIBS=$ac_check_lib_save_LIBS
26714fi
cristy8b350f62009-11-15 23:12:43 +000026715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026716$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026717if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026718 GOMP_LIBS="-lgomp"
26719fi
cristy18307f12011-12-30 01:20:16 +000026720
26721 fi
cristy3ed852e2009-09-05 21:47:34 +000026722 else
cristy18307f12011-12-30 01:20:16 +000026723 # Sun CC
26724 if test "x$GOMP_LIBS" = x ; then
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026726$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026727if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 $as_echo_n "(cached) " >&6
26729else
26730 ac_check_lib_save_LIBS=$LIBS
26731LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026733/* end confdefs.h. */
26734
26735/* Override any GCC internal prototype to avoid an error.
26736 Use char because int might match the return type of a GCC
26737 builtin and then its argument prototype would still apply. */
26738#ifdef __cplusplus
26739extern "C"
26740#endif
26741char sunw_mp_register_warn ();
26742int
26743main ()
26744{
26745return sunw_mp_register_warn ();
26746 ;
26747 return 0;
26748}
26749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026751 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26752else
cristy8b350f62009-11-15 23:12:43 +000026753 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026754fi
cristy8b350f62009-11-15 23:12:43 +000026755rm -f core conftest.err conftest.$ac_objext \
26756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026757LIBS=$ac_check_lib_save_LIBS
26758fi
cristy8b350f62009-11-15 23:12:43 +000026759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026760$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026761if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026762 GOMP_LIBS="-lmtsk"
26763fi
cristy18307f12011-12-30 01:20:16 +000026764
26765 fi
26766 # AIX xlc
26767 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 $as_echo_n "(cached) " >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026776/* end confdefs.h. */
26777
26778/* Override any GCC internal prototype to avoid an error.
26779 Use char because int might match the return type of a GCC
26780 builtin and then its argument prototype would still apply. */
26781#ifdef __cplusplus
26782extern "C"
26783#endif
26784char _xlsmpFlush ();
26785int
26786main ()
26787{
26788return _xlsmpFlush ();
26789 ;
26790 return 0;
26791}
26792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026794 ac_cv_lib_xlsmp__xlsmpFlush=yes
26795else
cristy8b350f62009-11-15 23:12:43 +000026796 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026797fi
cristy8b350f62009-11-15 23:12:43 +000026798rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026800LIBS=$ac_check_lib_save_LIBS
26801fi
cristy8b350f62009-11-15 23:12:43 +000026802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026804if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 GOMP_LIBS="-lxlsmp"
26806fi
cristy18307f12011-12-30 01:20:16 +000026807
26808 fi
26809 # SGI IRIX 6.5 MIPSpro C/C++
26810 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026813if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026814 $as_echo_n "(cached) " >&6
26815else
26816 ac_check_lib_save_LIBS=$LIBS
26817LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026819/* end confdefs.h. */
26820
26821/* Override any GCC internal prototype to avoid an error.
26822 Use char because int might match the return type of a GCC
26823 builtin and then its argument prototype would still apply. */
26824#ifdef __cplusplus
26825extern "C"
26826#endif
26827char mp_destroy ();
26828int
26829main ()
26830{
26831return mp_destroy ();
26832 ;
26833 return 0;
26834}
26835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026837 ac_cv_lib_mp_mp_destroy=yes
26838else
cristy8b350f62009-11-15 23:12:43 +000026839 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026840fi
cristy8b350f62009-11-15 23:12:43 +000026841rm -f core conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026843LIBS=$ac_check_lib_save_LIBS
26844fi
cristy8b350f62009-11-15 23:12:43 +000026845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026847if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 GOMP_LIBS="-lmp"
26849fi
cristy18307f12011-12-30 01:20:16 +000026850
26851 fi
cristy3ed852e2009-09-05 21:47:34 +000026852 fi
26853 LIBS="$GOMP_LIBS $LIBS"
26854fi
26855
26856
cristy12ac8192014-11-04 13:59:13 +000026857#
cristy3b0097d2014-11-04 15:34:47 +000026858# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026859#
cristy3b0097d2014-11-04 15:34:47 +000026860have_jemalloc='no'
26861JEMALLOC_LIBS=''
26862if test "$with_jemalloc" != 'no'; then
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26864$as_echo_n "checking for JEMALLOC support ... " >&6; }
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26866$as_echo "" >&6; }
26867 failed=0
26868 passed=0
26869 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26870if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026871 passed=`expr $passed + 1`
26872else
26873 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026874fi
26875
26876
cristy3b0097d2014-11-04 15:34:47 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26878$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26879if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026880 $as_echo_n "(cached) " >&6
26881else
26882 ac_check_lib_save_LIBS=$LIBS
26883LIBS="-ljemalloc $LIBS"
26884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885/* end confdefs.h. */
26886
26887/* Override any GCC internal prototype to avoid an error.
26888 Use char because int might match the return type of a GCC
26889 builtin and then its argument prototype would still apply. */
26890#ifdef __cplusplus
26891extern "C"
26892#endif
cristy3b0097d2014-11-04 15:34:47 +000026893char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026894int
26895main ()
26896{
cristy3b0097d2014-11-04 15:34:47 +000026897return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026898 ;
26899 return 0;
26900}
26901_ACEOF
26902if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026903 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026904else
cristy3b0097d2014-11-04 15:34:47 +000026905 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026906fi
26907rm -f core conftest.err conftest.$ac_objext \
26908 conftest$ac_exeext conftest.$ac_ext
26909LIBS=$ac_check_lib_save_LIBS
26910fi
cristy3b0097d2014-11-04 15:34:47 +000026911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26912$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26913if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026914 passed=`expr $passed + 1`
26915else
26916 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026917fi
26918
cristy3b0097d2014-11-04 15:34:47 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26920$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26921 if test $passed -gt 0; then
26922 if test $failed -gt 0; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26924$as_echo "no -- some components failed test" >&6; }
26925 have_jemalloc='no (failed tests)'
26926 else
26927 JEMALLOC_LIBS='-ljemalloc'
26928 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000026929
cristy3b0097d2014-11-04 15:34:47 +000026930$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000026931
cristy3b0097d2014-11-04 15:34:47 +000026932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26933$as_echo "yes" >&6; }
26934 have_jemalloc='yes'
26935 fi
cristy12ac8192014-11-04 13:59:13 +000026936 else
cristy3b0097d2014-11-04 15:34:47 +000026937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26938$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000026939 fi
26940fi
cristy3b0097d2014-11-04 15:34:47 +000026941 if test "$have_jemalloc" = 'yes'; then
26942 HasJEMALLOC_TRUE=
26943 HasJEMALLOC_FALSE='#'
26944else
26945 HasJEMALLOC_TRUE='#'
26946 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000026947fi
26948
cristy3b0097d2014-11-04 15:34:47 +000026949
26950
cristy3ed852e2009-09-05 21:47:34 +000026951#
26952# Check for umem.
26953#
26954have_umem='no'
26955UMEM_LIBS=''
26956if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26960$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026961 failed=0
26962 passed=0
cristy8b350f62009-11-15 23:12:43 +000026963 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026964if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 passed=`expr $passed + 1`
26966else
26967 failed=`expr $failed + 1`
26968fi
26969
26970
cristy8b350f62009-11-15 23:12:43 +000026971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026972$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026973if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026974 $as_echo_n "(cached) " >&6
26975else
26976 ac_check_lib_save_LIBS=$LIBS
26977LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026979/* end confdefs.h. */
26980
26981/* Override any GCC internal prototype to avoid an error.
26982 Use char because int might match the return type of a GCC
26983 builtin and then its argument prototype would still apply. */
26984#ifdef __cplusplus
26985extern "C"
26986#endif
26987char umem_alloc ();
26988int
26989main ()
26990{
26991return umem_alloc ();
26992 ;
26993 return 0;
26994}
26995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026997 ac_cv_lib_umem_umem_alloc=yes
26998else
cristy8b350f62009-11-15 23:12:43 +000026999 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027000fi
cristy8b350f62009-11-15 23:12:43 +000027001rm -f core conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027003LIBS=$ac_check_lib_save_LIBS
27004fi
cristy8b350f62009-11-15 23:12:43 +000027005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027007if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027008 passed=`expr $passed + 1`
27009else
27010 failed=`expr $failed + 1`
27011fi
27012
cristy8b350f62009-11-15 23:12:43 +000027013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027014$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027015if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027016 $as_echo_n "(cached) " >&6
27017else
27018 ac_check_lib_save_LIBS=$LIBS
27019LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027021/* end confdefs.h. */
27022
27023/* Override any GCC internal prototype to avoid an error.
27024 Use char because int might match the return type of a GCC
27025 builtin and then its argument prototype would still apply. */
27026#ifdef __cplusplus
27027extern "C"
27028#endif
27029char umem_free ();
27030int
27031main ()
27032{
27033return umem_free ();
27034 ;
27035 return 0;
27036}
27037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027039 ac_cv_lib_umem_umem_free=yes
27040else
cristy8b350f62009-11-15 23:12:43 +000027041 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027042fi
cristy8b350f62009-11-15 23:12:43 +000027043rm -f core conftest.err conftest.$ac_objext \
27044 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027045LIBS=$ac_check_lib_save_LIBS
27046fi
cristy8b350f62009-11-15 23:12:43 +000027047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027049if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027050 passed=`expr $passed + 1`
27051else
27052 failed=`expr $failed + 1`
27053fi
27054
cristy8b350f62009-11-15 23:12:43 +000027055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027056$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27057 if test $passed -gt 0; then
27058 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27060$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027061 have_umem='no (failed tests)'
27062 else
27063 UMEM_LIBS='-lumem'
27064 LIBS="$UMEM_LIBS $LIBS"
27065
cristy8b350f62009-11-15 23:12:43 +000027066$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027067
cristyad38abe2012-12-23 23:03:21 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027070 have_umem='yes'
27071 fi
27072 else
cristyad38abe2012-12-23 23:03:21 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27074$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027075 fi
27076fi
cristy73bd4a52010-10-05 11:24:23 +000027077 if test "$have_umem" = 'yes'; then
27078 HasUMEM_TRUE=
27079 HasUMEM_FALSE='#'
27080else
27081 HasUMEM_TRUE='#'
27082 HasUMEM_FALSE=
27083fi
27084
cristy3ed852e2009-09-05 21:47:34 +000027085
27086
27087#
27088# Add support for ccmalloc memory debugging library if requested
27089#
27090have_ccmalloc='no'
27091CCMALLOC_LIBS=''
27092if test "$enable_ccmalloc" = 'yes'; then
27093 # Extract the first word of "ccmalloc", so it can be a program name with args.
27094set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027097if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 $as_echo_n "(cached) " >&6
27099else
27100 case $CCMALLOCDelegate in
27101 [\\/]* | ?:[\\/]*)
27102 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27103 ;;
27104 *)
27105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27106for as_dir in $PATH
27107do
27108 IFS=$as_save_IFS
27109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027112 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114 break 2
27115 fi
27116done
cristy8b350f62009-11-15 23:12:43 +000027117 done
cristy3ed852e2009-09-05 21:47:34 +000027118IFS=$as_save_IFS
27119
27120 ;;
27121esac
27122fi
27123CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27124if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "$CCMALLOCDelegate" >&6; }
27127else
cristy8b350f62009-11-15 23:12:43 +000027128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027129$as_echo "no" >&6; }
27130fi
27131
27132
27133 if test -n "$CCMALLOCDelegate"; then
27134 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27135 OLIBS="$LIBS"
27136 # Assume that gcc is used with ccmalloc.
27137 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027139$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027140if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 $as_echo_n "(cached) " >&6
27142else
27143 ac_check_lib_save_LIBS=$LIBS
27144LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027146/* end confdefs.h. */
27147
27148/* Override any GCC internal prototype to avoid an error.
27149 Use char because int might match the return type of a GCC
27150 builtin and then its argument prototype would still apply. */
27151#ifdef __cplusplus
27152extern "C"
27153#endif
27154char ccmalloc_malloc ();
27155int
27156main ()
27157{
27158return ccmalloc_malloc ();
27159 ;
27160 return 0;
27161}
27162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27165else
cristy8b350f62009-11-15 23:12:43 +000027166 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027167fi
cristy8b350f62009-11-15 23:12:43 +000027168rm -f core conftest.err conftest.$ac_objext \
27169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027170LIBS=$ac_check_lib_save_LIBS
27171fi
cristy8b350f62009-11-15 23:12:43 +000027172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027174if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27176fi
27177
27178 if test -n "$CCMALLOC_LIBS"; then
27179 LIBS="$OLIBS"
27180 LIBS="$LIBS $CCMALLOC_LIBS"
27181 have_ccmalloc='yes'
27182 else
27183 LIBS="$OLIBS"
27184 fi
27185 fi
27186fi
27187
27188#
cristy944e51f2013-04-16 18:45:02 +000027189# Add support for 'huge pages' if requested
27190#
27191if test "x$enable_hugepages" != "xno"; then :
27192
27193
27194$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27195
27196
27197fi
27198
27199#
cristy3ed852e2009-09-05 21:47:34 +000027200# Add support for efence memory debugging library if requested
27201#
27202if test "$enable_efence" = 'yes'; then
27203 EFENCE_LIBS='-lefence'
27204 LIBS="$EFENCE_LIBS $LIBS"
27205fi
27206
cristy3ed852e2009-09-05 21:47:34 +000027207
27208#
27209# Check for BZLIB
27210#
27211
27212
27213# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027214if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 withval=$with_bzlib; with_bzlib=$withval
27216else
27217 with_bzlib='yes'
27218fi
27219
27220
27221if test "$with_bzlib" != 'yes'; then
27222 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27223fi
27224
27225have_bzlib='no'
27226if test "$with_bzlib" != 'no'; then
27227 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27229$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27233$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027234 failed=0
27235 passed=0
27236 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027237 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027238if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 passed=`expr $passed + 1`
27240else
27241 failed=`expr $failed + 1`
27242fi
27243
27244
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027247if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 $as_echo_n "(cached) " >&6
27249else
27250 ac_check_lib_save_LIBS=$LIBS
27251LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253/* end confdefs.h. */
27254
27255/* Override any GCC internal prototype to avoid an error.
27256 Use char because int might match the return type of a GCC
27257 builtin and then its argument prototype would still apply. */
27258#ifdef __cplusplus
27259extern "C"
27260#endif
27261char BZ2_bzDecompress ();
27262int
27263main ()
27264{
27265return BZ2_bzDecompress ();
27266 ;
27267 return 0;
27268}
27269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27272else
cristy8b350f62009-11-15 23:12:43 +000027273 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027274fi
cristy8b350f62009-11-15 23:12:43 +000027275rm -f core conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277LIBS=$ac_check_lib_save_LIBS
27278fi
cristy8b350f62009-11-15 23:12:43 +000027279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027281if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 found_libbz=`expr $found_libbz + 1`
27283fi
27284
27285 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027288if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 $as_echo_n "(cached) " >&6
27290else
27291 ac_check_lib_save_LIBS=$LIBS
27292LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294/* end confdefs.h. */
27295
27296/* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
27299#ifdef __cplusplus
27300extern "C"
27301#endif
27302char _imp__BZ2_decompress ();
27303int
27304main ()
27305{
27306return _imp__BZ2_decompress ();
27307 ;
27308 return 0;
27309}
27310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27313else
cristy8b350f62009-11-15 23:12:43 +000027314 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027315fi
cristy8b350f62009-11-15 23:12:43 +000027316rm -f core conftest.err conftest.$ac_objext \
27317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318LIBS=$ac_check_lib_save_LIBS
27319fi
cristy8b350f62009-11-15 23:12:43 +000027320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027321$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027322if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027323 found_libbz=`expr $found_libbz + 1`
27324fi
27325
27326 fi
27327 if test $found_libbz -gt 0; then
27328 passed=`expr $passed + 1`
27329 else
27330 failed=`expr $failed + 1`
27331 fi
cristy8b350f62009-11-15 23:12:43 +000027332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027333$as_echo_n "checking if BZLIB package is complete... " >&6; }
27334 if test $passed -gt 0; then
27335 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27337$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027338 have_bzlib='no (failed tests)'
27339 else
27340 BZLIB_LIBS='-lbz2'
27341 LIBS="$BZLIB_LIBS $LIBS"
27342
cristy8b350f62009-11-15 23:12:43 +000027343$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027344
cristyad38abe2012-12-23 23:03:21 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27346$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027347 have_bzlib='yes'
27348 fi
27349 else
cristyad38abe2012-12-23 23:03:21 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27351$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027352 fi
27353fi
cristy73bd4a52010-10-05 11:24:23 +000027354 if test "$have_bzlib" = 'yes'; then
27355 BZLIB_DELEGATE_TRUE=
27356 BZLIB_DELEGATE_FALSE='#'
27357else
27358 BZLIB_DELEGATE_TRUE='#'
27359 BZLIB_DELEGATE_FALSE=
27360fi
27361
cristy3ed852e2009-09-05 21:47:34 +000027362
27363
27364#
27365# Find the X11 include and library directories.
27366#
27367IPC_LIBS=''
27368X11_LIBS=''
27369XEXT_LIBS=''
27370XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027372$as_echo_n "checking for X... " >&6; }
27373
27374
27375# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027376if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027377 withval=$with_x;
27378fi
27379
27380# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27381if test "x$with_x" = xno; then
27382 # The user explicitly disabled X.
27383 have_x=disabled
27384else
27385 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027386 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027387 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027388 $as_echo_n "(cached) " >&6
27389else
27390 # One or both of the vars are not set, and there is no cached value.
27391ac_x_includes=no ac_x_libraries=no
27392rm -f -r conftest.dir
27393if mkdir conftest.dir; then
27394 cd conftest.dir
27395 cat >Imakefile <<'_ACEOF'
27396incroot:
27397 @echo incroot='${INCROOT}'
27398usrlibdir:
27399 @echo usrlibdir='${USRLIBDIR}'
27400libdir:
27401 @echo libdir='${LIBDIR}'
27402_ACEOF
27403 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027405 for ac_var in incroot usrlibdir libdir; do
27406 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27407 done
27408 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27409 for ac_extension in a so sl dylib la dll; do
27410 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27411 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27412 ac_im_usrlibdir=$ac_im_libdir; break
27413 fi
27414 done
27415 # Screen out bogus values from the imake configuration. They are
27416 # bogus both because they are the default anyway, and because
27417 # using them would break gcc on systems where it needs fixed includes.
27418 case $ac_im_incroot in
27419 /usr/include) ac_x_includes= ;;
27420 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27421 esac
27422 case $ac_im_usrlibdir in
27423 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27424 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27425 esac
27426 fi
27427 cd ..
27428 rm -f -r conftest.dir
27429fi
27430
27431# Standard set of common directories for X headers.
27432# Check X11 before X11Rn because it is often a symlink to the current release.
27433ac_x_header_dirs='
27434/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027435/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027436/usr/X11R6/include
27437/usr/X11R5/include
27438/usr/X11R4/include
27439
27440/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027441/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027442/usr/include/X11R6
27443/usr/include/X11R5
27444/usr/include/X11R4
27445
27446/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027447/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027448/usr/local/X11R6/include
27449/usr/local/X11R5/include
27450/usr/local/X11R4/include
27451
27452/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027453/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027454/usr/local/include/X11R6
27455/usr/local/include/X11R5
27456/usr/local/include/X11R4
27457
27458/usr/X386/include
27459/usr/x386/include
27460/usr/XFree86/include/X11
27461
27462/usr/include
27463/usr/local/include
27464/usr/unsupported/include
27465/usr/athena/include
27466/usr/local/x11r5/include
27467/usr/lpp/Xamples/include
27468
27469/usr/openwin/include
27470/usr/openwin/share/include'
27471
27472if test "$ac_x_includes" = no; then
27473 # Guess where to find include files, by looking for Xlib.h.
27474 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027476/* end confdefs.h. */
27477#include <X11/Xlib.h>
27478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027479if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027480 # We can compile using X headers with no special include directory.
27481ac_x_includes=
27482else
cristyc7083c12009-10-14 03:16:55 +000027483 for ac_dir in $ac_x_header_dirs; do
27484 if test -r "$ac_dir/X11/Xlib.h"; then
27485 ac_x_includes=$ac_dir
27486 break
27487 fi
27488done
27489fi
cristyda16f162011-02-19 23:52:17 +000027490rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027491fi # $ac_x_includes = no
27492
27493if test "$ac_x_libraries" = no; then
27494 # Check for the libraries.
27495 # See if we find them without any special options.
27496 # Don't add to $LIBS permanently.
27497 ac_save_LIBS=$LIBS
27498 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027500/* end confdefs.h. */
27501#include <X11/Xlib.h>
27502int
27503main ()
27504{
27505XrmInitialize ()
27506 ;
27507 return 0;
27508}
27509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027510if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027511 LIBS=$ac_save_LIBS
27512# We can link X programs with no special library path.
27513ac_x_libraries=
27514else
cristy8b350f62009-11-15 23:12:43 +000027515 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027516for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27517do
27518 # Don't even attempt the hair of trying to link an X program!
27519 for ac_extension in a so sl dylib la dll; do
27520 if test -r "$ac_dir/libX11.$ac_extension"; then
27521 ac_x_libraries=$ac_dir
27522 break 2
27523 fi
27524 done
27525done
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527rm -f core conftest.err conftest.$ac_objext \
27528 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027529fi # $ac_x_libraries = no
27530
27531case $ac_x_includes,$ac_x_libraries in #(
27532 no,* | *,no | *\'*)
27533 # Didn't find X, or a directory has "'" in its name.
27534 ac_cv_have_x="have_x=no";; #(
27535 *)
27536 # Record where we found X for the cache.
27537 ac_cv_have_x="have_x=yes\
27538 ac_x_includes='$ac_x_includes'\
27539 ac_x_libraries='$ac_x_libraries'"
27540esac
27541fi
27542;; #(
27543 *) have_x=yes;;
27544 esac
27545 eval "$ac_cv_have_x"
27546fi # $with_x != no
27547
27548if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027550$as_echo "$have_x" >&6; }
27551 no_x=yes
27552else
27553 # If each of the values was on the command line, it overrides each guess.
27554 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27555 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27556 # Update the cache value to reflect the command line values.
27557 ac_cv_have_x="have_x=yes\
27558 ac_x_includes='$x_includes'\
27559 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027561$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27562fi
27563
cristy3ed852e2009-09-05 21:47:34 +000027564if test "$no_x" = yes; then
27565 # Not all programs may use this symbol, but it does not hurt to define it.
27566
cristy8b350f62009-11-15 23:12:43 +000027567$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027568
27569 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27570else
27571 if test -n "$x_includes"; then
27572 X_CFLAGS="$X_CFLAGS -I$x_includes"
27573 fi
27574
27575 # It would also be nice to do this for all -L options, not just this one.
27576 if test -n "$x_libraries"; then
27577 X_LIBS="$X_LIBS -L$x_libraries"
27578 # For Solaris; some versions of Sun CC require a space after -R and
27579 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27582 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27583 ac_xsave_c_werror_flag=$ac_c_werror_flag
27584 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027586/* end confdefs.h. */
27587
27588int
27589main ()
27590{
27591
27592 ;
27593 return 0;
27594}
27595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027596if ac_fn_c_try_link "$LINENO"; then :
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027598$as_echo "no" >&6; }
27599 X_LIBS="$X_LIBS -R$x_libraries"
27600else
cristy8b350f62009-11-15 23:12:43 +000027601 LIBS="$ac_xsave_LIBS -R $x_libraries"
27602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603/* end confdefs.h. */
27604
27605int
27606main ()
27607{
27608
27609 ;
27610 return 0;
27611}
27612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027613if ac_fn_c_try_link "$LINENO"; then :
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo "yes" >&6; }
27616 X_LIBS="$X_LIBS -R $x_libraries"
27617else
cristy8b350f62009-11-15 23:12:43 +000027618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo "neither works" >&6; }
27620fi
cristy8b350f62009-11-15 23:12:43 +000027621rm -f core conftest.err conftest.$ac_objext \
27622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027623fi
cristy8b350f62009-11-15 23:12:43 +000027624rm -f core conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027626 ac_c_werror_flag=$ac_xsave_c_werror_flag
27627 LIBS=$ac_xsave_LIBS
27628 fi
27629
27630 # Check for system-dependent libraries X programs must link with.
27631 # Do this before checking for the system-independent R6 libraries
27632 # (-lICE), since we may need -lsocket or whatever for X linking.
27633
27634 if test "$ISC" = yes; then
27635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27636 else
27637 # Martyn Johnson says this is needed for Ultrix, if the X
27638 # libraries were built with DECnet support. And Karl Berry says
27639 # the Alpha needs dnet_stub (dnet does not exist).
27640 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char XOpenDisplay ();
27651int
27652main ()
27653{
27654return XOpenDisplay ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027660
cristy8b350f62009-11-15 23:12:43 +000027661else
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027663$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027664if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027665 $as_echo_n "(cached) " >&6
27666else
27667 ac_check_lib_save_LIBS=$LIBS
27668LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027670/* end confdefs.h. */
27671
27672/* Override any GCC internal prototype to avoid an error.
27673 Use char because int might match the return type of a GCC
27674 builtin and then its argument prototype would still apply. */
27675#ifdef __cplusplus
27676extern "C"
27677#endif
27678char dnet_ntoa ();
27679int
27680main ()
27681{
27682return dnet_ntoa ();
27683 ;
27684 return 0;
27685}
27686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 ac_cv_lib_dnet_dnet_ntoa=yes
27689else
cristy8b350f62009-11-15 23:12:43 +000027690 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027691fi
cristy8b350f62009-11-15 23:12:43 +000027692rm -f core conftest.err conftest.$ac_objext \
27693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027694LIBS=$ac_check_lib_save_LIBS
27695fi
cristy8b350f62009-11-15 23:12:43 +000027696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027698if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027699 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27700fi
27701
27702 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027705if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 $as_echo_n "(cached) " >&6
27707else
27708 ac_check_lib_save_LIBS=$LIBS
27709LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711/* end confdefs.h. */
27712
27713/* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27716#ifdef __cplusplus
27717extern "C"
27718#endif
27719char dnet_ntoa ();
27720int
27721main ()
27722{
27723return dnet_ntoa ();
27724 ;
27725 return 0;
27726}
27727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27730else
cristy8b350f62009-11-15 23:12:43 +000027731 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027732fi
cristy8b350f62009-11-15 23:12:43 +000027733rm -f core conftest.err conftest.$ac_objext \
27734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735LIBS=$ac_check_lib_save_LIBS
27736fi
cristy8b350f62009-11-15 23:12:43 +000027737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027739if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27741fi
27742
27743 fi
27744fi
cristy8b350f62009-11-15 23:12:43 +000027745rm -f core conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027747 LIBS="$ac_xsave_LIBS"
27748
27749 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27750 # to get the SysV transport functions.
27751 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27752 # needs -lnsl.
27753 # The nsl library prevents programs from opening the X display
27754 # on Irix 5.2, according to T.E. Dickey.
27755 # The functions gethostbyname, getservbyname, and inet_addr are
27756 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027757 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027758if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027759
cristy3ed852e2009-09-05 21:47:34 +000027760fi
27761
cristy3ed852e2009-09-05 21:47:34 +000027762 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027764$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027765if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027766 $as_echo_n "(cached) " >&6
27767else
27768 ac_check_lib_save_LIBS=$LIBS
27769LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027771/* end confdefs.h. */
27772
27773/* Override any GCC internal prototype to avoid an error.
27774 Use char because int might match the return type of a GCC
27775 builtin and then its argument prototype would still apply. */
27776#ifdef __cplusplus
27777extern "C"
27778#endif
27779char gethostbyname ();
27780int
27781main ()
27782{
27783return gethostbyname ();
27784 ;
27785 return 0;
27786}
27787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 ac_cv_lib_nsl_gethostbyname=yes
27790else
cristy8b350f62009-11-15 23:12:43 +000027791 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027792fi
cristy8b350f62009-11-15 23:12:43 +000027793rm -f core conftest.err conftest.$ac_objext \
27794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027795LIBS=$ac_check_lib_save_LIBS
27796fi
cristy8b350f62009-11-15 23:12:43 +000027797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027798$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027799if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27801fi
27802
27803 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027806if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027807 $as_echo_n "(cached) " >&6
27808else
27809 ac_check_lib_save_LIBS=$LIBS
27810LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812/* end confdefs.h. */
27813
27814/* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817#ifdef __cplusplus
27818extern "C"
27819#endif
27820char gethostbyname ();
27821int
27822main ()
27823{
27824return gethostbyname ();
27825 ;
27826 return 0;
27827}
27828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 ac_cv_lib_bsd_gethostbyname=yes
27831else
cristy8b350f62009-11-15 23:12:43 +000027832 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027833fi
cristy8b350f62009-11-15 23:12:43 +000027834rm -f core conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836LIBS=$ac_check_lib_save_LIBS
27837fi
cristy8b350f62009-11-15 23:12:43 +000027838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027839$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027840if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27842fi
27843
27844 fi
27845 fi
27846
27847 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27848 # socket/setsockopt and other routines are undefined under SCO ODT
27849 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27850 # on later versions), says Simon Leinen: it contains gethostby*
27851 # variants that don't use the name server (or something). -lsocket
27852 # must be given before -lnsl if both are needed. We assume that
27853 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027854 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027855if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027856
cristy3ed852e2009-09-05 21:47:34 +000027857fi
27858
cristy3ed852e2009-09-05 21:47:34 +000027859 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027862if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 $as_echo_n "(cached) " >&6
27864else
27865 ac_check_lib_save_LIBS=$LIBS
27866LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027868/* end confdefs.h. */
27869
27870/* Override any GCC internal prototype to avoid an error.
27871 Use char because int might match the return type of a GCC
27872 builtin and then its argument prototype would still apply. */
27873#ifdef __cplusplus
27874extern "C"
27875#endif
27876char connect ();
27877int
27878main ()
27879{
27880return connect ();
27881 ;
27882 return 0;
27883}
27884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 ac_cv_lib_socket_connect=yes
27887else
cristy8b350f62009-11-15 23:12:43 +000027888 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027889fi
cristy8b350f62009-11-15 23:12:43 +000027890rm -f core conftest.err conftest.$ac_objext \
27891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027892LIBS=$ac_check_lib_save_LIBS
27893fi
cristy8b350f62009-11-15 23:12:43 +000027894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027896if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27898fi
27899
27900 fi
27901
27902 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027903 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027904if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027905
cristy3ed852e2009-09-05 21:47:34 +000027906fi
27907
cristy3ed852e2009-09-05 21:47:34 +000027908 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027910$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027911if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027912 $as_echo_n "(cached) " >&6
27913else
27914 ac_check_lib_save_LIBS=$LIBS
27915LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027917/* end confdefs.h. */
27918
27919/* Override any GCC internal prototype to avoid an error.
27920 Use char because int might match the return type of a GCC
27921 builtin and then its argument prototype would still apply. */
27922#ifdef __cplusplus
27923extern "C"
27924#endif
27925char remove ();
27926int
27927main ()
27928{
27929return remove ();
27930 ;
27931 return 0;
27932}
27933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 ac_cv_lib_posix_remove=yes
27936else
cristy8b350f62009-11-15 23:12:43 +000027937 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027938fi
cristy8b350f62009-11-15 23:12:43 +000027939rm -f core conftest.err conftest.$ac_objext \
27940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027941LIBS=$ac_check_lib_save_LIBS
27942fi
cristy8b350f62009-11-15 23:12:43 +000027943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027944$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027945if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27947fi
27948
27949 fi
27950
27951 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027952 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027953if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027954
cristy3ed852e2009-09-05 21:47:34 +000027955fi
27956
cristy3ed852e2009-09-05 21:47:34 +000027957 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 $as_echo_n "(cached) " >&6
27962else
27963 ac_check_lib_save_LIBS=$LIBS
27964LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027966/* end confdefs.h. */
27967
27968/* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27971#ifdef __cplusplus
27972extern "C"
27973#endif
27974char shmat ();
27975int
27976main ()
27977{
27978return shmat ();
27979 ;
27980 return 0;
27981}
27982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027983if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027984 ac_cv_lib_ipc_shmat=yes
27985else
cristy8b350f62009-11-15 23:12:43 +000027986 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027987fi
cristy8b350f62009-11-15 23:12:43 +000027988rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027990LIBS=$ac_check_lib_save_LIBS
27991fi
cristy8b350f62009-11-15 23:12:43 +000027992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027993$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027994if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027995 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27996fi
27997
27998 fi
27999 fi
28000
28001 # Check for libraries that X11R6 Xt/Xaw programs need.
28002 ac_save_LDFLAGS=$LDFLAGS
28003 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28004 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28005 # check for ICE first), but we must link in the order -lSM -lICE or
28006 # we get undefined symbols. So assume we have SM if we have ICE.
28007 # These have to be linked with before -lX11, unlike the other
28008 # libraries we check for below, so use a different variable.
28009 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028011$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028012if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028013 $as_echo_n "(cached) " >&6
28014else
28015 ac_check_lib_save_LIBS=$LIBS
28016LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028018/* end confdefs.h. */
28019
28020/* Override any GCC internal prototype to avoid an error.
28021 Use char because int might match the return type of a GCC
28022 builtin and then its argument prototype would still apply. */
28023#ifdef __cplusplus
28024extern "C"
28025#endif
28026char IceConnectionNumber ();
28027int
28028main ()
28029{
28030return IceConnectionNumber ();
28031 ;
28032 return 0;
28033}
28034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 ac_cv_lib_ICE_IceConnectionNumber=yes
28037else
cristy8b350f62009-11-15 23:12:43 +000028038 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028039fi
cristy8b350f62009-11-15 23:12:43 +000028040rm -f core conftest.err conftest.$ac_objext \
28041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028042LIBS=$ac_check_lib_save_LIBS
28043fi
cristy8b350f62009-11-15 23:12:43 +000028044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028046if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28048fi
28049
28050 LDFLAGS=$ac_save_LDFLAGS
28051
28052fi
28053
28054if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28056$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28060$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028061 LDFLAGS="$LDFLAGS $X_LIBS"
28062 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28063 LIBS="$X11_LIBS $LIBS"
28064 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28065
28066
cristy8b350f62009-11-15 23:12:43 +000028067$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028068
28069 #
28070 # Check for X11 shared memory extension
28071 #
28072 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028073 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028074if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028075 have_shmctl='yes'
28076fi
28077
28078 if test "$have_shmctl" != 'yes'; then
28079 PERSIST_LIBS=$LIBS
28080 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char shmctl ();
28091int
28092main ()
28093{
28094return shmctl ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028101fi
cristy8b350f62009-11-15 23:12:43 +000028102rm -f core conftest.err conftest.$ac_objext \
28103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028104 LIBS=$PERSIST_LIBS
28105 fi
28106
28107 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 $as_echo_n "(cached) " >&6
28112else
28113 ac_check_lib_save_LIBS=$LIBS
28114LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028116/* end confdefs.h. */
28117
28118/* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
28121#ifdef __cplusplus
28122extern "C"
28123#endif
28124char XShmAttach ();
28125int
28126main ()
28127{
28128return XShmAttach ();
28129 ;
28130 return 0;
28131}
28132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028134 ac_cv_lib_Xext_XShmAttach=yes
28135else
cristy8b350f62009-11-15 23:12:43 +000028136 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028137fi
cristy8b350f62009-11-15 23:12:43 +000028138rm -f core conftest.err conftest.$ac_objext \
28139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028140LIBS=$ac_check_lib_save_LIBS
28141fi
cristy8b350f62009-11-15 23:12:43 +000028142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028146$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028147
28148fi
28149
28150 fi
28151
28152 #
28153 # Check for X11 shape extension
28154 #
cristy8b350f62009-11-15 23:12:43 +000028155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028156$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028157if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028158 $as_echo_n "(cached) " >&6
28159else
28160 ac_check_lib_save_LIBS=$LIBS
28161LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028163/* end confdefs.h. */
28164
28165/* Override any GCC internal prototype to avoid an error.
28166 Use char because int might match the return type of a GCC
28167 builtin and then its argument prototype would still apply. */
28168#ifdef __cplusplus
28169extern "C"
28170#endif
28171char XShapeCombineMask ();
28172int
28173main ()
28174{
28175return XShapeCombineMask ();
28176 ;
28177 return 0;
28178}
28179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 ac_cv_lib_Xext_XShapeCombineMask=yes
28182else
cristy8b350f62009-11-15 23:12:43 +000028183 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028184fi
cristy8b350f62009-11-15 23:12:43 +000028185rm -f core conftest.err conftest.$ac_objext \
28186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028187LIBS=$ac_check_lib_save_LIBS
28188fi
cristy8b350f62009-11-15 23:12:43 +000028189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028191if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028193$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028194
28195fi
28196
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028199if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 $as_echo_n "(cached) " >&6
28201else
28202 ac_check_lib_save_LIBS=$LIBS
28203LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028205/* end confdefs.h. */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208 Use char because int might match the return type of a GCC
28209 builtin and then its argument prototype would still apply. */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char XtSetEventDispatcher ();
28214int
28215main ()
28216{
28217return XtSetEventDispatcher ();
28218 ;
28219 return 0;
28220}
28221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28224else
cristy8b350f62009-11-15 23:12:43 +000028225 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028226fi
cristy8b350f62009-11-15 23:12:43 +000028227rm -f core conftest.err conftest.$ac_objext \
28228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028229LIBS=$ac_check_lib_save_LIBS
28230fi
cristy8b350f62009-11-15 23:12:43 +000028231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028233if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 XT_LIBS='-lXt'
28235fi
28236
28237 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28238fi
28239if test "$no_x" != 'yes'; then
28240 have_x='yes'
28241else
28242 have_x='no'
28243fi
cristy73bd4a52010-10-05 11:24:23 +000028244 if test "$have_x" = 'yes'; then
28245 X11_DELEGATE_TRUE=
28246 X11_DELEGATE_FALSE='#'
28247else
28248 X11_DELEGATE_TRUE='#'
28249 X11_DELEGATE_FALSE=
28250fi
28251
cristy3ed852e2009-09-05 21:47:34 +000028252
28253
28254
28255
28256#
28257# Check for ZLIB
28258#
28259
28260# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028261if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 withval=$with_zlib; with_zlib=$withval
28263else
28264 with_zlib='yes'
28265fi
28266
28267
28268if test "$with_zlib" != 'yes'; then
28269 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28270fi
28271
28272have_zlib='no'
28273ZLIB_LIBS=''
28274if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28276$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28280$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028281 ZLIB_LIBS=''
28282 failed=0
28283 passed=0
cristy8b350f62009-11-15 23:12:43 +000028284 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028285if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028286 passed=`expr $passed + 1`
28287else
28288 failed=`expr $failed + 1`
28289fi
28290
28291
cristy8b350f62009-11-15 23:12:43 +000028292 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028293if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028294 passed=`expr $passed + 1`
28295else
28296 failed=`expr $failed + 1`
28297fi
28298
28299
cristy8b350f62009-11-15 23:12:43 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028302if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028303 $as_echo_n "(cached) " >&6
28304else
28305 ac_check_lib_save_LIBS=$LIBS
28306LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028308/* end confdefs.h. */
28309
28310/* Override any GCC internal prototype to avoid an error.
28311 Use char because int might match the return type of a GCC
28312 builtin and then its argument prototype would still apply. */
28313#ifdef __cplusplus
28314extern "C"
28315#endif
28316char compress ();
28317int
28318main ()
28319{
28320return compress ();
28321 ;
28322 return 0;
28323}
28324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028326 ac_cv_lib_z_compress=yes
28327else
cristy8b350f62009-11-15 23:12:43 +000028328 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028329fi
cristy8b350f62009-11-15 23:12:43 +000028330rm -f core conftest.err conftest.$ac_objext \
28331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028332LIBS=$ac_check_lib_save_LIBS
28333fi
cristy8b350f62009-11-15 23:12:43 +000028334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028336if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028337 passed=`expr $passed + 1`
28338else
28339 failed=`expr $failed + 1`
28340fi
28341
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028344if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028345 $as_echo_n "(cached) " >&6
28346else
28347 ac_check_lib_save_LIBS=$LIBS
28348LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028350/* end confdefs.h. */
28351
28352/* Override any GCC internal prototype to avoid an error.
28353 Use char because int might match the return type of a GCC
28354 builtin and then its argument prototype would still apply. */
28355#ifdef __cplusplus
28356extern "C"
28357#endif
28358char uncompress ();
28359int
28360main ()
28361{
28362return uncompress ();
28363 ;
28364 return 0;
28365}
28366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 ac_cv_lib_z_uncompress=yes
28369else
cristy8b350f62009-11-15 23:12:43 +000028370 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028371fi
cristy8b350f62009-11-15 23:12:43 +000028372rm -f core conftest.err conftest.$ac_objext \
28373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028374LIBS=$ac_check_lib_save_LIBS
28375fi
cristy8b350f62009-11-15 23:12:43 +000028376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028377$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028378if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028379 passed=`expr $passed + 1`
28380else
28381 failed=`expr $failed + 1`
28382fi
28383
cristy8b350f62009-11-15 23:12:43 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028385$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028386if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028387 $as_echo_n "(cached) " >&6
28388else
28389 ac_check_lib_save_LIBS=$LIBS
28390LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028392/* end confdefs.h. */
28393
28394/* Override any GCC internal prototype to avoid an error.
28395 Use char because int might match the return type of a GCC
28396 builtin and then its argument prototype would still apply. */
28397#ifdef __cplusplus
28398extern "C"
28399#endif
28400char deflate ();
28401int
28402main ()
28403{
28404return deflate ();
28405 ;
28406 return 0;
28407}
28408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028409if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028410 ac_cv_lib_z_deflate=yes
28411else
cristy8b350f62009-11-15 23:12:43 +000028412 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028413fi
cristy8b350f62009-11-15 23:12:43 +000028414rm -f core conftest.err conftest.$ac_objext \
28415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028416LIBS=$ac_check_lib_save_LIBS
28417fi
cristy8b350f62009-11-15 23:12:43 +000028418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028419$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028420if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028421 passed=`expr $passed + 1`
28422else
28423 failed=`expr $failed + 1`
28424fi
28425
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028428if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028429 $as_echo_n "(cached) " >&6
28430else
28431 ac_check_lib_save_LIBS=$LIBS
28432LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028434/* end confdefs.h. */
28435
28436/* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28439#ifdef __cplusplus
28440extern "C"
28441#endif
28442char inflate ();
28443int
28444main ()
28445{
28446return inflate ();
28447 ;
28448 return 0;
28449}
28450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 ac_cv_lib_z_inflate=yes
28453else
cristy8b350f62009-11-15 23:12:43 +000028454 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028455fi
cristy8b350f62009-11-15 23:12:43 +000028456rm -f core conftest.err conftest.$ac_objext \
28457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028458LIBS=$ac_check_lib_save_LIBS
28459fi
cristy8b350f62009-11-15 23:12:43 +000028460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028462if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 passed=`expr $passed + 1`
28464else
28465 failed=`expr $failed + 1`
28466fi
28467
cristy8b350f62009-11-15 23:12:43 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028470if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028471 $as_echo_n "(cached) " >&6
28472else
28473 ac_check_lib_save_LIBS=$LIBS
28474LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028476/* end confdefs.h. */
28477
28478/* Override any GCC internal prototype to avoid an error.
28479 Use char because int might match the return type of a GCC
28480 builtin and then its argument prototype would still apply. */
28481#ifdef __cplusplus
28482extern "C"
28483#endif
28484char gzseek ();
28485int
28486main ()
28487{
28488return gzseek ();
28489 ;
28490 return 0;
28491}
28492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028493if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028494 ac_cv_lib_z_gzseek=yes
28495else
cristy8b350f62009-11-15 23:12:43 +000028496 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028497fi
cristy8b350f62009-11-15 23:12:43 +000028498rm -f core conftest.err conftest.$ac_objext \
28499 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028500LIBS=$ac_check_lib_save_LIBS
28501fi
cristy8b350f62009-11-15 23:12:43 +000028502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028503$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028504if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028505 passed=`expr $passed + 1`
28506else
28507 failed=`expr $failed + 1`
28508fi
28509
cristy8b350f62009-11-15 23:12:43 +000028510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028511$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028512if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028513 $as_echo_n "(cached) " >&6
28514else
28515 ac_check_lib_save_LIBS=$LIBS
28516LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028518/* end confdefs.h. */
28519
28520/* Override any GCC internal prototype to avoid an error.
28521 Use char because int might match the return type of a GCC
28522 builtin and then its argument prototype would still apply. */
28523#ifdef __cplusplus
28524extern "C"
28525#endif
28526char gztell ();
28527int
28528main ()
28529{
28530return gztell ();
28531 ;
28532 return 0;
28533}
28534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028536 ac_cv_lib_z_gztell=yes
28537else
cristy8b350f62009-11-15 23:12:43 +000028538 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028539fi
cristy8b350f62009-11-15 23:12:43 +000028540rm -f core conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028542LIBS=$ac_check_lib_save_LIBS
28543fi
cristy8b350f62009-11-15 23:12:43 +000028544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028546if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 passed=`expr $passed + 1`
28548else
28549 failed=`expr $failed + 1`
28550fi
28551
cristy8b350f62009-11-15 23:12:43 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028553$as_echo_n "checking if ZLIB package is complete... " >&6; }
28554 if test $passed -gt 0; then
28555 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28557$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028558 have_zlib='no (failed tests)'
28559 else
28560 ZLIB_LIBS='-lz'
28561 LIBS="$ZLIB_LIBS $LIBS"
28562
cristy8b350f62009-11-15 23:12:43 +000028563$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028564
cristyad38abe2012-12-23 23:03:21 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28566$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028567 have_zlib='yes'
28568 fi
28569 else
cristyad38abe2012-12-23 23:03:21 +000028570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028572 fi
28573fi
cristy73bd4a52010-10-05 11:24:23 +000028574 if test "$have_zlib" = 'yes'; then
28575 ZLIB_DELEGATE_TRUE=
28576 ZLIB_DELEGATE_FALSE='#'
28577else
28578 ZLIB_DELEGATE_TRUE='#'
28579 ZLIB_DELEGATE_FALSE=
28580fi
28581
cristy3ed852e2009-09-05 21:47:34 +000028582
28583
cristy5eef09f2012-10-16 12:08:28 +000028584# whether modules are built or not.
28585with_ltdl='yes'
28586have_ltdl='no'
28587LTDL_LIBS=''
28588if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28590$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28592$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28594$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028595 failed=0
28596 passed=0
28597 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28598if test "x$ac_cv_header_ltdl_h" = xyes; then :
28599 passed=`expr $passed + 1`
28600else
28601 failed=`expr $failed + 1`
28602fi
28603
28604
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28606$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28607if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28608 $as_echo_n "(cached) " >&6
28609else
28610 ac_check_lib_save_LIBS=$LIBS
28611LIBS="-lltdl $LIBS"
28612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613/* end confdefs.h. */
28614
28615/* Override any GCC internal prototype to avoid an error.
28616 Use char because int might match the return type of a GCC
28617 builtin and then its argument prototype would still apply. */
28618#ifdef __cplusplus
28619extern "C"
28620#endif
28621char lt_dlinit ();
28622int
28623main ()
28624{
28625return lt_dlinit ();
28626 ;
28627 return 0;
28628}
28629_ACEOF
28630if ac_fn_c_try_link "$LINENO"; then :
28631 ac_cv_lib_ltdl_lt_dlinit=yes
28632else
28633 ac_cv_lib_ltdl_lt_dlinit=no
28634fi
28635rm -f core conftest.err conftest.$ac_objext \
28636 conftest$ac_exeext conftest.$ac_ext
28637LIBS=$ac_check_lib_save_LIBS
28638fi
28639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28640$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28641if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28642 passed=`expr $passed + 1`
28643else
28644 failed=`expr $failed + 1`
28645fi
28646
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28648$as_echo_n "checking if libltdl package is complete... " >&6; }
28649 if test $passed -gt 0 ; then
28650 if test $failed -gt 0 ; then
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28652$as_echo "no -- some components failed test" >&6; }
28653 have_ltdl='no (failed tests)'
28654 else
28655 LTDL_LIBS='-lltdl'
28656 LIBS="$LTDL_LIBS $LIBS"
28657
28658$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28659
28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28661$as_echo "yes" >&6; }
28662 have_ltdl='yes'
28663 fi
28664 else
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28666$as_echo "no" >&6; }
28667 fi
cristyaf4cbf32012-10-16 23:47:41 +000028668 if test "$have_ltdl" != 'yes' ; then
28669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28671as_fn_error 1 "libltdl is required for modules build
28672See \`config.log' for more details" "$LINENO" 5; }
28673 fi
cristy5eef09f2012-10-16 12:08:28 +000028674fi
28675 if test "$have_ltdl" != 'no'; then
28676 WITH_LTDL_TRUE=
28677 WITH_LTDL_FALSE='#'
28678else
28679 WITH_LTDL_TRUE='#'
28680 WITH_LTDL_FALSE=
28681fi
28682
28683
cristy3ed852e2009-09-05 21:47:34 +000028684#
28685# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28686#
28687LIB_DL=''
28688if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028690$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028691if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028692 $as_echo_n "(cached) " >&6
28693else
28694 ac_check_lib_save_LIBS=$LIBS
28695LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028697/* end confdefs.h. */
28698
28699/* Override any GCC internal prototype to avoid an error.
28700 Use char because int might match the return type of a GCC
28701 builtin and then its argument prototype would still apply. */
28702#ifdef __cplusplus
28703extern "C"
28704#endif
28705char dlopen ();
28706int
28707main ()
28708{
28709return dlopen ();
28710 ;
28711 return 0;
28712}
28713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028715 ac_cv_lib_dl_dlopen=yes
28716else
cristy8b350f62009-11-15 23:12:43 +000028717 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028718fi
cristy8b350f62009-11-15 23:12:43 +000028719rm -f core conftest.err conftest.$ac_objext \
28720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028721LIBS=$ac_check_lib_save_LIBS
28722fi
cristy8b350f62009-11-15 23:12:43 +000028723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028724$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028725if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028726 LIB_DL='-ldl'
28727fi
28728
28729 LIBS="$LIB_DL $LIBS"
28730fi
28731
28732
28733
28734#
cristy5a3dc992014-12-05 19:50:04 +000028735# Set Apple font directory.
28736#
28737
28738# Check whether --with-apple-font-dir was given.
28739if test "${with_apple_font_dir+set}" = set; then :
28740 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28741else
28742 with_apple_font_dir='default'
28743fi
28744
28745
28746if test "$with_apple_font_dir" != 'default'; then
28747 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28748fi
28749
28750
28751#
cristy3ed852e2009-09-05 21:47:34 +000028752# Check for Autotrace delegate library.
28753#
28754
28755# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028756if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028757 withval=$with_autotrace; with_autotrace=$withval
28758else
28759 with_autotrace='no'
28760fi
28761
28762
28763if test "$with_autotrace" != 'yes'; then
28764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28765fi
28766
28767have_autotrace='no'
28768AUTOTRACE_CFLAGS=""
28769AUTOTRACE_LIBS=""
28770AUTOTRACE_PKG=""
28771if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28773$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028774
28775pkg_failed=no
28776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28777$as_echo_n "checking for AUTOTRACE... " >&6; }
28778
28779if test -n "$AUTOTRACE_CFLAGS"; then
28780 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28781 elif test -n "$PKG_CONFIG"; then
28782 if test -n "$PKG_CONFIG" && \
28783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28784 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28785 ac_status=$?
28786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28787 test $ac_status = 0; }; then
28788 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28789else
28790 pkg_failed=yes
28791fi
28792 else
28793 pkg_failed=untried
28794fi
28795if test -n "$AUTOTRACE_LIBS"; then
28796 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28797 elif test -n "$PKG_CONFIG"; then
28798 if test -n "$PKG_CONFIG" && \
28799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28800 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28801 ac_status=$?
28802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28803 test $ac_status = 0; }; then
28804 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28805else
28806 pkg_failed=yes
28807fi
28808 else
28809 pkg_failed=untried
28810fi
28811
28812
28813
28814if test $pkg_failed = yes; then
28815
28816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28817 _pkg_short_errors_supported=yes
28818else
28819 _pkg_short_errors_supported=no
28820fi
28821 if test $_pkg_short_errors_supported = yes; then
28822 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28823 else
28824 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28825 fi
28826 # Put the nasty error message in config.log where it belongs
28827 echo "$AUTOTRACE_PKG_ERRORS" >&5
28828
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28830$as_echo "no" >&6; }
28831 have_autotrace=no
28832elif test $pkg_failed = untried; then
28833 have_autotrace=no
28834else
28835 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28836 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28838$as_echo "yes" >&6; }
28839 have_autotrace=yes
28840fi
cristyad38abe2012-12-23 23:03:21 +000028841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28842$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028843fi
28844
28845if test "$have_autotrace" = 'yes'; then
28846 failed=0
28847
cristy8b350f62009-11-15 23:12:43 +000028848$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028849
cristyc6722092012-10-14 00:19:31 +000028850 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028851 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028852 fi
28853fi
28854
cristy73bd4a52010-10-05 11:24:23 +000028855 if test "$have_autotrace" = 'yes'; then
28856 AUTOTRACE_DELEGATE_TRUE=
28857 AUTOTRACE_DELEGATE_FALSE='#'
28858else
28859 AUTOTRACE_DELEGATE_TRUE='#'
28860 AUTOTRACE_DELEGATE_FALSE=
28861fi
28862
cristy3ed852e2009-09-05 21:47:34 +000028863
28864
28865
28866
28867#
28868# Check for Display Postscript delegate library.
28869#
28870
28871# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028872if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028873 withval=$with_dps; with_dps=$withval
28874else
28875 with_dps='yes'
28876fi
28877
28878
28879if test "$with_dps" != 'yes'; then
28880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28881fi
28882
28883have_dps='no'
28884DPS_LIBS=''
28885if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28887$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028889$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28891$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028892 failed=0
28893 passed=0
28894 PERSIST_CPPFLAGS="$CPPFLAGS"
28895 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028896 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 +000028897if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028898 passed=`expr $passed + 1`
28899else
28900 failed=`expr $failed + 1`
28901fi
28902
28903
28904 # DPS issues:
28905 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28906 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28907 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28908 # ImageMagick itself doesn't use -lXt.
28909 have_libdps='no'
28910 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028913if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 $as_echo_n "(cached) " >&6
28915else
28916 ac_check_lib_save_LIBS=$LIBS
28917LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028919/* end confdefs.h. */
28920
28921/* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28924#ifdef __cplusplus
28925extern "C"
28926#endif
28927char DPSInitialize ();
28928int
28929main ()
28930{
28931return DPSInitialize ();
28932 ;
28933 return 0;
28934}
28935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 ac_cv_lib_dps_DPSInitialize=yes
28938else
cristy8b350f62009-11-15 23:12:43 +000028939 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028940fi
cristy8b350f62009-11-15 23:12:43 +000028941rm -f core conftest.err conftest.$ac_objext \
28942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028943LIBS=$ac_check_lib_save_LIBS
28944fi
cristy8b350f62009-11-15 23:12:43 +000028945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028947if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 have_libdps='yes'
28949else
28950 have_libdps='no'
28951fi
28952
28953 if test "$have_libdps" != 'yes'; then
28954 # Unset cache variable so we can try again.
28955 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028958if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 $as_echo_n "(cached) " >&6
28960else
28961 ac_check_lib_save_LIBS=$LIBS
28962LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028964/* end confdefs.h. */
28965
28966/* Override any GCC internal prototype to avoid an error.
28967 Use char because int might match the return type of a GCC
28968 builtin and then its argument prototype would still apply. */
28969#ifdef __cplusplus
28970extern "C"
28971#endif
28972char DPSInitialize ();
28973int
28974main ()
28975{
28976return DPSInitialize ();
28977 ;
28978 return 0;
28979}
28980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 ac_cv_lib_dps_DPSInitialize=yes
28983else
cristy8b350f62009-11-15 23:12:43 +000028984 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028985fi
cristy8b350f62009-11-15 23:12:43 +000028986rm -f core conftest.err conftest.$ac_objext \
28987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028988LIBS=$ac_check_lib_save_LIBS
28989fi
cristy8b350f62009-11-15 23:12:43 +000028990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028992if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028993 have_libdps='yes'
28994else
28995 have_libdps='no'
28996fi
28997
28998 if test "$have_libdps" = 'yes'; then
28999 LIBDPS_XT='-lXt'
29000 fi
29001 fi
29002 if test "$have_libdps" = 'yes'; then
29003 passed=`expr $passed + 1`
29004 else
29005 failed=`expr $failed + 1`
29006 fi
cristy8b350f62009-11-15 23:12:43 +000029007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029009if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 $as_echo_n "(cached) " >&6
29011else
29012 ac_check_lib_save_LIBS=$LIBS
29013LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029015/* end confdefs.h. */
29016
29017/* Override any GCC internal prototype to avoid an error.
29018 Use char because int might match the return type of a GCC
29019 builtin and then its argument prototype would still apply. */
29020#ifdef __cplusplus
29021extern "C"
29022#endif
29023char XDPSPixelsPerPoint ();
29024int
29025main ()
29026{
29027return XDPSPixelsPerPoint ();
29028 ;
29029 return 0;
29030}
29031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029032if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029033 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29034else
cristy8b350f62009-11-15 23:12:43 +000029035 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029036fi
cristy8b350f62009-11-15 23:12:43 +000029037rm -f core conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029039LIBS=$ac_check_lib_save_LIBS
29040fi
cristy8b350f62009-11-15 23:12:43 +000029041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029043if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029044 passed=`expr $passed + 1`
29045else
29046 failed=`expr $failed + 1`
29047fi
29048
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo_n "checking if DPS package is complete... " >&6; }
29051 if test $passed -gt 0; then
29052 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29054$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029055 have_dps='no (failed tests)'
29056 CPPFLAGS="$PERSIST_CPPFLAGS"
29057 else
29058 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29059 LIBS="$DPS_LIBS $LIBS"
29060
cristy8b350f62009-11-15 23:12:43 +000029061$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029062
cristyad38abe2012-12-23 23:03:21 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29064$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029065 have_dps='yes'
29066 fi
29067 else
cristyad38abe2012-12-23 23:03:21 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29069$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029070 CPPFLAGS=$PERSIST_CPPFLAGS
29071 fi
29072fi
cristy73bd4a52010-10-05 11:24:23 +000029073 if test "$have_dps" = 'yes'; then
29074 DPS_DELEGATE_TRUE=
29075 DPS_DELEGATE_FALSE='#'
29076else
29077 DPS_DELEGATE_TRUE='#'
29078 DPS_DELEGATE_FALSE=
29079fi
29080
cristy3ed852e2009-09-05 21:47:34 +000029081
29082
29083
29084#
cristy430a7312010-01-21 20:44:04 +000029085# Set DejaVu font directory.
29086#
29087
29088# Check whether --with-dejavu-font-dir was given.
29089if test "${with_dejavu_font_dir+set}" = set; then :
29090 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29091else
29092 with_dejavu_font_dir='default'
29093fi
29094
29095
29096if test "$with_dejavu_font_dir" != 'default'; then
29097 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29098fi
29099
29100
29101#
cristy3ed852e2009-09-05 21:47:34 +000029102# Check for FFTW delegate library.
29103#
29104
29105# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029106if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029107 withval=$with_fftw; with_fftw=$withval
29108else
29109 with_fftw='yes'
29110fi
29111
29112
29113if test "$with_fftw" != 'yes'; then
29114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29115fi
29116
cristy81beccd2011-10-03 18:17:24 +000029117have_fftw='no'
29118FFTW_LIBS=''
29119if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29121$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29123$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29125$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029126 failed=0
29127 passed=0
29128 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29129if test "x$ac_cv_header_fftw3_h" = xyes; then :
29130 passed=`expr $passed + 1`
29131else
29132 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029133fi
29134
cristy81beccd2011-10-03 18:17:24 +000029135
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29137$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29138if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29139 $as_echo_n "(cached) " >&6
29140else
29141 ac_check_lib_save_LIBS=$LIBS
29142LIBS="-lfftw3 $LIBS"
29143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144/* end confdefs.h. */
29145
29146/* Override any GCC internal prototype to avoid an error.
29147 Use char because int might match the return type of a GCC
29148 builtin and then its argument prototype would still apply. */
29149#ifdef __cplusplus
29150extern "C"
29151#endif
29152char fftw_execute ();
29153int
29154main ()
29155{
29156return fftw_execute ();
29157 ;
29158 return 0;
29159}
29160_ACEOF
29161if ac_fn_c_try_link "$LINENO"; then :
29162 ac_cv_lib_fftw3_fftw_execute=yes
29163else
29164 ac_cv_lib_fftw3_fftw_execute=no
29165fi
29166rm -f core conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
29168LIBS=$ac_check_lib_save_LIBS
29169fi
29170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29171$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29172if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29173 passed=`expr $passed + 1`
29174else
29175 failed=`expr $failed + 1`
29176fi
29177
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29179$as_echo_n "checking if FFTW package is complete... " >&6; }
29180 if test $passed -gt 0; then
29181 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29183$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029184 have_fftw='no (failed tests)'
29185 else
29186 FFTW_LIBS='-lfftw3'
29187 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029188
cristy8b350f62009-11-15 23:12:43 +000029189$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029190
cristyad38abe2012-12-23 23:03:21 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29192$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029193 have_fftw='yes'
29194 fi
29195 else
cristyad38abe2012-12-23 23:03:21 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29197$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029198 fi
29199fi
cristy73bd4a52010-10-05 11:24:23 +000029200 if test "$have_fftw" = 'yes'; then
29201 FFTW_DELEGATE_TRUE=
29202 FFTW_DELEGATE_FALSE='#'
29203else
29204 FFTW_DELEGATE_TRUE='#'
29205 FFTW_DELEGATE_FALSE=
29206fi
29207
cristy3ed852e2009-09-05 21:47:34 +000029208
29209
29210
29211#
29212# Check for FlashPIX delegate library.
29213#
29214
29215# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029216if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029217 withval=$with_fpx; with_fpx=$withval
29218else
29219 with_fpx='yes'
29220fi
29221
29222
29223if test "$with_fpx" != 'yes'; then
29224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29225fi
29226
29227have_fpx='no'
29228FPX_LIBS=''
29229if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29231$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29235$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029236 failed=0
29237 passed=0
29238 ac_ext=cpp
29239ac_cpp='$CXXCPP $CPPFLAGS'
29240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29243
29244
cristy8b350f62009-11-15 23:12:43 +000029245ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029246if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029247 passed=`expr $passed + 1`
29248else
29249 failed=`expr $failed + 1`
29250fi
29251
29252
cristy8b350f62009-11-15 23:12:43 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029255if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 $as_echo_n "(cached) " >&6
29257else
29258 ac_check_lib_save_LIBS=$LIBS
29259LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029261/* end confdefs.h. */
29262
29263/* Override any GCC internal prototype to avoid an error.
29264 Use char because int might match the return type of a GCC
29265 builtin and then its argument prototype would still apply. */
29266#ifdef __cplusplus
29267extern "C"
29268#endif
29269char FPX_OpenImageByFilename ();
29270int
29271main ()
29272{
29273return FPX_OpenImageByFilename ();
29274 ;
29275 return 0;
29276}
29277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029278if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029279 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29280else
cristy8b350f62009-11-15 23:12:43 +000029281 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029282fi
cristy8b350f62009-11-15 23:12:43 +000029283rm -f core conftest.err conftest.$ac_objext \
29284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029285LIBS=$ac_check_lib_save_LIBS
29286fi
cristy8b350f62009-11-15 23:12:43 +000029287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029289if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 passed=`expr $passed + 1`
29291else
29292 failed=`expr $failed + 1`
29293fi
29294
29295 ac_ext=c
29296ac_cpp='$CPP $CPPFLAGS'
29297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299ac_compiler_gnu=$ac_cv_c_compiler_gnu
29300
cristy8b350f62009-11-15 23:12:43 +000029301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029302$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29303 if test $passed -gt 0; then
29304 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29306$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029307 have_fpx='no (failed tests)'
29308 else
29309 FPX_LIBS='-lfpx'
29310
cristy8b350f62009-11-15 23:12:43 +000029311$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029312
cristyad38abe2012-12-23 23:03:21 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29314$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029315 have_fpx='yes'
29316 PERLMAINCC="$CXX"
29317 fi
29318 else
cristyad38abe2012-12-23 23:03:21 +000029319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029321 fi
29322fi
cristy73bd4a52010-10-05 11:24:23 +000029323 if test "$have_fpx" = 'yes'; then
29324 FPX_DELEGATE_TRUE=
29325 FPX_DELEGATE_FALSE='#'
29326else
29327 FPX_DELEGATE_TRUE='#'
29328 FPX_DELEGATE_FALSE=
29329fi
29330
cristy3ed852e2009-09-05 21:47:34 +000029331
cristy853d9902014-08-21 18:50:43 +000029332
29333
29334#
29335# Check for DJVU delegate library.
29336#
29337
29338# Check whether --with-djvu was given.
29339if test "${with_djvu+set}" = set; then :
29340 withval=$with_djvu; with_djvu=$withval
29341else
29342 with_djvu='yes'
29343fi
29344
29345
29346if test "$with_djvu" != 'yes'; then
29347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29348fi
29349
29350have_djvu='no'
29351DJVU_LIBS=''
29352if test "$with_djvu" != 'no'; then
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29354$as_echo "-------------------------------------------------------------" >&6; }
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29356$as_echo_n "checking for DJVU... " >&6; }
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29358$as_echo "" >&6; }
29359 failed=0
29360 passed=0
29361 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29362if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29363 passed=`expr $passed + 1`
29364else
29365 failed=`expr $failed + 1`
29366fi
29367
29368
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29370$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29371if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29372 $as_echo_n "(cached) " >&6
29373else
29374 ac_check_lib_save_LIBS=$LIBS
29375LIBS="-ldjvulibre $LIBS"
29376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377/* end confdefs.h. */
29378
29379/* Override any GCC internal prototype to avoid an error.
29380 Use char because int might match the return type of a GCC
29381 builtin and then its argument prototype would still apply. */
29382#ifdef __cplusplus
29383extern "C"
29384#endif
29385char ddjvu_context_create ();
29386int
29387main ()
29388{
29389return ddjvu_context_create ();
29390 ;
29391 return 0;
29392}
29393_ACEOF
29394if ac_fn_c_try_link "$LINENO"; then :
29395 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29396else
29397 ac_cv_lib_djvulibre_ddjvu_context_create=no
29398fi
29399rm -f core conftest.err conftest.$ac_objext \
29400 conftest$ac_exeext conftest.$ac_ext
29401LIBS=$ac_check_lib_save_LIBS
29402fi
29403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29404$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29405if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29406 passed=`expr $passed + 1`
29407else
29408 failed=`expr $failed + 1`
29409fi
29410
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29412$as_echo_n "checking if DJVU package is complete... " >&6; }
29413 if test $passed -gt 0; then
29414 if test $failed -gt 0; then
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29416$as_echo "no -- some components failed test" >&6; }
29417 have_djvu='no (failed tests)'
29418 else
29419 DJVU_LIBS='-ldjvulibre'
29420 LIBS="$DJVU_LIBS $LIBS"
29421
29422$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29423
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29425$as_echo "yes" >&6; }
29426 have_djvu='yes'
29427 fi
29428 else
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29430$as_echo "no" >&6; }
29431 fi
29432fi
29433 if test "$have_djvu" = 'yes'; then
29434 DJVU_DELEGATE_TRUE=
29435 DJVU_DELEGATE_FALSE='#'
29436else
29437 DJVU_DELEGATE_TRUE='#'
29438 DJVU_DELEGATE_FALSE=
29439fi
29440
29441
cristy3ed852e2009-09-05 21:47:34 +000029442
29443
29444#
29445# Check for fontconfig delegate library.
29446#
29447
29448# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029449if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 withval=$with_fontconfig; with_fontconfig=$withval
29451else
cristyfc3d0222012-02-07 15:05:57 +000029452 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029453fi
29454
29455
29456if test "$with_fontconfig" != 'yes'; then
29457 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29458fi
29459
29460have_fontconfig='no'
29461FONTCONFIG_CFLAGS=""
29462FONTCONFIG_LIBS=""
29463FONTCONFIG_PKG=""
29464if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29466$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029467
29468pkg_failed=no
29469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29470$as_echo_n "checking for FONTCONFIG... " >&6; }
29471
29472if test -n "$FONTCONFIG_CFLAGS"; then
29473 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29474 elif test -n "$PKG_CONFIG"; then
29475 if test -n "$PKG_CONFIG" && \
29476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29477 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29478 ac_status=$?
29479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29480 test $ac_status = 0; }; then
29481 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29482else
29483 pkg_failed=yes
29484fi
29485 else
29486 pkg_failed=untried
29487fi
29488if test -n "$FONTCONFIG_LIBS"; then
29489 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29490 elif test -n "$PKG_CONFIG"; then
29491 if test -n "$PKG_CONFIG" && \
29492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29493 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29494 ac_status=$?
29495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29496 test $ac_status = 0; }; then
29497 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29498else
29499 pkg_failed=yes
29500fi
29501 else
29502 pkg_failed=untried
29503fi
29504
29505
29506
29507if test $pkg_failed = yes; then
29508
29509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29510 _pkg_short_errors_supported=yes
29511else
29512 _pkg_short_errors_supported=no
29513fi
29514 if test $_pkg_short_errors_supported = yes; then
29515 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29516 else
29517 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29518 fi
29519 # Put the nasty error message in config.log where it belongs
29520 echo "$FONTCONFIG_PKG_ERRORS" >&5
29521
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29523$as_echo "no" >&6; }
29524 have_fontconfig=no
29525elif test $pkg_failed = untried; then
29526 have_fontconfig=no
29527else
29528 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29529 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531$as_echo "yes" >&6; }
29532 have_fontconfig=yes
29533fi
cristyad38abe2012-12-23 23:03:21 +000029534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29535$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029536fi
29537
29538if test "$have_fontconfig" = 'yes'; then
29539
cristy8b350f62009-11-15 23:12:43 +000029540$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029541
cristyc6722092012-10-14 00:19:31 +000029542 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029543 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029544 fi
cristy3ed852e2009-09-05 21:47:34 +000029545fi
29546
cristy73bd4a52010-10-05 11:24:23 +000029547 if test "$have_fontconfig" = 'yes'; then
29548 FONTCONFIG_DELEGATE_TRUE=
29549 FONTCONFIG_DELEGATE_FALSE='#'
29550else
29551 FONTCONFIG_DELEGATE_TRUE='#'
29552 FONTCONFIG_DELEGATE_FALSE=
29553fi
29554
cristy3ed852e2009-09-05 21:47:34 +000029555
29556
29557
29558
29559#
cristy03f187e2013-01-24 00:22:19 +000029560# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029561#
29562
29563# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029564if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029565 withval=$with_freetype; with_freetype=$withval
29566else
29567 with_freetype='yes'
29568fi
29569
29570
cristy3ed852e2009-09-05 21:47:34 +000029571if test "$with_freetype" != 'yes'; then
29572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29573fi
29574
cristy81beccd2011-10-03 18:17:24 +000029575have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029576FREETYPE_CFLAGS=""
29577FREETYPE_LIBS=""
29578FREETYPE_PKG=""
29579if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29581$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029582
29583pkg_failed=no
29584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29585$as_echo_n "checking for FREETYPE... " >&6; }
29586
29587if test -n "$FREETYPE_CFLAGS"; then
29588 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29589 elif test -n "$PKG_CONFIG"; then
29590 if test -n "$PKG_CONFIG" && \
29591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29592 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29593 ac_status=$?
29594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29595 test $ac_status = 0; }; then
29596 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29597else
29598 pkg_failed=yes
29599fi
29600 else
29601 pkg_failed=untried
29602fi
29603if test -n "$FREETYPE_LIBS"; then
29604 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29605 elif test -n "$PKG_CONFIG"; then
29606 if test -n "$PKG_CONFIG" && \
29607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29608 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29609 ac_status=$?
29610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29611 test $ac_status = 0; }; then
29612 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29613else
29614 pkg_failed=yes
29615fi
29616 else
29617 pkg_failed=untried
29618fi
29619
29620
29621
29622if test $pkg_failed = yes; then
29623
29624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29625 _pkg_short_errors_supported=yes
29626else
29627 _pkg_short_errors_supported=no
29628fi
29629 if test $_pkg_short_errors_supported = yes; then
29630 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29631 else
29632 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29633 fi
29634 # Put the nasty error message in config.log where it belongs
29635 echo "$FREETYPE_PKG_ERRORS" >&5
29636
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29638$as_echo "no" >&6; }
29639 have_freetype=no
29640elif test $pkg_failed = untried; then
29641 have_freetype=no
29642else
29643 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29644 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29646$as_echo "yes" >&6; }
29647 have_freetype=yes
29648fi
cristyad38abe2012-12-23 23:03:21 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29650$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029651fi
29652
cristy03f187e2013-01-24 00:22:19 +000029653if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029654
cristy8b350f62009-11-15 23:12:43 +000029655$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029656
cristy03f187e2013-01-24 00:22:19 +000029657 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029658fi
cristy03f187e2013-01-24 00:22:19 +000029659
cristy73bd4a52010-10-05 11:24:23 +000029660 if test "$have_freetype" = 'yes'; then
29661 FREETYPE_DELEGATE_TRUE=
29662 FREETYPE_DELEGATE_FALSE='#'
29663else
29664 FREETYPE_DELEGATE_TRUE='#'
29665 FREETYPE_DELEGATE_FALSE=
29666fi
29667
cristy3ed852e2009-09-05 21:47:34 +000029668
29669
29670
cristy03f187e2013-01-24 00:22:19 +000029671
cristy3ed852e2009-09-05 21:47:34 +000029672#
29673# Check for Ghostscript library or framework.
29674#
29675# Test for iapi.h & test for gsapi_new_instance in -lgs
29676# or -framework Ghostscript
29677
29678
29679# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029680if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029681 withval=$with_gslib; with_gslib=$withval
29682else
29683 with_gslib='no'
29684fi
29685
29686
cristyb7931f12009-09-25 10:22:21 +000029687gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029688if test "$with_gslib" != 'yes'; then
29689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29690fi
29691
29692have_gslib='no'
29693GS_LIBS=''
29694if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29696$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29700$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029701 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029702 failed=0
29703 passed=0
cristy8b350f62009-11-15 23:12:43 +000029704 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 +000029705if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029706 passed=`expr $passed + 1`
29707else
29708 failed=`expr $failed + 1`
29709fi
29710
29711
cristy8b350f62009-11-15 23:12:43 +000029712 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 +000029713if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029714 passed=`expr $passed + 1`
29715else
29716 failed=`expr $failed + 1`
29717fi
29718
29719
cristy73bd4a52010-10-05 11:24:23 +000029720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29721$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029722if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029723 $as_echo_n "(cached) " >&6
29724else
29725 ac_check_framework_save_LIBS=$LIBS
29726LIBS="-framework Ghostscript $LIBS"
29727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29728/* end confdefs.h. */
29729
29730/* Override any GCC internal prototype to avoid an error.
29731 Use char because int might match the return type of a GCC
29732 builtin and then its argument prototype would still apply. */
29733#ifdef __cplusplus
29734extern "C"
29735#endif
29736char gsapi_new_instance ();
29737int
29738main ()
29739{
29740return gsapi_new_instance ();
29741 ;
29742 return 0;
29743}
29744_ACEOF
29745if ac_fn_c_try_link "$LINENO"; then :
29746 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29747else
29748 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29749fi
29750rm -f core conftest.err conftest.$ac_objext \
29751 conftest$ac_exeext conftest.$ac_ext
29752LIBS=$ac_check_framework_save_LIBS
29753fi
29754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29755$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29756if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29757 framework=`expr $framework + 1`
29758else
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029760$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029761if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029762 $as_echo_n "(cached) " >&6
29763else
29764 ac_check_lib_save_LIBS=$LIBS
29765LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029767/* end confdefs.h. */
29768
29769/* Override any GCC internal prototype to avoid an error.
29770 Use char because int might match the return type of a GCC
29771 builtin and then its argument prototype would still apply. */
29772#ifdef __cplusplus
29773extern "C"
29774#endif
29775char gsapi_new_instance ();
29776int
29777main ()
29778{
29779return gsapi_new_instance ();
29780 ;
29781 return 0;
29782}
29783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029784if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 ac_cv_lib_gs_gsapi_new_instance=yes
29786else
cristy8b350f62009-11-15 23:12:43 +000029787 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029788fi
cristy8b350f62009-11-15 23:12:43 +000029789rm -f core conftest.err conftest.$ac_objext \
29790 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029791LIBS=$ac_check_lib_save_LIBS
29792fi
cristy8b350f62009-11-15 23:12:43 +000029793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029795if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029796 passed=`expr $passed + 1`
29797else
29798 failed=`expr $failed + 1`
29799fi
cristy73bd4a52010-10-05 11:24:23 +000029800
29801fi
cristy8b350f62009-11-15 23:12:43 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29804 if test $passed -gt 0; then
29805 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29807$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029808 have_gslib='no (failed tests)'
29809 else
29810 if test $framework -gt 0; then
29811 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029812 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29814$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 else
cristyad38abe2012-12-23 23:03:21 +000029816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29817$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029818 GS_LIBS='-lgs'
29819 fi
29820 LIBS="$GS_LIBS $LIBS"
29821
cristy8b350f62009-11-15 23:12:43 +000029822$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029823
29824 have_gslib='yes'
29825 fi
29826 else
cristyad38abe2012-12-23 23:03:21 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29828$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029829 fi
29830fi
cristy73bd4a52010-10-05 11:24:23 +000029831 if test "$have_gslib" = 'yes'; then
29832 GS_DELEGATE_TRUE=
29833 GS_DELEGATE_FALSE='#'
29834else
29835 GS_DELEGATE_TRUE='#'
29836 GS_DELEGATE_FALSE=
29837fi
29838
cristy3ed852e2009-09-05 21:47:34 +000029839
29840
29841# Set default font search path
29842
29843# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029844if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029845 withval=$with_fontpath; with_fontpath=$withval
29846else
29847 with_fontpath=''
29848fi
29849
29850
29851if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29852 with_fontpath=''
29853else
29854
29855cat >>confdefs.h <<_ACEOF
29856#define MAGICK_FONT_PATH "$with_fontpath"
29857_ACEOF
29858
29859fi
29860if test "$with_fontpath=" != ''; then
29861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29862fi
29863
29864# Set Ghostscript font directory
29865
29866# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029867if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029868 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29869else
29870 with_gs_font_dir='default'
29871fi
29872
29873
29874if test "$with_gs_font_dir" != 'default'; then
29875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29876fi
29877
29878
29879#
29880# Check for GVC delegate library.
29881#
29882
29883# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029884if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 withval=$with_gvc; with_gvc=$withval
29886else
cristy1b70dc82012-07-01 23:15:05 +000029887 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029888fi
29889
29890
29891if test "$with_gvc" != 'yes'; then
29892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29893fi
29894
29895GVC_PKG=""
29896if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29898$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029899
29900pkg_failed=no
29901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29902$as_echo_n "checking for GVC... " >&6; }
29903
29904if test -n "$GVC_CFLAGS"; then
29905 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29906 elif test -n "$PKG_CONFIG"; then
29907 if test -n "$PKG_CONFIG" && \
29908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29909 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29910 ac_status=$?
29911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29912 test $ac_status = 0; }; then
29913 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29914else
29915 pkg_failed=yes
29916fi
29917 else
29918 pkg_failed=untried
29919fi
29920if test -n "$GVC_LIBS"; then
29921 pkg_cv_GVC_LIBS="$GVC_LIBS"
29922 elif test -n "$PKG_CONFIG"; then
29923 if test -n "$PKG_CONFIG" && \
29924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29925 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29926 ac_status=$?
29927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29928 test $ac_status = 0; }; then
29929 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29930else
29931 pkg_failed=yes
29932fi
29933 else
29934 pkg_failed=untried
29935fi
29936
29937
29938
29939if test $pkg_failed = yes; then
29940
29941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29942 _pkg_short_errors_supported=yes
29943else
29944 _pkg_short_errors_supported=no
29945fi
29946 if test $_pkg_short_errors_supported = yes; then
29947 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29948 else
29949 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29950 fi
29951 # Put the nasty error message in config.log where it belongs
29952 echo "$GVC_PKG_ERRORS" >&5
29953
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29955$as_echo "no" >&6; }
29956 have_gvc=no
29957elif test $pkg_failed = untried; then
29958 have_gvc=no
29959else
29960 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29961 GVC_LIBS=$pkg_cv_GVC_LIBS
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29963$as_echo "yes" >&6; }
29964 have_gvc=yes
29965fi
cristyad38abe2012-12-23 23:03:21 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29967$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029968fi
29969
29970if test "$have_gvc" = 'yes'; then
29971
cristy8b350f62009-11-15 23:12:43 +000029972$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029973
cristyc6722092012-10-14 00:19:31 +000029974 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029975 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29976 fi
29977fi
29978
cristy73bd4a52010-10-05 11:24:23 +000029979 if test "$have_gvc" = 'yes'; then
29980 GVC_DELEGATE_TRUE=
29981 GVC_DELEGATE_FALSE='#'
29982else
29983 GVC_DELEGATE_TRUE='#'
29984 GVC_DELEGATE_FALSE=
29985fi
29986
cristy3ed852e2009-09-05 21:47:34 +000029987
29988
29989
29990
29991#
29992# Check for JBIG delegate library.
29993#
29994
29995
29996# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029997if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029998 withval=$with_jbig; with_jbig=$withval
29999else
30000 with_jbig='yes'
30001fi
30002
30003
30004have_jbig='no'
30005JBIG_LIBS=''
30006if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30008$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30012$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030013 failed=0
30014 passed=0
cristy8b350f62009-11-15 23:12:43 +000030015 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030016if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030017 passed=`expr $passed + 1`
30018else
30019 failed=`expr $failed + 1`
30020fi
30021
30022
cristy8b350f62009-11-15 23:12:43 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030024$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030025if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030026 $as_echo_n "(cached) " >&6
30027else
30028 ac_check_lib_save_LIBS=$LIBS
30029LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030031/* end confdefs.h. */
30032
30033/* Override any GCC internal prototype to avoid an error.
30034 Use char because int might match the return type of a GCC
30035 builtin and then its argument prototype would still apply. */
30036#ifdef __cplusplus
30037extern "C"
30038#endif
30039char jbg_dec_init ();
30040int
30041main ()
30042{
30043return jbg_dec_init ();
30044 ;
30045 return 0;
30046}
30047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030049 ac_cv_lib_jbig_jbg_dec_init=yes
30050else
cristy8b350f62009-11-15 23:12:43 +000030051 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030052fi
cristy8b350f62009-11-15 23:12:43 +000030053rm -f core conftest.err conftest.$ac_objext \
30054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030055LIBS=$ac_check_lib_save_LIBS
30056fi
cristy8b350f62009-11-15 23:12:43 +000030057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030059if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030060 passed=`expr $passed + 1`
30061else
30062 failed=`expr $failed + 1`
30063fi
30064
cristy8b350f62009-11-15 23:12:43 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030066$as_echo_n "checking if JBIG package is complete... " >&6; }
30067 if test $passed -gt 0; then
30068 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30070$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030071 have_jbig='no (failed tests)'
30072 else
30073 JBIG_LIBS='-ljbig'
30074 LIBS="$JBIG_LIBS $LIBS"
30075
cristy8b350f62009-11-15 23:12:43 +000030076$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030077
cristyad38abe2012-12-23 23:03:21 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30079$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030080 have_jbig='yes'
30081 fi
30082 else
cristyad38abe2012-12-23 23:03:21 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030085 fi
30086fi
cristy73bd4a52010-10-05 11:24:23 +000030087 if test "$have_jbig" = 'yes'; then
30088 JBIG_DELEGATE_TRUE=
30089 JBIG_DELEGATE_FALSE='#'
30090else
30091 JBIG_DELEGATE_TRUE='#'
30092 JBIG_DELEGATE_FALSE=
30093fi
30094
cristy3ed852e2009-09-05 21:47:34 +000030095
30096
30097
30098#
30099# Check for JPEG delegate library.
30100#
30101
30102# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030103if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030104 withval=$with_jpeg; with_jpeg=$withval
30105else
30106 with_jpeg='yes'
30107fi
30108
30109
30110if test "$with_jpeg" != 'yes'; then
30111 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30112fi
30113
30114have_jpeg='no'
30115JPEG_LIBS=''
30116if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30118$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030120$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30122$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030123 failed=0
30124 passed=0
cristy8b350f62009-11-15 23:12:43 +000030125 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030126if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030127 passed=`expr $passed + 1`
30128else
30129 failed=`expr $failed + 1`
30130fi
30131
30132
cristy8b350f62009-11-15 23:12:43 +000030133 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030134if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030135 passed=`expr $passed + 1`
30136else
30137 failed=`expr $failed + 1`
30138fi
30139
30140
cristy8b350f62009-11-15 23:12:43 +000030141 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030142if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030143 passed=`expr $passed + 1`
30144else
30145 failed=`expr $failed + 1`
30146fi
30147
30148
cristy8b350f62009-11-15 23:12:43 +000030149 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030150if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030151 passed=`expr $passed + 1`
30152else
30153 failed=`expr $failed + 1`
30154fi
30155
30156
cristy8b350f62009-11-15 23:12:43 +000030157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030159if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 $as_echo_n "(cached) " >&6
30161else
30162 ac_check_lib_save_LIBS=$LIBS
30163LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030165/* end confdefs.h. */
30166
30167/* Override any GCC internal prototype to avoid an error.
30168 Use char because int might match the return type of a GCC
30169 builtin and then its argument prototype would still apply. */
30170#ifdef __cplusplus
30171extern "C"
30172#endif
30173char jpeg_read_header ();
30174int
30175main ()
30176{
30177return jpeg_read_header ();
30178 ;
30179 return 0;
30180}
30181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030182if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030183 ac_cv_lib_jpeg_jpeg_read_header=yes
30184else
cristy8b350f62009-11-15 23:12:43 +000030185 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030186fi
cristy8b350f62009-11-15 23:12:43 +000030187rm -f core conftest.err conftest.$ac_objext \
30188 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030189LIBS=$ac_check_lib_save_LIBS
30190fi
cristy8b350f62009-11-15 23:12:43 +000030191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030193if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030194 passed=`expr $passed + 1`
30195else
30196 failed=`expr $failed + 1`
30197fi
30198
30199
30200# Test for compatible JPEG library
30201if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030203$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030204if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030205 $as_echo_n "(cached) " >&6
30206else
cristy8b350f62009-11-15 23:12:43 +000030207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030208/* end confdefs.h. */
30209#include <stdio.h>
30210#include <stdlib.h>
30211#include <jpeglib.h>
30212
30213int
30214main ()
30215{
30216
30217#if JPEG_LIB_VERSION < 62
30218#error IJG JPEG library must be version 6b or newer!
30219#endif
30220return 0;
30221
30222 ;
30223 return 0;
30224}
30225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030226if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030227 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30228else
cristy8b350f62009-11-15 23:12:43 +000030229 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030230fi
cristy3ed852e2009-09-05 21:47:34 +000030231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30232fi
cristy8b350f62009-11-15 23:12:43 +000030233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30235fi
cristy8b350f62009-11-15 23:12:43 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo_n "checking if JPEG package is complete... " >&6; }
30238 if test $passed -gt 0; then
30239 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30241$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030242 have_jpeg='no (failed tests)'
30243 else
30244 JPEG_LIBS='-ljpeg'
30245 LIBS="$JPEG_LIBS $LIBS"
30246
cristy8b350f62009-11-15 23:12:43 +000030247$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030248
cristyad38abe2012-12-23 23:03:21 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30250$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030251 have_jpeg='yes'
30252 fi
30253 else
cristyad38abe2012-12-23 23:03:21 +000030254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30255$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030256 fi
30257fi
cristy73bd4a52010-10-05 11:24:23 +000030258 if test "$have_jpeg" = 'yes'; then
30259 JPEG_DELEGATE_TRUE=
30260 JPEG_DELEGATE_FALSE='#'
30261else
30262 JPEG_DELEGATE_TRUE='#'
30263 JPEG_DELEGATE_FALSE=
30264fi
30265
cristy3ed852e2009-09-05 21:47:34 +000030266
30267
30268
30269#
cristy3ed852e2009-09-05 21:47:34 +000030270# Check for LCMS delegate library.
30271#
cristy71203402010-06-18 13:12:03 +000030272# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030273
30274# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030275if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 withval=$with_lcms; with_lcms=$withval
30277else
30278 with_lcms='yes'
30279fi
30280
cristy71203402010-06-18 13:12:03 +000030281if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30283fi
30284
cristy71203402010-06-18 13:12:03 +000030285# Disable LCMS2.
30286
30287# Check whether --with-lcms2 was given.
30288if test "${with_lcms2+set}" = set; then :
30289 withval=$with_lcms2; with_lcms2=$withval
30290else
30291 with_lcms2='yes'
30292fi
30293
30294if test "$with_lcms2" != 'yes' ; then
30295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30296fi
30297
30298have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030299LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030300if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30302$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30304$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30306$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030307 failed=0
30308 passed=0
30309 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030310
30311 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030312 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030313if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030314 have_lcms_header='yes'
30315fi
30316
30317
30318 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030319
30320$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30321
cristy71203402010-06-18 13:12:03 +000030322 passed=`expr $passed + 1`
30323 fi
30324
30325 # Check for <lcms2/lcms2.h)
30326 if test "$have_lcms_header" != 'yes'; then
30327 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 +000030328if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030329 have_lcms_header='yes'
30330fi
30331
30332
cristy71203402010-06-18 13:12:03 +000030333 if test "$have_lcms_header" = 'yes'; then
30334 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030335
cristy71203402010-06-18 13:12:03 +000030336$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030337
cristy71203402010-06-18 13:12:03 +000030338 fi
cristyd09bcf92010-03-25 03:04:45 +000030339 fi
cristy71203402010-06-18 13:12:03 +000030340
30341 # Failed to find lcms header?
30342 if test "$have_lcms_header" != 'yes'; then
30343 failed=`expr $failed + 1`
30344 fi
30345
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30347$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030348if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030349 $as_echo_n "(cached) " >&6
30350else
30351 ac_check_lib_save_LIBS=$LIBS
30352LIBS="-llcms2 $LIBS"
30353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30354/* end confdefs.h. */
30355
30356/* Override any GCC internal prototype to avoid an error.
30357 Use char because int might match the return type of a GCC
30358 builtin and then its argument prototype would still apply. */
30359#ifdef __cplusplus
30360extern "C"
30361#endif
cristy71203402010-06-18 13:12:03 +000030362char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030363int
30364main ()
30365{
cristy71203402010-06-18 13:12:03 +000030366return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030367 ;
30368 return 0;
30369}
30370_ACEOF
30371if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030372 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030373else
cristy71203402010-06-18 13:12:03 +000030374 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030375fi
30376rm -f core conftest.err conftest.$ac_objext \
30377 conftest$ac_exeext conftest.$ac_ext
30378LIBS=$ac_check_lib_save_LIBS
30379fi
cristy71203402010-06-18 13:12:03 +000030380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30381$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030382if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030383 passed=`expr $passed + 1`
30384else
30385 failed=`expr $failed + 1`
30386fi
30387
cristy71203402010-06-18 13:12:03 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30389$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030390 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030391 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30393$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030394 have_lcms2='no (failed tests)'
30395 else
30396 LCMS_LIBS='-llcms2'
30397 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30399$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030400 have_lcms2='yes'
30401 fi
cristyd09bcf92010-03-25 03:04:45 +000030402 else
cristyad38abe2012-12-23 23:03:21 +000030403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30404$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030405 fi
30406fi
30407
cristy71203402010-06-18 13:12:03 +000030408#
30409# Check for LCMS v1 (1.11 or later)
30410#
30411if test $have_lcms2 = 'yes'; then
30412 with_lcms='no'
30413fi
30414
30415have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030416if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30418$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30420$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30422$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030423 failed=0
30424 passed=0
30425 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030426
30427 # Check for <lcms.h>
30428 if test "$have_lcms_header" != 'yes'; then
30429 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030430if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030431 have_lcms_header='yes'
30432fi
30433
30434
cristy71203402010-06-18 13:12:03 +000030435 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030436 passed=`expr $passed + 1`
30437
cristy8b350f62009-11-15 23:12:43 +000030438$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030439
cristy71203402010-06-18 13:12:03 +000030440 fi
30441 fi
30442
30443 # Check for <lcms/lcms.h>
30444 if test "$have_lcms_header" != 'yes'; then
30445 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 +000030446if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030447 have_lcms_header='yes'
30448fi
30449
30450
cristy71203402010-06-18 13:12:03 +000030451 if test "$have_lcms_header" = 'yes'; then
30452 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030453
cristy8b350f62009-11-15 23:12:43 +000030454$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030455
cristy71203402010-06-18 13:12:03 +000030456 fi
cristy3ed852e2009-09-05 21:47:34 +000030457 fi
cristy71203402010-06-18 13:12:03 +000030458
30459 # Failed to find lcms header?
30460 if test "$have_lcms_header" != 'yes'; then
30461 failed=`expr $failed + 1`
30462 fi
30463
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30465$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030466if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030467 $as_echo_n "(cached) " >&6
30468else
30469 ac_check_lib_save_LIBS=$LIBS
30470LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030472/* end confdefs.h. */
30473
30474/* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30477#ifdef __cplusplus
30478extern "C"
30479#endif
cristy71203402010-06-18 13:12:03 +000030480char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030481int
30482main ()
30483{
cristy71203402010-06-18 13:12:03 +000030484return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030485 ;
30486 return 0;
30487}
30488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030489if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030490 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030491else
cristy71203402010-06-18 13:12:03 +000030492 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030493fi
cristy8b350f62009-11-15 23:12:43 +000030494rm -f core conftest.err conftest.$ac_objext \
30495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030496LIBS=$ac_check_lib_save_LIBS
30497fi
cristy71203402010-06-18 13:12:03 +000030498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30499$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030500if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030501 passed=`expr $passed + 1`
30502else
30503 failed=`expr $failed + 1`
30504fi
30505
cristy8b350f62009-11-15 23:12:43 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507$as_echo_n "checking if LCMS package is complete... " >&6; }
30508 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030509 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30511$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030512 have_lcms='no (failed tests)'
30513 else
30514 LCMS_LIBS='-llcms'
30515 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30517$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030518 have_lcms='yes'
30519 fi
cristy3ed852e2009-09-05 21:47:34 +000030520 else
cristyad38abe2012-12-23 23:03:21 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030523 fi
30524fi
cristy71203402010-06-18 13:12:03 +000030525
cristy73bd4a52010-10-05 11:24:23 +000030526 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30527 LCMS_DELEGATE_TRUE=
30528 LCMS_DELEGATE_FALSE='#'
30529else
30530 LCMS_DELEGATE_TRUE='#'
30531 LCMS_DELEGATE_FALSE=
30532fi
30533
cristy71203402010-06-18 13:12:03 +000030534if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30535
30536$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30537
30538fi
30539
cristy3ed852e2009-09-05 21:47:34 +000030540
30541
30542
30543#
cristy99db3872014-01-01 15:11:34 +000030544# Check for the OpenJP2 delegate library.
30545#
30546
30547# Check whether --with-openjp2 was given.
30548if test "${with_openjp2+set}" = set; then :
30549 withval=$with_openjp2; with_openjp2=$withval
30550else
30551 with_openjp2='yes'
30552fi
30553
30554
30555if test "$with_openjp2" != 'yes'; then
30556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30557fi
30558
30559have_openjp2='no'
30560LIBOPENJP2_CFLAGS=""
30561LIBOPENJP2_LIBS=""
30562LIBOPENJP2_PKG=""
30563if test "x$with_openjp2" = "xyes"; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30565$as_echo "-------------------------------------------------------------" >&6; }
30566
30567pkg_failed=no
30568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30569$as_echo_n "checking for LIBOPENJP2... " >&6; }
30570
30571if test -n "$LIBOPENJP2_CFLAGS"; then
30572 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30573 elif test -n "$PKG_CONFIG"; then
30574 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30576 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030577 ac_status=$?
30578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30579 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030580 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030581else
30582 pkg_failed=yes
30583fi
30584 else
30585 pkg_failed=untried
30586fi
30587if test -n "$LIBOPENJP2_LIBS"; then
30588 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30589 elif test -n "$PKG_CONFIG"; then
30590 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30592 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030593 ac_status=$?
30594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30595 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030596 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy99db3872014-01-01 15:11:34 +000030597else
30598 pkg_failed=yes
30599fi
30600 else
30601 pkg_failed=untried
30602fi
30603
30604
30605
30606if test $pkg_failed = yes; then
30607
30608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30609 _pkg_short_errors_supported=yes
30610else
30611 _pkg_short_errors_supported=no
30612fi
30613 if test $_pkg_short_errors_supported = yes; then
cristybc964932014-05-08 21:45:03 +000030614 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030615 else
cristybc964932014-05-08 21:45:03 +000030616 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030617 fi
30618 # Put the nasty error message in config.log where it belongs
30619 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622$as_echo "no" >&6; }
30623 have_openjp2=no
30624elif test $pkg_failed = untried; then
30625 have_openjp2=no
30626else
30627 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30628 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30630$as_echo "yes" >&6; }
30631 have_openjp2=yes
30632fi
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30634$as_echo "" >&6; }
30635fi
30636
30637if test "$have_openjp2" = 'yes'; then
30638
30639$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30640
30641 if test "$build_modules" = 'no'; then
30642 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30643 fi
30644fi
30645
30646 if test "$have_openjp2" = 'yes'; then
30647 LIBOPENJP2_DELEGATE_TRUE=
30648 LIBOPENJP2_DELEGATE_FALSE='#'
30649else
30650 LIBOPENJP2_DELEGATE_TRUE='#'
30651 LIBOPENJP2_DELEGATE_FALSE=
30652fi
30653
30654
30655
30656
30657
30658
30659#
cristy3ed852e2009-09-05 21:47:34 +000030660# Check for the LQR (Liquid Rescale) delegate library.
30661#
30662
30663# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030664if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030665 withval=$with_lqr; with_lqr=$withval
30666else
30667 with_lqr='yes'
30668fi
30669
30670
30671if test "$with_lqr" != 'yes'; then
30672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30673fi
30674
30675have_lqr='no'
30676LQR_CFLAGS=""
30677LQR_LIBS=""
30678LQR_PKG=""
30679if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30681$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030682
30683pkg_failed=no
30684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30685$as_echo_n "checking for LQR... " >&6; }
30686
30687if test -n "$LQR_CFLAGS"; then
30688 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30689 elif test -n "$PKG_CONFIG"; then
30690 if test -n "$PKG_CONFIG" && \
30691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30692 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30693 ac_status=$?
30694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30695 test $ac_status = 0; }; then
30696 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30697else
30698 pkg_failed=yes
30699fi
30700 else
30701 pkg_failed=untried
30702fi
30703if test -n "$LQR_LIBS"; then
30704 pkg_cv_LQR_LIBS="$LQR_LIBS"
30705 elif test -n "$PKG_CONFIG"; then
30706 if test -n "$PKG_CONFIG" && \
30707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30708 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30709 ac_status=$?
30710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30711 test $ac_status = 0; }; then
30712 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30713else
30714 pkg_failed=yes
30715fi
30716 else
30717 pkg_failed=untried
30718fi
30719
30720
30721
30722if test $pkg_failed = yes; then
30723
30724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30725 _pkg_short_errors_supported=yes
30726else
30727 _pkg_short_errors_supported=no
30728fi
30729 if test $_pkg_short_errors_supported = yes; then
30730 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30731 else
30732 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30733 fi
30734 # Put the nasty error message in config.log where it belongs
30735 echo "$LQR_PKG_ERRORS" >&5
30736
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30738$as_echo "no" >&6; }
30739 have_lqr=no
30740elif test $pkg_failed = untried; then
30741 have_lqr=no
30742else
30743 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30744 LQR_LIBS=$pkg_cv_LQR_LIBS
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746$as_echo "yes" >&6; }
30747 have_lqr=yes
30748fi
cristyad38abe2012-12-23 23:03:21 +000030749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30750$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030751fi
30752
30753if test "$have_lqr" = 'yes'; then
30754
cristy8b350f62009-11-15 23:12:43 +000030755$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030756
30757 CFLAGS="$LQR_CFLAGS $CFLAGS"
30758fi
30759
cristy73bd4a52010-10-05 11:24:23 +000030760 if test "$have_lqr" = 'yes'; then
30761 LQR_DELEGATE_TRUE=
30762 LQR_DELEGATE_FALSE='#'
30763else
30764 LQR_DELEGATE_TRUE='#'
30765 LQR_DELEGATE_FALSE=
30766fi
30767
cristy3ed852e2009-09-05 21:47:34 +000030768
30769
30770
30771
cristy81beccd2011-10-03 18:17:24 +000030772# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030773
30774# Check whether --with-lzma was given.
30775if test "${with_lzma+set}" = set; then :
30776 withval=$with_lzma; with_lzma=$withval
30777else
30778 with_lzma='yes'
30779fi
30780
cristy81beccd2011-10-03 18:17:24 +000030781if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30783fi
30784
cristyb94e5002011-11-14 13:20:10 +000030785LZMA_PKG=""
30786if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30788$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030789
30790pkg_failed=no
30791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030792$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030793
30794if test -n "$LZMA_CFLAGS"; then
30795 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30796 elif test -n "$PKG_CONFIG"; then
30797 if test -n "$PKG_CONFIG" && \
30798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30799 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30800 ac_status=$?
30801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30802 test $ac_status = 0; }; then
30803 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30804else
30805 pkg_failed=yes
30806fi
30807 else
30808 pkg_failed=untried
30809fi
30810if test -n "$LZMA_LIBS"; then
30811 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30812 elif test -n "$PKG_CONFIG"; then
30813 if test -n "$PKG_CONFIG" && \
30814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30815 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30816 ac_status=$?
30817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30818 test $ac_status = 0; }; then
30819 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30820else
30821 pkg_failed=yes
30822fi
30823 else
30824 pkg_failed=untried
30825fi
30826
30827
30828
30829if test $pkg_failed = yes; then
30830
30831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30832 _pkg_short_errors_supported=yes
30833else
30834 _pkg_short_errors_supported=no
30835fi
30836 if test $_pkg_short_errors_supported = yes; then
30837 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30838 else
30839 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30840 fi
30841 # Put the nasty error message in config.log where it belongs
30842 echo "$LZMA_PKG_ERRORS" >&5
30843
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30845$as_echo "no" >&6; }
30846 have_lzma=no
30847elif test $pkg_failed = untried; then
30848 have_lzma=no
30849else
30850 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30851 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30853$as_echo "yes" >&6; }
30854 have_lzma=yes
30855fi
cristyad38abe2012-12-23 23:03:21 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30857$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030858fi
30859
cristyb94e5002011-11-14 13:20:10 +000030860if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030861
30862$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30863
cristyc6722092012-10-14 00:19:31 +000030864 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030865 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030866 fi
cristyfbb0ef02010-12-19 02:32:11 +000030867fi
cristyb94e5002011-11-14 13:20:10 +000030868
cristyfbb0ef02010-12-19 02:32:11 +000030869 if test "$have_lzma" = 'yes'; then
30870 LZMA_DELEGATE_TRUE=
30871 LZMA_DELEGATE_FALSE='#'
30872else
30873 LZMA_DELEGATE_TRUE='#'
30874 LZMA_DELEGATE_FALSE=
30875fi
30876
30877
30878
30879
cristyb94e5002011-11-14 13:20:10 +000030880
cristy3ed852e2009-09-05 21:47:34 +000030881#
30882# Check for the OpenEXR delegate library.
30883#
30884
30885# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030886if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030887 withval=$with_openexr; with_openexr=$withval
30888else
30889 with_openexr='yes'
30890fi
30891
30892
30893if test "$with_openexr" != 'yes'; then
30894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30895fi
30896
30897have_openexr='no'
30898OPENEXR_CFLAGS=""
30899OPENEXR_LIBS=""
30900OPENEXR_PKG=""
30901if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30903$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030904
30905pkg_failed=no
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30907$as_echo_n "checking for OPENEXR... " >&6; }
30908
30909if test -n "$OPENEXR_CFLAGS"; then
30910 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30911 elif test -n "$PKG_CONFIG"; then
30912 if test -n "$PKG_CONFIG" && \
30913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30914 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30915 ac_status=$?
30916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30917 test $ac_status = 0; }; then
30918 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30919else
30920 pkg_failed=yes
30921fi
30922 else
30923 pkg_failed=untried
30924fi
30925if test -n "$OPENEXR_LIBS"; then
30926 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30927 elif test -n "$PKG_CONFIG"; then
30928 if test -n "$PKG_CONFIG" && \
30929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30930 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30931 ac_status=$?
30932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30933 test $ac_status = 0; }; then
30934 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30935else
30936 pkg_failed=yes
30937fi
30938 else
30939 pkg_failed=untried
30940fi
30941
30942
30943
30944if test $pkg_failed = yes; then
30945
30946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30947 _pkg_short_errors_supported=yes
30948else
30949 _pkg_short_errors_supported=no
30950fi
30951 if test $_pkg_short_errors_supported = yes; then
30952 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30953 else
30954 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30955 fi
30956 # Put the nasty error message in config.log where it belongs
30957 echo "$OPENEXR_PKG_ERRORS" >&5
30958
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960$as_echo "no" >&6; }
30961 have_openexr=no
30962elif test $pkg_failed = untried; then
30963 have_openexr=no
30964else
30965 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30966 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30968$as_echo "yes" >&6; }
30969 have_openexr=yes
30970fi
cristyad38abe2012-12-23 23:03:21 +000030971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30972$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030973fi
30974
30975if test "$have_openexr" = 'yes'; then
30976
cristy8b350f62009-11-15 23:12:43 +000030977$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030978
cristyc6722092012-10-14 00:19:31 +000030979 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030980 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30981 fi
30982fi
30983
cristy73bd4a52010-10-05 11:24:23 +000030984 if test "$have_openexr" = 'yes'; then
30985 OPENEXR_DELEGATE_TRUE=
30986 OPENEXR_DELEGATE_FALSE='#'
30987else
30988 OPENEXR_DELEGATE_TRUE='#'
30989 OPENEXR_DELEGATE_FALSE=
30990fi
30991
cristy3ed852e2009-09-05 21:47:34 +000030992
30993
30994
30995
30996#
cristy41cbe8a2011-10-27 01:35:18 +000030997# Check for PANGO delegate library.
30998#
30999
31000# Check whether --with-pango was given.
31001if test "${with_pango+set}" = set; then :
31002 withval=$with_pango; with_pango=$withval
31003else
cristyfc3d0222012-02-07 15:05:57 +000031004 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031005fi
31006
31007
31008if test "$with_pango" != 'yes'; then
31009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31010fi
31011
31012have_pango='no'
cristya054b762012-03-26 23:16:00 +000031013have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031014PANGO_CFLAGS=""
31015PANGO_LIBS=""
31016PANGO_PKG=""
31017if test "x$with_pango" = "xyes"; then
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31019$as_echo "-------------------------------------------------------------" >&6; }
31020
31021pkg_failed=no
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31023$as_echo_n "checking for PANGO... " >&6; }
31024
31025if test -n "$PANGO_CFLAGS"; then
31026 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31027 elif test -n "$PKG_CONFIG"; then
31028 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31030 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031031 ac_status=$?
31032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031034 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031035else
31036 pkg_failed=yes
31037fi
31038 else
31039 pkg_failed=untried
31040fi
31041if test -n "$PANGO_LIBS"; then
31042 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31043 elif test -n "$PKG_CONFIG"; then
31044 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31046 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031047 ac_status=$?
31048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31049 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031050 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031051else
31052 pkg_failed=yes
31053fi
31054 else
31055 pkg_failed=untried
31056fi
31057
31058
31059
31060if test $pkg_failed = yes; then
31061
31062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31063 _pkg_short_errors_supported=yes
31064else
31065 _pkg_short_errors_supported=no
31066fi
31067 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031068 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031069 else
cristya054b762012-03-26 23:16:00 +000031070 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031071 fi
31072 # Put the nasty error message in config.log where it belongs
31073 echo "$PANGO_PKG_ERRORS" >&5
31074
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31076$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031077 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031078elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031079 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031080else
31081 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31082 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31084$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031085 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031086fi
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31088$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031089
31090pkg_failed=no
31091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31092$as_echo_n "checking for PANGO... " >&6; }
31093
31094if test -n "$PANGO_CFLAGS"; then
31095 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31096 elif test -n "$PKG_CONFIG"; then
31097 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31099 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031100 ac_status=$?
31101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31102 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031103 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031104else
31105 pkg_failed=yes
31106fi
31107 else
31108 pkg_failed=untried
31109fi
31110if test -n "$PANGO_LIBS"; then
31111 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31112 elif test -n "$PKG_CONFIG"; then
31113 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31115 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031116 ac_status=$?
31117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31118 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031119 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031120else
31121 pkg_failed=yes
31122fi
31123 else
31124 pkg_failed=untried
31125fi
31126
31127
31128
31129if test $pkg_failed = yes; then
31130
31131if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31132 _pkg_short_errors_supported=yes
31133else
31134 _pkg_short_errors_supported=no
31135fi
31136 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031137 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031138 else
cristy2542fc62011-12-06 17:50:25 +000031139 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031140 fi
31141 # Put the nasty error message in config.log where it belongs
31142 echo "$PANGO_PKG_ERRORS" >&5
31143
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31145$as_echo "no" >&6; }
31146 have_pango=no
31147elif test $pkg_failed = untried; then
31148 have_pango=no
31149else
31150 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31151 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31153$as_echo "yes" >&6; }
31154 have_pango=yes
31155fi
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31157$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031158fi
31159
31160if test "$have_pango" = 'yes'; then
31161
31162$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31163
cristyc6722092012-10-14 00:19:31 +000031164 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031165 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31166 fi
31167fi
31168
cristya054b762012-03-26 23:16:00 +000031169if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031170
cristya054b762012-03-26 23:16:00 +000031171$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031172
cristyc6722092012-10-14 00:19:31 +000031173 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031174 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031175 fi
31176fi
31177
31178 if test "$have_pango" = 'yes'; then
31179 PANGO_DELEGATE_TRUE=
31180 PANGO_DELEGATE_FALSE='#'
31181else
31182 PANGO_DELEGATE_TRUE='#'
31183 PANGO_DELEGATE_FALSE=
31184fi
31185
cristya054b762012-03-26 23:16:00 +000031186 if test "$have_pangocairo" = 'yes'; then
31187 PANGOCAIRO_DELEGATE_TRUE=
31188 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031189else
cristya054b762012-03-26 23:16:00 +000031190 PANGOCAIRO_DELEGATE_TRUE='#'
31191 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031192fi
31193
31194
31195
31196
31197
31198#
cristy3ed852e2009-09-05 21:47:34 +000031199# Check for PNG delegate library.
31200#
31201
31202# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031203if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031204 withval=$with_png; with_png=$withval
31205else
31206 with_png='yes'
31207fi
31208
31209
31210if test "$with_png" != 'yes'; then
31211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31212fi
31213
cristy81beccd2011-10-03 18:17:24 +000031214have_png='no'
31215PNG_LIBS=''
31216
31217if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31219$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31221$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31223$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031224 failed=0
31225 passed=0
31226 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31227if test "x$ac_cv_header_png_h" = xyes; then :
31228 passed=`expr $passed + 1`
31229else
31230 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031231fi
31232
cristy81beccd2011-10-03 18:17:24 +000031233
31234
31235 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031236 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031237 if test "$have_png" = 'no' ; then
31238 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031239 pnglib='png'
31240 else
31241 pnglib="png1${var}"
31242 fi
31243
31244# Test for compatible LIBPNG library
31245 failed=0
31246 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031247 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031248 if test "${pnglib}" != 'png' ; then
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31250$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31252/* end confdefs.h. */
31253#include <stdio.h>
31254#include <stdlib.h>
31255#include <png.h>
31256
31257int
31258main ()
31259{
31260
31261#if PNG_LIBPNG_VER_MINOR != ${var}
31262#error LIBPNG library must be version 1${var}!
31263Kaboom, Kaboom
31264#endif
31265return 0;
31266
31267 ;
31268 return 0;
31269}
31270_ACEOF
31271if ac_fn_c_try_compile "$LINENO"; then :
31272 ac_cv_libpng_ok='yes'
31273else
31274 ac_cv_libpng_ok='no'
31275fi
31276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31277 if test "$ac_cv_libpng_ok" = 'yes' ; then
31278 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31280$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031281 else
31282 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31284$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031285 fi
31286 else
31287 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31289$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031290 fi
31291 fi
31292
31293 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031294 if test "1${var}" = '17' ; then
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31296$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31297if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31298 $as_echo_n "(cached) " >&6
31299else
31300 ac_check_lib_save_LIBS=$LIBS
31301LIBS="-lpng17 $LIBS"
31302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31303/* end confdefs.h. */
31304
31305/* Override any GCC internal prototype to avoid an error.
31306 Use char because int might match the return type of a GCC
31307 builtin and then its argument prototype would still apply. */
31308#ifdef __cplusplus
31309extern "C"
31310#endif
31311char png_get_io_ptr ();
31312int
31313main ()
31314{
31315return png_get_io_ptr ();
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320if ac_fn_c_try_link "$LINENO"; then :
31321 ac_cv_lib_png17_png_get_io_ptr=yes
31322else
31323 ac_cv_lib_png17_png_get_io_ptr=no
31324fi
31325rm -f core conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31327LIBS=$ac_check_lib_save_LIBS
31328fi
31329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31330$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31331if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31332 passed=`expr $passed + 1`
31333else
31334 failed=`expr $failed + 1`
31335fi
31336
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31338$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31339if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31340 $as_echo_n "(cached) " >&6
31341else
31342 ac_check_lib_save_LIBS=$LIBS
31343LIBS="-lpng17 $LIBS"
31344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31345/* end confdefs.h. */
31346
31347/* Override any GCC internal prototype to avoid an error.
31348 Use char because int might match the return type of a GCC
31349 builtin and then its argument prototype would still apply. */
31350#ifdef __cplusplus
31351extern "C"
31352#endif
31353char png_longjmp ();
31354int
31355main ()
31356{
31357return png_longjmp ();
31358 ;
31359 return 0;
31360}
31361_ACEOF
31362if ac_fn_c_try_link "$LINENO"; then :
31363 ac_cv_lib_png17_png_longjmp=yes
31364else
31365 ac_cv_lib_png17_png_longjmp=no
31366fi
31367rm -f core conftest.err conftest.$ac_objext \
31368 conftest$ac_exeext conftest.$ac_ext
31369LIBS=$ac_check_lib_save_LIBS
31370fi
31371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31372$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31373if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31374 passed=`expr $passed + 1`
31375else
31376 failed=`expr $failed + 1`
31377fi
31378
31379 fi
31380 if test "1${var}" = '16' ; then
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31382$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31383if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31384 $as_echo_n "(cached) " >&6
31385else
31386 ac_check_lib_save_LIBS=$LIBS
31387LIBS="-lpng16 $LIBS"
31388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31389/* end confdefs.h. */
31390
31391/* Override any GCC internal prototype to avoid an error.
31392 Use char because int might match the return type of a GCC
31393 builtin and then its argument prototype would still apply. */
31394#ifdef __cplusplus
31395extern "C"
31396#endif
31397char png_get_io_ptr ();
31398int
31399main ()
31400{
31401return png_get_io_ptr ();
31402 ;
31403 return 0;
31404}
31405_ACEOF
31406if ac_fn_c_try_link "$LINENO"; then :
31407 ac_cv_lib_png16_png_get_io_ptr=yes
31408else
31409 ac_cv_lib_png16_png_get_io_ptr=no
31410fi
31411rm -f core conftest.err conftest.$ac_objext \
31412 conftest$ac_exeext conftest.$ac_ext
31413LIBS=$ac_check_lib_save_LIBS
31414fi
31415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31416$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31417if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31418 passed=`expr $passed + 1`
31419else
31420 failed=`expr $failed + 1`
31421fi
31422
31423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31424$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31425if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31426 $as_echo_n "(cached) " >&6
31427else
31428 ac_check_lib_save_LIBS=$LIBS
31429LIBS="-lpng16 $LIBS"
31430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31431/* end confdefs.h. */
31432
31433/* Override any GCC internal prototype to avoid an error.
31434 Use char because int might match the return type of a GCC
31435 builtin and then its argument prototype would still apply. */
31436#ifdef __cplusplus
31437extern "C"
31438#endif
31439char png_longjmp ();
31440int
31441main ()
31442{
31443return png_longjmp ();
31444 ;
31445 return 0;
31446}
31447_ACEOF
31448if ac_fn_c_try_link "$LINENO"; then :
31449 ac_cv_lib_png16_png_longjmp=yes
31450else
31451 ac_cv_lib_png16_png_longjmp=no
31452fi
31453rm -f core conftest.err conftest.$ac_objext \
31454 conftest$ac_exeext conftest.$ac_ext
31455LIBS=$ac_check_lib_save_LIBS
31456fi
31457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31458$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31459if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31460 passed=`expr $passed + 1`
31461else
31462 failed=`expr $failed + 1`
31463fi
31464
31465 fi
cristy81beccd2011-10-03 18:17:24 +000031466 if test "1${var}" = '15' ; then
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31468$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31469if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31470 $as_echo_n "(cached) " >&6
31471else
31472 ac_check_lib_save_LIBS=$LIBS
31473LIBS="-lpng15 $LIBS"
31474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31475/* end confdefs.h. */
31476
31477/* Override any GCC internal prototype to avoid an error.
31478 Use char because int might match the return type of a GCC
31479 builtin and then its argument prototype would still apply. */
31480#ifdef __cplusplus
31481extern "C"
31482#endif
31483char png_get_io_ptr ();
31484int
31485main ()
31486{
31487return png_get_io_ptr ();
31488 ;
31489 return 0;
31490}
31491_ACEOF
31492if ac_fn_c_try_link "$LINENO"; then :
31493 ac_cv_lib_png15_png_get_io_ptr=yes
31494else
31495 ac_cv_lib_png15_png_get_io_ptr=no
31496fi
31497rm -f core conftest.err conftest.$ac_objext \
31498 conftest$ac_exeext conftest.$ac_ext
31499LIBS=$ac_check_lib_save_LIBS
31500fi
31501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31502$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31503if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31504 passed=`expr $passed + 1`
31505else
31506 failed=`expr $failed + 1`
31507fi
31508
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31510$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31511if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31512 $as_echo_n "(cached) " >&6
31513else
31514 ac_check_lib_save_LIBS=$LIBS
31515LIBS="-lpng15 $LIBS"
31516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31517/* end confdefs.h. */
31518
31519/* Override any GCC internal prototype to avoid an error.
31520 Use char because int might match the return type of a GCC
31521 builtin and then its argument prototype would still apply. */
31522#ifdef __cplusplus
31523extern "C"
31524#endif
31525char png_longjmp ();
31526int
31527main ()
31528{
31529return png_longjmp ();
31530 ;
31531 return 0;
31532}
31533_ACEOF
31534if ac_fn_c_try_link "$LINENO"; then :
31535 ac_cv_lib_png15_png_longjmp=yes
31536else
31537 ac_cv_lib_png15_png_longjmp=no
31538fi
31539rm -f core conftest.err conftest.$ac_objext \
31540 conftest$ac_exeext conftest.$ac_ext
31541LIBS=$ac_check_lib_save_LIBS
31542fi
31543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31544$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31545if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31546 passed=`expr $passed + 1`
31547else
31548 failed=`expr $failed + 1`
31549fi
31550
31551 fi
31552 if test "1${var}" = '14' ; then
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31554$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31555if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31556 $as_echo_n "(cached) " >&6
31557else
31558 ac_check_lib_save_LIBS=$LIBS
31559LIBS="-lpng14 $LIBS"
31560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561/* end confdefs.h. */
31562
31563/* Override any GCC internal prototype to avoid an error.
31564 Use char because int might match the return type of a GCC
31565 builtin and then its argument prototype would still apply. */
31566#ifdef __cplusplus
31567extern "C"
31568#endif
31569char png_get_io_ptr ();
31570int
31571main ()
31572{
31573return png_get_io_ptr ();
31574 ;
31575 return 0;
31576}
31577_ACEOF
31578if ac_fn_c_try_link "$LINENO"; then :
31579 ac_cv_lib_png14_png_get_io_ptr=yes
31580else
31581 ac_cv_lib_png14_png_get_io_ptr=no
31582fi
31583rm -f core conftest.err conftest.$ac_objext \
31584 conftest$ac_exeext conftest.$ac_ext
31585LIBS=$ac_check_lib_save_LIBS
31586fi
31587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31588$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31589if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31590 passed=`expr $passed + 1`
31591else
31592 failed=`expr $failed + 1`
31593fi
31594
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31596$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31597if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31598 $as_echo_n "(cached) " >&6
31599else
31600 ac_check_lib_save_LIBS=$LIBS
31601LIBS="-lpng14 $LIBS"
31602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31603/* end confdefs.h. */
31604
31605/* Override any GCC internal prototype to avoid an error.
31606 Use char because int might match the return type of a GCC
31607 builtin and then its argument prototype would still apply. */
31608#ifdef __cplusplus
31609extern "C"
31610#endif
31611char png_get_io_state ();
31612int
31613main ()
31614{
31615return png_get_io_state ();
31616 ;
31617 return 0;
31618}
31619_ACEOF
31620if ac_fn_c_try_link "$LINENO"; then :
31621 ac_cv_lib_png14_png_get_io_state=yes
31622else
31623 ac_cv_lib_png14_png_get_io_state=no
31624fi
31625rm -f core conftest.err conftest.$ac_objext \
31626 conftest$ac_exeext conftest.$ac_ext
31627LIBS=$ac_check_lib_save_LIBS
31628fi
31629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31630$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31631if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31632 passed=`expr $passed + 1`
31633else
31634 failed=`expr $failed + 1`
31635fi
31636
31637 fi
31638 if test "1${var}" = '12' ; then
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31640$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31641if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31642 $as_echo_n "(cached) " >&6
31643else
31644 ac_check_lib_save_LIBS=$LIBS
31645LIBS="-lpng12 $LIBS"
31646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31647/* end confdefs.h. */
31648
31649/* Override any GCC internal prototype to avoid an error.
31650 Use char because int might match the return type of a GCC
31651 builtin and then its argument prototype would still apply. */
31652#ifdef __cplusplus
31653extern "C"
31654#endif
31655char png_get_io_ptr ();
31656int
31657main ()
31658{
31659return png_get_io_ptr ();
31660 ;
31661 return 0;
31662}
31663_ACEOF
31664if ac_fn_c_try_link "$LINENO"; then :
31665 ac_cv_lib_png12_png_get_io_ptr=yes
31666else
31667 ac_cv_lib_png12_png_get_io_ptr=no
31668fi
31669rm -f core conftest.err conftest.$ac_objext \
31670 conftest$ac_exeext conftest.$ac_ext
31671LIBS=$ac_check_lib_save_LIBS
31672fi
31673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31674$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31675if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31676 passed=`expr $passed + 1`
31677else
31678 failed=`expr $failed + 1`
31679fi
31680
31681 fi
31682 if test "1${var}" = '1' ; then
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31684$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31685if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31686 $as_echo_n "(cached) " >&6
31687else
31688 ac_check_lib_save_LIBS=$LIBS
31689LIBS="-lpng $LIBS"
31690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31691/* end confdefs.h. */
31692
31693/* Override any GCC internal prototype to avoid an error.
31694 Use char because int might match the return type of a GCC
31695 builtin and then its argument prototype would still apply. */
31696#ifdef __cplusplus
31697extern "C"
31698#endif
31699char png_get_io_ptr ();
31700int
31701main ()
31702{
31703return png_get_io_ptr ();
31704 ;
31705 return 0;
31706}
31707_ACEOF
31708if ac_fn_c_try_link "$LINENO"; then :
31709 ac_cv_lib_png_png_get_io_ptr=yes
31710else
31711 ac_cv_lib_png_png_get_io_ptr=no
31712fi
31713rm -f core conftest.err conftest.$ac_objext \
31714 conftest$ac_exeext conftest.$ac_ext
31715LIBS=$ac_check_lib_save_LIBS
31716fi
31717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31718$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31719if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31720 passed=`expr $passed + 1`
31721else
31722 failed=`expr $failed + 1`
31723fi
31724
31725 fi
31726 if test $passed -gt 0 -a $failed -le 0 ; then
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31728$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31729 if test $passed -gt 0 ; then
31730 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31732$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031733 have_png='no (failed tests)'
31734 else
31735 PNG_LIBS="-l${pnglib}"
31736 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031737
cristy8b350f62009-11-15 23:12:43 +000031738$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031739
cristyad38abe2012-12-23 23:03:21 +000031740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031742 have_png='yes'
31743 fi
31744 fi
31745 fi
31746 fi
31747 fi
31748 done
31749 fi
cristy3ed852e2009-09-05 21:47:34 +000031750fi
cristy64877302011-08-23 19:10:31 +000031751
cristy73bd4a52010-10-05 11:24:23 +000031752 if test "$have_png" = 'yes'; then
31753 PNG_DELEGATE_TRUE=
31754 PNG_DELEGATE_FALSE='#'
31755else
31756 PNG_DELEGATE_TRUE='#'
31757 PNG_DELEGATE_FALSE=
31758fi
31759
cristy3ed852e2009-09-05 21:47:34 +000031760
cristy50d3f5c2011-09-10 20:09:06 +000031761
cristy3ed852e2009-09-05 21:47:34 +000031762
31763
31764#
31765# Check for RSVG delegate library.
31766#
31767
31768# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031769if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031770 withval=$with_rsvg; with_rsvg=$withval
31771else
cristy1164d5f2012-08-15 00:58:25 +000031772 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031773fi
31774
31775
31776if test "$with_rsvg" != 'yes'; then
31777 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31778fi
31779
31780have_rsvg='no'
31781have_cairo='no'
31782RSVG_CFLAGS=""
31783RSVG_LIBS=""
31784RSVG_PKG=""
31785if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31787$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031788
31789pkg_failed=no
31790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31791$as_echo_n "checking for RSVG... " >&6; }
31792
31793if test -n "$RSVG_CFLAGS"; then
31794 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31795 elif test -n "$PKG_CONFIG"; then
31796 if test -n "$PKG_CONFIG" && \
31797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31798 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31799 ac_status=$?
31800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31801 test $ac_status = 0; }; then
31802 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31803else
31804 pkg_failed=yes
31805fi
31806 else
31807 pkg_failed=untried
31808fi
31809if test -n "$RSVG_LIBS"; then
31810 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31811 elif test -n "$PKG_CONFIG"; then
31812 if test -n "$PKG_CONFIG" && \
31813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31814 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31815 ac_status=$?
31816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31817 test $ac_status = 0; }; then
31818 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31819else
31820 pkg_failed=yes
31821fi
31822 else
31823 pkg_failed=untried
31824fi
31825
31826
31827
31828if test $pkg_failed = yes; then
31829
31830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31831 _pkg_short_errors_supported=yes
31832else
31833 _pkg_short_errors_supported=no
31834fi
31835 if test $_pkg_short_errors_supported = yes; then
31836 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31837 else
31838 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31839 fi
31840 # Put the nasty error message in config.log where it belongs
31841 echo "$RSVG_PKG_ERRORS" >&5
31842
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31844$as_echo "no" >&6; }
31845 have_rsvg=no
31846elif test $pkg_failed = untried; then
31847 have_rsvg=no
31848else
31849 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31850 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31852$as_echo "yes" >&6; }
31853 have_rsvg=yes
31854fi
cristyad38abe2012-12-23 23:03:21 +000031855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31856$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031857
31858pkg_failed=no
31859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31860$as_echo_n "checking for CAIRO_SVG... " >&6; }
31861
31862if test -n "$CAIRO_SVG_CFLAGS"; then
31863 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31864 elif test -n "$PKG_CONFIG"; then
31865 if test -n "$PKG_CONFIG" && \
31866 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31867 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31868 ac_status=$?
31869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31870 test $ac_status = 0; }; then
31871 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31872else
31873 pkg_failed=yes
31874fi
31875 else
31876 pkg_failed=untried
31877fi
31878if test -n "$CAIRO_SVG_LIBS"; then
31879 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31880 elif test -n "$PKG_CONFIG"; then
31881 if test -n "$PKG_CONFIG" && \
31882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31883 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31884 ac_status=$?
31885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31886 test $ac_status = 0; }; then
31887 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31888else
31889 pkg_failed=yes
31890fi
31891 else
31892 pkg_failed=untried
31893fi
31894
31895
31896
31897if test $pkg_failed = yes; then
31898
31899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31900 _pkg_short_errors_supported=yes
31901else
31902 _pkg_short_errors_supported=no
31903fi
31904 if test $_pkg_short_errors_supported = yes; then
31905 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31906 else
31907 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31908 fi
31909 # Put the nasty error message in config.log where it belongs
31910 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31911
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31913$as_echo "no" >&6; }
31914 have_cairo=no
31915elif test $pkg_failed = untried; then
31916 have_cairo=no
31917else
31918 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31919 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31921$as_echo "yes" >&6; }
31922 have_cairo=yes
31923fi
cristyad38abe2012-12-23 23:03:21 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31925$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031926fi
31927
31928if test "$have_rsvg" = 'yes'; then
31929
cristy8b350f62009-11-15 23:12:43 +000031930$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031931
cristyc6722092012-10-14 00:19:31 +000031932 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031933 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31934 fi
31935fi
31936
31937if test "$have_cairo" = 'yes'; then
31938
cristy8b350f62009-11-15 23:12:43 +000031939$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031940
cristyc6722092012-10-14 00:19:31 +000031941 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031942 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31943 fi
31944fi
31945
cristy73bd4a52010-10-05 11:24:23 +000031946 if test "$have_rsvg" = 'yes'; then
31947 RSVG_DELEGATE_TRUE=
31948 RSVG_DELEGATE_FALSE='#'
31949else
31950 RSVG_DELEGATE_TRUE='#'
31951 RSVG_DELEGATE_FALSE=
31952fi
31953
31954 if test "$have_cairo" = 'yes'; then
31955 CAIRO_DELEGATE_TRUE=
31956 CAIRO_DELEGATE_FALSE='#'
31957else
31958 CAIRO_DELEGATE_TRUE='#'
31959 CAIRO_DELEGATE_FALSE=
31960fi
31961
cristy3ed852e2009-09-05 21:47:34 +000031962
31963
31964
31965
31966#
31967# Check for TIFF delegate library.
31968#
31969
31970# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031971if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031972 withval=$with_tiff; with_tiff=$withval
31973else
31974 with_tiff='yes'
31975fi
31976
31977
31978if test "$with_tiff" != 'yes'; then
31979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31980fi
31981
31982have_tiff='no'
31983TIFF_LIBS=''
31984if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31986$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31990$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031991 failed=0
31992 passed=0
cristy8b350f62009-11-15 23:12:43 +000031993 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031994if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031995 passed=`expr $passed + 1`
31996else
31997 failed=`expr $failed + 1`
31998fi
31999
32000
cristy8b350f62009-11-15 23:12:43 +000032001 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032002if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032003 passed=`expr $passed + 1`
32004else
32005 failed=`expr $failed + 1`
32006fi
32007
32008
cristy8b350f62009-11-15 23:12:43 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032010$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032011if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032012 $as_echo_n "(cached) " >&6
32013else
32014 ac_check_lib_save_LIBS=$LIBS
32015LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032017/* end confdefs.h. */
32018
32019/* Override any GCC internal prototype to avoid an error.
32020 Use char because int might match the return type of a GCC
32021 builtin and then its argument prototype would still apply. */
32022#ifdef __cplusplus
32023extern "C"
32024#endif
32025char TIFFOpen ();
32026int
32027main ()
32028{
32029return TIFFOpen ();
32030 ;
32031 return 0;
32032}
32033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032035 ac_cv_lib_tiff_TIFFOpen=yes
32036else
cristy8b350f62009-11-15 23:12:43 +000032037 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032038fi
cristy8b350f62009-11-15 23:12:43 +000032039rm -f core conftest.err conftest.$ac_objext \
32040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032041LIBS=$ac_check_lib_save_LIBS
32042fi
cristy8b350f62009-11-15 23:12:43 +000032043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032044$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032045if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032046 passed=`expr $passed + 1`
32047else
32048 failed=`expr $failed + 1`
32049fi
32050
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032053if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032054 $as_echo_n "(cached) " >&6
32055else
32056 ac_check_lib_save_LIBS=$LIBS
32057LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032059/* end confdefs.h. */
32060
32061/* Override any GCC internal prototype to avoid an error.
32062 Use char because int might match the return type of a GCC
32063 builtin and then its argument prototype would still apply. */
32064#ifdef __cplusplus
32065extern "C"
32066#endif
32067char TIFFClientOpen ();
32068int
32069main ()
32070{
32071return TIFFClientOpen ();
32072 ;
32073 return 0;
32074}
32075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032076if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032077 ac_cv_lib_tiff_TIFFClientOpen=yes
32078else
cristy8b350f62009-11-15 23:12:43 +000032079 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032080fi
cristy8b350f62009-11-15 23:12:43 +000032081rm -f core conftest.err conftest.$ac_objext \
32082 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032083LIBS=$ac_check_lib_save_LIBS
32084fi
cristy8b350f62009-11-15 23:12:43 +000032085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032086$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032087if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032088 passed=`expr $passed + 1`
32089else
32090 failed=`expr $failed + 1`
32091fi
32092
cristy8b350f62009-11-15 23:12:43 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032095if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032096 $as_echo_n "(cached) " >&6
32097else
32098 ac_check_lib_save_LIBS=$LIBS
32099LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032101/* end confdefs.h. */
32102
32103/* Override any GCC internal prototype to avoid an error.
32104 Use char because int might match the return type of a GCC
32105 builtin and then its argument prototype would still apply. */
32106#ifdef __cplusplus
32107extern "C"
32108#endif
32109char TIFFIsByteSwapped ();
32110int
32111main ()
32112{
32113return TIFFIsByteSwapped ();
32114 ;
32115 return 0;
32116}
32117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032118if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032119 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32120else
cristy8b350f62009-11-15 23:12:43 +000032121 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032122fi
cristy8b350f62009-11-15 23:12:43 +000032123rm -f core conftest.err conftest.$ac_objext \
32124 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032125LIBS=$ac_check_lib_save_LIBS
32126fi
cristy8b350f62009-11-15 23:12:43 +000032127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032129if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032130 passed=`expr $passed + 1`
32131else
32132 failed=`expr $failed + 1`
32133fi
32134
cristy8b350f62009-11-15 23:12:43 +000032135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032137if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032138 $as_echo_n "(cached) " >&6
32139else
32140 ac_check_lib_save_LIBS=$LIBS
32141LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032143/* end confdefs.h. */
32144
32145/* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32148#ifdef __cplusplus
32149extern "C"
32150#endif
32151char TIFFReadRGBATile ();
32152int
32153main ()
32154{
32155return TIFFReadRGBATile ();
32156 ;
32157 return 0;
32158}
32159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032161 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32162else
cristy8b350f62009-11-15 23:12:43 +000032163 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032164fi
cristy8b350f62009-11-15 23:12:43 +000032165rm -f core conftest.err conftest.$ac_objext \
32166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032167LIBS=$ac_check_lib_save_LIBS
32168fi
cristy8b350f62009-11-15 23:12:43 +000032169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032171if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032172 passed=`expr $passed + 1`
32173else
32174 failed=`expr $failed + 1`
32175fi
32176
cristy8b350f62009-11-15 23:12:43 +000032177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032179if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032180 $as_echo_n "(cached) " >&6
32181else
32182 ac_check_lib_save_LIBS=$LIBS
32183LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032185/* end confdefs.h. */
32186
32187/* Override any GCC internal prototype to avoid an error.
32188 Use char because int might match the return type of a GCC
32189 builtin and then its argument prototype would still apply. */
32190#ifdef __cplusplus
32191extern "C"
32192#endif
32193char TIFFReadRGBAStrip ();
32194int
32195main ()
32196{
32197return TIFFReadRGBAStrip ();
32198 ;
32199 return 0;
32200}
32201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032203 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32204else
cristy8b350f62009-11-15 23:12:43 +000032205 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032206fi
cristy8b350f62009-11-15 23:12:43 +000032207rm -f core conftest.err conftest.$ac_objext \
32208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032209LIBS=$ac_check_lib_save_LIBS
32210fi
cristy8b350f62009-11-15 23:12:43 +000032211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032213if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032214 passed=`expr $passed + 1`
32215else
32216 failed=`expr $failed + 1`
32217fi
32218
cristy8b350f62009-11-15 23:12:43 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220$as_echo_n "checking if TIFF package is complete... " >&6; }
32221 if test $passed -gt 0; then
32222 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32224$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032225 have_tiff='no (failed tests)'
32226 else
32227 TIFF_LIBS='-ltiff'
32228 LIBS="$TIFF_LIBS $LIBS"
32229
cristy8b350f62009-11-15 23:12:43 +000032230$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032231
cristyad38abe2012-12-23 23:03:21 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32233$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032234 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032235 for ac_header in tiffconf.h
32236do :
32237 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032238if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032239 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032240#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032241_ACEOF
32242
32243fi
32244
32245done
32246
cristy8b350f62009-11-15 23:12:43 +000032247 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032248 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32249 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32250 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032251do :
32252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032254if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 cat >>confdefs.h <<_ACEOF
32256#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32257_ACEOF
32258
32259fi
32260done
32261
32262 fi
32263 else
cristyad38abe2012-12-23 23:03:21 +000032264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32265$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032266 fi
32267fi
cristy73bd4a52010-10-05 11:24:23 +000032268 if test "$have_tiff" = 'yes'; then
32269 TIFF_DELEGATE_TRUE=
32270 TIFF_DELEGATE_FALSE='#'
32271else
32272 TIFF_DELEGATE_TRUE='#'
32273 TIFF_DELEGATE_FALSE=
32274fi
32275
cristy3ed852e2009-09-05 21:47:34 +000032276
32277
32278
32279#
cristyb1860752011-03-14 00:27:46 +000032280# Check for WEBP delegate library.
32281#
32282
32283# Check whether --with-webp was given.
32284if test "${with_webp+set}" = set; then :
32285 withval=$with_webp; with_webp=$withval
32286else
32287 with_webp='yes'
32288fi
32289
32290
32291if test "$with_webp" != 'yes'; then
32292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32293fi
32294
32295have_webp='no'
32296WEBP_LIBS=''
32297if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32299$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32301$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32303$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032304 failed=0
32305 passed=0
32306 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32307if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32308 passed=`expr $passed + 1`
32309else
32310 failed=`expr $failed + 1`
32311fi
32312
32313
cristy6d670312013-03-22 23:23:01 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32315$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32316if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032317 $as_echo_n "(cached) " >&6
32318else
32319 ac_check_lib_save_LIBS=$LIBS
32320LIBS="-lwebp $LIBS"
32321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32322/* end confdefs.h. */
32323
32324/* Override any GCC internal prototype to avoid an error.
32325 Use char because int might match the return type of a GCC
32326 builtin and then its argument prototype would still apply. */
32327#ifdef __cplusplus
32328extern "C"
32329#endif
cristy6d670312013-03-22 23:23:01 +000032330char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032331int
32332main ()
32333{
cristy6d670312013-03-22 23:23:01 +000032334return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032335 ;
32336 return 0;
32337}
32338_ACEOF
32339if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032340 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032341else
cristy6d670312013-03-22 23:23:01 +000032342 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032343fi
32344rm -f core conftest.err conftest.$ac_objext \
32345 conftest$ac_exeext conftest.$ac_ext
32346LIBS=$ac_check_lib_save_LIBS
32347fi
cristy6d670312013-03-22 23:23:01 +000032348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32349$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32350if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032351 passed=`expr $passed + 1`
32352else
32353 failed=`expr $failed + 1`
32354fi
32355
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32357$as_echo_n "checking if WEBP package is complete... " >&6; }
32358 if test $passed -gt 0; then
32359 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32361$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032362 have_webp='no (failed tests)'
32363 else
32364 WEBP_LIBS='-lwebp'
32365 LIBS="$WEBP_LIBS $LIBS"
32366
32367$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32368
cristyad38abe2012-12-23 23:03:21 +000032369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32370$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032371 have_webp='yes'
32372 fi
32373 else
cristyad38abe2012-12-23 23:03:21 +000032374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032376 fi
32377fi
32378 if test "$have_webp" = 'yes'; then
32379 WEBP_DELEGATE_TRUE=
32380 WEBP_DELEGATE_FALSE='#'
32381else
32382 WEBP_DELEGATE_TRUE='#'
32383 WEBP_DELEGATE_FALSE=
32384fi
32385
32386
32387
32388
32389#
cristy3ed852e2009-09-05 21:47:34 +000032390# Set Windows font directory.
32391#
32392
32393# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032394if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032395 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32396else
cristy5a3dc992014-12-05 19:50:04 +000032397 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032398fi
32399
cristy5a3dc992014-12-05 19:50:04 +000032400
32401if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32403fi
32404
32405
32406#
32407# Check for WMF delegate library.
32408#
32409
32410# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032411if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032412 withval=$with_wmf; with_wmf=$withval
32413else
cristyfc3d0222012-02-07 15:05:57 +000032414 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032415fi
32416
32417
32418if test "$with_wmf" != 'yes'; then
32419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32420fi
32421
32422have_wmf='no'
32423WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032424WMF_LIBS_DEPS=''
32425OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032426if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32428$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032430$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32432$as_echo "" >&6; }
32433 have_libwmf='no'
32434 have_libwmflite='no'
32435 have_libwmf_ipa_h='no'
32436
32437 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32438"
32439if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32440 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032441fi
32442
32443
cristy03f7cf92011-12-15 01:40:41 +000032444 if test "$have_libwmf_ipa_h" = 'yes'; then
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32446$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32447if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032448 $as_echo_n "(cached) " >&6
32449else
32450 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032451LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032453/* end confdefs.h. */
32454
32455/* Override any GCC internal prototype to avoid an error.
32456 Use char because int might match the return type of a GCC
32457 builtin and then its argument prototype would still apply. */
32458#ifdef __cplusplus
32459extern "C"
32460#endif
cristy03f7cf92011-12-15 01:40:41 +000032461char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032462int
32463main ()
32464{
cristy03f7cf92011-12-15 01:40:41 +000032465return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032466 ;
32467 return 0;
32468}
32469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032470if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032471 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032472else
cristy03f7cf92011-12-15 01:40:41 +000032473 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032474fi
cristy8b350f62009-11-15 23:12:43 +000032475rm -f core conftest.err conftest.$ac_objext \
32476 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032477LIBS=$ac_check_lib_save_LIBS
32478fi
cristy03f7cf92011-12-15 01:40:41 +000032479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32480$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32481if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32482 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032483fi
32484
cristy03f7cf92011-12-15 01:40:41 +000032485 if test "$have_libwmflite" = 'yes'; then
32486
32487$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32488
32489 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032490 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032491 have_wmf='yes'
32492 else
32493 WMF_LIBS_DEPS=''
32494 WMF_CONFIG_LIBS=`libwmf-config --libs`
32495 for lib in xml2 expat freetype jpeg png z; do
32496 testlib="-l${lib}"
32497 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32498 done
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32500$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32501if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32502 $as_echo_n "(cached) " >&6
32503else
32504 ac_check_lib_save_LIBS=$LIBS
32505LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32507/* end confdefs.h. */
32508
32509/* Override any GCC internal prototype to avoid an error.
32510 Use char because int might match the return type of a GCC
32511 builtin and then its argument prototype would still apply. */
32512#ifdef __cplusplus
32513extern "C"
32514#endif
32515char wmf_api_create ();
32516int
32517main ()
32518{
32519return wmf_api_create ();
32520 ;
32521 return 0;
32522}
32523_ACEOF
32524if ac_fn_c_try_link "$LINENO"; then :
32525 ac_cv_lib_wmf_wmf_api_create=yes
32526else
32527 ac_cv_lib_wmf_wmf_api_create=no
32528fi
32529rm -f core conftest.err conftest.$ac_objext \
32530 conftest$ac_exeext conftest.$ac_ext
32531LIBS=$ac_check_lib_save_LIBS
32532fi
32533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32534$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32535if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32536 have_libwmf='yes'
32537fi
32538
32539 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032540
cristy8b350f62009-11-15 23:12:43 +000032541$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032542
cristy03f7cf92011-12-15 01:40:41 +000032543 WMF_LIBS='-lwmf'
32544 LIBS="$WMF_LIBS $LIBS"
32545 have_wmf='yes'
32546 else
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32548$as_echo "no -- some components failed test" >&6; }
32549 have_wmf='no (failed tests)'
32550 have_wmflite='no (failed tests)'
32551 LIBS="$OLIBS"
32552 WMF_LIBS=''
32553 fi
glennrp33e524b2011-08-24 17:41:57 +000032554 fi
cristy03f7cf92011-12-15 01:40:41 +000032555 fi
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32557$as_echo_n "checking if WMF package is complete... " >&6; }
32558 if test "$have_wmf" = 'yes'; then
32559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32560$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032561 else
cristy03f7cf92011-12-15 01:40:41 +000032562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32563$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032564 fi
cristy3ed852e2009-09-05 21:47:34 +000032565fi
cristy73bd4a52010-10-05 11:24:23 +000032566 if test "$have_wmf" = 'yes'; then
32567 WMF_DELEGATE_TRUE=
32568 WMF_DELEGATE_FALSE='#'
32569else
32570 WMF_DELEGATE_TRUE='#'
32571 WMF_DELEGATE_FALSE=
32572fi
32573
cristy3ed852e2009-09-05 21:47:34 +000032574
32575
32576
cristy81beccd2011-10-03 18:17:24 +000032577
32578
cristy3ed852e2009-09-05 21:47:34 +000032579#
32580# Check for XML delegate library.
32581#
32582
32583# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032584if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032585 withval=$with_xml; with_xml=$withval
32586else
cristyfc3d0222012-02-07 15:05:57 +000032587 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032588fi
32589
32590
cristy81beccd2011-10-03 18:17:24 +000032591if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32593fi
32594
cristy81beccd2011-10-03 18:17:24 +000032595have_xml='no'
32596XML_LIBS=''
32597if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32599$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32601$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32603$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032604 PERSIST_LDFLAGS=$LDFLAGS
32605 PERSIST_CPPFLAGS=$CPPFLAGS
32606 xml2_config=''
32607 # Extract the first word of "xml2-config", so it can be a program name with args.
32608set dummy xml2-config; ac_word=$2
32609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32610$as_echo_n "checking for $ac_word... " >&6; }
32611if ${ac_cv_path_xml2_config+:} false; then :
32612 $as_echo_n "(cached) " >&6
32613else
32614 case $xml2_config in
32615 [\\/]* | ?:[\\/]*)
32616 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32617 ;;
32618 *)
32619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32620for as_dir in $PATH
32621do
32622 IFS=$as_save_IFS
32623 test -z "$as_dir" && as_dir=.
32624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032626 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32628 break 2
32629 fi
32630done
32631 done
32632IFS=$as_save_IFS
32633
32634 ;;
32635esac
32636fi
32637xml2_config=$ac_cv_path_xml2_config
32638if test -n "$xml2_config"; then
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32640$as_echo "$xml2_config" >&6; }
32641else
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32643$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032644fi
32645
cristy81beccd2011-10-03 18:17:24 +000032646 if test -n "$xml2_config"; then
32647 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32648 # the shared library installed under /usr/lib, whereas the package
32649 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032650 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032651 if test -d "${xml2_prefix}/include/libxml2"; then
32652 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32653 fi
32654 if test "${xml2_prefix}" != '/usr'; then
32655 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32656 fi
32657 fi
32658 failed=0
32659 passed=0
32660 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32661if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32662 passed=`expr $passed + 1`
32663else
32664 failed=`expr $failed + 1`
32665fi
32666
32667
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32669$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32670if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32671 $as_echo_n "(cached) " >&6
32672else
32673 ac_check_lib_save_LIBS=$LIBS
32674LIBS="-lxml2 $LIBS"
32675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32676/* end confdefs.h. */
32677
32678/* Override any GCC internal prototype to avoid an error.
32679 Use char because int might match the return type of a GCC
32680 builtin and then its argument prototype would still apply. */
32681#ifdef __cplusplus
32682extern "C"
32683#endif
32684char xmlSAXVersion ();
32685int
32686main ()
32687{
32688return xmlSAXVersion ();
32689 ;
32690 return 0;
32691}
32692_ACEOF
32693if ac_fn_c_try_link "$LINENO"; then :
32694 ac_cv_lib_xml2_xmlSAXVersion=yes
32695else
32696 ac_cv_lib_xml2_xmlSAXVersion=no
32697fi
32698rm -f core conftest.err conftest.$ac_objext \
32699 conftest$ac_exeext conftest.$ac_ext
32700LIBS=$ac_check_lib_save_LIBS
32701fi
32702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32703$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32704if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32705 passed=`expr $passed + 1`
32706else
32707 failed=`expr $failed + 1`
32708fi
32709
32710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32711$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32712if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32713 $as_echo_n "(cached) " >&6
32714else
32715 ac_check_lib_save_LIBS=$LIBS
32716LIBS="-lxml2 $LIBS"
32717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32718/* end confdefs.h. */
32719
32720/* Override any GCC internal prototype to avoid an error.
32721 Use char because int might match the return type of a GCC
32722 builtin and then its argument prototype would still apply. */
32723#ifdef __cplusplus
32724extern "C"
32725#endif
32726char xmlParseChunk ();
32727int
32728main ()
32729{
32730return xmlParseChunk ();
32731 ;
32732 return 0;
32733}
32734_ACEOF
32735if ac_fn_c_try_link "$LINENO"; then :
32736 ac_cv_lib_xml2_xmlParseChunk=yes
32737else
32738 ac_cv_lib_xml2_xmlParseChunk=no
32739fi
32740rm -f core conftest.err conftest.$ac_objext \
32741 conftest$ac_exeext conftest.$ac_ext
32742LIBS=$ac_check_lib_save_LIBS
32743fi
32744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32745$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32746if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32747 passed=`expr $passed + 1`
32748else
32749 failed=`expr $failed + 1`
32750fi
32751
32752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32753$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32754if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32755 $as_echo_n "(cached) " >&6
32756else
32757 ac_check_lib_save_LIBS=$LIBS
32758LIBS="-lxml2 $LIBS"
32759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32760/* end confdefs.h. */
32761
32762/* Override any GCC internal prototype to avoid an error.
32763 Use char because int might match the return type of a GCC
32764 builtin and then its argument prototype would still apply. */
32765#ifdef __cplusplus
32766extern "C"
32767#endif
32768char xmlCreatePushParserCtxt ();
32769int
32770main ()
32771{
32772return xmlCreatePushParserCtxt ();
32773 ;
32774 return 0;
32775}
32776_ACEOF
32777if ac_fn_c_try_link "$LINENO"; then :
32778 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32779else
32780 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32781fi
32782rm -f core conftest.err conftest.$ac_objext \
32783 conftest$ac_exeext conftest.$ac_ext
32784LIBS=$ac_check_lib_save_LIBS
32785fi
32786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32787$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32788if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32789 passed=`expr $passed + 1`
32790else
32791 failed=`expr $failed + 1`
32792fi
32793
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32795$as_echo_n "checking if XML package is complete... " >&6; }
32796 if test $passed -gt 0; then
32797 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32799$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032800 have_xml='no (failed tests)'
32801 LDFLAGS="$PERSIST_LDFLAGS"
32802 CPPFLAGS="$PERSIST_CPPFLAGS"
32803 else
32804 XML_LIBS='-lxml2'
32805 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032806
cristy8b350f62009-11-15 23:12:43 +000032807$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032808
cristyad38abe2012-12-23 23:03:21 +000032809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32810$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032811 have_xml='yes'
32812 fi
32813 else
cristyad38abe2012-12-23 23:03:21 +000032814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32815$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032816 fi
32817fi
cristy73bd4a52010-10-05 11:24:23 +000032818 if test "$have_xml" = 'yes'; then
32819 XML_DELEGATE_TRUE=
32820 XML_DELEGATE_FALSE='#'
32821else
32822 XML_DELEGATE_TRUE='#'
32823 XML_DELEGATE_FALSE=
32824fi
32825
cristy3ed852e2009-09-05 21:47:34 +000032826
32827
32828
32829# Substitute compiler name to build/link PerlMagick
32830#
32831
32832
32833#
32834# Configure install Paths
32835#
cristy7def36a2011-10-28 19:04:41 +000032836
cristy2a11bef2011-10-28 18:33:11 +000032837# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032838INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032839INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32840DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032841case "${build_os}" in
32842 mingw* )
32843 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32844 ;;
32845esac
32846
32847cat >>confdefs.h <<_ACEOF
32848#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32849_ACEOF
32850
32851
cristy3ed852e2009-09-05 21:47:34 +000032852
cristye52f12f2012-12-31 15:32:36 +000032853# Path to ImageMagick header files (arch part)
32854INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32855DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32856case "${build_os}" in
32857 mingw* )
32858 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32859 ;;
32860esac
32861
32862cat >>confdefs.h <<_ACEOF
32863#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32864_ACEOF
32865
32866
32867
cristy3ed852e2009-09-05 21:47:34 +000032868# Subdirectory under lib to place ImageMagick lib files
32869LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32870
32871cat >>confdefs.h <<_ACEOF
32872#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32873_ACEOF
32874
32875
32876# Path to ImageMagick bin directory
32877EXECUTABLE_PATH="${BIN_DIR}"
32878DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32879case "${build_os}" in
32880 mingw* )
32881 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32882 ;;
32883esac
32884
32885cat >>confdefs.h <<_ACEOF
32886#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32887_ACEOF
32888
32889
32890
32891# Path to ImageMagick lib
32892LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32893DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32894case "${build_os}" in
32895 mingw* )
32896 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32897 ;;
32898esac
32899
32900cat >>confdefs.h <<_ACEOF
32901#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32902_ACEOF
32903
32904
32905
cristy3ed852e2009-09-05 21:47:34 +000032906#
cristy8d0ff762013-03-10 20:33:28 +000032907# path to local binaries
32908if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32909 LIB_BIN_BASEDIRNAME="bin"
32910fi
32911
32912cat >>confdefs.h <<_ACEOF
32913#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32914_ACEOF
32915
32916
32917
32918if test "x$LIB_BIN_DIR" = "x"; then
32919 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32920fi
32921
32922
32923LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32924
32925LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32926
32927
32928#
cristy01ff9f32012-12-01 18:15:29 +000032929# path to modules lib
32930if test "x$MODULES_BASEDIRNAME" = "x"; then
32931 MODULES_BASEDIRNAME="modules"
32932fi
cristy3ed852e2009-09-05 21:47:34 +000032933
32934cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032935#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032936_ACEOF
32937
cristy01ff9f32012-12-01 18:15:29 +000032938
32939
32940if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032941 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32942else
cristy3ed852e2009-09-05 21:47:34 +000032943
32944cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032945#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032946_ACEOF
32947
cristycf4a3c22012-12-02 21:47:25 +000032948fi
cristy01ff9f32012-12-01 18:15:29 +000032949
32950
cristy371d4812012-12-01 19:48:10 +000032951MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032952
32953MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32954
32955
32956#
32957# path to coders lib
32958if test "x$CODER_DIRNAME" = "x"; then
32959 CODER_DIRNAME="coders"
32960fi
32961
32962cat >>confdefs.h <<_ACEOF
32963#define CODER_DIRNAME "$CODER_DIRNAME"
32964_ACEOF
32965
32966
32967
cristy371d4812012-12-01 19:48:10 +000032968CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032969CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032970
32971
32972#
32973# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032974#
32975# path to coders lib
32976if test "x$FILTER_DIRNAME" = "x"; then
32977 FILTER_DIRNAME="filters"
32978fi
cristy3ed852e2009-09-05 21:47:34 +000032979
32980cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032981#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032982_ACEOF
32983
cristy3ed852e2009-09-05 21:47:34 +000032984
cristy3ed852e2009-09-05 21:47:34 +000032985
cristy371d4812012-12-01 19:48:10 +000032986FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032987FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032988
32989
32990#
32991# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032992DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032993DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32994DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032995case "${build_os}" in
32996 mingw* )
32997 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32998 ;;
32999esac
33000
33001cat >>confdefs.h <<_ACEOF
33002#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33003_ACEOF
33004
33005
33006
cristydd17feb2014-03-05 02:06:32 +000033007#
33008# Enable/Disable documentation
33009# Check whether --enable-docs was given.
33010if test "${enable_docs+set}" = set; then :
33011 enableval=$enable_docs; wantdocs=$enableval
33012else
cristy02272312014-03-07 00:55:25 +000033013 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033014fi
33015
cristy02272312014-03-07 00:55:25 +000033016 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033017 INSTALL_DOC_TRUE=
33018 INSTALL_DOC_FALSE='#'
33019else
33020 INSTALL_DOC_TRUE='#'
33021 INSTALL_DOC_FALSE=
33022fi
33023
33024
cristy2a11bef2011-10-28 18:33:11 +000033025# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033026CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033027
33028cat >>confdefs.h <<_ACEOF
33029#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33030_ACEOF
33031
cristy7def36a2011-10-28 19:04:41 +000033032CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033033DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33034case "${build_os}" in
33035 mingw* )
33036 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33037 ;;
33038esac
33039
33040cat >>confdefs.h <<_ACEOF
33041#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33042_ACEOF
33043
33044
33045
cristy2a11bef2011-10-28 18:33:11 +000033046# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033047SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033048
33049cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033050#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033051_ACEOF
33052
cristy670aa3c2011-11-03 00:54:00 +000033053SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033054DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033055case "${build_os}" in
33056 mingw* )
cristy4f820712011-04-01 12:35:43 +000033057 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033058 ;;
33059esac
33060
33061cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033062#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033063_ACEOF
33064
33065
33066
cristy54378032012-12-04 15:52:20 +000033067#
33068# Subdirectory to place architecture-dependent configuration files.
33069if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33070 SHAREARCH_BASEDIRNAME="config"
33071fi
cristy670aa3c2011-11-03 00:54:00 +000033072
33073cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033074#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033075_ACEOF
33076
cristy54378032012-12-04 15:52:20 +000033077
33078
33079if test "x$SHAREARCH_DIRNAME" = "x"; then
33080 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33081else
cristy670aa3c2011-11-03 00:54:00 +000033082
33083cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033084#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033085_ACEOF
33086
cristy54378032012-12-04 15:52:20 +000033087fi
33088
33089
33090SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33091
33092SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033093
33094
cristy3ed852e2009-09-05 21:47:34 +000033095#
33096# program_transform_name is formed for use in a Makefile, so create a
33097# modified version for use in a shell script.
33098configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33099
33100# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33102$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33106$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033107AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033108BPGDecodeDelegateDefault='bpgdec'
33109BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033110BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033111BZIPDelegateDefault='bzip2'
33112BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033113CatDelegateDefault='cat'
33114DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033115DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033116GVCDecodeDelegateDefault='dot'
33117DVIDecodeDelegateDefault='dvips'
33118EchoDelegateDefault='echo'
33119EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033120ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33121DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33122MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33123GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033124HPGLDecodeDelegateDefault='hp2xx'
33125HTMLDecodeDelegateDefault='html2ps'
33126ILBMDecodeDelegateDefault='ilbmtoppm'
33127ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033128JXRDecodeDelegateDefault='JxrDecApp'
33129JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033130LPDelegateDefault='lp'
33131LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033132LaunchDelegateDefault='gimp'
33133MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033134MPEGDecodeDelegateDefault='avconv'
33135MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033136MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033137MVDelegateDefault='mv'
33138PCLDelegateDefault='pcl6'
33139PGPDecodeDelegateDefault='pgpv'
33140POVDelegateDefault='povray'
33141if test "$native_win32_build" = 'yes'; then
33142 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033143elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033144 PSDelegateDefault='gsc'
33145else
33146 PSDelegateDefault='gs'
33147fi
33148RLEEncodeDelegateDefault='rawtorle'
33149RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033150RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033151SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033152SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033153TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033154UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033155WebPDecodeDelegateDefault='dwebp'
33156WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033157WMFDecodeDelegateDefault='wmf2eps'
33158WWWDecodeDelegateDefault='curl'
33159XPSDelegateDefault='gxps'
33160ZipDelegateDefault='gzip'
33161
33162# Search for delegates
33163# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33164set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033166$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033167if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033168 $as_echo_n "(cached) " >&6
33169else
33170 case $AutotraceDecodeDelegate in
33171 [\\/]* | ?:[\\/]*)
33172 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33173 ;;
33174 *)
33175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33176for as_dir in $PATH
33177do
33178 IFS=$as_save_IFS
33179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033180 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033182 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033184 break 2
33185 fi
33186done
cristy8b350f62009-11-15 23:12:43 +000033187 done
cristy3ed852e2009-09-05 21:47:34 +000033188IFS=$as_save_IFS
33189
33190 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33191 ;;
33192esac
33193fi
33194AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33195if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "$AutotraceDecodeDelegate" >&6; }
33198else
cristy8b350f62009-11-15 23:12:43 +000033199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo "no" >&6; }
33201fi
33202
33203
cristy16b412d2014-12-15 11:09:48 +000033204# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33205set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33207$as_echo_n "checking for $ac_word... " >&6; }
33208if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33209 $as_echo_n "(cached) " >&6
33210else
33211 case $BGPDecodeDelegate in
33212 [\\/]* | ?:[\\/]*)
33213 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33214 ;;
33215 *)
33216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33217for as_dir in $PATH
33218do
33219 IFS=$as_save_IFS
33220 test -z "$as_dir" && as_dir=.
33221 for ac_exec_ext in '' $ac_executable_extensions; do
33222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33223 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33225 break 2
33226 fi
33227done
33228 done
33229IFS=$as_save_IFS
33230
33231 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33232 ;;
33233esac
33234fi
33235BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33236if test -n "$BGPDecodeDelegate"; then
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33238$as_echo "$BGPDecodeDelegate" >&6; }
33239else
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33241$as_echo "no" >&6; }
33242fi
33243
33244
33245# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33246set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33248$as_echo_n "checking for $ac_word... " >&6; }
33249if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33250 $as_echo_n "(cached) " >&6
33251else
33252 case $BGPEncodeDelegate in
33253 [\\/]* | ?:[\\/]*)
33254 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33255 ;;
33256 *)
33257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33258for as_dir in $PATH
33259do
33260 IFS=$as_save_IFS
33261 test -z "$as_dir" && as_dir=.
33262 for ac_exec_ext in '' $ac_executable_extensions; do
33263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33264 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33266 break 2
33267 fi
33268done
33269 done
33270IFS=$as_save_IFS
33271
33272 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33273 ;;
33274esac
33275fi
33276BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33277if test -n "$BGPEncodeDelegate"; then
33278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33279$as_echo "$BGPEncodeDelegate" >&6; }
33280else
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33282$as_echo "no" >&6; }
33283fi
33284
33285
cristy3ed852e2009-09-05 21:47:34 +000033286# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33287set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033290if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033291 $as_echo_n "(cached) " >&6
33292else
33293 case $BlenderDecodeDelegate in
33294 [\\/]* | ?:[\\/]*)
33295 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33296 ;;
33297 *)
33298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33299for as_dir in $PATH
33300do
33301 IFS=$as_save_IFS
33302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033305 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033307 break 2
33308 fi
33309done
cristy8b350f62009-11-15 23:12:43 +000033310 done
cristy3ed852e2009-09-05 21:47:34 +000033311IFS=$as_save_IFS
33312
33313 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33314 ;;
33315esac
33316fi
33317BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33318if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "$BlenderDecodeDelegate" >&6; }
33321else
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "no" >&6; }
33324fi
33325
33326
33327# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33328set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033331if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033332 $as_echo_n "(cached) " >&6
33333else
33334 case $BZIPDelegate in
33335 [\\/]* | ?:[\\/]*)
33336 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33337 ;;
33338 *)
33339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33340for as_dir in $PATH
33341do
33342 IFS=$as_save_IFS
33343 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033346 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033348 break 2
33349 fi
33350done
cristy8b350f62009-11-15 23:12:43 +000033351 done
cristy3ed852e2009-09-05 21:47:34 +000033352IFS=$as_save_IFS
33353
33354 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33355 ;;
33356esac
33357fi
33358BZIPDelegate=$ac_cv_path_BZIPDelegate
33359if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "$BZIPDelegate" >&6; }
33362else
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "no" >&6; }
33365fi
33366
33367
cristyc59f0e72012-08-27 12:59:33 +000033368for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33369do
33370 # Extract the first word of "$ac_prog", so it can be a program name with args.
33371set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033374if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033375 $as_echo_n "(cached) " >&6
33376else
33377 case $BrowseDelegate in
33378 [\\/]* | ?:[\\/]*)
33379 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33380 ;;
33381 *)
33382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33383for as_dir in $PATH
33384do
33385 IFS=$as_save_IFS
33386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033389 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391 break 2
33392 fi
33393done
cristy8b350f62009-11-15 23:12:43 +000033394 done
cristy3ed852e2009-09-05 21:47:34 +000033395IFS=$as_save_IFS
33396
cristy3ed852e2009-09-05 21:47:34 +000033397 ;;
33398esac
33399fi
33400BrowseDelegate=$ac_cv_path_BrowseDelegate
33401if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$BrowseDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
cristyc59f0e72012-08-27 12:59:33 +000033410 test -n "$BrowseDelegate" && break
33411done
33412test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33413
cristy3ed852e2009-09-05 21:47:34 +000033414# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33415set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033418if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033419 $as_echo_n "(cached) " >&6
33420else
33421 case $CatDelegate in
33422 [\\/]* | ?:[\\/]*)
33423 ac_cv_path_CatDelegate="$CatDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000033431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033433 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435 break 2
33436 fi
33437done
cristy8b350f62009-11-15 23:12:43 +000033438 done
cristy3ed852e2009-09-05 21:47:34 +000033439IFS=$as_save_IFS
33440
33441 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33442 ;;
33443esac
33444fi
33445CatDelegate=$ac_cv_path_CatDelegate
33446if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033448$as_echo "$CatDelegate" >&6; }
33449else
cristy8b350f62009-11-15 23:12:43 +000033450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo "no" >&6; }
33452fi
33453
33454
33455# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33456set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033459if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033460 $as_echo_n "(cached) " >&6
33461else
33462 case $DNGDecodeDelegate in
33463 [\\/]* | ?:[\\/]*)
33464 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000033472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033474 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476 break 2
33477 fi
33478done
cristy8b350f62009-11-15 23:12:43 +000033479 done
cristy3ed852e2009-09-05 21:47:34 +000033480IFS=$as_save_IFS
33481
33482 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33483 ;;
33484esac
33485fi
33486DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33487if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489$as_echo "$DNGDecodeDelegate" >&6; }
33490else
cristy8b350f62009-11-15 23:12:43 +000033491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492$as_echo "no" >&6; }
33493fi
33494
33495
cristy66f238e2014-05-16 12:21:48 +000033496# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33497set dummy "$DOCDecodeDelegateDefault"; 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; }
cristy66f238e2014-05-16 12:21:48 +000033500if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033501 $as_echo_n "(cached) " >&6
33502else
cristy66f238e2014-05-16 12:21:48 +000033503 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033504 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033505 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033506 ;;
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
cristy66f238e2014-05-16 12:21:48 +000033515 ac_cv_path_DOCDecodeDelegate="$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
cristy66f238e2014-05-16 12:21:48 +000033523 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033524 ;;
33525esac
33526fi
cristy66f238e2014-05-16 12:21:48 +000033527DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33528if test -n "$DOCDecodeDelegate"; then
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33530$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033531else
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 ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33538set dummy "$DVIDecodeDelegateDefault"; 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_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033542 $as_echo_n "(cached) " >&6
33543else
33544 case $DVIDecodeDelegate in
33545 [\\/]* | ?:[\\/]*)
33546 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # 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_DVIDecodeDelegate="$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_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33565 ;;
33566esac
33567fi
33568DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33569if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033571$as_echo "$DVIDecodeDelegate" >&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 ""$ConvertDelegateDefault"", so it can be a program name with args.
33579set dummy "$ConvertDelegateDefault"; 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_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033583 $as_echo_n "(cached) " >&6
33584else
33585 case $ConvertDelegate in
33586 [\\/]* | ?:[\\/]*)
33587 ac_cv_path_ConvertDelegate="$ConvertDelegate" # 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_ConvertDelegate="$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_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33606 ;;
33607esac
33608fi
33609ConvertDelegate=$ac_cv_path_ConvertDelegate
33610if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033612$as_echo "$ConvertDelegate" >&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 ""$DisplayDelegateDefault"", so it can be a program name with args.
33620set dummy "$DisplayDelegateDefault"; 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_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033624 $as_echo_n "(cached) " >&6
33625else
33626 case $DisplayDelegate in
33627 [\\/]* | ?:[\\/]*)
33628 ac_cv_path_DisplayDelegate="$DisplayDelegate" # 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_DisplayDelegate="$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_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33647 ;;
33648esac
33649fi
33650DisplayDelegate=$ac_cv_path_DisplayDelegate
33651if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653$as_echo "$DisplayDelegate" >&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
cristy66f238e2014-05-16 12:21:48 +000033660# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33661set dummy "$EchoDelegateDefault"; 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; }
cristy66f238e2014-05-16 12:21:48 +000033664if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033665 $as_echo_n "(cached) " >&6
33666else
cristy66f238e2014-05-16 12:21:48 +000033667 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033668 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033669 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033670 ;;
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
cristy66f238e2014-05-16 12:21:48 +000033679 ac_cv_path_EchoDelegate="$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
cristy66f238e2014-05-16 12:21:48 +000033687 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033688 ;;
33689esac
33690fi
cristy66f238e2014-05-16 12:21:48 +000033691EchoDelegate=$ac_cv_path_EchoDelegate
33692if test -n "$EchoDelegate"; then
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33694$as_echo "$EchoDelegate" >&6; }
33695else
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33697$as_echo "no" >&6; }
33698fi
33699
33700
33701# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33702set dummy "$EditorDelegateDefault"; ac_word=$2
33703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33704$as_echo_n "checking for $ac_word... " >&6; }
33705if ${ac_cv_path_EditorDelegate+:} false; then :
33706 $as_echo_n "(cached) " >&6
33707else
33708 case $EditorDelegate in
33709 [\\/]* | ?:[\\/]*)
33710 ac_cv_path_EditorDelegate="$EditorDelegate" # 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=.
33718 for ac_exec_ext in '' $ac_executable_extensions; do
33719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33720 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33722 break 2
33723 fi
33724done
33725 done
33726IFS=$as_save_IFS
33727
33728 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33729 ;;
33730esac
33731fi
33732EditorDelegate=$ac_cv_path_EditorDelegate
33733if test -n "$EditorDelegate"; then
33734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33735$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033736else
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
33742# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33743set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033745$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033746if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033747 $as_echo_n "(cached) " >&6
33748else
33749 case $GnuplotDecodeDelegate in
33750 [\\/]* | ?:[\\/]*)
33751 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000033759 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
cristy3ed852e2009-09-05 21:47:34 +000033761 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033763 break 2
33764 fi
33765done
cristy8b350f62009-11-15 23:12:43 +000033766 done
cristy3ed852e2009-09-05 21:47:34 +000033767IFS=$as_save_IFS
33768
33769 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33770 ;;
33771esac
33772fi
33773GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33774if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776$as_echo "$GnuplotDecodeDelegate" >&6; }
33777else
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "no" >&6; }
33780fi
33781
33782
cristy66f238e2014-05-16 12:21:48 +000033783# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33784set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33786$as_echo_n "checking for $ac_word... " >&6; }
33787if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33788 $as_echo_n "(cached) " >&6
33789else
33790 case $GVCDecodeDelegate in
33791 [\\/]* | ?:[\\/]*)
33792 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # 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=.
33800 for ac_exec_ext in '' $ac_executable_extensions; do
33801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33802 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33804 break 2
33805 fi
33806done
33807 done
33808IFS=$as_save_IFS
33809
33810 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33811 ;;
33812esac
33813fi
33814GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33815if test -n "$GVCDecodeDelegate"; then
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33817$as_echo "$GVCDecodeDelegate" >&6; }
33818else
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33820$as_echo "no" >&6; }
33821fi
33822
33823
cristy3ed852e2009-09-05 21:47:34 +000033824# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33825set dummy "$HPGLDecodeDelegateDefault"; 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_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033829 $as_echo_n "(cached) " >&6
33830else
33831 case $HPGLDecodeDelegate in
33832 [\\/]* | ?:[\\/]*)
33833 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # 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_HPGLDecodeDelegate="$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_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33852 ;;
33853esac
33854fi
33855HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33856if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033858$as_echo "$HPGLDecodeDelegate" >&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 ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33866set dummy "$HTMLDecodeDelegateDefault"; 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_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033870 $as_echo_n "(cached) " >&6
33871else
33872 case $HTMLDecodeDelegate in
33873 [\\/]* | ?:[\\/]*)
33874 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # 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_HTMLDecodeDelegate="$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_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33893 ;;
33894esac
33895fi
33896HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33897if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$HTMLDecodeDelegate" >&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 ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33907set dummy "$ILBMDecodeDelegateDefault"; 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_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033911 $as_echo_n "(cached) " >&6
33912else
33913 case $ILBMDecodeDelegate in
33914 [\\/]* | ?:[\\/]*)
33915 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # 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_ILBMDecodeDelegate="$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_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33934 ;;
33935esac
33936fi
33937ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33938if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo "$ILBMDecodeDelegate" >&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
33947# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33948set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033951if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033952 $as_echo_n "(cached) " >&6
33953else
33954 case $ILBMEncodeDelegate in
33955 [\\/]* | ?:[\\/]*)
33956 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33957 ;;
33958 *)
33959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33960for as_dir in $PATH
33961do
33962 IFS=$as_save_IFS
33963 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033966 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033968 break 2
33969 fi
33970done
cristy8b350f62009-11-15 23:12:43 +000033971 done
cristy3ed852e2009-09-05 21:47:34 +000033972IFS=$as_save_IFS
33973
33974 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33975 ;;
33976esac
33977fi
33978ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33979if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033981$as_echo "$ILBMEncodeDelegate" >&6; }
33982else
cristy8b350f62009-11-15 23:12:43 +000033983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984$as_echo "no" >&6; }
33985fi
33986
33987
cristy71f53d52013-04-27 13:33:59 +000033988# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33989set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33991$as_echo_n "checking for $ac_word... " >&6; }
33992if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33993 $as_echo_n "(cached) " >&6
33994else
33995 case $JXRDecodeDelegate in
33996 [\\/]* | ?:[\\/]*)
33997 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33998 ;;
33999 *)
34000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34001for as_dir in $PATH
34002do
34003 IFS=$as_save_IFS
34004 test -z "$as_dir" && as_dir=.
34005 for ac_exec_ext in '' $ac_executable_extensions; do
34006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34007 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34009 break 2
34010 fi
34011done
34012 done
34013IFS=$as_save_IFS
34014
34015 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34016 ;;
34017esac
34018fi
34019JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34020if test -n "$JXRDecodeDelegate"; then
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34022$as_echo "$JXRDecodeDelegate" >&6; }
34023else
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34025$as_echo "no" >&6; }
34026fi
34027
34028
34029# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34030set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34032$as_echo_n "checking for $ac_word... " >&6; }
34033if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34034 $as_echo_n "(cached) " >&6
34035else
34036 case $JXREncodeDelegate in
34037 [\\/]* | ?:[\\/]*)
34038 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34039 ;;
34040 *)
34041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34042for as_dir in $PATH
34043do
34044 IFS=$as_save_IFS
34045 test -z "$as_dir" && as_dir=.
34046 for ac_exec_ext in '' $ac_executable_extensions; do
34047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34048 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34050 break 2
34051 fi
34052done
34053 done
34054IFS=$as_save_IFS
34055
34056 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34057 ;;
34058esac
34059fi
34060JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34061if test -n "$JXREncodeDelegate"; then
34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34063$as_echo "$JXREncodeDelegate" >&6; }
34064else
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34066$as_echo "no" >&6; }
34067fi
34068
34069
cristy3ed852e2009-09-05 21:47:34 +000034070# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34071set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034074if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034075 $as_echo_n "(cached) " >&6
34076else
34077 case $LPDelegate in
34078 [\\/]* | ?:[\\/]*)
34079 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34080 ;;
34081 *)
34082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34083for as_dir in $PATH
34084do
34085 IFS=$as_save_IFS
34086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034089 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034091 break 2
34092 fi
34093done
cristy8b350f62009-11-15 23:12:43 +000034094 done
cristy3ed852e2009-09-05 21:47:34 +000034095IFS=$as_save_IFS
34096
34097 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34098 ;;
34099esac
34100fi
34101LPDelegate=$ac_cv_path_LPDelegate
34102if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "$LPDelegate" >&6; }
34105else
cristy8b350f62009-11-15 23:12:43 +000034106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo "no" >&6; }
34108fi
34109
34110
34111# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34112set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034115if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034116 $as_echo_n "(cached) " >&6
34117else
34118 case $LPRDelegate in
34119 [\\/]* | ?:[\\/]*)
34120 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34121 ;;
34122 *)
34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34124for as_dir in $PATH
34125do
34126 IFS=$as_save_IFS
34127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034130 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132 break 2
34133 fi
34134done
cristy8b350f62009-11-15 23:12:43 +000034135 done
cristy3ed852e2009-09-05 21:47:34 +000034136IFS=$as_save_IFS
34137
34138 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34139 ;;
34140esac
34141fi
34142LPRDelegate=$ac_cv_path_LPRDelegate
34143if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145$as_echo "$LPRDelegate" >&6; }
34146else
cristy8b350f62009-11-15 23:12:43 +000034147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148$as_echo "no" >&6; }
34149fi
34150
34151
cristy3ed852e2009-09-05 21:47:34 +000034152# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34153set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034156if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034157 $as_echo_n "(cached) " >&6
34158else
34159 case $LaunchDelegate in
34160 [\\/]* | ?:[\\/]*)
34161 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34162 ;;
34163 *)
34164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34165for as_dir in $PATH
34166do
34167 IFS=$as_save_IFS
34168 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034169 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034171 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173 break 2
34174 fi
34175done
cristy8b350f62009-11-15 23:12:43 +000034176 done
cristy3ed852e2009-09-05 21:47:34 +000034177IFS=$as_save_IFS
34178
34179 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34180 ;;
34181esac
34182fi
34183LaunchDelegate=$ac_cv_path_LaunchDelegate
34184if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo "$LaunchDelegate" >&6; }
34187else
cristy8b350f62009-11-15 23:12:43 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo "no" >&6; }
34190fi
34191
34192
34193# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34194set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034196$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034197if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034198 $as_echo_n "(cached) " >&6
34199else
34200 case $MANDelegate in
34201 [\\/]* | ?:[\\/]*)
34202 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34203 ;;
34204 *)
34205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34206for as_dir in $PATH
34207do
34208 IFS=$as_save_IFS
34209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034212 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214 break 2
34215 fi
34216done
cristy8b350f62009-11-15 23:12:43 +000034217 done
cristy3ed852e2009-09-05 21:47:34 +000034218IFS=$as_save_IFS
34219
34220 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34221 ;;
34222esac
34223fi
34224MANDelegate=$ac_cv_path_MANDelegate
34225if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "$MANDelegate" >&6; }
34228else
cristy8b350f62009-11-15 23:12:43 +000034229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230$as_echo "no" >&6; }
34231fi
34232
34233
cristy66f238e2014-05-16 12:21:48 +000034234# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34235set dummy "$MogrifyDelegateDefault"; ac_word=$2
34236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34237$as_echo_n "checking for $ac_word... " >&6; }
34238if ${ac_cv_path_MogrifyDelegate+:} false; then :
34239 $as_echo_n "(cached) " >&6
34240else
34241 case $MogrifyDelegate in
34242 [\\/]* | ?:[\\/]*)
34243 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34244 ;;
34245 *)
34246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34247for as_dir in $PATH
34248do
34249 IFS=$as_save_IFS
34250 test -z "$as_dir" && as_dir=.
34251 for ac_exec_ext in '' $ac_executable_extensions; do
34252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34253 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34255 break 2
34256 fi
34257done
34258 done
34259IFS=$as_save_IFS
34260
34261 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34262 ;;
34263esac
34264fi
34265MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34266if test -n "$MogrifyDelegate"; then
34267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34268$as_echo "$MogrifyDelegate" >&6; }
34269else
34270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34271$as_echo "no" >&6; }
34272fi
34273
34274
cristy3ed852e2009-09-05 21:47:34 +000034275# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34276set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034279if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034280 $as_echo_n "(cached) " >&6
34281else
34282 case $MPEGDecodeDelegate in
34283 [\\/]* | ?:[\\/]*)
34284 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34285 ;;
34286 *)
34287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34288for as_dir in $PATH
34289do
34290 IFS=$as_save_IFS
34291 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034294 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034296 break 2
34297 fi
34298done
cristy8b350f62009-11-15 23:12:43 +000034299 done
cristy3ed852e2009-09-05 21:47:34 +000034300IFS=$as_save_IFS
34301
34302 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34303 ;;
34304esac
34305fi
34306MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34307if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034309$as_echo "$MPEGDecodeDelegate" >&6; }
34310else
cristy8b350f62009-11-15 23:12:43 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo "no" >&6; }
34313fi
34314
34315
cristy058d15f2014-08-21 18:53:03 +000034316if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034317 MPEGDecodeDelegateDefault='ffmpeg'
34318 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34319set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34321$as_echo_n "checking for $ac_word... " >&6; }
34322if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34323 $as_echo_n "(cached) " >&6
34324else
34325 case $MPEGDecodeDelegate in
34326 [\\/]* | ?:[\\/]*)
34327 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34328 ;;
34329 *)
34330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34331for as_dir in $PATH
34332do
34333 IFS=$as_save_IFS
34334 test -z "$as_dir" && as_dir=.
34335 for ac_exec_ext in '' $ac_executable_extensions; do
34336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34337 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34339 break 2
34340 fi
34341done
34342 done
34343IFS=$as_save_IFS
34344
34345 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34346 ;;
34347esac
34348fi
34349MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34350if test -n "$MPEGDecodeDelegate"; then
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34352$as_echo "$MPEGDecodeDelegate" >&6; }
34353else
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34355$as_echo "no" >&6; }
34356fi
34357
34358
34359fi;
cristy3ed852e2009-09-05 21:47:34 +000034360# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34361set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034364if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034365 $as_echo_n "(cached) " >&6
34366else
34367 case $MPEGEncodeDelegate in
34368 [\\/]* | ?:[\\/]*)
34369 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34370 ;;
34371 *)
34372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34373for as_dir in $PATH
34374do
34375 IFS=$as_save_IFS
34376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034379 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381 break 2
34382 fi
34383done
cristy8b350f62009-11-15 23:12:43 +000034384 done
cristy3ed852e2009-09-05 21:47:34 +000034385IFS=$as_save_IFS
34386
34387 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34388 ;;
34389esac
34390fi
34391MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34392if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo "$MPEGEncodeDelegate" >&6; }
34395else
cristy8b350f62009-11-15 23:12:43 +000034396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo "no" >&6; }
34398fi
34399
34400
cristy058d15f2014-08-21 18:53:03 +000034401if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034402 MPEGEncodeDelegateDefault='ffmpeg'
34403 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34404set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34406$as_echo_n "checking for $ac_word... " >&6; }
34407if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34408 $as_echo_n "(cached) " >&6
34409else
34410 case $MPEGEncodeDelegate in
34411 [\\/]* | ?:[\\/]*)
34412 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # 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=.
34420 for ac_exec_ext in '' $ac_executable_extensions; do
34421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34422 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34424 break 2
34425 fi
34426done
34427 done
34428IFS=$as_save_IFS
34429
34430 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34431 ;;
34432esac
34433fi
34434MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34435if test -n "$MPEGEncodeDelegate"; then
34436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34437$as_echo "$MPEGEncodeDelegate" >&6; }
34438else
34439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34440$as_echo "no" >&6; }
34441fi
34442
34443
34444fi;
cristy935c86e2010-06-05 23:50:07 +000034445# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34446set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034449if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034450 $as_echo_n "(cached) " >&6
34451else
34452 case $MrSIDDecodeDelegate in
34453 [\\/]* | ?:[\\/]*)
34454 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34455 ;;
34456 *)
34457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34458for as_dir in $PATH
34459do
34460 IFS=$as_save_IFS
34461 test -z "$as_dir" && as_dir=.
34462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034464 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34466 break 2
34467 fi
34468done
34469 done
34470IFS=$as_save_IFS
34471
34472 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34473 ;;
34474esac
34475fi
34476MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34477if test -n "$MrSIDDecodeDelegate"; then
34478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34479$as_echo "$MrSIDDecodeDelegate" >&6; }
34480else
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34482$as_echo "no" >&6; }
34483fi
34484
34485
cristy3ed852e2009-09-05 21:47:34 +000034486# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34487set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034490if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034491 $as_echo_n "(cached) " >&6
34492else
34493 case $MVDelegate in
34494 [\\/]* | ?:[\\/]*)
34495 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34496 ;;
34497 *)
34498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501 IFS=$as_save_IFS
34502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034505 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507 break 2
34508 fi
34509done
cristy8b350f62009-11-15 23:12:43 +000034510 done
cristy3ed852e2009-09-05 21:47:34 +000034511IFS=$as_save_IFS
34512
34513 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34514 ;;
34515esac
34516fi
34517MVDelegate=$ac_cv_path_MVDelegate
34518if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo "$MVDelegate" >&6; }
34521else
cristy8b350f62009-11-15 23:12:43 +000034522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523$as_echo "no" >&6; }
34524fi
34525
34526
34527# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34528set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034531if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034532 $as_echo_n "(cached) " >&6
34533else
34534 case $PCLDelegate in
34535 [\\/]* | ?:[\\/]*)
34536 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34537 ;;
34538 *)
34539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34540for as_dir in $PATH
34541do
34542 IFS=$as_save_IFS
34543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034546 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548 break 2
34549 fi
34550done
cristy8b350f62009-11-15 23:12:43 +000034551 done
cristy3ed852e2009-09-05 21:47:34 +000034552IFS=$as_save_IFS
34553
34554 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34555 ;;
34556esac
34557fi
34558PCLDelegate=$ac_cv_path_PCLDelegate
34559if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo "$PCLDelegate" >&6; }
34562else
cristy8b350f62009-11-15 23:12:43 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034564$as_echo "no" >&6; }
34565fi
34566
34567
34568# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34569set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034572if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034573 $as_echo_n "(cached) " >&6
34574else
34575 case $PGPDecodeDelegate in
34576 [\\/]* | ?:[\\/]*)
34577 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34578 ;;
34579 *)
34580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34581for as_dir in $PATH
34582do
34583 IFS=$as_save_IFS
34584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034587 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589 break 2
34590 fi
34591done
cristy8b350f62009-11-15 23:12:43 +000034592 done
cristy3ed852e2009-09-05 21:47:34 +000034593IFS=$as_save_IFS
34594
34595 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34596 ;;
34597esac
34598fi
34599PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34600if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo "$PGPDecodeDelegate" >&6; }
34603else
cristy8b350f62009-11-15 23:12:43 +000034604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605$as_echo "no" >&6; }
34606fi
34607
34608
34609# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34610set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034613if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034614 $as_echo_n "(cached) " >&6
34615else
34616 case $POVDelegate in
34617 [\\/]* | ?:[\\/]*)
34618 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34619 ;;
34620 *)
34621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34622for as_dir in $PATH
34623do
34624 IFS=$as_save_IFS
34625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034628 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630 break 2
34631 fi
34632done
cristy8b350f62009-11-15 23:12:43 +000034633 done
cristy3ed852e2009-09-05 21:47:34 +000034634IFS=$as_save_IFS
34635
34636 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34637 ;;
34638esac
34639fi
34640POVDelegate=$ac_cv_path_POVDelegate
34641if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643$as_echo "$POVDelegate" >&6; }
34644else
cristy8b350f62009-11-15 23:12:43 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo "no" >&6; }
34647fi
34648
34649
34650for ac_prog in gsx gsc "$PSDelegateDefault"
34651do
34652 # Extract the first word of "$ac_prog", so it can be a program name with args.
34653set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034656if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034657 $as_echo_n "(cached) " >&6
34658else
34659 case $PSDelegate in
34660 [\\/]* | ?:[\\/]*)
34661 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34662 ;;
34663 *)
34664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34665for as_dir in $PATH
34666do
34667 IFS=$as_save_IFS
34668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034671 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034673 break 2
34674 fi
34675done
cristy8b350f62009-11-15 23:12:43 +000034676 done
cristy3ed852e2009-09-05 21:47:34 +000034677IFS=$as_save_IFS
34678
34679 ;;
34680esac
34681fi
34682PSDelegate=$ac_cv_path_PSDelegate
34683if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685$as_echo "$PSDelegate" >&6; }
34686else
cristy8b350f62009-11-15 23:12:43 +000034687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688$as_echo "no" >&6; }
34689fi
34690
34691
34692 test -n "$PSDelegate" && break
34693done
34694test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34695
34696# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34697set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034700if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034701 $as_echo_n "(cached) " >&6
34702else
34703 case $RLEEncodeDelegate in
34704 [\\/]* | ?:[\\/]*)
34705 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34706 ;;
34707 *)
34708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34709for as_dir in $PATH
34710do
34711 IFS=$as_save_IFS
34712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034713 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034715 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034717 break 2
34718 fi
34719done
cristy8b350f62009-11-15 23:12:43 +000034720 done
cristy3ed852e2009-09-05 21:47:34 +000034721IFS=$as_save_IFS
34722
34723 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34724 ;;
34725esac
34726fi
34727RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34728if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo "$RLEEncodeDelegate" >&6; }
34731else
cristy8b350f62009-11-15 23:12:43 +000034732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034733$as_echo "no" >&6; }
34734fi
34735
34736
34737# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34738set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034741if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034742 $as_echo_n "(cached) " >&6
34743else
34744 case $RMDelegate in
34745 [\\/]* | ?:[\\/]*)
34746 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34747 ;;
34748 *)
34749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34750for as_dir in $PATH
34751do
34752 IFS=$as_save_IFS
34753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034756 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034758 break 2
34759 fi
34760done
cristy8b350f62009-11-15 23:12:43 +000034761 done
cristy3ed852e2009-09-05 21:47:34 +000034762IFS=$as_save_IFS
34763
34764 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34765 ;;
34766esac
34767fi
34768RMDelegate=$ac_cv_path_RMDelegate
34769if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034771$as_echo "$RMDelegate" >&6; }
34772else
cristy8b350f62009-11-15 23:12:43 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774$as_echo "no" >&6; }
34775fi
34776
34777
cristy4689cf02010-02-17 21:15:45 +000034778# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34779set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034782if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034783 $as_echo_n "(cached) " >&6
34784else
34785 case $RSVGDecodeDelegate in
34786 [\\/]* | ?:[\\/]*)
34787 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34788 ;;
34789 *)
34790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34791for as_dir in $PATH
34792do
34793 IFS=$as_save_IFS
34794 test -z "$as_dir" && as_dir=.
34795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034797 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34799 break 2
34800 fi
34801done
34802 done
34803IFS=$as_save_IFS
34804
34805 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34806 ;;
34807esac
34808fi
34809RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34810if test -n "$RSVGDecodeDelegate"; then
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34812$as_echo "$RSVGDecodeDelegate" >&6; }
34813else
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815$as_echo "no" >&6; }
34816fi
34817
34818
cristy3ed852e2009-09-05 21:47:34 +000034819# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34820set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034823if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034824 $as_echo_n "(cached) " >&6
34825else
34826 case $SCANDecodeDelegate in
34827 [\\/]* | ?:[\\/]*)
34828 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34829 ;;
34830 *)
34831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34832for as_dir in $PATH
34833do
34834 IFS=$as_save_IFS
34835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034838 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034840 break 2
34841 fi
34842done
cristy8b350f62009-11-15 23:12:43 +000034843 done
cristy3ed852e2009-09-05 21:47:34 +000034844IFS=$as_save_IFS
34845
34846 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34847 ;;
34848esac
34849fi
34850SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34851if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo "$SCANDecodeDelegate" >&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
cristyec6934f2012-08-14 18:38:40 +000034860# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34861set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34863$as_echo_n "checking for $ac_word... " >&6; }
34864if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34865 $as_echo_n "(cached) " >&6
34866else
34867 case $SVGDecodeDelegate in
34868 [\\/]* | ?:[\\/]*)
34869 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34870 ;;
34871 *)
34872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34873for as_dir in $PATH
34874do
34875 IFS=$as_save_IFS
34876 test -z "$as_dir" && as_dir=.
34877 for ac_exec_ext in '' $ac_executable_extensions; do
34878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34879 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34881 break 2
34882 fi
34883done
34884 done
34885IFS=$as_save_IFS
34886
34887 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34888 ;;
34889esac
34890fi
34891SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34892if test -n "$SVGDecodeDelegate"; then
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34894$as_echo "$SVGDecodeDelegate" >&6; }
34895else
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34897$as_echo "no" >&6; }
34898fi
34899
34900
cristy3ed852e2009-09-05 21:47:34 +000034901# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34902set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034905if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034906 $as_echo_n "(cached) " >&6
34907else
34908 case $TXTDelegate in
34909 [\\/]* | ?:[\\/]*)
34910 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34911 ;;
34912 *)
34913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34914for as_dir in $PATH
34915do
34916 IFS=$as_save_IFS
34917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034920 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922 break 2
34923 fi
34924done
cristy8b350f62009-11-15 23:12:43 +000034925 done
cristy3ed852e2009-09-05 21:47:34 +000034926IFS=$as_save_IFS
34927
34928 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34929 ;;
34930esac
34931fi
34932TXTDelegate=$ac_cv_path_TXTDelegate
34933if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo "$TXTDelegate" >&6; }
34936else
cristy8b350f62009-11-15 23:12:43 +000034937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034938$as_echo "no" >&6; }
34939fi
34940
34941
cristy5ac9ac82010-07-29 13:24:24 +000034942# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34943set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034946if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034947 $as_echo_n "(cached) " >&6
34948else
34949 case $UniconvertorDelegate in
34950 [\\/]* | ?:[\\/]*)
34951 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34952 ;;
34953 *)
34954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34955for as_dir in $PATH
34956do
34957 IFS=$as_save_IFS
34958 test -z "$as_dir" && as_dir=.
34959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034961 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34963 break 2
34964 fi
34965done
34966 done
34967IFS=$as_save_IFS
34968
34969 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34970 ;;
34971esac
34972fi
34973UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34974if test -n "$UniconvertorDelegate"; then
34975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34976$as_echo "$UniconvertorDelegate" >&6; }
34977else
34978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34979$as_echo "no" >&6; }
34980fi
34981
34982
cristy86e86092013-08-04 17:43:57 +000034983# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34984set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34986$as_echo_n "checking for $ac_word... " >&6; }
34987if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34988 $as_echo_n "(cached) " >&6
34989else
34990 case $WebPDecodeDelegate in
34991 [\\/]* | ?:[\\/]*)
34992 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34993 ;;
34994 *)
34995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34996for as_dir in $PATH
34997do
34998 IFS=$as_save_IFS
34999 test -z "$as_dir" && as_dir=.
35000 for ac_exec_ext in '' $ac_executable_extensions; do
35001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35002 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35004 break 2
35005 fi
35006done
35007 done
35008IFS=$as_save_IFS
35009
35010 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35011 ;;
35012esac
35013fi
35014WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35015if test -n "$WebPDecodeDelegate"; then
35016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35017$as_echo "$WebPDecodeDelegate" >&6; }
35018else
35019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35020$as_echo "no" >&6; }
35021fi
35022
35023
35024# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35025set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35027$as_echo_n "checking for $ac_word... " >&6; }
35028if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35029 $as_echo_n "(cached) " >&6
35030else
35031 case $WebPEncodeDelegate in
35032 [\\/]* | ?:[\\/]*)
35033 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35034 ;;
35035 *)
35036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35037for as_dir in $PATH
35038do
35039 IFS=$as_save_IFS
35040 test -z "$as_dir" && as_dir=.
35041 for ac_exec_ext in '' $ac_executable_extensions; do
35042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35043 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35045 break 2
35046 fi
35047done
35048 done
35049IFS=$as_save_IFS
35050
35051 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35052 ;;
35053esac
35054fi
35055WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35056if test -n "$WebPEncodeDelegate"; then
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35058$as_echo "$WebPEncodeDelegate" >&6; }
35059else
35060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35061$as_echo "no" >&6; }
35062fi
35063
35064
cristy3ed852e2009-09-05 21:47:34 +000035065# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35066set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035069if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035070 $as_echo_n "(cached) " >&6
35071else
35072 case $WMFDecodeDelegate in
35073 [\\/]* | ?:[\\/]*)
35074 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35075 ;;
35076 *)
35077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35078for as_dir in $PATH
35079do
35080 IFS=$as_save_IFS
35081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035084 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035086 break 2
35087 fi
35088done
cristy8b350f62009-11-15 23:12:43 +000035089 done
cristy3ed852e2009-09-05 21:47:34 +000035090IFS=$as_save_IFS
35091
35092 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35093 ;;
35094esac
35095fi
35096WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35097if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo "$WMFDecodeDelegate" >&6; }
35100else
cristy8b350f62009-11-15 23:12:43 +000035101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035102$as_echo "no" >&6; }
35103fi
35104
35105
35106# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35107set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035109$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035110if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035111 $as_echo_n "(cached) " >&6
35112else
35113 case $WWWDecodeDelegate in
35114 [\\/]* | ?:[\\/]*)
35115 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35116 ;;
35117 *)
35118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35119for as_dir in $PATH
35120do
35121 IFS=$as_save_IFS
35122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035125 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035127 break 2
35128 fi
35129done
cristy8b350f62009-11-15 23:12:43 +000035130 done
cristy3ed852e2009-09-05 21:47:34 +000035131IFS=$as_save_IFS
35132
35133 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35134 ;;
35135esac
35136fi
35137WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35138if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035140$as_echo "$WWWDecodeDelegate" >&6; }
35141else
cristy8b350f62009-11-15 23:12:43 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo "no" >&6; }
35144fi
35145
35146
35147# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35148set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035151if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035152 $as_echo_n "(cached) " >&6
35153else
35154 case $XPSDelegate in
35155 [\\/]* | ?:[\\/]*)
35156 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35157 ;;
35158 *)
35159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35160for as_dir in $PATH
35161do
35162 IFS=$as_save_IFS
35163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035166 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035168 break 2
35169 fi
35170done
cristy8b350f62009-11-15 23:12:43 +000035171 done
cristy3ed852e2009-09-05 21:47:34 +000035172IFS=$as_save_IFS
35173
35174 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35175 ;;
35176esac
35177fi
35178XPSDelegate=$ac_cv_path_XPSDelegate
35179if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035181$as_echo "$XPSDelegate" >&6; }
35182else
cristy8b350f62009-11-15 23:12:43 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo "no" >&6; }
35185fi
35186
35187
35188# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35189set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035192if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035193 $as_echo_n "(cached) " >&6
35194else
35195 case $ZipDelegate in
35196 [\\/]* | ?:[\\/]*)
35197 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35198 ;;
35199 *)
35200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35201for as_dir in $PATH
35202do
35203 IFS=$as_save_IFS
35204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035207 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035209 break 2
35210 fi
35211done
cristy8b350f62009-11-15 23:12:43 +000035212 done
cristy3ed852e2009-09-05 21:47:34 +000035213IFS=$as_save_IFS
35214
35215 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35216 ;;
35217esac
35218fi
35219ZipDelegate=$ac_cv_path_ZipDelegate
35220if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222$as_echo "$ZipDelegate" >&6; }
35223else
cristy8b350f62009-11-15 23:12:43 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035225$as_echo "no" >&6; }
35226fi
35227
35228
35229
35230# Prefer lpr to lp; lp needs options tacked on.
35231if test "$LPRDelegate" != no; then
35232 PrintDelegate="$LPRDelegate"
35233else
35234 PrintDelegate="$LPDelegate -c -s"
35235fi
35236
35237
35238# Installed ImageMagick utiltity paths
35239ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35240DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35241MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35242
35243# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035244have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035245have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35246have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35247have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035248have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035249have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35250have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035251have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35252
35253#
35254# Test for font directories
35255#
35256type_include_files=''
35257
cristy5a3dc992014-12-05 19:50:04 +000035258 Apple fonts.
35259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35260$as_echo_n "checking for Apple fonts directory... " >&6; }
35261apple_font_dir=''
35262if test "${with_apple_font_dir}" != 'default'; then
35263 apple_font_dir="${with_apple_font_dir}/"
35264else
35265 for font_dir in '/Library/Fonts/'; do
35266 if test -f "${font_dir}Arial.ttf"; then
35267 apple_font_dir="${font_dir}"
35268 break 1
35269 fi
35270 done
35271fi
35272if test "${apple_font_dir}x" != 'x'; then
35273 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35275$as_echo "$apple_font_dir" >&6; }
35276else
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35278$as_echo "not found!" >&6; };
35279fi
35280
35281
cristy430a7312010-01-21 20:44:04 +000035282# Dejavu fonts.
35283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35284$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35285dejavu_font_dir=''
35286if test "${with_dejavu_font_dir}" != 'default'; then
35287 dejavu_font_dir="${with_dejavu_font_dir}/"
35288else
35289 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35290 if test -f "${font_dir}DejaVuSerif.ttf"; then
35291 dejavu_font_dir="${font_dir}"
35292 break 1
35293 fi
35294 done
35295fi
35296if test "${dejavu_font_dir}x" != 'x'; then
35297 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35299$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035300else
cristyad38abe2012-12-23 23:03:21 +000035301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35302$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035303fi
35304
35305
cristy3ed852e2009-09-05 21:47:34 +000035306# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035308$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35309ghostscript_font_dir=''
35310if test "${with_gs_font_dir}" != 'default'; then
35311 ghostscript_font_dir="${with_gs_font_dir}/"
35312else
35313 if test "${native_win32_build}" = 'yes'; then
35314 # Native Windows Build
35315 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35316 if test -f "${font_dir}a010013l.pfb"; then
35317 ghostscript_font_dir="$font_dir"
35318 break 1
35319 fi
35320 done
35321 if test "${PSDelegate}" != 'gswin32c'; then
35322 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35323 fi
35324 else
35325 # Linux / Mac OS X / Unix Build
35326 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
35327 if test -f "${font_dir}a010013l.pfb"; then
35328 ghostscript_font_dir="${font_dir}"
35329 break 1
35330 fi
35331 done
35332 if test "${ghostscript_font_dir}x" = 'x'; then
35333 if test "$PSDelegate" != 'gs'; then
35334 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35335 fi
35336 fi
35337 fi
35338fi
35339if test "${ghostscript_font_dir}x" != 'x'; then
35340 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35342$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035343else
cristyad38abe2012-12-23 23:03:21 +000035344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35345$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035346fi
35347
35348case "${build_os}" in
35349 mingw* )
35350 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35351 ;;
35352esac
35353
cristy5a3dc992014-12-05 19:50:04 +000035354# Windows fonts.
35355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35356$as_echo_n "checking for Windows fonts directory... " >&6; }
35357windows_font_dir=''
35358if test "${with_windows_font_dir}" != 'default'; then
35359 windows_font_dir="${with_windows_font_dir}/"
35360else
35361 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35362 if test -f "${font_dir}arial.ttf"; then
35363 windows_font_dir="${font_dir}"
35364 break 1
35365 fi
35366 done
35367fi
35368if test "${windows_font_dir}x" != 'x'; then
35369 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35371$as_echo "$windows_font_dir" >&6; }
35372else
35373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35374$as_echo "not found!" >&6; };
35375fi
35376
35377
cristy3ed852e2009-09-05 21:47:34 +000035378
35379
35380#
35381# Handle case where user doesn't want frozen paths
35382#
35383if test "$with_frozenpaths" != 'yes'; then
35384 # Re-set delegate definitions to default (no paths)
35385 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035386 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35387 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035388 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35389 BZIPDelegate="$BZIPDelegateDefault"
35390 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035391 CatDelegate="$CatDelegateDefault"
35392 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035393 DisplayDelegate="$DisplayDelegateDefault"
35394 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035395 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035396 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35397 EchoDelegate="$EchoDelegateDefault"
35398 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035399 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035400 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035401 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35402 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35403 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35404 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035405 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35406 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035407 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035408 LaunchDelegate="$LaunchDelegateDefault"
35409 MANDelegate="$MANDelegateDefault"
35410 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35411 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035412 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035413 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35414 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035415 PCLDelegate="$PCLDelegateDefault"
35416 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35417 POVDelegate="$POVDelegateDefault"
35418 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035419 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35420 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035421 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035422 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035423 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035424 ShowImageDelegate="$ShowImageDelegateDefault"
35425 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035426 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035427 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35428 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035429 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35430 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35431 XPSDelegate="$XPSDelegateDefault"
35432 ZipDelegate="$ZipDelegateDefault"
35433fi
35434
35435# Delegate substitutions
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
cristy71f53d52013-04-27 13:33:59 +000035476
35477
cristy16b412d2014-12-15 11:09:48 +000035478
35479
cristy3ed852e2009-09-05 21:47:34 +000035480#
35481# RPM support.
35482#
35483RPM=''
35484for ac_prog in gnutar gtar tar
35485do
35486 # Extract the first word of "$ac_prog", so it can be a program name with args.
35487set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035490if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035491 $as_echo_n "(cached) " >&6
35492else
35493 if test -n "$TAR"; then
35494 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35495else
35496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35497for as_dir in $PATH
35498do
35499 IFS=$as_save_IFS
35500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035503 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035505 break 2
35506 fi
35507done
cristy8b350f62009-11-15 23:12:43 +000035508 done
cristy3ed852e2009-09-05 21:47:34 +000035509IFS=$as_save_IFS
35510
35511fi
35512fi
35513TAR=$ac_cv_prog_TAR
35514if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035516$as_echo "$TAR" >&6; }
35517else
cristy8b350f62009-11-15 23:12:43 +000035518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035519$as_echo "no" >&6; }
35520fi
35521
35522
35523 test -n "$TAR" && break
35524done
35525
35526for ac_prog in perl
35527do
35528 # Extract the first word of "$ac_prog", so it can be a program name with args.
35529set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035532if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035533 $as_echo_n "(cached) " >&6
35534else
35535 if test -n "$PERL"; then
35536 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35537else
35538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35539for as_dir in $PATH
35540do
35541 IFS=$as_save_IFS
35542 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035545 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035547 break 2
35548 fi
35549done
cristy8b350f62009-11-15 23:12:43 +000035550 done
cristy3ed852e2009-09-05 21:47:34 +000035551IFS=$as_save_IFS
35552
35553fi
35554fi
35555PERL=$ac_cv_prog_PERL
35556if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035558$as_echo "$PERL" >&6; }
35559else
cristy8b350f62009-11-15 23:12:43 +000035560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035561$as_echo "no" >&6; }
35562fi
35563
35564
35565 test -n "$PERL" && break
35566done
35567
35568for ac_prog in rpmbuild rpm
35569do
35570 # Extract the first word of "$ac_prog", so it can be a program name with args.
35571set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035574if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035575 $as_echo_n "(cached) " >&6
35576else
35577 if test -n "$RPM"; then
35578 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35579else
35580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35581for as_dir in $PATH
35582do
35583 IFS=$as_save_IFS
35584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035587 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035589 break 2
35590 fi
35591done
cristy8b350f62009-11-15 23:12:43 +000035592 done
cristy3ed852e2009-09-05 21:47:34 +000035593IFS=$as_save_IFS
35594
35595fi
35596fi
35597RPM=$ac_cv_prog_RPM
35598if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035600$as_echo "$RPM" >&6; }
35601else
cristy8b350f62009-11-15 23:12:43 +000035602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo "no" >&6; }
35604fi
35605
35606
35607 test -n "$RPM" && break
35608done
35609
35610
cristy73bd4a52010-10-05 11:24:23 +000035611ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35612
35613
35614AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35615
35616
35617AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35618
35619
35620AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35621
35622
35623 if test "x$RPM" != "x" ; then
35624 RPM_DELEGATE_TRUE=
35625 RPM_DELEGATE_FALSE='#'
35626else
35627 RPM_DELEGATE_TRUE='#'
35628 RPM_DELEGATE_FALSE=
35629fi
35630
cristy3ed852e2009-09-05 21:47:34 +000035631
35632#
35633# 7ZIP support (http://p7zip.sourceforge.net/)
35634#
35635P7ZIP=''
35636for ac_prog in 7za
35637do
35638 # Extract the first word of "$ac_prog", so it can be a program name with args.
35639set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035642if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035643 $as_echo_n "(cached) " >&6
35644else
35645 if test -n "$P7ZIP"; then
35646 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35647else
35648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35649for as_dir in $PATH
35650do
35651 IFS=$as_save_IFS
35652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035655 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035657 break 2
35658 fi
35659done
cristy8b350f62009-11-15 23:12:43 +000035660 done
cristy3ed852e2009-09-05 21:47:34 +000035661IFS=$as_save_IFS
35662
35663fi
35664fi
35665P7ZIP=$ac_cv_prog_P7ZIP
35666if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035668$as_echo "$P7ZIP" >&6; }
35669else
cristy8b350f62009-11-15 23:12:43 +000035670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035671$as_echo "no" >&6; }
35672fi
35673
35674
35675 test -n "$P7ZIP" && break
35676done
35677
35678
cristy73bd4a52010-10-05 11:24:23 +000035679 if test "x$P7ZIP" != "x" ; then
35680 P7ZIP_DELEGATE_TRUE=
35681 P7ZIP_DELEGATE_FALSE='#'
35682else
35683 P7ZIP_DELEGATE_TRUE='#'
35684 P7ZIP_DELEGATE_FALSE=
35685fi
35686
cristy3ed852e2009-09-05 21:47:34 +000035687
35688#
35689# ZIP support (http://www.info-zip.org/Zip.html)
35690#
35691ZIP=''
35692for ac_prog in zip
35693do
35694 # Extract the first word of "$ac_prog", so it can be a program name with args.
35695set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035698if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035699 $as_echo_n "(cached) " >&6
35700else
35701 if test -n "$ZIP"; then
35702 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35703else
35704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35705for as_dir in $PATH
35706do
35707 IFS=$as_save_IFS
35708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035711 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035713 break 2
35714 fi
35715done
cristy8b350f62009-11-15 23:12:43 +000035716 done
cristy3ed852e2009-09-05 21:47:34 +000035717IFS=$as_save_IFS
35718
35719fi
35720fi
35721ZIP=$ac_cv_prog_ZIP
35722if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035724$as_echo "$ZIP" >&6; }
35725else
cristy8b350f62009-11-15 23:12:43 +000035726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035727$as_echo "no" >&6; }
35728fi
35729
35730
35731 test -n "$ZIP" && break
35732done
35733
35734
cristy73bd4a52010-10-05 11:24:23 +000035735 if test "x$ZIP" != "x" ; then
35736 ZIP_DELEGATE_TRUE=
35737 ZIP_DELEGATE_FALSE='#'
35738else
35739 ZIP_DELEGATE_TRUE='#'
35740 ZIP_DELEGATE_FALSE=
35741fi
35742
cristy3ed852e2009-09-05 21:47:34 +000035743
35744#
35745# GhostPCL related configuration.
35746#
35747PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035748PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035749PCLMonoDevice=pbmraw
35750if test -z "$PCLVersion"; then
35751 PCLVersion='unknown'
35752fi
35753if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35755$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035757$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35759$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035760 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035762$as_echo_n "checking for pcl color device... " >&6; }
35763 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35764 :
35765 else
35766 PCLColorDevice=ppmraw
35767 fi
cristyad38abe2012-12-23 23:03:21 +000035768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35769$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035770
35771 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035773$as_echo_n "checking for pcl CMYK device... " >&6; }
35774 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35775 :
35776 else
35777 PCLCMYKDevice=$PCLColorDevice
35778 fi
cristyad38abe2012-12-23 23:03:21 +000035779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35780$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035781
35782 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035784$as_echo_n "checking for pcl mono device... " >&6; }
35785 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35786 :
35787 else
35788 PCLMonoDevice=$PCLColorDevice
35789 fi
cristyad38abe2012-12-23 23:03:21 +000035790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35791$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035792fi
35793
35794
35795
35796
35797
35798
35799#
35800# GhostXPS related configuration.
35801#
35802XPSColorDevice=ppmraw
35803XPSCMYKDevice=bmpsep8
35804XPSMonoDevice=pbmraw
35805if test -z "$XPSVersion"; then
35806 XPSVersion='unknown'
35807fi
35808if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35810$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035812$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35814$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035815 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035817$as_echo_n "checking for xps color device... " >&6; }
35818 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35819 :
35820 else
35821 XPSColorDevice=ppmraw
35822 fi
cristyad38abe2012-12-23 23:03:21 +000035823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35824$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035825
35826 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035828$as_echo_n "checking for xps CMYK device... " >&6; }
35829 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35830 :
35831 else
35832 XPSCMYKDevice=$XPSColorDevice
35833 fi
cristyad38abe2012-12-23 23:03:21 +000035834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35835$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035836
35837 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035839$as_echo_n "checking for xps mono device... " >&6; }
35840 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35841 :
35842 else
35843 XPSMonoDevice=$XPSColorDevice
35844 fi
cristyad38abe2012-12-23 23:03:21 +000035845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35846$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035847fi
35848
35849
35850
35851
35852
35853
35854#
35855# Ghostscript related configuration.
35856#
cristya97426c2011-02-04 01:41:27 +000035857GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035858GSColorDevice=pnmraw
35859GSCMYKDevice=pam
35860GSMonoDevice=pbmraw
35861GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035862GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035863GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035864GSVersion='unknown'
35865if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35867$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035869$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35871$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035873$as_echo_n "checking for Ghostscript version... " >&6; }
35874 if GSVersion=`$PSDelegate --version`; then
35875 :
35876 else
35877 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35878 fi
cristyad38abe2012-12-23 23:03:21 +000035879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35880$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035881
35882 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035884$as_echo_n "checking for gs alpha device... " >&6; }
35885 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35886 :
35887 else
35888 GSAlphaDevice=pnmraw
35889 fi
cristyad38abe2012-12-23 23:03:21 +000035890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35891$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035892
35893 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035895$as_echo_n "checking for gs color device... " >&6; }
35896 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35897 :
35898 else
35899 GSColorDevice=pnmraw
35900 fi
cristyad38abe2012-12-23 23:03:21 +000035901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35902$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035903
35904 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035906$as_echo_n "checking for gs CMYK device... " >&6; }
35907 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35908 :
35909 else
35910 GSCMYKDevice=bmpsep8
35911 fi
cristyad38abe2012-12-23 23:03:21 +000035912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35913$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035914
35915 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035917$as_echo_n "checking for gs mono device... " >&6; }
35918 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35919 :
35920 else
35921 GSMonoDevice=$GSColorDevice
35922 fi
cristyad38abe2012-12-23 23:03:21 +000035923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35924$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035925
35926 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035928$as_echo_n "checking for gs PDF writing device... " >&6; }
35929 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35930 :
35931 else
35932 GSPDFDevice=nodevice
35933 fi
cristyad38abe2012-12-23 23:03:21 +000035934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35935$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035936
35937 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035939$as_echo_n "checking for gs PS writing device... " >&6; }
35940 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35941 :
35942 else
35943 GSPSDevice=nodevice
35944 fi
cristyad38abe2012-12-23 23:03:21 +000035945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35946$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035947
35948 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035950$as_echo_n "checking for gs EPS writing device... " >&6; }
35951 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35952 :
35953 else
35954 GSEPSDevice=nodevice
35955 fi
cristyad38abe2012-12-23 23:03:21 +000035956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35957$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035958fi
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969#
35970# PerlMagick-related configuration
35971#
35972
35973# Look for PERL if PerlMagick requested
35974# If name/path of desired PERL interpreter is specified, look for that one first
35975have_perl='no'
35976if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35978$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035980$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35982$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035983 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035985$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035986if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035987 $as_echo_n "(cached) " >&6
35988else
35989 ac_cv_path_PERL="$with_perl"
35990fi
cristy8b350f62009-11-15 23:12:43 +000035991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035992$as_echo "$ac_cv_path_PERL" >&6; };
35993 PERL=$ac_cv_path_PERL
35994 have_perl="$ac_cv_path_PERL"
35995 else
35996 for ac_prog in perl perl5
35997do
35998 # Extract the first word of "$ac_prog", so it can be a program name with args.
35999set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036002if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036003 $as_echo_n "(cached) " >&6
36004else
36005 case $PERL in
36006 [\\/]* | ?:[\\/]*)
36007 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36008 ;;
36009 *)
36010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36011for as_dir in $PATH
36012do
36013 IFS=$as_save_IFS
36014 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036017 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036019 break 2
36020 fi
36021done
cristy8b350f62009-11-15 23:12:43 +000036022 done
cristy3ed852e2009-09-05 21:47:34 +000036023IFS=$as_save_IFS
36024
36025 ;;
36026esac
36027fi
36028PERL=$ac_cv_path_PERL
36029if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036031$as_echo "$PERL" >&6; }
36032else
cristy8b350f62009-11-15 23:12:43 +000036033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036034$as_echo "no" >&6; }
36035fi
36036
36037
36038 test -n "$PERL" && break
36039done
36040 if test "$ac_cv_path_PERL"; then
36041 have_perl="$ac_cv_path_PERL"
36042 fi
36043 fi
36044fi
36045
cristy949301e2010-01-06 01:38:40 +000036046if test "$with_perl" != 'yes' ; then
36047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36048fi
36049
36050PERL_SUPPORTS_DESTDIR='no'
36051
cristy3ed852e2009-09-05 21:47:34 +000036052with_perl_static='no'
36053with_perl_dynamic='no'
36054if test "$have_perl" != 'no'; then
36055 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36056 with_perl_static='yes'
36057 fi
36058 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36059 with_perl_dynamic='yes'
36060 fi
36061 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036062
36063
36064
36065
36066 if test -n "$PERL"; then :
36067
36068 ax_perl_version="5.8.1"
36069
36070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36071$as_echo_n "checking for perl version... " >&6; }
36072
cristy17491be2014-06-24 01:10:53 +000036073 perl_version=`$PERL --version 2>&1 \
36074 | $SED -n -e '/This is perl/b inspect
36075b
36076: inspect
36077s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036078
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36080$as_echo "$perl_version" >&6; }
36081
36082 PERL_VERSION=$perl_version
36083
36084
36085
36086
36087
36088 # Used to indicate true or false condition
36089 ax_compare_version=false
36090
36091 # Convert the two version strings to be compared into a format that
36092 # allows a simple string comparison. The end result is that a version
36093 # string of the form 1.12.5-r617 will be converted to the form
36094 # 0001001200050617. In other words, each number is zero padded to four
36095 # digits, and non digits are removed.
36096
36097 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36098 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36099 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36100 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36101 -e 's/[^0-9]//g'`
36102
36103
36104 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36105 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36106 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36107 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36108 -e 's/[^0-9]//g'`
36109
36110
36111 ax_compare_version=`echo "x$ax_compare_version_A
36112x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36113
36114
36115
36116 if test "$ax_compare_version" = "true" ; then
36117
36118 :
36119 PERL_SUPPORTS_DESTDIR='yes'
36120
36121 else
36122 :
36123 PERL_SUPPORTS_DESTDIR='no'
36124
36125 fi
36126
36127
36128else
36129
36130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36131$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36132 PERL_SUPPORTS_DESTDIR='no'
36133
cristy3ed852e2009-09-05 21:47:34 +000036134fi
cristy73bd4a52010-10-05 11:24:23 +000036135
36136fi
36137 if test "$have_perl" != 'no'; then
36138 WITH_PERL_TRUE=
36139 WITH_PERL_FALSE='#'
36140else
36141 WITH_PERL_TRUE='#'
36142 WITH_PERL_FALSE=
36143fi
36144
36145 if test $with_perl_static = 'yes'; then
36146 WITH_PERL_STATIC_TRUE=
36147 WITH_PERL_STATIC_FALSE='#'
36148else
36149 WITH_PERL_STATIC_TRUE='#'
36150 WITH_PERL_STATIC_FALSE=
36151fi
36152
36153 if test $with_perl_dynamic = 'yes'; then
36154 WITH_PERL_DYNAMIC_TRUE=
36155 WITH_PERL_DYNAMIC_FALSE='#'
36156else
36157 WITH_PERL_DYNAMIC_TRUE='#'
36158 WITH_PERL_DYNAMIC_FALSE=
36159fi
36160
cristy3ed852e2009-09-05 21:47:34 +000036161
36162
36163# Determine path to pick up MagickCore library from for use with building PerlMagick
36164MAGICKCORE_PATH="${LIB_DIR}"
36165if test $with_perl_static = 'yes'; then
36166 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36167 libtool_objdir=$objdir
36168
36169 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036170 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036171fi
36172
36173
cristy2a3eb392012-12-17 13:39:20 +000036174# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036175MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036176if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036177 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036178fi
cristy2a3eb392012-12-17 13:39:20 +000036179if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036180 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036181fi
36182if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036183 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036184fi
36185if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036186 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036187fi
cristy81ab5af2013-10-06 18:28:39 +000036188if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036189 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036190fi
36191if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036192 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036193fi
cristy2a3eb392012-12-17 13:39:20 +000036194if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036195 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036196fi
36197if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036198 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036199fi
36200if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036201 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036202fi
36203if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036204 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036205fi
36206if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036207 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036208fi
36209if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036210 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036211fi
36212if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036213 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036214fi
36215if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036216 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036217fi
36218if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036219 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036220fi
36221if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036222 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036223fi
36224if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036225 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036226fi
36227if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036228 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036229fi
cristy99db3872014-01-01 15:11:34 +000036230if test "$have_openjp2" = 'yes' ; then
36231 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036232fi
cristy2a3eb392012-12-17 13:39:20 +000036233if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036234 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036235fi
36236if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036237 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036238fi
36239have_ps='no'
36240if test "$have_dps" = 'yes' || \
36241 test "$have_gs" = 'yes' || \
36242 test "${native_win32_build}" = 'yes' ; then
36243 have_ps='yes'
36244fi
36245if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036246 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036247fi
cristy2a3eb392012-12-17 13:39:20 +000036248if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036249 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036250fi
36251if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036252 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036253fi
36254if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036255 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036256fi
36257if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036258 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036259fi
cristy3b640ed2013-07-29 00:27:59 +000036260if test "$have_webp" = 'yes' ; then
36261 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36262fi
cristy2a3eb392012-12-17 13:39:20 +000036263if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036264 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036265fi
36266if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036267 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036268fi
36269if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036270 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036271fi
36272if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036273 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036274fi
cristy2a3eb392012-12-17 13:39:20 +000036275# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036276MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036277MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036278
36279
cristyfa161182012-12-19 15:45:28 +000036280
cristy3ed852e2009-09-05 21:47:34 +000036281#
36282# Handle special compiler flags
36283#
36284
36285# Add '-p' if prof source profiling support enabled
36286if test "$enable_prof" = 'yes'; then
36287 CFLAGS="-p $CFLAGS"
36288 CXXFLAGS="-p $CXXFLAGS"
36289 LDFLAGS="-p $LDFLAGS"
36290fi
36291
36292# Add '-pg' if gprof source profiling support enabled
36293if test "$enable_gprof" = 'yes'; then
36294 CFLAGS="-pg $CFLAGS"
36295 CXXFLAGS="-pg $CXXFLAGS"
36296 LDFLAGS="-pg $LDFLAGS"
36297fi
36298
36299# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36300# This is a gcc-specific feature
36301if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036303$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036304if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036305 $as_echo_n "(cached) " >&6
36306else
36307 ac_check_lib_save_LIBS=$LIBS
36308LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036310/* end confdefs.h. */
36311
36312/* Override any GCC internal prototype to avoid an error.
36313 Use char because int might match the return type of a GCC
36314 builtin and then its argument prototype would still apply. */
36315#ifdef __cplusplus
36316extern "C"
36317#endif
36318char _gcov_init ();
36319int
36320main ()
36321{
36322return _gcov_init ();
36323 ;
36324 return 0;
36325}
36326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036328 ac_cv_lib_gcov__gcov_init=yes
36329else
cristy8b350f62009-11-15 23:12:43 +000036330 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036331fi
cristy8b350f62009-11-15 23:12:43 +000036332rm -f core conftest.err conftest.$ac_objext \
36333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036334LIBS=$ac_check_lib_save_LIBS
36335fi
cristy8b350f62009-11-15 23:12:43 +000036336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036337$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036338if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036339 cat >>confdefs.h <<_ACEOF
36340#define HAVE_LIBGCOV 1
36341_ACEOF
36342
36343 LIBS="-lgcov $LIBS"
36344
36345fi
36346
cristy8b350f62009-11-15 23:12:43 +000036347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036348$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036349if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036350 $as_echo_n "(cached) " >&6
36351else
36352 ac_check_lib_save_LIBS=$LIBS
36353LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036355/* end confdefs.h. */
36356
36357/* Override any GCC internal prototype to avoid an error.
36358 Use char because int might match the return type of a GCC
36359 builtin and then its argument prototype would still apply. */
36360#ifdef __cplusplus
36361extern "C"
36362#endif
36363char __gcov_init ();
36364int
36365main ()
36366{
36367return __gcov_init ();
36368 ;
36369 return 0;
36370}
36371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036372if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036373 ac_cv_lib_gcov___gcov_init=yes
36374else
cristy8b350f62009-11-15 23:12:43 +000036375 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036376fi
cristy8b350f62009-11-15 23:12:43 +000036377rm -f core conftest.err conftest.$ac_objext \
36378 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036379LIBS=$ac_check_lib_save_LIBS
36380fi
cristy8b350f62009-11-15 23:12:43 +000036381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036382$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036383if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036384 cat >>confdefs.h <<_ACEOF
36385#define HAVE_LIBGCOV 1
36386_ACEOF
36387
36388 LIBS="-lgcov $LIBS"
36389
36390fi
36391
36392 case "$target_os" in
36393 darwin*)
36394 OSX_GCOV_LDFLAG="-Wl,-single_module"
36395 ;;
36396 *)
36397 OSX_GCOV_LDFLAG=""
36398 ;;
36399 esac
36400
36401 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36402 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36403 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36404fi
36405
36406#
36407# Build library dependency list for libMagickCore
36408#
36409
cristyc6722092012-10-14 00:19:31 +000036410if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036411 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036412else
cristy3b0097d2014-11-04 15:34:47 +000036413 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036414fi
36415
36416
36417#
36418# Remove extraneous spaces from output variables (asthetic)
36419#
36420X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36421X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36422X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36423X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36424
36425CC=`echo $CC | sed -e 's/ */ /g'`
36426CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36427CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36428CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036429DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36430LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36431TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36432MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36433#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36434
36435# Pass only user-provided LIBS as "global" libraries
36436LIBS=$USER_LIBS
36437
36438#AC_SUBST(CPPFLAGS)
36439
36440#AC_SUBST(LDFLAGS)
36441#AC_SUBST(X_PRE_LIBS)
36442#AC_SUBST(X_LIBS)
36443#AC_SUBST(X_EXTRA_LIBS)
36444
36445MAGICK_CFLAGS=$CFLAGS
36446MAGICK_CXXFLAGS="$CXXFLAGS"
36447MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36448MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36449MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036450MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036451
36452
36453
36454
36455
36456
36457
36458
36459# Set configured scripts to executable.
36460ac_config_commands="$ac_config_commands default"
36461
cristy2bd4b6e2012-07-22 15:29:11 +000036462ac_config_commands="$ac_config_commands magick.sh.in"
36463
cristy3ed852e2009-09-05 21:47:34 +000036464ac_config_commands="$ac_config_commands MagickCore-config.in"
36465
cristy3ed852e2009-09-05 21:47:34 +000036466ac_config_commands="$ac_config_commands MagickWand-config.in"
36467
cristy3ed852e2009-09-05 21:47:34 +000036468ac_config_commands="$ac_config_commands Magick++-config.in"
36469
36470ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36471
36472
cristyad38abe2012-12-23 23:03:21 +000036473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36474$as_echo "-------------------------------------------------------------" >&6; }
36475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36476$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036477
36478rm -f magick-version
36479
36480result_dejavu_font_dir='none'
36481if test "${dejavu_font_dir}x" != 'x'; then
36482 result_dejavu_font_dir=$dejavu_font_dir
36483fi
36484
36485result_ghostscript_font_dir='none'
36486if test "${ghostscript_font_dir}x" != 'x'; then
36487 result_ghostscript_font_dir=$ghostscript_font_dir
36488fi
36489
36490result_windows_font_dir='none'
36491if test "${windows_font_dir}x" != 'x'; then
36492 result_windows_font_dir=${windows_font_dir}
36493fi
36494
36495# ==============================================================================
36496# Generate build environment
36497# ==============================================================================
36498ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36499
cristy3ed852e2009-09-05 21:47:34 +000036500cat >confcache <<\_ACEOF
36501# This file is a shell script that caches the results of configure
36502# tests run on this system so they can be shared between configure
36503# scripts and configure runs, see configure's option --config-cache.
36504# It is not useful on other systems. If it contains results you don't
36505# want to keep, you may remove or edit it.
36506#
36507# config.status only pays attention to the cache file if you give it
36508# the --recheck option to rerun configure.
36509#
36510# `ac_cv_env_foo' variables (set or unset) will be overridden when
36511# loading this file, other *unset* `ac_cv_foo' will be assigned the
36512# following values.
36513
36514_ACEOF
36515
36516# The following way of writing the cache mishandles newlines in values,
36517# but we know of no workaround that is simple, portable, and efficient.
36518# So, we kill variables containing newlines.
36519# Ultrix sh set writes to stderr and can't be redirected directly,
36520# and sets the high bit in the cache file unless we assign to the vars.
36521(
36522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36523 eval ac_val=\$$ac_var
36524 case $ac_val in #(
36525 *${as_nl}*)
36526 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036528$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36529 esac
36530 case $ac_var in #(
36531 _ | IFS | as_nl) ;; #(
36532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036533 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036534 esac ;;
36535 esac
36536 done
36537
36538 (set) 2>&1 |
36539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36540 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036541 # `set' does not quote correctly, so add quotes: double-quote
36542 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036543 sed -n \
36544 "s/'/'\\\\''/g;
36545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36546 ;; #(
36547 *)
36548 # `set' quotes correctly as required by POSIX, so do not add quotes.
36549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36550 ;;
36551 esac |
36552 sort
36553) |
36554 sed '
36555 /^ac_cv_env_/b end
36556 t clear
36557 :clear
36558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36559 t end
36560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36561 :end' >>confcache
36562if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36563 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036564 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036566$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036567 if test ! -f "$cache_file" || test -h "$cache_file"; then
36568 cat confcache >"$cache_file"
36569 else
36570 case $cache_file in #(
36571 */* | ?:*)
36572 mv -f confcache "$cache_file"$$ &&
36573 mv -f "$cache_file"$$ "$cache_file" ;; #(
36574 *)
36575 mv -f confcache "$cache_file" ;;
36576 esac
36577 fi
36578 fi
cristy3ed852e2009-09-05 21:47:34 +000036579 else
cristy8b350f62009-11-15 23:12:43 +000036580 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036581$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36582 fi
36583fi
36584rm -f confcache
36585
36586test "x$prefix" = xNONE && prefix=$ac_default_prefix
36587# Let make expand exec_prefix.
36588test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36589
36590DEFS=-DHAVE_CONFIG_H
36591
36592ac_libobjs=
36593ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036594U=
cristy3ed852e2009-09-05 21:47:34 +000036595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36596 # 1. Remove the extension, and $U if already installed.
36597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36600 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036603done
36604LIBOBJS=$ac_libobjs
36605
36606LTLIBOBJS=$ac_ltlibobjs
36607
36608
cristyc0890a62012-07-19 00:18:20 +000036609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36610$as_echo_n "checking that generated files are newer than configure... " >&6; }
36611 if test -n "$am_sleep_pid"; then
36612 # Hide warnings about reused PIDs.
36613 wait $am_sleep_pid 2>/dev/null
36614 fi
36615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36616$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036617 if test -n "$EXEEXT"; then
36618 am__EXEEXT_TRUE=
36619 am__EXEEXT_FALSE='#'
36620else
36621 am__EXEEXT_TRUE='#'
36622 am__EXEEXT_FALSE=
36623fi
cristy3ed852e2009-09-05 21:47:34 +000036624
cristy9af1cbf2014-12-28 22:03:09 +000036625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36626$as_echo_n "checking that generated files are newer than configure... " >&6; }
36627 if test -n "$am_sleep_pid"; then
36628 # Hide warnings about reused PIDs.
36629 wait $am_sleep_pid 2>/dev/null
36630 fi
36631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36632$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036633if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036634 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036635Usually this means the macro was only invoked conditionally." "$LINENO" 5
36636fi
36637if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036638 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036639Usually this means the macro was only invoked conditionally." "$LINENO" 5
36640fi
36641if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036642 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036643Usually this means the macro was only invoked conditionally." "$LINENO" 5
36644fi
36645if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036646 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036647Usually this means the macro was only invoked conditionally." "$LINENO" 5
36648fi
cristy9b86f202012-11-28 21:55:35 +000036649if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36650 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36651Usually this means the macro was only invoked conditionally." "$LINENO" 5
36652fi
cristy73bd4a52010-10-05 11:24:23 +000036653if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036654 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036655Usually this means the macro was only invoked conditionally." "$LINENO" 5
36656fi
36657if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036658 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036659Usually this means the macro was only invoked conditionally." "$LINENO" 5
36660fi
36661if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036662 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036663Usually this means the macro was only invoked conditionally." "$LINENO" 5
36664fi
36665if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036666 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036667Usually this means the macro was only invoked conditionally." "$LINENO" 5
36668fi
cristy73bd4a52010-10-05 11:24:23 +000036669if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036670 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036671Usually this means the macro was only invoked conditionally." "$LINENO" 5
36672fi
36673if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036674 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036675Usually this means the macro was only invoked conditionally." "$LINENO" 5
36676fi
cristy73bd4a52010-10-05 11:24:23 +000036677if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036678 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036679Usually this means the macro was only invoked conditionally." "$LINENO" 5
36680fi
cristy71d8c202012-03-20 17:05:01 +000036681if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36682 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36683Usually this means the macro was only invoked conditionally." "$LINENO" 5
36684fi
cristy73bd4a52010-10-05 11:24:23 +000036685
36686if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036687 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036688Usually this means the macro was only invoked conditionally." "$LINENO" 5
36689fi
36690if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036691 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036692Usually this means the macro was only invoked conditionally." "$LINENO" 5
36693fi
cristy3b0097d2014-11-04 15:34:47 +000036694if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36695 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36696Usually this means the macro was only invoked conditionally." "$LINENO" 5
36697fi
cristy73bd4a52010-10-05 11:24:23 +000036698if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036699 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036700Usually this means the macro was only invoked conditionally." "$LINENO" 5
36701fi
36702if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036703 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036704Usually this means the macro was only invoked conditionally." "$LINENO" 5
36705fi
36706if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036707 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036708Usually this means the macro was only invoked conditionally." "$LINENO" 5
36709fi
36710if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036711 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036712Usually this means the macro was only invoked conditionally." "$LINENO" 5
36713fi
cristy5eef09f2012-10-16 12:08:28 +000036714if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36715 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36716Usually this means the macro was only invoked conditionally." "$LINENO" 5
36717fi
cristy73bd4a52010-10-05 11:24:23 +000036718if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036719 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036720Usually this means the macro was only invoked conditionally." "$LINENO" 5
36721fi
36722if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036723 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036724Usually this means the macro was only invoked conditionally." "$LINENO" 5
36725fi
cristy73bd4a52010-10-05 11:24:23 +000036726if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036727 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036728Usually this means the macro was only invoked conditionally." "$LINENO" 5
36729fi
36730if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036731 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036732Usually this means the macro was only invoked conditionally." "$LINENO" 5
36733fi
cristy853d9902014-08-21 18:50:43 +000036734if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36735 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36736Usually this means the macro was only invoked conditionally." "$LINENO" 5
36737fi
cristy73bd4a52010-10-05 11:24:23 +000036738if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036739 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036740Usually this means the macro was only invoked conditionally." "$LINENO" 5
36741fi
36742if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036743 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036744Usually this means the macro was only invoked conditionally." "$LINENO" 5
36745fi
36746if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036747 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036748Usually this means the macro was only invoked conditionally." "$LINENO" 5
36749fi
36750if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036751 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036752Usually this means the macro was only invoked conditionally." "$LINENO" 5
36753fi
36754if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036755 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036756Usually this means the macro was only invoked conditionally." "$LINENO" 5
36757fi
36758if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036759 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036760Usually this means the macro was only invoked conditionally." "$LINENO" 5
36761fi
cristy73bd4a52010-10-05 11:24:23 +000036762if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036763 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036764Usually this means the macro was only invoked conditionally." "$LINENO" 5
36765fi
cristy99db3872014-01-01 15:11:34 +000036766if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36767 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36768Usually this means the macro was only invoked conditionally." "$LINENO" 5
36769fi
cristy73bd4a52010-10-05 11:24:23 +000036770if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036771 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036772Usually this means the macro was only invoked conditionally." "$LINENO" 5
36773fi
cristyfbb0ef02010-12-19 02:32:11 +000036774if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36775 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36776Usually this means the macro was only invoked conditionally." "$LINENO" 5
36777fi
cristy73bd4a52010-10-05 11:24:23 +000036778if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036779 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036780Usually this means the macro was only invoked conditionally." "$LINENO" 5
36781fi
cristy41cbe8a2011-10-27 01:35:18 +000036782if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36783 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36784Usually this means the macro was only invoked conditionally." "$LINENO" 5
36785fi
cristya054b762012-03-26 23:16:00 +000036786if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36787 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036788Usually this means the macro was only invoked conditionally." "$LINENO" 5
36789fi
cristy73bd4a52010-10-05 11:24:23 +000036790if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036791 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036792Usually this means the macro was only invoked conditionally." "$LINENO" 5
36793fi
36794if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036795 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036796Usually this means the macro was only invoked conditionally." "$LINENO" 5
36797fi
36798if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036799 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036800Usually this means the macro was only invoked conditionally." "$LINENO" 5
36801fi
36802if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036803 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036804Usually this means the macro was only invoked conditionally." "$LINENO" 5
36805fi
cristyb1860752011-03-14 00:27:46 +000036806if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36807 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36808Usually this means the macro was only invoked conditionally." "$LINENO" 5
36809fi
cristy73bd4a52010-10-05 11:24:23 +000036810if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036811 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036812Usually this means the macro was only invoked conditionally." "$LINENO" 5
36813fi
36814if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036815 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036816Usually this means the macro was only invoked conditionally." "$LINENO" 5
36817fi
cristydd17feb2014-03-05 02:06:32 +000036818if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36819 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36820Usually this means the macro was only invoked conditionally." "$LINENO" 5
36821fi
cristy73bd4a52010-10-05 11:24:23 +000036822if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036823 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036824Usually this means the macro was only invoked conditionally." "$LINENO" 5
36825fi
36826if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036827 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036828Usually this means the macro was only invoked conditionally." "$LINENO" 5
36829fi
36830if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036831 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036832Usually this means the macro was only invoked conditionally." "$LINENO" 5
36833fi
36834if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036835 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036836Usually this means the macro was only invoked conditionally." "$LINENO" 5
36837fi
36838if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036839 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036840Usually this means the macro was only invoked conditionally." "$LINENO" 5
36841fi
36842if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036843 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036844Usually this means the macro was only invoked conditionally." "$LINENO" 5
36845fi
cristy3ed852e2009-09-05 21:47:34 +000036846
cristyda16f162011-02-19 23:52:17 +000036847: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036848ac_write_fail=0
36849ac_clean_files_save=$ac_clean_files
36850ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036851{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036852$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036853as_write_fail=0
36854cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036855#! $SHELL
36856# Generated by $as_me.
36857# Run this file to recreate the current configuration.
36858# Compiler output produced by configure, useful for debugging
36859# configure, is in config.log if it exists.
36860
36861debug=false
36862ac_cs_recheck=false
36863ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036864
cristy8b350f62009-11-15 23:12:43 +000036865SHELL=\${CONFIG_SHELL-$SHELL}
36866export SHELL
36867_ASEOF
36868cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36869## -------------------- ##
36870## M4sh Initialization. ##
36871## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036872
36873# Be more Bourne compatible
36874DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036875if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036876 emulate sh
36877 NULLCMD=:
36878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36879 # is contrary to our usage. Disable this feature.
36880 alias -g '${1+"$@"}'='"$@"'
36881 setopt NO_GLOB_SUBST
36882else
cristy8b350f62009-11-15 23:12:43 +000036883 case `(set -o) 2>/dev/null` in #(
36884 *posix*) :
36885 set -o posix ;; #(
36886 *) :
36887 ;;
cristy3ed852e2009-09-05 21:47:34 +000036888esac
cristy3ed852e2009-09-05 21:47:34 +000036889fi
36890
36891
cristy3ed852e2009-09-05 21:47:34 +000036892as_nl='
36893'
36894export as_nl
36895# Printing a long string crashes Solaris 7 /usr/bin/printf.
36896as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36897as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036899# Prefer a ksh shell builtin over an external printf program on Solaris,
36900# but without wasting forks for bash or zsh.
36901if test -z "$BASH_VERSION$ZSH_VERSION" \
36902 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36903 as_echo='print -r --'
36904 as_echo_n='print -rn --'
36905elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036906 as_echo='printf %s\n'
36907 as_echo_n='printf %s'
36908else
36909 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36910 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36911 as_echo_n='/usr/ucb/echo -n'
36912 else
36913 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36914 as_echo_n_body='eval
36915 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036916 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036917 *"$as_nl"*)
36918 expr "X$arg" : "X\\(.*\\)$as_nl";
36919 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36920 esac;
36921 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36922 '
36923 export as_echo_n_body
36924 as_echo_n='sh -c $as_echo_n_body as_echo'
36925 fi
36926 export as_echo_body
36927 as_echo='sh -c $as_echo_body as_echo'
36928fi
36929
36930# The user is always right.
36931if test "${PATH_SEPARATOR+set}" != set; then
36932 PATH_SEPARATOR=:
36933 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36934 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36935 PATH_SEPARATOR=';'
36936 }
36937fi
36938
cristy3ed852e2009-09-05 21:47:34 +000036939
36940# IFS
36941# We need space, tab and new line, in precisely that order. Quoting is
36942# there to prevent editors from complaining about space-tab.
36943# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36944# splitting by setting IFS to empty value.)
36945IFS=" "" $as_nl"
36946
36947# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036948as_myself=
cristy8b350f62009-11-15 23:12:43 +000036949case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036950 *[\\/]* ) as_myself=$0 ;;
36951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36952for as_dir in $PATH
36953do
36954 IFS=$as_save_IFS
36955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36957 done
cristy3ed852e2009-09-05 21:47:34 +000036958IFS=$as_save_IFS
36959
36960 ;;
36961esac
36962# We did not find ourselves, most probably we were run as `sh COMMAND'
36963# in which case we are not to be found in the path.
36964if test "x$as_myself" = x; then
36965 as_myself=$0
36966fi
36967if test ! -f "$as_myself"; then
36968 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036969 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036970fi
36971
cristy8b350f62009-11-15 23:12:43 +000036972# Unset variables that we do not need and which cause bugs (e.g. in
36973# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36974# suppresses any "Segmentation fault" message there. '((' could
36975# trigger a bug in pdksh 5.2.14.
36976for as_var in BASH_ENV ENV MAIL MAILPATH
36977do eval test x\${$as_var+set} = xset \
36978 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036979done
36980PS1='$ '
36981PS2='> '
36982PS4='+ '
36983
36984# NLS nuisances.
36985LC_ALL=C
36986export LC_ALL
36987LANGUAGE=C
36988export LANGUAGE
36989
cristy8b350f62009-11-15 23:12:43 +000036990# CDPATH.
36991(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36992
36993
cristy98dddb52010-11-04 00:30:15 +000036994# as_fn_error STATUS ERROR [LINENO LOG_FD]
36995# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036996# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36997# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036998# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036999as_fn_error ()
37000{
cristy98dddb52010-11-04 00:30:15 +000037001 as_status=$1; test $as_status -eq 0 && as_status=1
37002 if test "$4"; then
37003 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37004 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037005 fi
cristy98dddb52010-11-04 00:30:15 +000037006 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037007 as_fn_exit $as_status
37008} # as_fn_error
37009
37010
37011# as_fn_set_status STATUS
37012# -----------------------
37013# Set $? to STATUS, without forking.
37014as_fn_set_status ()
37015{
37016 return $1
37017} # as_fn_set_status
37018
37019# as_fn_exit STATUS
37020# -----------------
37021# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37022as_fn_exit ()
37023{
37024 set +e
37025 as_fn_set_status $1
37026 exit $1
37027} # as_fn_exit
37028
37029# as_fn_unset VAR
37030# ---------------
37031# Portably unset VAR.
37032as_fn_unset ()
37033{
37034 { eval $1=; unset $1;}
37035}
37036as_unset=as_fn_unset
37037# as_fn_append VAR VALUE
37038# ----------------------
37039# Append the text in VALUE to the end of the definition contained in VAR. Take
37040# advantage of any shell optimizations that allow amortized linear growth over
37041# repeated appends, instead of the typical quadratic growth present in naive
37042# implementations.
37043if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37044 eval 'as_fn_append ()
37045 {
37046 eval $1+=\$2
37047 }'
37048else
37049 as_fn_append ()
37050 {
37051 eval $1=\$$1\$2
37052 }
37053fi # as_fn_append
37054
37055# as_fn_arith ARG...
37056# ------------------
37057# Perform arithmetic evaluation on the ARGs, and store the result in the
37058# global $as_val. Take advantage of shells that can avoid forks. The arguments
37059# must be portable across $(()) and expr.
37060if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37061 eval 'as_fn_arith ()
37062 {
37063 as_val=$(( $* ))
37064 }'
37065else
37066 as_fn_arith ()
37067 {
37068 as_val=`expr "$@" || test $? -eq 1`
37069 }
37070fi # as_fn_arith
37071
37072
cristy3ed852e2009-09-05 21:47:34 +000037073if expr a : '\(a\)' >/dev/null 2>&1 &&
37074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37075 as_expr=expr
37076else
37077 as_expr=false
37078fi
37079
37080if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37081 as_basename=basename
37082else
37083 as_basename=false
37084fi
37085
cristy8b350f62009-11-15 23:12:43 +000037086if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37087 as_dirname=dirname
37088else
37089 as_dirname=false
37090fi
cristy3ed852e2009-09-05 21:47:34 +000037091
cristy3ed852e2009-09-05 21:47:34 +000037092as_me=`$as_basename -- "$0" ||
37093$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37094 X"$0" : 'X\(//\)$' \| \
37095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37096$as_echo X/"$0" |
37097 sed '/^.*\/\([^/][^/]*\)\/*$/{
37098 s//\1/
37099 q
37100 }
37101 /^X\/\(\/\/\)$/{
37102 s//\1/
37103 q
37104 }
37105 /^X\/\(\/\).*/{
37106 s//\1/
37107 q
37108 }
37109 s/.*/./; q'`
37110
cristy8b350f62009-11-15 23:12:43 +000037111# Avoid depending upon Character Ranges.
37112as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37113as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37114as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37115as_cr_digits='0123456789'
37116as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037117
37118ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037119case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037120-n*)
cristy8b350f62009-11-15 23:12:43 +000037121 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037123 xy) ECHO_C='\c';;
37124 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37125 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037126 esac;;
37127*)
37128 ECHO_N='-n';;
37129esac
cristy3ed852e2009-09-05 21:47:34 +000037130
37131rm -f conf$$ conf$$.exe conf$$.file
37132if test -d conf$$.dir; then
37133 rm -f conf$$.dir/conf$$.file
37134else
37135 rm -f conf$$.dir
37136 mkdir conf$$.dir 2>/dev/null
37137fi
37138if (echo >conf$$.file) 2>/dev/null; then
37139 if ln -s conf$$.file conf$$ 2>/dev/null; then
37140 as_ln_s='ln -s'
37141 # ... but there are two gotchas:
37142 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37143 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037144 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037145 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037146 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037147 elif ln conf$$.file conf$$ 2>/dev/null; then
37148 as_ln_s=ln
37149 else
cristy14fefe52012-05-21 00:59:18 +000037150 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037151 fi
37152else
cristy14fefe52012-05-21 00:59:18 +000037153 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037154fi
37155rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37156rmdir conf$$.dir 2>/dev/null
37157
cristy8b350f62009-11-15 23:12:43 +000037158
37159# as_fn_mkdir_p
37160# -------------
37161# Create "$as_dir" as a directory, including parents if necessary.
37162as_fn_mkdir_p ()
37163{
37164
37165 case $as_dir in #(
37166 -*) as_dir=./$as_dir;;
37167 esac
37168 test -d "$as_dir" || eval $as_mkdir_p || {
37169 as_dirs=
37170 while :; do
37171 case $as_dir in #(
37172 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37173 *) as_qdir=$as_dir;;
37174 esac
37175 as_dirs="'$as_qdir' $as_dirs"
37176 as_dir=`$as_dirname -- "$as_dir" ||
37177$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37178 X"$as_dir" : 'X\(//\)[^/]' \| \
37179 X"$as_dir" : 'X\(//\)$' \| \
37180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37181$as_echo X"$as_dir" |
37182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37183 s//\1/
37184 q
37185 }
37186 /^X\(\/\/\)[^/].*/{
37187 s//\1/
37188 q
37189 }
37190 /^X\(\/\/\)$/{
37191 s//\1/
37192 q
37193 }
37194 /^X\(\/\).*/{
37195 s//\1/
37196 q
37197 }
37198 s/.*/./; q'`
37199 test -d "$as_dir" && break
37200 done
37201 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037202 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037203
37204
37205} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037206if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037207 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037208else
37209 test -d ./-p && rmdir ./-p
37210 as_mkdir_p=false
37211fi
37212
cristy14fefe52012-05-21 00:59:18 +000037213
37214# as_fn_executable_p FILE
37215# -----------------------
37216# Test if FILE is an executable regular file.
37217as_fn_executable_p ()
37218{
37219 test -f "$1" && test -x "$1"
37220} # as_fn_executable_p
37221as_test_x='test -x'
37222as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037223
37224# Sed expression to map a string onto a valid CPP name.
37225as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37226
37227# Sed expression to map a string onto a valid variable name.
37228as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37229
37230
37231exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037232## ----------------------------------- ##
37233## Main body of $CONFIG_STATUS script. ##
37234## ----------------------------------- ##
37235_ASEOF
37236test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037237
cristy8b350f62009-11-15 23:12:43 +000037238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37239# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037240# report actual input values of CONFIG_FILES etc. instead of their
37241# values after options handling.
37242ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037243This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037244generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037245
37246 CONFIG_FILES = $CONFIG_FILES
37247 CONFIG_HEADERS = $CONFIG_HEADERS
37248 CONFIG_LINKS = $CONFIG_LINKS
37249 CONFIG_COMMANDS = $CONFIG_COMMANDS
37250 $ $0 $@
37251
37252on `(hostname || uname -n) 2>/dev/null | sed 1q`
37253"
37254
37255_ACEOF
37256
37257case $ac_config_files in *"
37258"*) set x $ac_config_files; shift; ac_config_files=$*;;
37259esac
37260
37261case $ac_config_headers in *"
37262"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37263esac
37264
37265
37266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37267# Files that config.status was made for.
37268config_files="$ac_config_files"
37269config_headers="$ac_config_headers"
37270config_commands="$ac_config_commands"
37271
37272_ACEOF
37273
37274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37275ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037276\`$as_me' instantiates files and other configuration actions
37277from templates according to the current configuration. Unless the files
37278and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037279
cristy8b350f62009-11-15 23:12:43 +000037280Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037281
37282 -h, --help print this help, then exit
37283 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037284 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037285 -q, --quiet, --silent
37286 do not print progress messages
37287 -d, --debug don't remove temporary files
37288 --recheck update $as_me by reconfiguring in the same conditions
37289 --file=FILE[:TEMPLATE]
37290 instantiate the configuration file FILE
37291 --header=FILE[:TEMPLATE]
37292 instantiate the configuration header FILE
37293
37294Configuration files:
37295$config_files
37296
37297Configuration headers:
37298$config_headers
37299
37300Configuration commands:
37301$config_commands
37302
cristy8b350f62009-11-15 23:12:43 +000037303Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037304
37305_ACEOF
37306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037307ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037308ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037309ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037310configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037311 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037312
cristy14fefe52012-05-21 00:59:18 +000037313Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037314This config.status script is free software; the Free Software Foundation
37315gives unlimited permission to copy, distribute and modify it."
37316
37317ac_pwd='$ac_pwd'
37318srcdir='$srcdir'
37319INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037320MKDIR_P='$MKDIR_P'
37321AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037322test -n "\$AWK" || AWK=awk
37323_ACEOF
37324
37325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37326# The default lists apply if the user does not specify any file.
37327ac_need_defaults=:
37328while test $# != 0
37329do
37330 case $1 in
cristyda16f162011-02-19 23:52:17 +000037331 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37334 ac_shift=:
37335 ;;
cristyda16f162011-02-19 23:52:17 +000037336 --*=)
37337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37338 ac_optarg=
37339 ac_shift=:
37340 ;;
cristy3ed852e2009-09-05 21:47:34 +000037341 *)
37342 ac_option=$1
37343 ac_optarg=$2
37344 ac_shift=shift
37345 ;;
37346 esac
37347
37348 case $ac_option in
37349 # Handling of the options.
37350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37351 ac_cs_recheck=: ;;
37352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37353 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037354 --config | --confi | --conf | --con | --co | --c )
37355 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037356 --debug | --debu | --deb | --de | --d | -d )
37357 debug=: ;;
37358 --file | --fil | --fi | --f )
37359 $ac_shift
37360 case $ac_optarg in
37361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037362 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037363 esac
cristy8b350f62009-11-15 23:12:43 +000037364 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037365 ac_need_defaults=false;;
37366 --header | --heade | --head | --hea )
37367 $ac_shift
37368 case $ac_optarg in
37369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37370 esac
cristy8b350f62009-11-15 23:12:43 +000037371 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037372 ac_need_defaults=false;;
37373 --he | --h)
37374 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037375 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037376Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037377 --help | --hel | -h )
37378 $as_echo "$ac_cs_usage"; exit ;;
37379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37381 ac_cs_silent=: ;;
37382
37383 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037384 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037385Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037386
cristy8b350f62009-11-15 23:12:43 +000037387 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037388 ac_need_defaults=false ;;
37389
37390 esac
37391 shift
37392done
37393
37394ac_configure_extra_args=
37395
37396if $ac_cs_silent; then
37397 exec 6>/dev/null
37398 ac_configure_extra_args="$ac_configure_extra_args --silent"
37399fi
37400
37401_ACEOF
37402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37403if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037404 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037405 shift
37406 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37407 CONFIG_SHELL='$SHELL'
37408 export CONFIG_SHELL
37409 exec "\$@"
37410fi
37411
37412_ACEOF
37413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37414exec 5>>config.log
37415{
37416 echo
37417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37418## Running $as_me. ##
37419_ASBOX
37420 $as_echo "$ac_log"
37421} >&5
37422
37423_ACEOF
37424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037425#
37426# INIT-COMMANDS
37427#
37428PACKAGE="$PACKAGE"
37429AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37430
37431
37432# The HP-UX ksh and POSIX shell print the target directory to stdout
37433# if CDPATH is set.
37434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37435
37436sed_quote_subst='$sed_quote_subst'
37437double_quote_subst='$double_quote_subst'
37438delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037439SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37440Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37441GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37442EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37443FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37444SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37445ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37446LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37447macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37448macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37449AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37450DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37451OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37452enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37453enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37454pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37455enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037456PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037457host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37458host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37459host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37460build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37461build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37462build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37463NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37464LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37465max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37466ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37467exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37468lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37469lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37470lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037471lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37472lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037473reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37474reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37475deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37476file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037477file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37478want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37479sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037480AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37481AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037482archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037483STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37484RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37485old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37486old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37487old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37488lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37489CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37490CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37491compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37492GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37493lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37494lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37495lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37496lt_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 +000037497nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37498lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037499objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37500MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37501lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037502lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037503lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037504lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37505lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37506need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037507MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037508DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37509NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37510LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37511OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37512OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37513libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37514shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37515extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37516archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37517enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37518export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37519whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37520compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37521old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37522old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37523archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37524archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37525module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37526module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37527with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37528allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37529no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37530hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037531hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37532hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37533hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37534hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37535hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37536hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37537inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37538link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037539always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37540export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37541exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37542include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37543prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037544postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037545file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37546variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37547need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37548need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37549version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37550runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37551shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37552shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37553libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37554library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37555soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37556install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37557postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37558postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37559finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37560finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37561hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37562sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37563sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37564hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37565enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37566enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37567enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37568old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37569striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37570compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37571predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37572postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37573predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37574postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37575compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37576LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37577reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37578reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37579old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37580compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37581GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37582lt_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 +000037583lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037584lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037585lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37586lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37587archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37588enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37589export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37590whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37591compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37592old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37593old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37594archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37595archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37596module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37597module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37598with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37599allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37600no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37601hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037602hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37603hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37604hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37605hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37606hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37607hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37608inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37609link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037610always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37611export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37612exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37613include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37614prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037615postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037616file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37617hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37618compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37619predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37620postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37621predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37622postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37623compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037624
37625LTCC='$LTCC'
37626LTCFLAGS='$LTCFLAGS'
37627compiler='$compiler_DEFAULT'
37628
cristy0c60a692010-11-04 01:09:47 +000037629# A function that is used when there is no print builtin or printf.
37630func_fallback_echo ()
37631{
37632 eval 'cat <<_LTECHO_EOF
37633\$1
37634_LTECHO_EOF'
37635}
37636
cristy73bd4a52010-10-05 11:24:23 +000037637# Quote evaled strings.
37638for var in SED \
37639GREP \
37640EGREP \
37641FGREP \
cristy0c60a692010-11-04 01:09:47 +000037642SHELL \
37643ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037644LD \
cristy0c60a692010-11-04 01:09:47 +000037645AS \
37646DLLTOOL \
37647OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037648PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037649NM \
37650LN_S \
37651lt_SP2NL \
37652lt_NL2SP \
37653reload_flag \
37654deplibs_check_method \
37655file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037656file_magic_glob \
37657want_nocaseglob \
37658sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037659AR \
37660AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037661archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037662STRIP \
37663RANLIB \
37664CC \
37665CFLAGS \
37666compiler \
37667lt_cv_sys_global_symbol_pipe \
37668lt_cv_sys_global_symbol_to_cdecl \
37669lt_cv_sys_global_symbol_to_c_name_address \
37670lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037671nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037672lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037673lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037674lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037675lt_prog_compiler_static \
37676lt_cv_prog_compiler_c_o \
37677need_locks \
cristyda16f162011-02-19 23:52:17 +000037678MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037679DSYMUTIL \
37680NMEDIT \
37681LIPO \
37682OTOOL \
37683OTOOL64 \
37684shrext_cmds \
37685export_dynamic_flag_spec \
37686whole_archive_flag_spec \
37687compiler_needs_object \
37688with_gnu_ld \
37689allow_undefined_flag \
37690no_undefined_flag \
37691hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037692hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037693exclude_expsyms \
37694include_expsyms \
37695file_list_spec \
37696variables_saved_for_relink \
37697libname_spec \
37698library_names_spec \
37699soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037700install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037701finish_eval \
37702old_striplib \
37703striplib \
37704compiler_lib_search_dirs \
37705predep_objects \
37706postdep_objects \
37707predeps \
37708postdeps \
37709compiler_lib_search_path \
37710LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037711reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037712compiler_CXX \
37713lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037714lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037715lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037716lt_prog_compiler_static_CXX \
37717lt_cv_prog_compiler_c_o_CXX \
37718export_dynamic_flag_spec_CXX \
37719whole_archive_flag_spec_CXX \
37720compiler_needs_object_CXX \
37721with_gnu_ld_CXX \
37722allow_undefined_flag_CXX \
37723no_undefined_flag_CXX \
37724hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037725hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037726exclude_expsyms_CXX \
37727include_expsyms_CXX \
37728file_list_spec_CXX \
37729compiler_lib_search_dirs_CXX \
37730predep_objects_CXX \
37731postdep_objects_CXX \
37732predeps_CXX \
37733postdeps_CXX \
37734compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037735 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037736 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037738 ;;
37739 *)
37740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37741 ;;
37742 esac
37743done
37744
37745# Double-quote double-evaled strings.
37746for var in reload_cmds \
37747old_postinstall_cmds \
37748old_postuninstall_cmds \
37749old_archive_cmds \
37750extract_expsyms_cmds \
37751old_archive_from_new_cmds \
37752old_archive_from_expsyms_cmds \
37753archive_cmds \
37754archive_expsym_cmds \
37755module_cmds \
37756module_expsym_cmds \
37757export_symbols_cmds \
37758prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037759postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037760postinstall_cmds \
37761postuninstall_cmds \
37762finish_cmds \
37763sys_lib_search_path_spec \
37764sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037765reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037766old_archive_cmds_CXX \
37767old_archive_from_new_cmds_CXX \
37768old_archive_from_expsyms_cmds_CXX \
37769archive_cmds_CXX \
37770archive_expsym_cmds_CXX \
37771module_cmds_CXX \
37772module_expsym_cmds_CXX \
37773export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037774prelink_cmds_CXX \
37775postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037776 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037777 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037779 ;;
37780 *)
37781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37782 ;;
37783 esac
37784done
37785
cristy73bd4a52010-10-05 11:24:23 +000037786ac_aux_dir='$ac_aux_dir'
37787xsi_shell='$xsi_shell'
37788lt_shell_append='$lt_shell_append'
37789
37790# See if we are running on zsh, and set the options which allow our
37791# commands through without removal of \ escapes INIT.
37792if test -n "\${ZSH_VERSION+set}" ; then
37793 setopt NO_GLOB_SUBST
37794fi
37795
37796
37797 PACKAGE='$PACKAGE'
37798 VERSION='$VERSION'
37799 TIMESTAMP='$TIMESTAMP'
37800 RM='$RM'
37801 ofile='$ofile'
37802
37803
37804
37805
37806
37807
cristy3ed852e2009-09-05 21:47:34 +000037808_ACEOF
37809
37810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37811
37812# Handling of arguments.
37813for ac_config_target in $ac_config_targets
37814do
37815 case $ac_config_target in
37816 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037817 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037818 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37819 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37820 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37821 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37822 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37823 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37824 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37825 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037826 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037827 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37828 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37829 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37830 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37831 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037832 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037833 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037834 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037835 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37836 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37837 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37838 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37839 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037840 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037841 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037842 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37843 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37844 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037845 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37846 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037847 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037848 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037849 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037850 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037851 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37852 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37853 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37854 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037855 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37856 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37857 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37858 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37859 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37860 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37861 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37862 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37863 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37864 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37865 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37866 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037867 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37868 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037869
cristy98dddb52010-11-04 00:30:15 +000037870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037871 esac
37872done
37873
37874
37875# If the user did not use the arguments to specify the items to instantiate,
37876# then the envvar interface is used. Set only those that are not.
37877# We use the long form for the default assignment because of an extremely
37878# bizarre bug on SunOS 4.1.3.
37879if $ac_need_defaults; then
37880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37883fi
37884
37885# Have a temporary directory for convenience. Make it in the build tree
37886# simply because there is no reason against having it here, and in addition,
37887# creating and moving files from /tmp can sometimes cause problems.
37888# Hook for its removal unless debugging.
37889# Note that there is a small window in which the directory will not be cleaned:
37890# after its creation but before its name has been assigned to `$tmp'.
37891$debug ||
37892{
cristyda16f162011-02-19 23:52:17 +000037893 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037894 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037895 : "${ac_tmp:=$tmp}"
37896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037897' 0
cristy8b350f62009-11-15 23:12:43 +000037898 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037899}
37900# Create a (secure) tmp directory for tmp files.
37901
37902{
37903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037904 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037905} ||
37906{
37907 tmp=./conf$$-$RANDOM
37908 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037910ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037911
37912# Set up the scripts for CONFIG_FILES section.
37913# No need to generate them if there are no CONFIG_FILES.
37914# This happens for instance with `./config.status config.h'.
37915if test -n "$CONFIG_FILES"; then
37916
37917
cristy8b350f62009-11-15 23:12:43 +000037918ac_cr=`echo X | tr X '\015'`
37919# On cygwin, bash can eat \r inside `` if the user requested igncr.
37920# But we know of no other shell where ac_cr would be empty at this
37921# point, so we can use a bashism as a fallback.
37922if test "x$ac_cr" = x; then
37923 eval ac_cr=\$\'\\r\'
37924fi
cristy3ed852e2009-09-05 21:47:34 +000037925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037927 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037928else
37929 ac_cs_awk_cr=$ac_cr
37930fi
37931
cristyda16f162011-02-19 23:52:17 +000037932echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037933_ACEOF
37934
37935
37936{
37937 echo "cat >conf$$subs.awk <<_ACEOF" &&
37938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37939 echo "_ACEOF"
37940} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037943ac_delim='%!_!# '
37944for ac_last_try in false false false false false :; do
37945 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037947
37948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37949 if test $ac_delim_n = $ac_delim_num; then
37950 break
37951 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037953 else
37954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37955 fi
37956done
37957rm -f conf$$subs.sh
37958
37959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037961_ACEOF
37962sed -n '
37963h
37964s/^/S["/; s/!.*/"]=/
37965p
37966g
37967s/^[^!]*!//
37968:repl
37969t repl
37970s/'"$ac_delim"'$//
37971t delim
37972:nl
37973h
cristycd4c5312009-11-22 01:19:08 +000037974s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037975t more1
37976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37977p
37978n
37979b repl
37980:more1
37981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37982p
37983g
37984s/.\{148\}//
37985t nl
37986:delim
37987h
cristycd4c5312009-11-22 01:19:08 +000037988s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037989t more2
37990s/["\\]/\\&/g; s/^/"/; s/$/"/
37991p
37992b
37993:more2
37994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37995p
37996g
37997s/.\{148\}//
37998t delim
37999' <conf$$subs.awk | sed '
38000/^[^""]/{
38001 N
38002 s/\n//
38003}
38004' >>$CONFIG_STATUS || ac_write_fail=1
38005rm -f conf$$subs.awk
38006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38007_ACAWK
cristyda16f162011-02-19 23:52:17 +000038008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038009 for (key in S) S_is_set[key] = 1
38010 FS = ""
38011
38012}
38013{
38014 line = $ 0
38015 nfields = split(line, field, "@")
38016 substed = 0
38017 len = length(field[1])
38018 for (i = 2; i < nfields; i++) {
38019 key = field[i]
38020 keylen = length(key)
38021 if (S_is_set[key]) {
38022 value = S[key]
38023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38024 len += length(value) + length(field[++i])
38025 substed = 1
38026 } else
38027 len += 1 + keylen
38028 }
38029
38030 print line
38031}
38032
38033_ACAWK
38034_ACEOF
38035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38038else
38039 cat
cristyda16f162011-02-19 23:52:17 +000038040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038042_ACEOF
38043
cristy98dddb52010-11-04 00:30:15 +000038044# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038046# trailing colons and then remove the whole line if VPATH becomes empty
38047# (actually we leave an empty line to preserve line numbers).
38048if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38050h
38051s///
38052s/^/:/
38053s/[ ]*$/:/
38054s/:\$(srcdir):/:/g
38055s/:\${srcdir}:/:/g
38056s/:@srcdir@:/:/g
38057s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038058s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038059x
38060s/\(=[ ]*\).*/\1/
38061G
38062s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038063s/^[^=]*=[ ]*$//
38064}'
38065fi
38066
38067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38068fi # test -n "$CONFIG_FILES"
38069
38070# Set up the scripts for CONFIG_HEADERS section.
38071# No need to generate them if there are no CONFIG_HEADERS.
38072# This happens for instance with `./config.status Makefile'.
38073if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038074cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038075BEGIN {
38076_ACEOF
38077
38078# Transform confdefs.h into an awk script `defines.awk', embedded as
38079# here-document in config.status, that substitutes the proper values into
38080# config.h.in to produce config.h.
38081
38082# Create a delimiter string that does not exist in confdefs.h, to ease
38083# handling of long lines.
38084ac_delim='%!_!# '
38085for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38087 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038088 break
38089 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038091 else
38092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38093 fi
38094done
38095
38096# For the awk script, D is an array of macro values keyed by name,
38097# likewise P contains macro parameters if any. Preserve backslash
38098# newline sequences.
38099
38100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38101sed -n '
38102s/.\{148\}/&'"$ac_delim"'/g
38103t rset
38104:rset
38105s/^[ ]*#[ ]*define[ ][ ]*/ /
38106t def
38107d
38108:def
38109s/\\$//
38110t bsnl
38111s/["\\]/\\&/g
38112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38113D["\1"]=" \3"/p
38114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38115d
38116:bsnl
38117s/["\\]/\\&/g
38118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38119D["\1"]=" \3\\\\\\n"\\/p
38120t cont
38121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38122t cont
38123d
38124:cont
38125n
38126s/.\{148\}/&'"$ac_delim"'/g
38127t clear
38128:clear
38129s/\\$//
38130t bsnlc
38131s/["\\]/\\&/g; s/^/"/; s/$/"/p
38132d
38133:bsnlc
38134s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38135b cont
38136' <confdefs.h | sed '
38137s/'"$ac_delim"'/"\\\
38138"/g' >>$CONFIG_STATUS || ac_write_fail=1
38139
38140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38141 for (key in D) D_is_set[key] = 1
38142 FS = ""
38143}
38144/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38145 line = \$ 0
38146 split(line, arg, " ")
38147 if (arg[1] == "#") {
38148 defundef = arg[2]
38149 mac1 = arg[3]
38150 } else {
38151 defundef = substr(arg[1], 2)
38152 mac1 = arg[2]
38153 }
38154 split(mac1, mac2, "(") #)
38155 macro = mac2[1]
38156 prefix = substr(line, 1, index(line, defundef) - 1)
38157 if (D_is_set[macro]) {
38158 # Preserve the white space surrounding the "#".
38159 print prefix "define", macro P[macro] D[macro]
38160 next
38161 } else {
38162 # Replace #undef with comments. This is necessary, for example,
38163 # in the case of _POSIX_SOURCE, which is predefined and required
38164 # on some systems where configure will not decide to define it.
38165 if (defundef == "undef") {
38166 print "/*", prefix defundef, macro, "*/"
38167 next
38168 }
38169 }
38170}
38171{ print }
38172_ACAWK
38173_ACEOF
38174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038176fi # test -n "$CONFIG_HEADERS"
38177
38178
38179eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38180shift
38181for ac_tag
38182do
38183 case $ac_tag in
38184 :[FHLC]) ac_mode=$ac_tag; continue;;
38185 esac
38186 case $ac_mode$ac_tag in
38187 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038189 :[FH]-) ac_tag=-:-;;
38190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38191 esac
38192 ac_save_IFS=$IFS
38193 IFS=:
38194 set x $ac_tag
38195 IFS=$ac_save_IFS
38196 shift
38197 ac_file=$1
38198 shift
38199
38200 case $ac_mode in
38201 :L) ac_source=$1;;
38202 :[FH])
38203 ac_file_inputs=
38204 for ac_f
38205 do
38206 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038207 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038208 *) # Look for the file first in the build tree, then in the source tree
38209 # (if the path is not absolute). The absolute path cannot be DOS-style,
38210 # because $ac_f cannot contain `:'.
38211 test -f "$ac_f" ||
38212 case $ac_f in
38213 [\\/$]*) false;;
38214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38215 esac ||
cristy98dddb52010-11-04 00:30:15 +000038216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038217 esac
38218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038219 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038220 done
38221
38222 # Let's still pretend it is `configure' which instantiates (i.e., don't
38223 # use $as_me), people would be surprised to read:
38224 # /* config.h. Generated by config.status. */
38225 configure_input='Generated from '`
38226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38227 `' by configure.'
38228 if test x"$ac_file" != x-; then
38229 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038231$as_echo "$as_me: creating $ac_file" >&6;}
38232 fi
38233 # Neutralize special characters interpreted by sed in replacement strings.
38234 case $configure_input in #(
38235 *\&* | *\|* | *\\* )
38236 ac_sed_conf_input=`$as_echo "$configure_input" |
38237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38238 *) ac_sed_conf_input=$configure_input;;
38239 esac
38240
38241 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038244 esac
38245 ;;
38246 esac
38247
38248 ac_dir=`$as_dirname -- "$ac_file" ||
38249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38250 X"$ac_file" : 'X\(//\)[^/]' \| \
38251 X"$ac_file" : 'X\(//\)$' \| \
38252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38253$as_echo X"$ac_file" |
38254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38255 s//\1/
38256 q
38257 }
38258 /^X\(\/\/\)[^/].*/{
38259 s//\1/
38260 q
38261 }
38262 /^X\(\/\/\)$/{
38263 s//\1/
38264 q
38265 }
38266 /^X\(\/\).*/{
38267 s//\1/
38268 q
38269 }
38270 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038271 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038272 ac_builddir=.
38273
38274case "$ac_dir" in
38275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38276*)
38277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38278 # A ".." for each directory in $ac_dir_suffix.
38279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38280 case $ac_top_builddir_sub in
38281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38283 esac ;;
38284esac
38285ac_abs_top_builddir=$ac_pwd
38286ac_abs_builddir=$ac_pwd$ac_dir_suffix
38287# for backward compatibility:
38288ac_top_builddir=$ac_top_build_prefix
38289
38290case $srcdir in
38291 .) # We are building in place.
38292 ac_srcdir=.
38293 ac_top_srcdir=$ac_top_builddir_sub
38294 ac_abs_top_srcdir=$ac_pwd ;;
38295 [\\/]* | ?:[\\/]* ) # Absolute name.
38296 ac_srcdir=$srcdir$ac_dir_suffix;
38297 ac_top_srcdir=$srcdir
38298 ac_abs_top_srcdir=$srcdir ;;
38299 *) # Relative name.
38300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38301 ac_top_srcdir=$ac_top_build_prefix$srcdir
38302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38303esac
38304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38305
38306
38307 case $ac_mode in
38308 :F)
38309 #
38310 # CONFIG_FILE
38311 #
38312
38313 case $INSTALL in
38314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38316 esac
cristy73bd4a52010-10-05 11:24:23 +000038317 ac_MKDIR_P=$MKDIR_P
38318 case $MKDIR_P in
38319 [\\/$]* | ?:[\\/]* ) ;;
38320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38321 esac
cristy3ed852e2009-09-05 21:47:34 +000038322_ACEOF
38323
38324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38325# If the template does not know about datarootdir, expand it.
38326# FIXME: This hack should be removed a few years after 2.60.
38327ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038328ac_sed_dataroot='
38329/datarootdir/ {
38330 p
38331 q
38332}
38333/@datadir@/p
38334/@docdir@/p
38335/@infodir@/p
38336/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038337/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38339*datarootdir*) ac_datarootdir_seen=yes;;
38340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38343_ACEOF
38344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38345 ac_datarootdir_hack='
38346 s&@datadir@&$datadir&g
38347 s&@docdir@&$docdir&g
38348 s&@infodir@&$infodir&g
38349 s&@localedir@&$localedir&g
38350 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038351 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038352esac
38353_ACEOF
38354
38355# Neutralize VPATH when `$srcdir' = `.'.
38356# Shell code in configure.ac might set extrasub.
38357# FIXME: do we really want to maintain this feature?
38358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38359ac_sed_extra="$ac_vpsub
38360$extrasub
38361_ACEOF
38362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38363:t
38364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38365s|@configure_input@|$ac_sed_conf_input|;t t
38366s&@top_builddir@&$ac_top_builddir_sub&;t t
38367s&@top_build_prefix@&$ac_top_build_prefix&;t t
38368s&@srcdir@&$ac_srcdir&;t t
38369s&@abs_srcdir@&$ac_abs_srcdir&;t t
38370s&@top_srcdir@&$ac_top_srcdir&;t t
38371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38372s&@builddir@&$ac_builddir&;t t
38373s&@abs_builddir@&$ac_abs_builddir&;t t
38374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38375s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038376s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038377$ac_datarootdir_hack
38378"
cristyda16f162011-02-19 23:52:17 +000038379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038381
38382test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38385 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038387which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038388$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038389which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038390
cristyda16f162011-02-19 23:52:17 +000038391 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038392 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038395 esac \
cristy98dddb52010-11-04 00:30:15 +000038396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038397 ;;
38398 :H)
38399 #
38400 # CONFIG_HEADER
38401 #
38402 if test x"$ac_file" != x-; then
38403 {
38404 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38406 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038410$as_echo "$as_me: $ac_file is unchanged" >&6;}
38411 else
38412 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038413 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038415 fi
38416 else
38417 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038419 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038420 fi
cristy73bd4a52010-10-05 11:24:23 +000038421# Compute "$ac_file"'s index in $config_headers.
38422_am_arg="$ac_file"
38423_am_stamp_count=1
38424for _am_header in $config_headers :; do
38425 case $_am_header in
38426 $_am_arg | $_am_arg:* )
38427 break ;;
38428 * )
38429 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38430 esac
38431done
38432echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38433$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38434 X"$_am_arg" : 'X\(//\)[^/]' \| \
38435 X"$_am_arg" : 'X\(//\)$' \| \
38436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38437$as_echo X"$_am_arg" |
38438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38439 s//\1/
38440 q
38441 }
38442 /^X\(\/\/\)[^/].*/{
38443 s//\1/
38444 q
38445 }
38446 /^X\(\/\/\)$/{
38447 s//\1/
38448 q
38449 }
38450 /^X\(\/\).*/{
38451 s//\1/
38452 q
38453 }
38454 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038455 ;;
38456
cristy8b350f62009-11-15 23:12:43 +000038457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038458$as_echo "$as_me: executing $ac_file commands" >&6;}
38459 ;;
38460 esac
38461
38462
38463 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038464 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038465ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38466ac_prefix_conf_PKG=`echo MagickCore`
38467ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38468ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38469ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38470if test ".$ac_prefix_conf_INP" = "."; then
38471 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38472 case "$ac_file" in
38473 *.h) ac_prefix_conf_INP=$ac_file ;;
38474 *)
38475 esac
38476 test ".$ac_prefix_conf_INP" != "." && break
38477 done
38478fi
38479if test ".$ac_prefix_conf_INP" = "."; then
38480 case "$ac_prefix_conf_OUT" in
38481 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38482 ;;
38483 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38484 ;;
38485 *) ac_prefix_conf_INP=config.h
38486 ;;
38487 esac
38488fi
38489if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038490 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038491else
38492 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38493 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38494 fi fi
38495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38496$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38497 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038498 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38499 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38500 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38501 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38502 $as_echo "#endif/" >> conftest.prefix
38503 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38504 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38505 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038506 # now executing _script on _DEF input to create _OUT output file
38507 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38508 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38509 echo ' ' >>$tmp/pconfig.h
38510 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38511
38512 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38513 echo ' ' >>$tmp/pconfig.h
38514 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38515 echo "#endif" >>$tmp/pconfig.h
38516 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38518$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38519 else
38520 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38521$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38522 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38523 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38524 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38525$as_echo X"$ac_prefix_conf_OUT" |
38526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38527 s//\1/
38528 q
38529 }
38530 /^X\(\/\/\)[^/].*/{
38531 s//\1/
38532 q
38533 }
38534 /^X\(\/\/\)$/{
38535 s//\1/
38536 q
38537 }
38538 /^X\(\/\).*/{
38539 s//\1/
38540 q
38541 }
38542 s/.*/./; q'`
38543 as_dir="$ac_dir"; as_fn_mkdir_p
38544 rm -f "$ac_prefix_conf_OUT"
38545 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38546 fi
cristy73bd4a52010-10-05 11:24:23 +000038547 else
cristy98dddb52010-11-04 00:30:15 +000038548 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 +000038549 fi
38550 rm -f conftest.*
38551fi
38552 ;;
38553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038554 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038555 # are listed without --file. Let's play safe and only enable the eval
38556 # if we detect the quoting.
38557 case $CONFIG_FILES in
38558 *\'*) eval set x "$CONFIG_FILES" ;;
38559 *) set x $CONFIG_FILES ;;
38560 esac
38561 shift
38562 for mf
38563 do
38564 # Strip MF so we end up with the name of the file.
38565 mf=`echo "$mf" | sed -e 's/:.*$//'`
38566 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038567 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038568 # some people rename them; so instead we look at the file content.
38569 # Grep'ing the first line is not enough: some people post-process
38570 # each Makefile.in and add a new line on top of each file to say so.
38571 # Grep'ing the whole file is not good either: AIX grep has a line
38572 # limit of 2048, but all sed's we know have understand at least 4000.
38573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38574 dirpart=`$as_dirname -- "$mf" ||
38575$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38576 X"$mf" : 'X\(//\)[^/]' \| \
38577 X"$mf" : 'X\(//\)$' \| \
38578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38579$as_echo X"$mf" |
38580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38581 s//\1/
38582 q
38583 }
38584 /^X\(\/\/\)[^/].*/{
38585 s//\1/
38586 q
38587 }
38588 /^X\(\/\/\)$/{
38589 s//\1/
38590 q
38591 }
38592 /^X\(\/\).*/{
38593 s//\1/
38594 q
38595 }
38596 s/.*/./; q'`
38597 else
38598 continue
38599 fi
38600 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038601 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038602 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38603 test -z "$DEPDIR" && continue
38604 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038605 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038606 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038607 # Find all dependency output files, they are included files with
38608 # $(DEPDIR) in their names. We invoke sed twice because it is the
38609 # simplest approach to changing $(DEPDIR) to its actual value in the
38610 # expansion.
38611 for file in `sed -n "
38612 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038613 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038614 # Make sure the directory exists.
38615 test -f "$dirpart/$file" && continue
38616 fdir=`$as_dirname -- "$file" ||
38617$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38618 X"$file" : 'X\(//\)[^/]' \| \
38619 X"$file" : 'X\(//\)$' \| \
38620 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38621$as_echo X"$file" |
38622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38623 s//\1/
38624 q
38625 }
38626 /^X\(\/\/\)[^/].*/{
38627 s//\1/
38628 q
38629 }
38630 /^X\(\/\/\)$/{
38631 s//\1/
38632 q
38633 }
38634 /^X\(\/\).*/{
38635 s//\1/
38636 q
38637 }
38638 s/.*/./; q'`
38639 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38640 # echo "creating $dirpart/$file"
38641 echo '# dummy' > "$dirpart/$file"
38642 done
38643 done
38644}
38645 ;;
38646 "libtool":C)
38647
38648 # See if we are running on zsh, and set the options which allow our
38649 # commands through without removal of \ escapes.
38650 if test -n "${ZSH_VERSION+set}" ; then
38651 setopt NO_GLOB_SUBST
38652 fi
38653
38654 cfgfile="${ofile}T"
38655 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38656 $RM "$cfgfile"
38657
38658 cat <<_LT_EOF >> "$cfgfile"
38659#! $SHELL
38660
38661# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38662# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38663# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38664# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38665#
38666# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038667# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38668# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038669# Written by Gordon Matzigkeit, 1996
38670#
38671# This file is part of GNU Libtool.
38672#
38673# GNU Libtool is free software; you can redistribute it and/or
38674# modify it under the terms of the GNU General Public License as
38675# published by the Free Software Foundation; either version 2 of
38676# the License, or (at your option) any later version.
38677#
38678# As a special exception to the GNU General Public License,
38679# if you distribute this file as part of a program or library that
38680# is built using GNU Libtool, you may include this file under the
38681# same distribution terms that you use for the rest of that program.
38682#
38683# GNU Libtool is distributed in the hope that it will be useful,
38684# but WITHOUT ANY WARRANTY; without even the implied warranty of
38685# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38686# GNU General Public License for more details.
38687#
38688# You should have received a copy of the GNU General Public License
38689# along with GNU Libtool; see the file COPYING. If not, a copy
38690# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38691# obtained by writing to the Free Software Foundation, Inc.,
38692# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38693
38694
38695# The names of the tagged configurations supported by this script.
38696available_tags="CXX "
38697
38698# ### BEGIN LIBTOOL CONFIG
38699
38700# A sed program that does not truncate output.
38701SED=$lt_SED
38702
38703# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38704Xsed="\$SED -e 1s/^X//"
38705
38706# A grep program that handles long lines.
38707GREP=$lt_GREP
38708
38709# An ERE matcher.
38710EGREP=$lt_EGREP
38711
38712# A literal string matcher.
38713FGREP=$lt_FGREP
38714
cristy0c60a692010-11-04 01:09:47 +000038715# Shell to use when invoking shell scripts.
38716SHELL=$lt_SHELL
38717
38718# An echo program that protects backslashes.
38719ECHO=$lt_ECHO
38720
cristy73bd4a52010-10-05 11:24:23 +000038721# Which release of libtool.m4 was used?
38722macro_version=$macro_version
38723macro_revision=$macro_revision
38724
38725# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038726AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038727
38728# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038729DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038730
38731# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038732OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038733
38734# Whether or not to build shared libraries.
38735build_libtool_libs=$enable_shared
38736
38737# Whether or not to build static libraries.
38738build_old_libs=$enable_static
38739
38740# What type of objects to build.
38741pic_mode=$pic_mode
38742
38743# Whether or not to optimize for fast installation.
38744fast_install=$enable_fast_install
38745
cristy99bd5232011-12-07 14:38:20 +000038746# The PATH separator for the build system.
38747PATH_SEPARATOR=$lt_PATH_SEPARATOR
38748
cristy73bd4a52010-10-05 11:24:23 +000038749# The host system.
38750host_alias=$host_alias
38751host=$host
38752host_os=$host_os
38753
38754# The build system.
38755build_alias=$build_alias
38756build=$build
38757build_os=$build_os
38758
38759# A BSD- or MS-compatible name lister.
38760NM=$lt_NM
38761
38762# Whether we need soft or hard links.
38763LN_S=$lt_LN_S
38764
38765# What is the maximum length of a command?
38766max_cmd_len=$max_cmd_len
38767
38768# Object file suffix (normally "o").
38769objext=$ac_objext
38770
38771# Executable file suffix (normally "").
38772exeext=$exeext
38773
38774# whether the shell understands "unset".
38775lt_unset=$lt_unset
38776
38777# turn spaces into newlines.
38778SP2NL=$lt_lt_SP2NL
38779
38780# turn newlines into spaces.
38781NL2SP=$lt_lt_NL2SP
38782
cristyda16f162011-02-19 23:52:17 +000038783# convert \$build file names to \$host format.
38784to_host_file_cmd=$lt_cv_to_host_file_cmd
38785
38786# convert \$build files to toolchain format.
38787to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38788
cristy73bd4a52010-10-05 11:24:23 +000038789# Method to check whether dependent libraries are shared objects.
38790deplibs_check_method=$lt_deplibs_check_method
38791
cristyda16f162011-02-19 23:52:17 +000038792# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038793file_magic_cmd=$lt_file_magic_cmd
38794
cristyda16f162011-02-19 23:52:17 +000038795# How to find potential files when deplibs_check_method = "file_magic".
38796file_magic_glob=$lt_file_magic_glob
38797
38798# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38799want_nocaseglob=$lt_want_nocaseglob
38800
38801# Command to associate shared and link libraries.
38802sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38803
cristy73bd4a52010-10-05 11:24:23 +000038804# The archiver.
38805AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038806
38807# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038808AR_FLAGS=$lt_AR_FLAGS
38809
cristyda16f162011-02-19 23:52:17 +000038810# How to feed a file listing to the archiver.
38811archiver_list_spec=$lt_archiver_list_spec
38812
cristy73bd4a52010-10-05 11:24:23 +000038813# A symbol stripping program.
38814STRIP=$lt_STRIP
38815
38816# Commands used to install an old-style archive.
38817RANLIB=$lt_RANLIB
38818old_postinstall_cmds=$lt_old_postinstall_cmds
38819old_postuninstall_cmds=$lt_old_postuninstall_cmds
38820
cristy0c60a692010-11-04 01:09:47 +000038821# Whether to use a lock for old archive extraction.
38822lock_old_archive_extraction=$lock_old_archive_extraction
38823
cristy73bd4a52010-10-05 11:24:23 +000038824# A C compiler.
38825LTCC=$lt_CC
38826
38827# LTCC compiler flags.
38828LTCFLAGS=$lt_CFLAGS
38829
38830# Take the output of nm and produce a listing of raw symbols and C names.
38831global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38832
38833# Transform the output of nm in a proper C declaration.
38834global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38835
38836# Transform the output of nm in a C name address pair.
38837global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38838
38839# Transform the output of nm in a C name address pair when lib prefix is needed.
38840global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38841
cristyda16f162011-02-19 23:52:17 +000038842# Specify filename containing input files for \$NM.
38843nm_file_list_spec=$lt_nm_file_list_spec
38844
38845# The root where to search for dependent libraries,and in which our libraries should be installed.
38846lt_sysroot=$lt_sysroot
38847
cristy73bd4a52010-10-05 11:24:23 +000038848# The name of the directory that contains temporary libtool files.
38849objdir=$objdir
38850
cristy73bd4a52010-10-05 11:24:23 +000038851# Used to examine libraries when file_magic_cmd begins with "file".
38852MAGIC_CMD=$MAGIC_CMD
38853
38854# Must we lock files when doing compilation?
38855need_locks=$lt_need_locks
38856
cristyda16f162011-02-19 23:52:17 +000038857# Manifest tool.
38858MANIFEST_TOOL=$lt_MANIFEST_TOOL
38859
cristy73bd4a52010-10-05 11:24:23 +000038860# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38861DSYMUTIL=$lt_DSYMUTIL
38862
38863# Tool to change global to local symbols on Mac OS X.
38864NMEDIT=$lt_NMEDIT
38865
38866# Tool to manipulate fat objects and archives on Mac OS X.
38867LIPO=$lt_LIPO
38868
38869# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38870OTOOL=$lt_OTOOL
38871
38872# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38873OTOOL64=$lt_OTOOL64
38874
38875# Old archive suffix (normally "a").
38876libext=$libext
38877
38878# Shared library suffix (normally ".so").
38879shrext_cmds=$lt_shrext_cmds
38880
38881# The commands to extract the exported symbol list from a shared archive.
38882extract_expsyms_cmds=$lt_extract_expsyms_cmds
38883
38884# Variables whose values should be saved in libtool wrapper scripts and
38885# restored at link time.
38886variables_saved_for_relink=$lt_variables_saved_for_relink
38887
38888# Do we need the "lib" prefix for modules?
38889need_lib_prefix=$need_lib_prefix
38890
38891# Do we need a version for libraries?
38892need_version=$need_version
38893
38894# Library versioning type.
38895version_type=$version_type
38896
38897# Shared library runtime path variable.
38898runpath_var=$runpath_var
38899
38900# Shared library path variable.
38901shlibpath_var=$shlibpath_var
38902
38903# Is shlibpath searched before the hard-coded library search path?
38904shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38905
38906# Format of library name prefix.
38907libname_spec=$lt_libname_spec
38908
38909# List of archive names. First name is the real one, the rest are links.
38910# The last name is the one that the linker finds with -lNAME
38911library_names_spec=$lt_library_names_spec
38912
38913# The coded name of the library, if different from the real name.
38914soname_spec=$lt_soname_spec
38915
cristy0c60a692010-11-04 01:09:47 +000038916# Permission mode override for installation of shared libraries.
38917install_override_mode=$lt_install_override_mode
38918
cristy73bd4a52010-10-05 11:24:23 +000038919# Command to use after installation of a shared archive.
38920postinstall_cmds=$lt_postinstall_cmds
38921
38922# Command to use after uninstallation of a shared archive.
38923postuninstall_cmds=$lt_postuninstall_cmds
38924
38925# Commands used to finish a libtool library installation in a directory.
38926finish_cmds=$lt_finish_cmds
38927
38928# As "finish_cmds", except a single script fragment to be evaled but
38929# not shown.
38930finish_eval=$lt_finish_eval
38931
38932# Whether we should hardcode library paths into libraries.
38933hardcode_into_libs=$hardcode_into_libs
38934
38935# Compile-time system search path for libraries.
38936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38937
38938# Run-time system search path for libraries.
38939sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38940
38941# Whether dlopen is supported.
38942dlopen_support=$enable_dlopen
38943
38944# Whether dlopen of programs is supported.
38945dlopen_self=$enable_dlopen_self
38946
38947# Whether dlopen of statically linked programs is supported.
38948dlopen_self_static=$enable_dlopen_self_static
38949
38950# Commands to strip libraries.
38951old_striplib=$lt_old_striplib
38952striplib=$lt_striplib
38953
38954
38955# The linker used to build libraries.
38956LD=$lt_LD
38957
cristy0c60a692010-11-04 01:09:47 +000038958# How to create reloadable object files.
38959reload_flag=$lt_reload_flag
38960reload_cmds=$lt_reload_cmds
38961
cristy73bd4a52010-10-05 11:24:23 +000038962# Commands used to build an old-style archive.
38963old_archive_cmds=$lt_old_archive_cmds
38964
38965# A language specific compiler.
38966CC=$lt_compiler
38967
38968# Is the compiler the GNU compiler?
38969with_gcc=$GCC
38970
38971# Compiler flag to turn off builtin functions.
38972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38973
cristy73bd4a52010-10-05 11:24:23 +000038974# Additional compiler flags for building library objects.
38975pic_flag=$lt_lt_prog_compiler_pic
38976
cristyda16f162011-02-19 23:52:17 +000038977# How to pass a linker flag through the compiler.
38978wl=$lt_lt_prog_compiler_wl
38979
cristy73bd4a52010-10-05 11:24:23 +000038980# Compiler flag to prevent dynamic linking.
38981link_static_flag=$lt_lt_prog_compiler_static
38982
38983# Does compiler simultaneously support -c and -o options?
38984compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38985
38986# Whether or not to add -lc for building shared libraries.
38987build_libtool_need_lc=$archive_cmds_need_lc
38988
38989# Whether or not to disallow shared libs when runtime libs are static.
38990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38991
38992# Compiler flag to allow reflexive dlopens.
38993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38994
38995# Compiler flag to generate shared objects directly from archives.
38996whole_archive_flag_spec=$lt_whole_archive_flag_spec
38997
38998# Whether the compiler copes with passing no objects directly.
38999compiler_needs_object=$lt_compiler_needs_object
39000
39001# Create an old-style archive from a shared archive.
39002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39003
39004# Create a temporary old-style archive to link instead of a shared archive.
39005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39006
39007# Commands used to build a shared archive.
39008archive_cmds=$lt_archive_cmds
39009archive_expsym_cmds=$lt_archive_expsym_cmds
39010
39011# Commands used to build a loadable module if different from building
39012# a shared archive.
39013module_cmds=$lt_module_cmds
39014module_expsym_cmds=$lt_module_expsym_cmds
39015
39016# Whether we are building with GNU ld or not.
39017with_gnu_ld=$lt_with_gnu_ld
39018
39019# Flag that allows shared libraries with undefined symbols to be built.
39020allow_undefined_flag=$lt_allow_undefined_flag
39021
39022# Flag that enforces no undefined symbols.
39023no_undefined_flag=$lt_no_undefined_flag
39024
39025# Flag to hardcode \$libdir into a binary during linking.
39026# This must work even if \$libdir does not exist
39027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39028
cristy73bd4a52010-10-05 11:24:23 +000039029# Whether we need a single "-rpath" flag with a separated argument.
39030hardcode_libdir_separator=$lt_hardcode_libdir_separator
39031
39032# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39033# DIR into the resulting binary.
39034hardcode_direct=$hardcode_direct
39035
39036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39037# DIR into the resulting binary and the resulting library dependency is
39038# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39039# library is relocated.
39040hardcode_direct_absolute=$hardcode_direct_absolute
39041
39042# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39043# into the resulting binary.
39044hardcode_minus_L=$hardcode_minus_L
39045
39046# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39047# into the resulting binary.
39048hardcode_shlibpath_var=$hardcode_shlibpath_var
39049
39050# Set to "yes" if building a shared library automatically hardcodes DIR
39051# into the library and all subsequent libraries and executables linked
39052# against it.
39053hardcode_automatic=$hardcode_automatic
39054
39055# Set to yes if linker adds runtime paths of dependent libraries
39056# to runtime path list.
39057inherit_rpath=$inherit_rpath
39058
39059# Whether libtool must link a program against all its dependency libraries.
39060link_all_deplibs=$link_all_deplibs
39061
cristy73bd4a52010-10-05 11:24:23 +000039062# Set to "yes" if exported symbols are required.
39063always_export_symbols=$always_export_symbols
39064
39065# The commands to list exported symbols.
39066export_symbols_cmds=$lt_export_symbols_cmds
39067
39068# Symbols that should not be listed in the preloaded symbols.
39069exclude_expsyms=$lt_exclude_expsyms
39070
39071# Symbols that must always be exported.
39072include_expsyms=$lt_include_expsyms
39073
39074# Commands necessary for linking programs (against libraries) with templates.
39075prelink_cmds=$lt_prelink_cmds
39076
cristyda16f162011-02-19 23:52:17 +000039077# Commands necessary for finishing linking programs.
39078postlink_cmds=$lt_postlink_cmds
39079
cristy73bd4a52010-10-05 11:24:23 +000039080# Specify filename containing input files.
39081file_list_spec=$lt_file_list_spec
39082
39083# How to hardcode a shared library path into an executable.
39084hardcode_action=$hardcode_action
39085
39086# The directories searched by this compiler when creating a shared library.
39087compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39088
39089# Dependencies to place before and after the objects being linked to
39090# create a shared library.
39091predep_objects=$lt_predep_objects
39092postdep_objects=$lt_postdep_objects
39093predeps=$lt_predeps
39094postdeps=$lt_postdeps
39095
39096# The library search path used internally by the compiler when linking
39097# a shared library.
39098compiler_lib_search_path=$lt_compiler_lib_search_path
39099
39100# ### END LIBTOOL CONFIG
39101
39102_LT_EOF
39103
39104 case $host_os in
39105 aix3*)
39106 cat <<\_LT_EOF >> "$cfgfile"
39107# AIX sometimes has problems with the GCC collect2 program. For some
39108# reason, if we set the COLLECT_NAMES environment variable, the problems
39109# vanish in a puff of smoke.
39110if test "X${COLLECT_NAMES+set}" != Xset; then
39111 COLLECT_NAMES=
39112 export COLLECT_NAMES
39113fi
39114_LT_EOF
39115 ;;
39116 esac
39117
39118
39119ltmain="$ac_aux_dir/ltmain.sh"
39120
39121
39122 # We use sed instead of cat because bash on DJGPP gets confused if
39123 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39124 # text mode, it properly converts lines to CR/LF. This bash problem
39125 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039126 sed '$q' "$ltmain" >> "$cfgfile" \
39127 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039128
cristyda16f162011-02-19 23:52:17 +000039129 if test x"$xsi_shell" = xyes; then
39130 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39131func_dirname ()\
39132{\
39133\ case ${1} in\
39134\ */*) func_dirname_result="${1%/*}${2}" ;;\
39135\ * ) func_dirname_result="${3}" ;;\
39136\ esac\
39137} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39138 && mv -f "$cfgfile.tmp" "$cfgfile" \
39139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39140test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039141
39142
cristyda16f162011-02-19 23:52:17 +000039143 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39144func_basename ()\
39145{\
39146\ func_basename_result="${1##*/}"\
39147} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39148 && mv -f "$cfgfile.tmp" "$cfgfile" \
39149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39150test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039151
39152
cristyda16f162011-02-19 23:52:17 +000039153 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39154func_dirname_and_basename ()\
39155{\
39156\ case ${1} in\
39157\ */*) func_dirname_result="${1%/*}${2}" ;;\
39158\ * ) func_dirname_result="${3}" ;;\
39159\ esac\
39160\ func_basename_result="${1##*/}"\
39161} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39162 && mv -f "$cfgfile.tmp" "$cfgfile" \
39163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39164test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039165
cristyda16f162011-02-19 23:52:17 +000039166
39167 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39168func_stripname ()\
39169{\
39170\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39171\ # positional parameters, so assign one to ordinary parameter first.\
39172\ func_stripname_result=${3}\
39173\ func_stripname_result=${func_stripname_result#"${1}"}\
39174\ func_stripname_result=${func_stripname_result%"${2}"}\
39175} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39176 && mv -f "$cfgfile.tmp" "$cfgfile" \
39177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39178test 0 -eq $? || _lt_function_replace_fail=:
39179
39180
39181 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39182func_split_long_opt ()\
39183{\
39184\ func_split_long_opt_name=${1%%=*}\
39185\ func_split_long_opt_arg=${1#*=}\
39186} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39187 && mv -f "$cfgfile.tmp" "$cfgfile" \
39188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39189test 0 -eq $? || _lt_function_replace_fail=:
39190
39191
39192 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39193func_split_short_opt ()\
39194{\
39195\ func_split_short_opt_arg=${1#??}\
39196\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39197} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39198 && mv -f "$cfgfile.tmp" "$cfgfile" \
39199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39200test 0 -eq $? || _lt_function_replace_fail=:
39201
39202
39203 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39204func_lo2o ()\
39205{\
39206\ case ${1} in\
39207\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39208\ *) func_lo2o_result=${1} ;;\
39209\ esac\
39210} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39211 && mv -f "$cfgfile.tmp" "$cfgfile" \
39212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39213test 0 -eq $? || _lt_function_replace_fail=:
39214
39215
39216 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39217func_xform ()\
39218{\
39219 func_xform_result=${1%.*}.lo\
39220} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39221 && mv -f "$cfgfile.tmp" "$cfgfile" \
39222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39223test 0 -eq $? || _lt_function_replace_fail=:
39224
39225
39226 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39227func_arith ()\
39228{\
39229 func_arith_result=$(( $* ))\
39230} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39231 && mv -f "$cfgfile.tmp" "$cfgfile" \
39232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39233test 0 -eq $? || _lt_function_replace_fail=:
39234
39235
39236 sed -e '/^func_len ()$/,/^} # func_len /c\
39237func_len ()\
39238{\
39239 func_len_result=${#1}\
39240} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39241 && mv -f "$cfgfile.tmp" "$cfgfile" \
39242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39243test 0 -eq $? || _lt_function_replace_fail=:
39244
39245fi
39246
39247if test x"$lt_shell_append" = xyes; then
39248 sed -e '/^func_append ()$/,/^} # func_append /c\
39249func_append ()\
39250{\
39251 eval "${1}+=\\${2}"\
39252} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39253 && mv -f "$cfgfile.tmp" "$cfgfile" \
39254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39255test 0 -eq $? || _lt_function_replace_fail=:
39256
39257
39258 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39259func_append_quoted ()\
39260{\
39261\ func_quote_for_eval "${2}"\
39262\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39263} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39264 && mv -f "$cfgfile.tmp" "$cfgfile" \
39265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39266test 0 -eq $? || _lt_function_replace_fail=:
39267
39268
39269 # Save a `func_append' function call where possible by direct use of '+='
39270 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39271 && mv -f "$cfgfile.tmp" "$cfgfile" \
39272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39273 test 0 -eq $? || _lt_function_replace_fail=:
39274else
39275 # Save a `func_append' function call even when '+=' is not available
39276 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39277 && mv -f "$cfgfile.tmp" "$cfgfile" \
39278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39279 test 0 -eq $? || _lt_function_replace_fail=:
39280fi
39281
39282if test x"$_lt_function_replace_fail" = x":"; then
39283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39284$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39285fi
39286
39287
39288 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39290 chmod +x "$ofile"
39291
39292
39293 cat <<_LT_EOF >> "$ofile"
39294
39295# ### BEGIN LIBTOOL TAG CONFIG: CXX
39296
39297# The linker used to build libraries.
39298LD=$lt_LD_CXX
39299
cristy0c60a692010-11-04 01:09:47 +000039300# How to create reloadable object files.
39301reload_flag=$lt_reload_flag_CXX
39302reload_cmds=$lt_reload_cmds_CXX
39303
cristy73bd4a52010-10-05 11:24:23 +000039304# Commands used to build an old-style archive.
39305old_archive_cmds=$lt_old_archive_cmds_CXX
39306
39307# A language specific compiler.
39308CC=$lt_compiler_CXX
39309
39310# Is the compiler the GNU compiler?
39311with_gcc=$GCC_CXX
39312
39313# Compiler flag to turn off builtin functions.
39314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39315
cristy73bd4a52010-10-05 11:24:23 +000039316# Additional compiler flags for building library objects.
39317pic_flag=$lt_lt_prog_compiler_pic_CXX
39318
cristyda16f162011-02-19 23:52:17 +000039319# How to pass a linker flag through the compiler.
39320wl=$lt_lt_prog_compiler_wl_CXX
39321
cristy73bd4a52010-10-05 11:24:23 +000039322# Compiler flag to prevent dynamic linking.
39323link_static_flag=$lt_lt_prog_compiler_static_CXX
39324
39325# Does compiler simultaneously support -c and -o options?
39326compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39327
39328# Whether or not to add -lc for building shared libraries.
39329build_libtool_need_lc=$archive_cmds_need_lc_CXX
39330
39331# Whether or not to disallow shared libs when runtime libs are static.
39332allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39333
39334# Compiler flag to allow reflexive dlopens.
39335export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39336
39337# Compiler flag to generate shared objects directly from archives.
39338whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39339
39340# Whether the compiler copes with passing no objects directly.
39341compiler_needs_object=$lt_compiler_needs_object_CXX
39342
39343# Create an old-style archive from a shared archive.
39344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39345
39346# Create a temporary old-style archive to link instead of a shared archive.
39347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39348
39349# Commands used to build a shared archive.
39350archive_cmds=$lt_archive_cmds_CXX
39351archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39352
39353# Commands used to build a loadable module if different from building
39354# a shared archive.
39355module_cmds=$lt_module_cmds_CXX
39356module_expsym_cmds=$lt_module_expsym_cmds_CXX
39357
39358# Whether we are building with GNU ld or not.
39359with_gnu_ld=$lt_with_gnu_ld_CXX
39360
39361# Flag that allows shared libraries with undefined symbols to be built.
39362allow_undefined_flag=$lt_allow_undefined_flag_CXX
39363
39364# Flag that enforces no undefined symbols.
39365no_undefined_flag=$lt_no_undefined_flag_CXX
39366
39367# Flag to hardcode \$libdir into a binary during linking.
39368# This must work even if \$libdir does not exist
39369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39370
cristy73bd4a52010-10-05 11:24:23 +000039371# Whether we need a single "-rpath" flag with a separated argument.
39372hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39373
39374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39375# DIR into the resulting binary.
39376hardcode_direct=$hardcode_direct_CXX
39377
39378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39379# DIR into the resulting binary and the resulting library dependency is
39380# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39381# library is relocated.
39382hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39383
39384# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39385# into the resulting binary.
39386hardcode_minus_L=$hardcode_minus_L_CXX
39387
39388# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39389# into the resulting binary.
39390hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39391
39392# Set to "yes" if building a shared library automatically hardcodes DIR
39393# into the library and all subsequent libraries and executables linked
39394# against it.
39395hardcode_automatic=$hardcode_automatic_CXX
39396
39397# Set to yes if linker adds runtime paths of dependent libraries
39398# to runtime path list.
39399inherit_rpath=$inherit_rpath_CXX
39400
39401# Whether libtool must link a program against all its dependency libraries.
39402link_all_deplibs=$link_all_deplibs_CXX
39403
cristy73bd4a52010-10-05 11:24:23 +000039404# Set to "yes" if exported symbols are required.
39405always_export_symbols=$always_export_symbols_CXX
39406
39407# The commands to list exported symbols.
39408export_symbols_cmds=$lt_export_symbols_cmds_CXX
39409
39410# Symbols that should not be listed in the preloaded symbols.
39411exclude_expsyms=$lt_exclude_expsyms_CXX
39412
39413# Symbols that must always be exported.
39414include_expsyms=$lt_include_expsyms_CXX
39415
39416# Commands necessary for linking programs (against libraries) with templates.
39417prelink_cmds=$lt_prelink_cmds_CXX
39418
cristyda16f162011-02-19 23:52:17 +000039419# Commands necessary for finishing linking programs.
39420postlink_cmds=$lt_postlink_cmds_CXX
39421
cristy73bd4a52010-10-05 11:24:23 +000039422# Specify filename containing input files.
39423file_list_spec=$lt_file_list_spec_CXX
39424
39425# How to hardcode a shared library path into an executable.
39426hardcode_action=$hardcode_action_CXX
39427
39428# The directories searched by this compiler when creating a shared library.
39429compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39430
39431# Dependencies to place before and after the objects being linked to
39432# create a shared library.
39433predep_objects=$lt_predep_objects_CXX
39434postdep_objects=$lt_postdep_objects_CXX
39435predeps=$lt_predeps_CXX
39436postdeps=$lt_postdeps_CXX
39437
39438# The library search path used internally by the compiler when linking
39439# a shared library.
39440compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39441
39442# ### END LIBTOOL TAG CONFIG: CXX
39443_LT_EOF
39444
39445 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039446 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039447 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039448 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039449 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39450 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39451
39452 esac
39453done # for ac_tag
39454
39455
cristy8b350f62009-11-15 23:12:43 +000039456as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039457_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039458ac_clean_files=$ac_clean_files_save
39459
39460test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039461 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039462
39463
39464# configure is writing to config.log, and then calls config.status.
39465# config.status does its own redirection, appending to config.log.
39466# Unfortunately, on DOS this fails, as config.log is still kept open
39467# by configure, so config.status won't be able to write to it; its
39468# output is simply discarded. So we exec the FD to /dev/null,
39469# effectively closing config.log, so it can be properly (re)opened and
39470# appended to by config.status. When coming back to configure, we
39471# need to make the FD available again.
39472if test "$no_create" != yes; then
39473 ac_cs_success=:
39474 ac_config_status_args=
39475 test "$silent" = yes &&
39476 ac_config_status_args="$ac_config_status_args --quiet"
39477 exec 5>/dev/null
39478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39479 exec 5>>config.log
39480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39481 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039482 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039483fi
39484if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039486$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39487fi
39488
39489
cristy9af1cbf2014-12-28 22:03:09 +000039490# ==============================================================================
39491# ImageMagick Configuration
39492# ==============================================================================
39493{ $as_echo "$as_me:${as_lineno-$LINENO}:
39494==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039495ImageMagick is configured as follows. Please verify that this configuration
39496matches your expectations.
39497
cristy9af1cbf2014-12-28 22:03:09 +000039498 Host system type: $host
39499 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039500
39501 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039502 ------------------------------------------------------------------------------
39503 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39504 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39505 Module support --with-modules=$build_modules $build_modules
39506 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39507 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39508 High Dynamic Range Imagery
39509 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039510
cristy9af1cbf2014-12-28 22:03:09 +000039511 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039512
cristy9af1cbf2014-12-28 22:03:09 +000039513 Delegate Library Configuration:
39514 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39515 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39516 DJVU --with-djvu=$with_djvu $have_djvu
39517 DPS --with-dps=$with_dps $have_dps
39518 FFTW --with-fftw=$with_fftw $have_fftw
39519 FlashPIX --with-fpx=$with_fpx $have_fpx
39520 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39521 FreeType --with-freetype=$with_freetype $have_freetype
39522 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39523 Graphviz --with-gvc=$with_gvc $have_gvc
39524 JBIG --with-jbig=$with_jbig $have_jbig
39525 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39526 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39527 LCMS v1 --with-lcms=$with_lcms $have_lcms
39528 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39529 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39530 LQR --with-lqr=$with_lqr $have_lqr
39531 LTDL --with-ltdl=$with_ltdl $have_ltdl
39532 LZMA --with-lzma=$with_lzma $have_lzma
39533 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39534 OpenEXR --with-openexr=$with_openexr $have_openexr
39535 PANGO --with-pango=$with_pango $have_pango
39536 PERL --with-perl=$with_perl $have_perl
39537 PNG --with-png=$with_png $have_png
39538 RSVG --with-rsvg=$with_rsvg $have_rsvg
39539 TIFF --with-tiff=$with_tiff $have_tiff
39540 WEBP --with-webp=$with_webp $have_webp
39541 WMF --with-wmf=$with_wmf $have_wmf
39542 X11 --with-x=$with_x $have_x
39543 XML --with-xml=$with_xml $have_xml
39544 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039545
cristy9af1cbf2014-12-28 22:03:09 +000039546 Delegate Program Configuration:
39547 GhostPCL None $PCLDelegate ($PCLVersion)
39548 GhostXPS None $XPSDelegate ($XPSVersion)
39549 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039550
cristy9af1cbf2014-12-28 22:03:09 +000039551 Font Configuration:
39552 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39553 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39554 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39555 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039556
cristy9af1cbf2014-12-28 22:03:09 +000039557 X11 Configuration:
39558 X_CFLAGS = $X_CFLAGS
39559 X_PRE_LIBS = $X_PRE_LIBS
39560 X_LIBS = $X_LIBS
39561 X_EXTRA_LIBS = $X_EXTRA_LIBS
39562
39563 Options used to compile and link:
39564 PREFIX = $PREFIX_DIR
39565 EXEC-PREFIX = $EXEC_PREFIX_DIR
39566 VERSION = $PACKAGE_VERSION
39567 CC = $CC
39568 CFLAGS = $CFLAGS
39569 CPPFLAGS = $CPPFLAGS
39570 PCFLAGS = $PCFLAGS
39571 DEFS = $DEFS
39572 LDFLAGS = $LDFLAGS
39573 LIBS = $LIBS
39574 CXX = $CXX
39575 CXXFLAGS = $CXXFLAGS
39576 FEATURES = $MAGICK_FEATURES
39577 DELEGATES = $MAGICK_DELEGATES
39578==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039579" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039580$as_echo "$as_me:
39581==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039582ImageMagick is configured as follows. Please verify that this configuration
39583matches your expectations.
39584
cristy9af1cbf2014-12-28 22:03:09 +000039585 Host system type: $host
39586 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039587
39588 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039589 ------------------------------------------------------------------------------
39590 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39591 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39592 Module support --with-modules=$build_modules $build_modules
39593 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39594 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39595 High Dynamic Range Imagery
39596 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039597
cristy9af1cbf2014-12-28 22:03:09 +000039598 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039599
cristy9af1cbf2014-12-28 22:03:09 +000039600 Delegate Library Configuration:
39601 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39602 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39603 DJVU --with-djvu=$with_djvu $have_djvu
39604 DPS --with-dps=$with_dps $have_dps
39605 FFTW --with-fftw=$with_fftw $have_fftw
39606 FlashPIX --with-fpx=$with_fpx $have_fpx
39607 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39608 FreeType --with-freetype=$with_freetype $have_freetype
39609 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39610 Graphviz --with-gvc=$with_gvc $have_gvc
39611 JBIG --with-jbig=$with_jbig $have_jbig
39612 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39613 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39614 LCMS v1 --with-lcms=$with_lcms $have_lcms
39615 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39616 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39617 LQR --with-lqr=$with_lqr $have_lqr
39618 LTDL --with-ltdl=$with_ltdl $have_ltdl
39619 LZMA --with-lzma=$with_lzma $have_lzma
39620 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39621 OpenEXR --with-openexr=$with_openexr $have_openexr
39622 PANGO --with-pango=$with_pango $have_pango
39623 PERL --with-perl=$with_perl $have_perl
39624 PNG --with-png=$with_png $have_png
39625 RSVG --with-rsvg=$with_rsvg $have_rsvg
39626 TIFF --with-tiff=$with_tiff $have_tiff
39627 WEBP --with-webp=$with_webp $have_webp
39628 WMF --with-wmf=$with_wmf $have_wmf
39629 X11 --with-x=$with_x $have_x
39630 XML --with-xml=$with_xml $have_xml
39631 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039632
cristy9af1cbf2014-12-28 22:03:09 +000039633 Delegate Program Configuration:
39634 GhostPCL None $PCLDelegate ($PCLVersion)
39635 GhostXPS None $XPSDelegate ($XPSVersion)
39636 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039637
cristy9af1cbf2014-12-28 22:03:09 +000039638 Font Configuration:
39639 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39640 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39641 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39642 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039643
cristy9af1cbf2014-12-28 22:03:09 +000039644 X11 Configuration:
39645 X_CFLAGS = $X_CFLAGS
39646 X_PRE_LIBS = $X_PRE_LIBS
39647 X_LIBS = $X_LIBS
39648 X_EXTRA_LIBS = $X_EXTRA_LIBS
39649
39650 Options used to compile and link:
39651 PREFIX = $PREFIX_DIR
39652 EXEC-PREFIX = $EXEC_PREFIX_DIR
39653 VERSION = $PACKAGE_VERSION
39654 CC = $CC
39655 CFLAGS = $CFLAGS
39656 CPPFLAGS = $CPPFLAGS
39657 PCFLAGS = $PCFLAGS
39658 DEFS = $DEFS
39659 LDFLAGS = $LDFLAGS
39660 LIBS = $LIBS
39661 CXX = $CXX
39662 CXXFLAGS = $CXXFLAGS
39663 FEATURES = $MAGICK_FEATURES
39664 DELEGATES = $MAGICK_DELEGATES
39665==============================================================================
39666" >&6;}