blob: 0477a727862beb22a1953afebcd465751d1d5142 [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
cristy73bd4a52010-10-05 11:24:23 +0000766XML_DELEGATE_FALSE
767XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000768XML_LIBS
769XML_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000770WMF_DELEGATE_FALSE
771WMF_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000772WMF_LIBS
773WMF_CFLAGS
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
cristy73bd4a52010-10-05 11:24:23 +0000788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000790PNG_LIBS
791PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800OPENEXR_LIBS
801OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000804LZMA_LIBS
805LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808LQR_LIBS
809LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000816LCMS_LIBS
817LCMS_CFLAGS
cristyb054e072015-06-05 20:35:43 +0000818LCMS2_LIBS
819LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000820JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821JPEG_DELEGATE_FALSE
822JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824JBIG_DELEGATE_FALSE
825JBIG_DELEGATE_TRUE
826GVC_DELEGATE_FALSE
827GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828GVC_LIBS
829GVC_CFLAGS
830GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831GS_DELEGATE_FALSE
832GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000833FREETYPE_DELEGATE_FALSE
834FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000835FREETYPE_LIBS
836FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000837FONTCONFIG_DELEGATE_FALSE
838FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FONTCONFIG_LIBS
840FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000842DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000845ddjvuapi_LIBS
846ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000847FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848FPX_DELEGATE_FALSE
849FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000851FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000852FFTW_DELEGATE_FALSE
853FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000854fftw3_LIBS
855fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000856DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857DPS_DELEGATE_FALSE
858DPS_DELEGATE_TRUE
859AUTOTRACE_DELEGATE_FALSE
860AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861AUTOTRACE_LIBS
862AUTOTRACE_CFLAGS
863LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000866ZLIB_DELEGATE_FALSE
867ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000868ZLIB_LIBS
869ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000870XEXT_LIBS
871X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872X11_DELEGATE_FALSE
873X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874X_EXTRA_LIBS
875X_LIBS
876X_PRE_LIBS
877X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000878XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000879BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000880BZLIB_DELEGATE_FALSE
881BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000882CCMALLOCDelegate
883UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884HasUMEM_FALSE
885HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000886JEMALLOC_LIBS
887HasJEMALLOC_FALSE
888HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000889GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000890WITH_MAGICK_PLUS_PLUS_FALSE
891WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000893MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000894POW_LIB
895LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000900UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000903INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000904UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000906INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000907INT32_T
908UINT16_T
909INT16_T
910UINT8_T
911INT8_T
912LIBRARY_EXTRA_CPPFLAGS
913MODULE_EXTRA_CPPFLAGS
914LIBSTDCLDFLAGS
915PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000916MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000917MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000918QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000919LEGACY_SUPPORT_FALSE
920LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000921MAINT
922MAINTAINER_MODE_FALSE
923MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000925WITH_MODULES_FALSE
926WITH_MODULES_TRUE
927WITH_SHARED_LIBS_FALSE
928WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000930CXXCPP
931OTOOL64
932OTOOL
933LIPO
934NMEDIT
935DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000936MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000937RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000938NM
939ac_ct_DUMPBIN
940DUMPBIN
941LIBTOOL
942OBJDUMP
943DLLTOOL
944AS
cristy3ed852e2009-09-05 21:47:34 +0000945LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000946CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000947CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000948OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000949THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000950PTHREAD_CFLAGS
951PTHREAD_LIBS
952PTHREAD_CC
953ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000954pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000955SHAREARCH_DIR
956INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000957WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000958USING_CL_FALSE
959USING_CL_TRUE
960CYGWIN_BUILD_FALSE
961CYGWIN_BUILD_TRUE
962WIN32_NATIVE_BUILD_FALSE
963WIN32_NATIVE_BUILD_TRUE
964WINGDI32_DELEGATE_FALSE
965WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000966GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000967HAVE_LD_VERSION_SCRIPT_FALSE
968HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000969PKG_CONFIG_LIBDIR
970PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000971PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000972PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000973LN_S
cristy3ed852e2009-09-05 21:47:34 +0000974LD
cristy73bd4a52010-10-05 11:24:23 +0000975FGREP
976SED
977am__fastdepCXX_FALSE
978am__fastdepCXX_TRUE
979CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000980ac_ct_CXX
981CXXFLAGS
982CXX
cristy9e007fe2015-01-03 16:05:07 +0000983ac_ct_AR
984AR
cristya0b81c32010-01-22 02:54:33 +0000985EGREP
986GREP
987CPP
cristy73bd4a52010-10-05 11:24:23 +0000988am__fastdepCC_FALSE
989am__fastdepCC_TRUE
990CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000991am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000992AMDEPBACKSLASH
993AMDEP_FALSE
994AMDEP_TRUE
995am__quote
996am__include
997DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000998OBJEXT
999EXEEXT
1000ac_ct_CC
1001CPPFLAGS
1002LDFLAGS
1003CFLAGS
1004CC
1005DIRSEP
1006MAGICK_FILTER_MODULE_PATH
1007MAGICK_CONFIGURE_BUILD_PATH
1008MAGICK_CONFIGURE_SRC_PATH
1009MAGICK_CODER_MODULE_PATH
1010MAN_DIR
1011INFO_DIR
1012PERSISTINCLUDE_DIR
1013INCLUDE_DIR
1014LIB_DIR
1015LOCALSTATE_DIR
1016SHAREDSTATE_DIR
1017SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001018DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001019DATA_DIR
1020LIBEXEC_DIR
1021SBIN_DIR
1022BIN_DIR
1023EXEC_PREFIX_DIR
1024PREFIX_DIR
1025CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001026MAGICKPP_LIB_VERSION_TEXT
1027MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIB_VERSION_NUMBER
1029MAGICK_LIB_VERSION_TEXT
1030MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001031PACKAGE_VERSION_ADDENDUM
1032PACKAGE_RELEASE_DATE
1033PACKAGE_LIB_VERSION_NUMBER
1034PACKAGE_LIB_VERSION
1035PACKAGE_CHANGE_DATE
1036PACKAGE_RELEASE
1037PACKAGE_PERL_VERSION
1038MAGICKPP_LIBRARY_VERSION_INFO
1039MAGICKPP_LIBRARY_CURRENT_MIN
1040MAGICKPP_LIBRARY_AGE
1041MAGICKPP_LIBRARY_REVISION
1042MAGICKPP_LIBRARY_CURRENT
1043MAGICK_LIBRARY_VERSION_INFO
1044MAGICK_LIBRARY_CURRENT_MIN
1045MAGICK_LIBRARY_AGE
1046MAGICK_LIBRARY_REVISION
1047MAGICK_LIBRARY_CURRENT
1048MAGICK_SVN_REVISION
1049MAGICK_VERSION
1050MAGICK_PATCHLEVEL_VERSION
1051MAGICK_MICRO_VERSION
1052MAGICK_MINOR_VERSION
1053MAGICK_MAJOR_VERSION
1054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
1057CONFIGURE_ARGS
1058DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001059AM_BACKSLASH
1060AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001061AM_DEFAULT_V
1062AM_V
cristy73bd4a52010-10-05 11:24:23 +00001063am__untar
1064am__tar
1065AMTAR
1066am__leading_dot
1067SET_MAKE
1068AWK
1069mkdir_p
1070MKDIR_P
1071INSTALL_STRIP_PROGRAM
1072STRIP
1073install_sh
1074MAKEINFO
1075AUTOHEADER
1076AUTOMAKE
1077AUTOCONF
1078ACLOCAL
1079VERSION
1080PACKAGE
1081CYGPATH_W
1082am__isrc
1083INSTALL_DATA
1084INSTALL_SCRIPT
1085INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001086target_os
1087target_vendor
1088target_cpu
1089target
1090host_os
1091host_vendor
1092host_cpu
1093host
1094build_os
1095build_vendor
1096build_cpu
1097build
cristy3ed852e2009-09-05 21:47:34 +00001098target_alias
1099host_alias
1100build_alias
1101LIBS
1102ECHO_T
1103ECHO_N
1104ECHO_C
1105DEFS
1106mandir
1107localedir
1108libdir
1109psdir
1110pdfdir
1111dvidir
1112htmldir
1113infodir
1114docdir
1115oldincludedir
1116includedir
1117localstatedir
1118sharedstatedir
1119sysconfdir
1120datadir
1121datarootdir
1122libexecdir
1123sbindir
1124bindir
1125program_transform_name
1126prefix
1127exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001128PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001129PACKAGE_BUGREPORT
1130PACKAGE_STRING
1131PACKAGE_VERSION
1132PACKAGE_TARNAME
1133PACKAGE_NAME
1134PATH_SEPARATOR
1135SHELL'
1136ac_subst_files=''
1137ac_user_opts='
1138enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001139enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001140enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001141enable_dependency_tracking
1142with_gnu_ld
1143with_dmalloc
cristya0459972013-11-03 18:09:35 +00001144with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001145enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001146enable_bounds_checking
1147enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001148with_includearch_dir
1149with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001150with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001151with_threads
1152enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001153enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001154enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001155enable_shared
1156enable_static
1157with_pic
1158enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001159with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001160enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001161with_modules
1162enable_delegate_build
1163enable_deprecated
1164enable_installed
1165enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001166enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001167enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001168enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001169enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001170enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001171enable_ccmalloc
1172enable_efence
1173enable_prof
1174enable_gprof
1175enable_gcov
1176with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001177enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001178with_quantum_depth
1179with_cache
1180with_frozenpaths
1181with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001182with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001183with_perl
1184with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001185with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001186with_umem
1187with_libstdc
1188with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001189with_x
cristy3ed852e2009-09-05 21:47:34 +00001190with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001191with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001192with_autotrace
1193with_dps
cristy430a7312010-01-21 20:44:04 +00001194with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001195with_fftw
1196with_fpx
cristy853d9902014-08-21 18:50:43 +00001197with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001198with_fontconfig
1199with_freetype
1200with_gslib
1201with_fontpath
1202with_gs_font_dir
1203with_gvc
1204with_jbig
1205with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001206with_lcms
cristy99db3872014-01-01 15:11:34 +00001207with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001208with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001209with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001210with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001211with_pango
cristy3ed852e2009-09-05 21:47:34 +00001212with_png
1213with_rsvg
1214with_tiff
cristyb1860752011-03-14 00:27:46 +00001215with_webp
cristy3ed852e2009-09-05 21:47:34 +00001216with_windows_font_dir
1217with_wmf
1218with_xml
cristydd17feb2014-03-05 02:06:32 +00001219enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001220'
1221 ac_precious_vars='build_alias
1222host_alias
1223target_alias
1224CC
1225CFLAGS
1226LDFLAGS
1227LIBS
1228CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001229CPP
cristy3ed852e2009-09-05 21:47:34 +00001230CXX
1231CXXFLAGS
1232CCC
cristy73bd4a52010-10-05 11:24:23 +00001233PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001234PKG_CONFIG_PATH
1235PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001236CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001237XMKMF
cristy32f75d42015-06-05 18:46:23 +00001238ZLIB_CFLAGS
1239ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001240AUTOTRACE_CFLAGS
1241AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001242fftw3_CFLAGS
1243fftw3_LIBS
1244ddjvuapi_CFLAGS
1245ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246FONTCONFIG_CFLAGS
1247FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001248FREETYPE_CFLAGS
1249FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001250GVC_CFLAGS
1251GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001252LCMS2_CFLAGS
1253LCMS2_LIBS
cristy32f75d42015-06-05 18:46:23 +00001254LCMS_CFLAGS
1255LCMS_LIBS
cristy99db3872014-01-01 15:11:34 +00001256LIBOPENJP2_CFLAGS
1257LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001258LQR_CFLAGS
1259LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001260LZMA_CFLAGS
1261LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001262OPENEXR_CFLAGS
1263OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001264PANGO_CFLAGS
1265PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001266PNG_CFLAGS
1267PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001268RSVG_CFLAGS
1269RSVG_LIBS
1270CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001271CAIRO_SVG_LIBS
1272WMF_CFLAGS
1273WMF_LIBS
1274XML_CFLAGS
1275XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001276
1277
1278# Initialize some variables set by options.
1279ac_init_help=
1280ac_init_version=false
1281ac_unrecognized_opts=
1282ac_unrecognized_sep=
1283# The variables have the same names as the options, with
1284# dashes changed to underlines.
1285cache_file=/dev/null
1286exec_prefix=NONE
1287no_create=
1288no_recursion=
1289prefix=NONE
1290program_prefix=NONE
1291program_suffix=NONE
1292program_transform_name=s,x,x,
1293silent=
1294site=
1295srcdir=
1296verbose=
1297x_includes=NONE
1298x_libraries=NONE
1299
1300# Installation directory options.
1301# These are left unexpanded so users can "make install exec_prefix=/foo"
1302# and all the variables that are supposed to be based on exec_prefix
1303# by default will actually change.
1304# Use braces instead of parens because sh, perl, etc. also accept them.
1305# (The list follows the same order as the GNU Coding Standards.)
1306bindir='${exec_prefix}/bin'
1307sbindir='${exec_prefix}/sbin'
1308libexecdir='${exec_prefix}/libexec'
1309datarootdir='${prefix}/share'
1310datadir='${datarootdir}'
1311sysconfdir='${prefix}/etc'
1312sharedstatedir='${prefix}/com'
1313localstatedir='${prefix}/var'
1314includedir='${prefix}/include'
1315oldincludedir='/usr/include'
1316docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1317infodir='${datarootdir}/info'
1318htmldir='${docdir}'
1319dvidir='${docdir}'
1320pdfdir='${docdir}'
1321psdir='${docdir}'
1322libdir='${exec_prefix}/lib'
1323localedir='${datarootdir}/locale'
1324mandir='${datarootdir}/man'
1325
1326ac_prev=
1327ac_dashdash=
1328for ac_option
1329do
1330 # If the previous option needs an argument, assign it.
1331 if test -n "$ac_prev"; then
1332 eval $ac_prev=\$ac_option
1333 ac_prev=
1334 continue
1335 fi
1336
1337 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001338 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1339 *=) ac_optarg= ;;
1340 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001341 esac
1342
1343 # Accept the important Cygnus configure options, so we can diagnose typos.
1344
1345 case $ac_dashdash$ac_option in
1346 --)
1347 ac_dashdash=yes ;;
1348
1349 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1350 ac_prev=bindir ;;
1351 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1352 bindir=$ac_optarg ;;
1353
1354 -build | --build | --buil | --bui | --bu)
1355 ac_prev=build_alias ;;
1356 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1357 build_alias=$ac_optarg ;;
1358
1359 -cache-file | --cache-file | --cache-fil | --cache-fi \
1360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1361 ac_prev=cache_file ;;
1362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1364 cache_file=$ac_optarg ;;
1365
1366 --config-cache | -C)
1367 cache_file=config.cache ;;
1368
1369 -datadir | --datadir | --datadi | --datad)
1370 ac_prev=datadir ;;
1371 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1372 datadir=$ac_optarg ;;
1373
1374 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1375 | --dataroo | --dataro | --datar)
1376 ac_prev=datarootdir ;;
1377 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1378 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1379 datarootdir=$ac_optarg ;;
1380
1381 -disable-* | --disable-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001385 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1389 *"
1390"enable_$ac_useropt"
1391"*) ;;
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1394 esac
1395 eval enable_$ac_useropt=no ;;
1396
1397 -docdir | --docdir | --docdi | --doc | --do)
1398 ac_prev=docdir ;;
1399 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1400 docdir=$ac_optarg ;;
1401
1402 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1403 ac_prev=dvidir ;;
1404 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1405 dvidir=$ac_optarg ;;
1406
1407 -enable-* | --enable-*)
1408 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001411 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001412 ac_useropt_orig=$ac_useropt
1413 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1415 *"
1416"enable_$ac_useropt"
1417"*) ;;
1418 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1419 ac_unrecognized_sep=', ';;
1420 esac
1421 eval enable_$ac_useropt=\$ac_optarg ;;
1422
1423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1425 | --exec | --exe | --ex)
1426 ac_prev=exec_prefix ;;
1427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1429 | --exec=* | --exe=* | --ex=*)
1430 exec_prefix=$ac_optarg ;;
1431
1432 -gas | --gas | --ga | --g)
1433 # Obsolete; use --with-gas.
1434 with_gas=yes ;;
1435
1436 -help | --help | --hel | --he | -h)
1437 ac_init_help=long ;;
1438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1439 ac_init_help=recursive ;;
1440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1441 ac_init_help=short ;;
1442
1443 -host | --host | --hos | --ho)
1444 ac_prev=host_alias ;;
1445 -host=* | --host=* | --hos=* | --ho=*)
1446 host_alias=$ac_optarg ;;
1447
1448 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1449 ac_prev=htmldir ;;
1450 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1451 | --ht=*)
1452 htmldir=$ac_optarg ;;
1453
1454 -includedir | --includedir | --includedi | --included | --include \
1455 | --includ | --inclu | --incl | --inc)
1456 ac_prev=includedir ;;
1457 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1458 | --includ=* | --inclu=* | --incl=* | --inc=*)
1459 includedir=$ac_optarg ;;
1460
1461 -infodir | --infodir | --infodi | --infod | --info | --inf)
1462 ac_prev=infodir ;;
1463 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1464 infodir=$ac_optarg ;;
1465
1466 -libdir | --libdir | --libdi | --libd)
1467 ac_prev=libdir ;;
1468 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1469 libdir=$ac_optarg ;;
1470
1471 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1472 | --libexe | --libex | --libe)
1473 ac_prev=libexecdir ;;
1474 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1475 | --libexe=* | --libex=* | --libe=*)
1476 libexecdir=$ac_optarg ;;
1477
1478 -localedir | --localedir | --localedi | --localed | --locale)
1479 ac_prev=localedir ;;
1480 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1481 localedir=$ac_optarg ;;
1482
1483 -localstatedir | --localstatedir | --localstatedi | --localstated \
1484 | --localstate | --localstat | --localsta | --localst | --locals)
1485 ac_prev=localstatedir ;;
1486 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1487 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1488 localstatedir=$ac_optarg ;;
1489
1490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1491 ac_prev=mandir ;;
1492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1493 mandir=$ac_optarg ;;
1494
1495 -nfp | --nfp | --nf)
1496 # Obsolete; use --without-fp.
1497 with_fp=no ;;
1498
1499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1500 | --no-cr | --no-c | -n)
1501 no_create=yes ;;
1502
1503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1505 no_recursion=yes ;;
1506
1507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1509 | --oldin | --oldi | --old | --ol | --o)
1510 ac_prev=oldincludedir ;;
1511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1514 oldincludedir=$ac_optarg ;;
1515
1516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1517 ac_prev=prefix ;;
1518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1519 prefix=$ac_optarg ;;
1520
1521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1522 | --program-pre | --program-pr | --program-p)
1523 ac_prev=program_prefix ;;
1524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1526 program_prefix=$ac_optarg ;;
1527
1528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1529 | --program-suf | --program-su | --program-s)
1530 ac_prev=program_suffix ;;
1531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1533 program_suffix=$ac_optarg ;;
1534
1535 -program-transform-name | --program-transform-name \
1536 | --program-transform-nam | --program-transform-na \
1537 | --program-transform-n | --program-transform- \
1538 | --program-transform | --program-transfor \
1539 | --program-transfo | --program-transf \
1540 | --program-trans | --program-tran \
1541 | --progr-tra | --program-tr | --program-t)
1542 ac_prev=program_transform_name ;;
1543 -program-transform-name=* | --program-transform-name=* \
1544 | --program-transform-nam=* | --program-transform-na=* \
1545 | --program-transform-n=* | --program-transform-=* \
1546 | --program-transform=* | --program-transfor=* \
1547 | --program-transfo=* | --program-transf=* \
1548 | --program-trans=* | --program-tran=* \
1549 | --progr-tra=* | --program-tr=* | --program-t=*)
1550 program_transform_name=$ac_optarg ;;
1551
1552 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1553 ac_prev=pdfdir ;;
1554 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1555 pdfdir=$ac_optarg ;;
1556
1557 -psdir | --psdir | --psdi | --psd | --ps)
1558 ac_prev=psdir ;;
1559 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1560 psdir=$ac_optarg ;;
1561
1562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1563 | -silent | --silent | --silen | --sile | --sil)
1564 silent=yes ;;
1565
1566 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1567 ac_prev=sbindir ;;
1568 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1569 | --sbi=* | --sb=*)
1570 sbindir=$ac_optarg ;;
1571
1572 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1573 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1574 | --sharedst | --shareds | --shared | --share | --shar \
1575 | --sha | --sh)
1576 ac_prev=sharedstatedir ;;
1577 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1578 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1579 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1580 | --sha=* | --sh=*)
1581 sharedstatedir=$ac_optarg ;;
1582
1583 -site | --site | --sit)
1584 ac_prev=site ;;
1585 -site=* | --site=* | --sit=*)
1586 site=$ac_optarg ;;
1587
1588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1589 ac_prev=srcdir ;;
1590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1591 srcdir=$ac_optarg ;;
1592
1593 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1594 | --syscon | --sysco | --sysc | --sys | --sy)
1595 ac_prev=sysconfdir ;;
1596 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1597 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1598 sysconfdir=$ac_optarg ;;
1599
1600 -target | --target | --targe | --targ | --tar | --ta | --t)
1601 ac_prev=target_alias ;;
1602 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1603 target_alias=$ac_optarg ;;
1604
1605 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1606 verbose=yes ;;
1607
1608 -version | --version | --versio | --versi | --vers | -V)
1609 ac_init_version=: ;;
1610
1611 -with-* | --with-*)
1612 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1613 # Reject names that are not valid shell variable names.
1614 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001615 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001616 ac_useropt_orig=$ac_useropt
1617 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1618 case $ac_user_opts in
1619 *"
1620"with_$ac_useropt"
1621"*) ;;
1622 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1623 ac_unrecognized_sep=', ';;
1624 esac
1625 eval with_$ac_useropt=\$ac_optarg ;;
1626
1627 -without-* | --without-*)
1628 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001631 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1635 *"
1636"with_$ac_useropt"
1637"*) ;;
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1640 esac
1641 eval with_$ac_useropt=no ;;
1642
1643 --x)
1644 # Obsolete; use --with-x.
1645 with_x=yes ;;
1646
1647 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1648 | --x-incl | --x-inc | --x-in | --x-i)
1649 ac_prev=x_includes ;;
1650 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1651 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1652 x_includes=$ac_optarg ;;
1653
1654 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1655 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1656 ac_prev=x_libraries ;;
1657 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1658 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1659 x_libraries=$ac_optarg ;;
1660
cristy98dddb52010-11-04 00:30:15 +00001661 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1662Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001663 ;;
1664
1665 *=*)
1666 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1667 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001668 case $ac_envvar in #(
1669 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001670 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001671 esac
cristy3ed852e2009-09-05 21:47:34 +00001672 eval $ac_envvar=\$ac_optarg
1673 export $ac_envvar ;;
1674
1675 *)
1676 # FIXME: should be removed in autoconf 3.0.
1677 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1678 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1679 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001680 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001681 ;;
1682
1683 esac
1684done
1685
1686if test -n "$ac_prev"; then
1687 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001688 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001689fi
1690
1691if test -n "$ac_unrecognized_opts"; then
1692 case $enable_option_checking in
1693 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001694 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001695 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1696 esac
1697fi
1698
1699# Check all directory arguments for consistency.
1700for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1701 datadir sysconfdir sharedstatedir localstatedir includedir \
1702 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1703 libdir localedir mandir
1704do
1705 eval ac_val=\$$ac_var
1706 # Remove trailing slashes.
1707 case $ac_val in
1708 */ )
1709 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1710 eval $ac_var=\$ac_val;;
1711 esac
1712 # Be sure to have absolute directory names.
1713 case $ac_val in
1714 [\\/$]* | ?:[\\/]* ) continue;;
1715 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1716 esac
cristy98dddb52010-11-04 00:30:15 +00001717 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001718done
1719
1720# There might be people who depend on the old broken behavior: `$host'
1721# used to hold the argument of --host etc.
1722# FIXME: To remove some day.
1723build=$build_alias
1724host=$host_alias
1725target=$target_alias
1726
1727# FIXME: To remove some day.
1728if test "x$host_alias" != x; then
1729 if test "x$build_alias" = x; then
1730 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001731 elif test "x$build_alias" != "x$host_alias"; then
1732 cross_compiling=yes
1733 fi
1734fi
1735
1736ac_tool_prefix=
1737test -n "$host_alias" && ac_tool_prefix=$host_alias-
1738
1739test "$silent" = yes && exec 6>/dev/null
1740
1741
1742ac_pwd=`pwd` && test -n "$ac_pwd" &&
1743ac_ls_di=`ls -di .` &&
1744ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001745 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001746test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001747 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001748
1749
1750# Find the source files, if location was not specified.
1751if test -z "$srcdir"; then
1752 ac_srcdir_defaulted=yes
1753 # Try the directory containing this script, then the parent directory.
1754 ac_confdir=`$as_dirname -- "$as_myself" ||
1755$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1756 X"$as_myself" : 'X\(//\)[^/]' \| \
1757 X"$as_myself" : 'X\(//\)$' \| \
1758 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1759$as_echo X"$as_myself" |
1760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1761 s//\1/
1762 q
1763 }
1764 /^X\(\/\/\)[^/].*/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)$/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\).*/{
1773 s//\1/
1774 q
1775 }
1776 s/.*/./; q'`
1777 srcdir=$ac_confdir
1778 if test ! -r "$srcdir/$ac_unique_file"; then
1779 srcdir=..
1780 fi
1781else
1782 ac_srcdir_defaulted=no
1783fi
1784if test ! -r "$srcdir/$ac_unique_file"; then
1785 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001786 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001787fi
1788ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1789ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001790 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001791 pwd)`
1792# When building in place, set srcdir=.
1793if test "$ac_abs_confdir" = "$ac_pwd"; then
1794 srcdir=.
1795fi
1796# Remove unnecessary trailing slashes from srcdir.
1797# Double slashes in file names in object file debugging info
1798# mess up M-x gdb in Emacs.
1799case $srcdir in
1800*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1801esac
1802for ac_var in $ac_precious_vars; do
1803 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1804 eval ac_env_${ac_var}_value=\$${ac_var}
1805 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1806 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1807done
1808
1809#
1810# Report the --help message.
1811#
1812if test "$ac_init_help" = "long"; then
1813 # Omit some internal or obsolete options to make the list less imposing.
1814 # This message is too long to be a string in the A/UX 3.1 sh.
1815 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001816\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001817
1818Usage: $0 [OPTION]... [VAR=VALUE]...
1819
1820To assign environment variables (e.g., CC, CFLAGS...), specify them as
1821VAR=VALUE. See below for descriptions of some of the useful variables.
1822
1823Defaults for the options are specified in brackets.
1824
1825Configuration:
1826 -h, --help display this help and exit
1827 --help=short display options specific to this package
1828 --help=recursive display the short help of all the included packages
1829 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001830 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001831 --cache-file=FILE cache test results in FILE [disabled]
1832 -C, --config-cache alias for \`--cache-file=config.cache'
1833 -n, --no-create do not create output files
1834 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1835
1836Installation directories:
1837 --prefix=PREFIX install architecture-independent files in PREFIX
1838 [$ac_default_prefix]
1839 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1840 [PREFIX]
1841
1842By default, \`make install' will install all the files in
1843\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1844an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1845for instance \`--prefix=\$HOME'.
1846
1847For better control, use the options below.
1848
1849Fine tuning of the installation directories:
1850 --bindir=DIR user executables [EPREFIX/bin]
1851 --sbindir=DIR system admin executables [EPREFIX/sbin]
1852 --libexecdir=DIR program executables [EPREFIX/libexec]
1853 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1854 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1855 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1856 --libdir=DIR object code libraries [EPREFIX/lib]
1857 --includedir=DIR C header files [PREFIX/include]
1858 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1859 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1860 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1861 --infodir=DIR info documentation [DATAROOTDIR/info]
1862 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1863 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001864 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001865 --htmldir=DIR html documentation [DOCDIR]
1866 --dvidir=DIR dvi documentation [DOCDIR]
1867 --pdfdir=DIR pdf documentation [DOCDIR]
1868 --psdir=DIR ps documentation [DOCDIR]
1869_ACEOF
1870
1871 cat <<\_ACEOF
1872
cristy73bd4a52010-10-05 11:24:23 +00001873Program names:
1874 --program-prefix=PREFIX prepend PREFIX to installed program names
1875 --program-suffix=SUFFIX append SUFFIX to installed program names
1876 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1877
cristy3ed852e2009-09-05 21:47:34 +00001878X features:
1879 --x-includes=DIR X include files are in DIR
1880 --x-libraries=DIR X library files are in DIR
1881
1882System types:
1883 --build=BUILD configure for building on BUILD [guessed]
1884 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1885 --target=TARGET configure for building compilers for TARGET [HOST]
1886_ACEOF
1887fi
1888
1889if test -n "$ac_init_help"; then
1890 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001891 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001892 esac
1893 cat <<\_ACEOF
1894
1895Optional Features:
1896 --disable-option-checking ignore unrecognized --enable/--with options
1897 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1898 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001899 --enable-silent-rules less verbose build output (undo: "make V=1")
1900 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001901 --enable-reproducible-build
1902 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001903 --enable-dependency-tracking
1904 do not reject slow dependency extractors
1905 --disable-dependency-tracking
1906 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001907 --enable-ld-version-script
1908 enable linker version script (default is enabled
1909 when possible)
cristya3824692012-03-30 17:22:07 +00001910 --enable-bounds-checking
1911 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001912 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001913 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001914 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001915 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001916 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001917 --enable-shared[=PKGS] build shared libraries [default=yes]
1918 --enable-static[=PKGS] build static libraries [default=yes]
1919 --enable-fast-install[=PKGS]
1920 optimize for fast installation [default=yes]
1921 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001922 --enable-delegate-build look for delegate libraries in build directory
1923 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001924 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001925 --disable-installed Formally install ImageMagick under PREFIX
1926 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001927 --enable-zero-configuration
1928 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001929 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001930 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001931 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001932 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001933 --enable-maintainer-mode
1934 enable make rules and dependencies not useful (and
1935 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001936 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001937 --enable-ccmalloc enable 'ccmalloc' memory debug support
1938 --enable-efence enable 'efence' memory debug support
1939 --enable-prof enable 'prof' profiling support
1940 --enable-gprof enable 'gprof' profiling support
1941 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001942 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001943 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001944 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001945
1946Optional Packages:
1947 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1948 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001949 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001950 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001951 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1952 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001953 --includearch-dir=DIR ARCH specific include directory
1954 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001955 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001957 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001958 both]
cristyda16f162011-02-19 23:52:17 +00001959 --with-sysroot=DIR Search for dependent libraries within DIR
1960 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001961 --with-modules enable building dynamically loadable modules
1962 --with-method-prefix=PREFIX
1963 prefix MagickCore API methods
1964 --with-quantum-depth=DEPTH
1965 number of bits in a pixel quantum (default 16)
1966 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1967 memory)
1968 --with-frozenpaths freeze delegate paths
1969 --without-magick-plus-plus
1970 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001971 --with-package-release-name=NAME
1972 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001973 --with-perl enable build/install of PerlMagick
1974 --with-perl-options=OPTIONS
1975 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001976 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001977 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001978 --with-umem enable umem memory allocation library support
1979 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1980 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001981 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001982 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001983 --with-apple-font-dir=DIR
1984 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001985 --with-autotrace enable autotrace support
1986 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001987 --with-dejavu-font-dir=DIR
1988 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001989 --without-fftw disable FFTW support
1990 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001991 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001992 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001993 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001994 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001995 --with-fontpath=DIR prepend to default font search path
1996 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001997 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001998 --without-jbig disable JBIG support
1999 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00002000 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00002001 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00002002 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00002003 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002005 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002006 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002007 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002008 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002009 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002010 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002011 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002012 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002013 --without-xml disable XML support
2014
2015Some influential environment variables:
2016 CC C compiler command
2017 CFLAGS C compiler flags
2018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2019 nonstandard directory <lib dir>
2020 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002021 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002022 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002023 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002024 CXX C++ compiler command
2025 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002026 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002027 PKG_CONFIG_PATH
2028 directories to add to pkg-config's search path
2029 PKG_CONFIG_LIBDIR
2030 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002031 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002032 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002033 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2034 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002035 AUTOTRACE_CFLAGS
2036 C compiler flags for AUTOTRACE, overriding pkg-config
2037 AUTOTRACE_LIBS
2038 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002039 fftw3_CFLAGS
2040 C compiler flags for fftw3, overriding pkg-config
2041 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2042 ddjvuapi_CFLAGS
2043 C compiler flags for ddjvuapi, overriding pkg-config
2044 ddjvuapi_LIBS
2045 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002046 FONTCONFIG_CFLAGS
2047 C compiler flags for FONTCONFIG, overriding pkg-config
2048 FONTCONFIG_LIBS
2049 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002050 FREETYPE_CFLAGS
2051 C compiler flags for FREETYPE, overriding pkg-config
2052 FREETYPE_LIBS
2053 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002054 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2055 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002056 LCMS2_CFLAGS
2057 C compiler flags for LCMS2, overriding pkg-config
2058 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002059 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2060 LCMS_LIBS linker flags for LCMS, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002061 LIBOPENJP2_CFLAGS
2062 C compiler flags for LIBOPENJP2, overriding pkg-config
2063 LIBOPENJP2_LIBS
2064 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002065 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2066 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002067 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2068 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002069 OPENEXR_CFLAGS
2070 C compiler flags for OPENEXR, overriding pkg-config
2071 OPENEXR_LIBS
2072 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002073 PANGO_CFLAGS
2074 C compiler flags for PANGO, overriding pkg-config
2075 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002076 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2077 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002078 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2079 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2080 CAIRO_SVG_CFLAGS
2081 C compiler flags for CAIRO_SVG, overriding pkg-config
2082 CAIRO_SVG_LIBS
2083 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002084 WMF_CFLAGS C compiler flags for WMF, overriding pkg-config
2085 WMF_LIBS linker flags for WMF, overriding pkg-config
2086 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2087 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002088
2089Use these variables to override the choices made by `configure' or to help
2090it to find libraries and programs with nonstandard names/locations.
2091
2092Report bugs to <http://www.imagemagick.org>.
2093_ACEOF
2094ac_status=$?
2095fi
2096
2097if test "$ac_init_help" = "recursive"; then
2098 # If there are subdirs, report their specific --help.
2099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2100 test -d "$ac_dir" ||
2101 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102 continue
2103 ac_builddir=.
2104
2105case "$ac_dir" in
2106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107*)
2108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2109 # A ".." for each directory in $ac_dir_suffix.
2110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2111 case $ac_top_builddir_sub in
2112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2114 esac ;;
2115esac
2116ac_abs_top_builddir=$ac_pwd
2117ac_abs_builddir=$ac_pwd$ac_dir_suffix
2118# for backward compatibility:
2119ac_top_builddir=$ac_top_build_prefix
2120
2121case $srcdir in
2122 .) # We are building in place.
2123 ac_srcdir=.
2124 ac_top_srcdir=$ac_top_builddir_sub
2125 ac_abs_top_srcdir=$ac_pwd ;;
2126 [\\/]* | ?:[\\/]* ) # Absolute name.
2127 ac_srcdir=$srcdir$ac_dir_suffix;
2128 ac_top_srcdir=$srcdir
2129 ac_abs_top_srcdir=$srcdir ;;
2130 *) # Relative name.
2131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2132 ac_top_srcdir=$ac_top_build_prefix$srcdir
2133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2134esac
2135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2136
2137 cd "$ac_dir" || { ac_status=$?; continue; }
2138 # Check for guested configure.
2139 if test -f "$ac_srcdir/configure.gnu"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2142 elif test -f "$ac_srcdir/configure"; then
2143 echo &&
2144 $SHELL "$ac_srcdir/configure" --help=recursive
2145 else
2146 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2147 fi || ac_status=$?
2148 cd "$ac_pwd" || { ac_status=$?; break; }
2149 done
2150fi
2151
2152test -n "$ac_init_help" && exit $ac_status
2153if $ac_init_version; then
2154 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002155ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002156generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002157
cristy14fefe52012-05-21 00:59:18 +00002158Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002159This configure script is free software; the Free Software Foundation
2160gives unlimited permission to copy, distribute and modify it.
2161_ACEOF
2162 exit
2163fi
cristy8b350f62009-11-15 23:12:43 +00002164
2165## ------------------------ ##
2166## Autoconf initialization. ##
2167## ------------------------ ##
2168
2169# ac_fn_c_try_compile LINENO
2170# --------------------------
2171# Try to compile conftest.$ac_ext, and return whether this succeeded.
2172ac_fn_c_try_compile ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 rm -f conftest.$ac_objext
2176 if { { ac_try="$ac_compile"
2177case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_compile") 2>conftest.err
2184 ac_status=$?
2185 if test -s conftest.err; then
2186 grep -v '^ *+' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 mv -f conftest.er1 conftest.err
2189 fi
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && {
2192 test -z "$ac_c_werror_flag" ||
2193 test ! -s conftest.err
2194 } && test -s conftest.$ac_objext; then :
2195 ac_retval=0
2196else
2197 $as_echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 ac_retval=1
2201fi
cristyda16f162011-02-19 23:52:17 +00002202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002203 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002204
2205} # ac_fn_c_try_compile
2206
cristy95646052009-11-28 23:05:30 +00002207# ac_fn_c_try_cpp LINENO
2208# ----------------------
2209# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210ac_fn_c_try_cpp ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if { { ac_try="$ac_cpp conftest.$ac_ext"
2214case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217esac
2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219$as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002228 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2230 test ! -s conftest.err
2231 }; then :
2232 ac_retval=0
2233else
2234 $as_echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 ac_retval=1
2238fi
cristyda16f162011-02-19 23:52:17 +00002239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002240 as_fn_set_status $ac_retval
2241
2242} # ac_fn_c_try_cpp
2243
cristy8b350f62009-11-15 23:12:43 +00002244# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2245# -------------------------------------------------------
2246# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2247# the include files in INCLUDES and setting the cache variable VAR
2248# accordingly.
2249ac_fn_c_check_header_mongrel ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002252 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002255if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002256 $as_echo_n "(cached) " >&6
2257fi
2258eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261else
2262 # Is the header compilable?
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2264$as_echo_n "checking $2 usability... " >&6; }
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_header_compiler=yes
2272else
2273 ac_header_compiler=no
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2277$as_echo "$ac_header_compiler" >&6; }
2278
2279# Is the header present?
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2281$as_echo_n "checking $2 presence... " >&6; }
2282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h. */
2284#include <$2>
2285_ACEOF
2286if ac_fn_c_try_cpp "$LINENO"; then :
2287 ac_header_preproc=yes
2288else
2289 ac_header_preproc=no
2290fi
cristyda16f162011-02-19 23:52:17 +00002291rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2293$as_echo "$ac_header_preproc" >&6; }
2294
2295# So? What about this header?
2296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2297 yes:no: )
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2299$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2301$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2302 ;;
2303 no:yes:* )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2305$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2307$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2309$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2311$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2313$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002314( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002315## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002316## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002317 ) | sed "s/^/$as_me: WARNING: /" >&2
2318 ;;
2319esac
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002322if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002323 $as_echo_n "(cached) " >&6
2324else
2325 eval "$3=\$ac_header_compiler"
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
2330fi
cristyda16f162011-02-19 23:52:17 +00002331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002332
2333} # ac_fn_c_check_header_mongrel
2334
2335# ac_fn_c_try_run LINENO
2336# ----------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338# that executables *can* be run.
2339ac_fn_c_try_run ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=$ac_status
2370fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002373 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002374
2375} # ac_fn_c_try_run
2376
2377# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2378# -------------------------------------------------------
2379# Tests whether HEADER exists and can be compiled using the include files in
2380# INCLUDES, setting the cache variable VAR accordingly.
2381ac_fn_c_check_header_compile ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002386if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002387 $as_echo_n "(cached) " >&6
2388else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391$4
2392#include <$2>
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395 eval "$3=yes"
2396else
2397 eval "$3=no"
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002405
2406} # ac_fn_c_check_header_compile
2407
cristya0b81c32010-01-22 02:54:33 +00002408# ac_fn_cxx_try_compile LINENO
2409# ----------------------------
2410# Try to compile conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_cxx_try_compile ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 rm -f conftest.$ac_objext
2415 if { { ac_try="$ac_compile"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_compile") 2>conftest.err
2423 ac_status=$?
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2428 fi
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && {
2431 test -z "$ac_cxx_werror_flag" ||
2432 test ! -s conftest.err
2433 } && test -s conftest.$ac_objext; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
cristyda16f162011-02-19 23:52:17 +00002441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002442 as_fn_set_status $ac_retval
2443
2444} # ac_fn_cxx_try_compile
2445
cristyd95b7a52013-10-23 13:12:53 +00002446# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2447# --------------------------------------------
2448# Tries to find the compile-time value of EXPR in a program that includes
2449# INCLUDES, setting VAR accordingly. Returns whether the value could be
2450# computed
2451ac_fn_c_compute_int ()
2452{
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 if test "$cross_compiling" = yes; then
2455 # Depending upon the size, compute the lo and hi bounds.
2456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462static int test_array [1 - 2 * !(($2) >= 0)];
2463test_array [0] = 0;
2464return test_array [0];
2465
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471 ac_lo=0 ac_mid=0
2472 while :; do
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h. */
2475$4
2476int
2477main ()
2478{
2479static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_hi=$ac_mid; break
2489else
2490 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2491 if test $ac_lo -le $ac_mid; then
2492 ac_lo= ac_hi=
2493 break
2494 fi
2495 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 done
2499else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501/* end confdefs.h. */
2502$4
2503int
2504main ()
2505{
2506static int test_array [1 - 2 * !(($2) < 0)];
2507test_array [0] = 0;
2508return test_array [0];
2509
2510 ;
2511 return 0;
2512}
2513_ACEOF
2514if ac_fn_c_try_compile "$LINENO"; then :
2515 ac_hi=-1 ac_mid=-1
2516 while :; do
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h. */
2519$4
2520int
2521main ()
2522{
2523static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2524test_array [0] = 0;
2525return test_array [0];
2526
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 ac_lo=$ac_mid; break
2533else
2534 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2535 if test $ac_mid -le $ac_hi; then
2536 ac_lo= ac_hi=
2537 break
2538 fi
2539 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 done
2543else
2544 ac_lo= ac_hi=
2545fi
2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549# Binary search between lo and hi bounds.
2550while test "x$ac_lo" != "x$ac_hi"; do
2551 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553/* end confdefs.h. */
2554$4
2555int
2556main ()
2557{
2558static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2559test_array [0] = 0;
2560return test_array [0];
2561
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_hi=$ac_mid
2568else
2569 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2570fi
2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572done
2573case $ac_lo in #((
2574?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2575'') ac_retval=1 ;;
2576esac
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581static long int longval () { return $2; }
2582static unsigned long int ulongval () { return $2; }
2583#include <stdio.h>
2584#include <stdlib.h>
2585int
2586main ()
2587{
2588
2589 FILE *f = fopen ("conftest.val", "w");
2590 if (! f)
2591 return 1;
2592 if (($2) < 0)
2593 {
2594 long int i = longval ();
2595 if (i != ($2))
2596 return 1;
2597 fprintf (f, "%ld", i);
2598 }
2599 else
2600 {
2601 unsigned long int i = ulongval ();
2602 if (i != ($2))
2603 return 1;
2604 fprintf (f, "%lu", i);
2605 }
2606 /* Do not output a trailing newline, as this causes \r\n confusion
2607 on some platforms. */
2608 return ferror (f) || fclose (f) != 0;
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614if ac_fn_c_try_run "$LINENO"; then :
2615 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2616else
2617 ac_retval=1
2618fi
2619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2620 conftest.$ac_objext conftest.beam conftest.$ac_ext
2621rm -f conftest.val
2622
2623 fi
2624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2625 as_fn_set_status $ac_retval
2626
2627} # ac_fn_c_compute_int
2628
cristy8b350f62009-11-15 23:12:43 +00002629# ac_fn_c_try_link LINENO
2630# -----------------------
2631# Try to link conftest.$ac_ext, and return whether this succeeded.
2632ac_fn_c_try_link ()
2633{
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
2641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642$as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2644 ac_status=$?
2645 if test -s conftest.err; then
2646 grep -v '^ *+' conftest.err >conftest.er1
2647 cat conftest.er1 >&5
2648 mv -f conftest.er1 conftest.err
2649 fi
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest$ac_exeext && {
2655 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002656 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002657 }; then :
2658 ac_retval=0
2659else
2660 $as_echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_retval=1
2664fi
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002671 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002672
2673} # ac_fn_c_try_link
2674
cristy73bd4a52010-10-05 11:24:23 +00002675# ac_fn_c_check_func LINENO FUNC VAR
2676# ----------------------------------
2677# Tests whether FUNC exists, setting the cache variable VAR accordingly
2678ac_fn_c_check_func ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2682$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002683if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002684 $as_echo_n "(cached) " >&6
2685else
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h. */
2688/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2690#define $2 innocuous_$2
2691
2692/* System header to define __stub macros and hopefully few prototypes,
2693 which can conflict with char $2 (); below.
2694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2695 <limits.h> exists even on freestanding compilers. */
2696
2697#ifdef __STDC__
2698# include <limits.h>
2699#else
2700# include <assert.h>
2701#endif
2702
2703#undef $2
2704
2705/* Override any GCC internal prototype to avoid an error.
2706 Use char because int might match the return type of a GCC
2707 builtin and then its argument prototype would still apply. */
2708#ifdef __cplusplus
2709extern "C"
2710#endif
2711char $2 ();
2712/* The GNU C library defines this for functions which it implements
2713 to always fail with ENOSYS. Some functions are actually named
2714 something starting with __ and the normal name is an alias. */
2715#if defined __stub_$2 || defined __stub___$2
2716choke me
2717#endif
2718
2719int
2720main ()
2721{
2722return $2 ();
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_link "$LINENO"; then :
2728 eval "$3=yes"
2729else
2730 eval "$3=no"
2731fi
2732rm -f core conftest.err conftest.$ac_objext \
2733 conftest$ac_exeext conftest.$ac_ext
2734fi
2735eval ac_res=\$$3
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002739
2740} # ac_fn_c_check_func
2741
2742# ac_fn_cxx_try_cpp LINENO
2743# ------------------------
2744# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2745ac_fn_cxx_try_cpp ()
2746{
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 if { { ac_try="$ac_cpp conftest.$ac_ext"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754$as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2756 ac_status=$?
2757 if test -s conftest.err; then
2758 grep -v '^ *+' conftest.err >conftest.er1
2759 cat conftest.er1 >&5
2760 mv -f conftest.er1 conftest.err
2761 fi
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002763 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002764 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2765 test ! -s conftest.err
2766 }; then :
2767 ac_retval=0
2768else
2769 $as_echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_retval=1
2773fi
cristyda16f162011-02-19 23:52:17 +00002774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002775 as_fn_set_status $ac_retval
2776
2777} # ac_fn_cxx_try_cpp
2778
2779# ac_fn_cxx_try_link LINENO
2780# -------------------------
2781# Try to link conftest.$ac_ext, and return whether this succeeded.
2782ac_fn_cxx_try_link ()
2783{
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 rm -f conftest.$ac_objext conftest$ac_exeext
2786 if { { ac_try="$ac_link"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_link") 2>conftest.err
2794 ac_status=$?
2795 if test -s conftest.err; then
2796 grep -v '^ *+' conftest.err >conftest.er1
2797 cat conftest.er1 >&5
2798 mv -f conftest.er1 conftest.err
2799 fi
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; } && {
2802 test -z "$ac_cxx_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest$ac_exeext && {
2805 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002806 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002807 }; then :
2808 ac_retval=0
2809else
2810 $as_echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_retval=1
2814fi
2815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2817 # interfere with the next link command; also delete a directory that is
2818 # left behind by Apple's compiler. We do this before executing the actions.
2819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002821 as_fn_set_status $ac_retval
2822
2823} # ac_fn_cxx_try_link
2824
cristy8b350f62009-11-15 23:12:43 +00002825# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2826# -------------------------------------------
2827# Tests whether TYPE exists after having included INCLUDES, setting cache
2828# variable VAR accordingly.
2829ac_fn_c_check_type ()
2830{
2831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2833$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002834if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002835 $as_echo_n "(cached) " >&6
2836else
2837 eval "$3=no"
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$4
2841int
2842main ()
2843{
2844if (sizeof ($2))
2845 return 0;
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850if ac_fn_c_try_compile "$LINENO"; then :
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$4
2854int
2855main ()
2856{
2857if (sizeof (($2)))
2858 return 0;
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864
2865else
2866 eval "$3=yes"
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871fi
2872eval ac_res=\$$3
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002876
2877} # ac_fn_c_check_type
2878
cristy92703d82010-04-26 00:18:18 +00002879# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2880# ----------------------------------------------------
2881# Tries to find if the field MEMBER exists in type AGGR, after including
2882# INCLUDES, setting cache variable VAR accordingly.
2883ac_fn_c_check_member ()
2884{
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2887$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002888if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002889 $as_echo_n "(cached) " >&6
2890else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$5
2894int
2895main ()
2896{
2897static $2 ac_aggr;
2898if (ac_aggr.$3)
2899return 0;
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905 eval "$4=yes"
2906else
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h. */
2909$5
2910int
2911main ()
2912{
2913static $2 ac_aggr;
2914if (sizeof ac_aggr.$3)
2915return 0;
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921 eval "$4=yes"
2922else
2923 eval "$4=no"
2924fi
2925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928fi
2929eval ac_res=\$$4
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2931$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002933
2934} # ac_fn_c_check_member
2935
cristy5eef09f2012-10-16 12:08:28 +00002936# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2937# ---------------------------------------------
2938# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2939# accordingly.
2940ac_fn_c_check_decl ()
2941{
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 as_decl_name=`echo $2|sed 's/ *(.*//'`
2944 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2946$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2947if eval \${$3+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949else
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h. */
2952$4
2953int
2954main ()
2955{
2956#ifndef $as_decl_name
2957#ifdef __cplusplus
2958 (void) $as_decl_use;
2959#else
2960 (void) $as_decl_name;
2961#endif
2962#endif
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969 eval "$3=yes"
2970else
2971 eval "$3=no"
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975eval ac_res=\$$3
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977$as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979
2980} # ac_fn_c_check_decl
2981
cristy501c8042011-05-26 17:46:28 +00002982# ac_fn_c_find_intX_t LINENO BITS VAR
2983# -----------------------------------
2984# Finds a signed integer type with width BITS, setting cache variable VAR
2985# accordingly.
2986ac_fn_c_find_intX_t ()
2987{
2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2990$as_echo_n "checking for int$2_t... " >&6; }
2991if eval \${$3+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993else
2994 eval "$3=no"
2995 # Order is important - never check a type that is potentially smaller
2996 # than half of the expected target width.
2997 for ac_type in int$2_t 'int' 'long int' \
2998 'long long int' 'short int' 'signed char'; do
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h. */
3001$ac_includes_default
3002 enum { N = $2 / 2 - 1 };
3003int
3004main ()
3005{
3006static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00003007test_array [0] = 0;
3008return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014if ac_fn_c_try_compile "$LINENO"; then :
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016/* end confdefs.h. */
3017$ac_includes_default
3018 enum { N = $2 / 2 - 1 };
3019int
3020main ()
3021{
3022static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3023 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003024test_array [0] = 0;
3025return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031if ac_fn_c_try_compile "$LINENO"; then :
3032
3033else
3034 case $ac_type in #(
3035 int$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
3042fi
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 if eval test \"x\$"$3"\" = x"no"; then :
3045
3046else
3047 break
3048fi
3049 done
3050fi
3051eval ac_res=\$$3
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3053$as_echo "$ac_res" >&6; }
3054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3055
3056} # ac_fn_c_find_intX_t
3057
3058# ac_fn_c_find_uintX_t LINENO BITS VAR
3059# ------------------------------------
3060# Finds an unsigned integer type with width BITS, setting cache variable VAR
3061# accordingly.
3062ac_fn_c_find_uintX_t ()
3063{
3064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3066$as_echo_n "checking for uint$2_t... " >&6; }
3067if eval \${$3+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069else
3070 eval "$3=no"
3071 # Order is important - never check a type that is potentially smaller
3072 # than half of the expected target width.
3073 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3074 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077$ac_includes_default
3078int
3079main ()
3080{
3081static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003082test_array [0] = 0;
3083return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089if ac_fn_c_try_compile "$LINENO"; then :
3090 case $ac_type in #(
3091 uint$2_t) :
3092 eval "$3=yes" ;; #(
3093 *) :
3094 eval "$3=\$ac_type" ;;
3095esac
3096fi
3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 if eval test \"x\$"$3"\" = x"no"; then :
3099
3100else
3101 break
3102fi
3103 done
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3109
3110} # ac_fn_c_find_uintX_t
3111
cristy8b350f62009-11-15 23:12:43 +00003112# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3113# ---------------------------------------------------------
3114# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3115# the include files in INCLUDES and setting the cache variable VAR
3116# accordingly.
3117ac_fn_cxx_check_header_mongrel ()
3118{
3119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003120 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3122$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003123if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003124 $as_echo_n "(cached) " >&6
3125fi
3126eval ac_res=\$$3
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3128$as_echo "$ac_res" >&6; }
3129else
3130 # Is the header compilable?
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3132$as_echo_n "checking $2 usability... " >&6; }
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
3135$4
3136#include <$2>
3137_ACEOF
3138if ac_fn_cxx_try_compile "$LINENO"; then :
3139 ac_header_compiler=yes
3140else
3141 ac_header_compiler=no
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3145$as_echo "$ac_header_compiler" >&6; }
3146
3147# Is the header present?
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3149$as_echo_n "checking $2 presence... " >&6; }
3150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151/* end confdefs.h. */
3152#include <$2>
3153_ACEOF
3154if ac_fn_cxx_try_cpp "$LINENO"; then :
3155 ac_header_preproc=yes
3156else
3157 ac_header_preproc=no
3158fi
cristyda16f162011-02-19 23:52:17 +00003159rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3161$as_echo "$ac_header_preproc" >&6; }
3162
3163# So? What about this header?
3164case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3165 yes:no: )
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3167$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3169$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3170 ;;
3171 no:yes:* )
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3173$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3175$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3177$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3179$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3181$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003182( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003183## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003184## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003185 ) | sed "s/^/$as_me: WARNING: /" >&2
3186 ;;
3187esac
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3189$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003190if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003191 $as_echo_n "(cached) " >&6
3192else
3193 eval "$3=\$ac_header_compiler"
3194fi
3195eval ac_res=\$$3
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3197$as_echo "$ac_res" >&6; }
3198fi
cristyda16f162011-02-19 23:52:17 +00003199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003200
3201} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003202cat >config.log <<_ACEOF
3203This file contains any messages produced by compilers while
3204running configure, to aid debugging if configure makes a mistake.
3205
cristy29eb34e2011-10-16 00:46:08 +00003206It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003207generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003208
3209 $ $0 $@
3210
3211_ACEOF
3212exec 5>>config.log
3213{
3214cat <<_ASUNAME
3215## --------- ##
3216## Platform. ##
3217## --------- ##
3218
3219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3220uname -m = `(uname -m) 2>/dev/null || echo unknown`
3221uname -r = `(uname -r) 2>/dev/null || echo unknown`
3222uname -s = `(uname -s) 2>/dev/null || echo unknown`
3223uname -v = `(uname -v) 2>/dev/null || echo unknown`
3224
3225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3227
3228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3231/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3235
3236_ASUNAME
3237
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003243 $as_echo "PATH: $as_dir"
3244 done
cristy3ed852e2009-09-05 21:47:34 +00003245IFS=$as_save_IFS
3246
3247} >&5
3248
3249cat >&5 <<_ACEOF
3250
3251
3252## ----------- ##
3253## Core tests. ##
3254## ----------- ##
3255
3256_ACEOF
3257
3258
3259# Keep a trace of the command line.
3260# Strip out --no-create and --no-recursion so they do not pile up.
3261# Strip out --silent because we don't want to record it for future runs.
3262# Also quote any args containing shell meta-characters.
3263# Make two passes to allow for proper duplicate-argument suppression.
3264ac_configure_args=
3265ac_configure_args0=
3266ac_configure_args1=
3267ac_must_keep_next=false
3268for ac_pass in 1 2
3269do
3270 for ac_arg
3271 do
3272 case $ac_arg in
3273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3275 | -silent | --silent | --silen | --sile | --sil)
3276 continue ;;
3277 *\'*)
3278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3279 esac
3280 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 2)
cristy8b350f62009-11-15 23:12:43 +00003283 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003284 if test $ac_must_keep_next = true; then
3285 ac_must_keep_next=false # Got value, back to normal.
3286 else
3287 case $ac_arg in
3288 *=* | --config-cache | -C | -disable-* | --disable-* \
3289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3291 | -with-* | --with-* | -without-* | --without-* | --x)
3292 case "$ac_configure_args0 " in
3293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3294 esac
3295 ;;
3296 -* ) ac_must_keep_next=true ;;
3297 esac
3298 fi
cristy8b350f62009-11-15 23:12:43 +00003299 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003300 ;;
3301 esac
3302 done
3303done
cristy8b350f62009-11-15 23:12:43 +00003304{ ac_configure_args0=; unset ac_configure_args0;}
3305{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003306
3307# When interrupted or exit'd, cleanup temporary files, and complete
3308# config.log. We remove comments because anyway the quotes in there
3309# would cause problems or look ugly.
3310# WARNING: Use '\'' to represent an apostrophe within the trap.
3311# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3312trap 'exit_status=$?
3313 # Save into config.log some information that might help in debugging.
3314 {
3315 echo
3316
cristy98dddb52010-11-04 00:30:15 +00003317 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003318## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003319## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003320 echo
3321 # The following way of writing the cache mishandles newlines in values,
3322(
3323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3324 eval ac_val=\$$ac_var
3325 case $ac_val in #(
3326 *${as_nl}*)
3327 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3330 esac
3331 case $ac_var in #(
3332 _ | IFS | as_nl) ;; #(
3333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003334 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003335 esac ;;
3336 esac
3337 done
3338 (set) 2>&1 |
3339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3340 *${as_nl}ac_space=\ *)
3341 sed -n \
3342 "s/'\''/'\''\\\\'\'''\''/g;
3343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3344 ;; #(
3345 *)
3346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3347 ;;
3348 esac |
3349 sort
3350)
3351 echo
3352
cristy98dddb52010-11-04 00:30:15 +00003353 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003354## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003355## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003356 echo
3357 for ac_var in $ac_subst_vars
3358 do
3359 eval ac_val=\$$ac_var
3360 case $ac_val in
3361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3362 esac
3363 $as_echo "$ac_var='\''$ac_val'\''"
3364 done | sort
3365 echo
3366
3367 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003368 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003369## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003370## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003371 echo
3372 for ac_var in $ac_subst_files
3373 do
3374 eval ac_val=\$$ac_var
3375 case $ac_val in
3376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3377 esac
3378 $as_echo "$ac_var='\''$ac_val'\''"
3379 done | sort
3380 echo
3381 fi
3382
3383 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003384 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003385## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003386## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003387 echo
3388 cat confdefs.h
3389 echo
3390 fi
3391 test "$ac_signal" != 0 &&
3392 $as_echo "$as_me: caught signal $ac_signal"
3393 $as_echo "$as_me: exit $exit_status"
3394 } >&5
3395 rm -f core *.core core.conftest.* &&
3396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3397 exit $exit_status
3398' 0
3399for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003401done
3402ac_signal=0
3403
3404# confdefs.h avoids OS command line length limits that DEFS can exceed.
3405rm -f -r conftest* confdefs.h
3406
cristy8b350f62009-11-15 23:12:43 +00003407$as_echo "/* confdefs.h */" > confdefs.h
3408
cristy3ed852e2009-09-05 21:47:34 +00003409# Predefined preprocessor variables.
3410
3411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE_NAME "$PACKAGE_NAME"
3413_ACEOF
3414
cristy3ed852e2009-09-05 21:47:34 +00003415cat >>confdefs.h <<_ACEOF
3416#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3417_ACEOF
3418
cristy3ed852e2009-09-05 21:47:34 +00003419cat >>confdefs.h <<_ACEOF
3420#define PACKAGE_VERSION "$PACKAGE_VERSION"
3421_ACEOF
3422
cristy3ed852e2009-09-05 21:47:34 +00003423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE_STRING "$PACKAGE_STRING"
3425_ACEOF
3426
cristy3ed852e2009-09-05 21:47:34 +00003427cat >>confdefs.h <<_ACEOF
3428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3429_ACEOF
3430
cristy8b350f62009-11-15 23:12:43 +00003431cat >>confdefs.h <<_ACEOF
3432#define PACKAGE_URL "$PACKAGE_URL"
3433_ACEOF
3434
cristy3ed852e2009-09-05 21:47:34 +00003435
3436# Let the site file select an alternate cache file if it wants to.
3437# Prefer an explicitly selected file to automatically selected ones.
3438ac_site_file1=NONE
3439ac_site_file2=NONE
3440if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003441 # We do not want a PATH search for config.site.
3442 case $CONFIG_SITE in #((
3443 -*) ac_site_file1=./$CONFIG_SITE;;
3444 */*) ac_site_file1=$CONFIG_SITE;;
3445 *) ac_site_file1=./$CONFIG_SITE;;
3446 esac
cristy3ed852e2009-09-05 21:47:34 +00003447elif test "x$prefix" != xNONE; then
3448 ac_site_file1=$prefix/share/config.site
3449 ac_site_file2=$prefix/etc/config.site
3450else
3451 ac_site_file1=$ac_default_prefix/share/config.site
3452 ac_site_file2=$ac_default_prefix/etc/config.site
3453fi
3454for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3455do
3456 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3460 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003461 . "$ac_site_file" \
3462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "failed to load site script $ac_site_file
3465See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003466 fi
3467done
3468
3469if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003470 # Some versions of bash will fail to source /dev/null (special files
3471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: loading cache $cache_file" >&6;}
3475 case $cache_file in
3476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3477 *) . "./$cache_file";;
3478 esac
3479 fi
3480else
cristy8b350f62009-11-15 23:12:43 +00003481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "$as_me: creating cache $cache_file" >&6;}
3483 >$cache_file
3484fi
3485
cristycd4c5312009-11-22 01:19:08 +00003486as_fn_append ac_header_list " stdlib.h"
3487as_fn_append ac_header_list " unistd.h"
3488as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003489# Check that the precious variables saved in the cache have kept the same
3490# value.
3491ac_cache_corrupted=false
3492for ac_var in $ac_precious_vars; do
3493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3494 eval ac_new_set=\$ac_env_${ac_var}_set
3495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3496 eval ac_new_val=\$ac_env_${ac_var}_value
3497 case $ac_old_set,$ac_new_set in
3498 set,)
cristy8b350f62009-11-15 23:12:43 +00003499 { $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 +00003500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3501 ac_cache_corrupted=: ;;
3502 ,set)
cristy8b350f62009-11-15 23:12:43 +00003503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3505 ac_cache_corrupted=: ;;
3506 ,);;
3507 *)
3508 if test "x$ac_old_val" != "x$ac_new_val"; then
3509 # differences in whitespace do not lead to failure.
3510 ac_old_val_w=`echo x $ac_old_val`
3511 ac_new_val_w=`echo x $ac_new_val`
3512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3515 ac_cache_corrupted=:
3516 else
cristy8b350f62009-11-15 23:12:43 +00003517 { $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 +00003518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3519 eval $ac_var=\$ac_old_val
3520 fi
cristy8b350f62009-11-15 23:12:43 +00003521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003522$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3525 fi;;
3526 esac
3527 # Pass precious variables to config.status.
3528 if test "$ac_new_set" = set; then
3529 case $ac_new_val in
3530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3531 *) ac_arg=$ac_var=$ac_new_val ;;
3532 esac
3533 case " $ac_configure_args " in
3534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003536 esac
3537 fi
3538done
3539if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545fi
cristy8b350f62009-11-15 23:12:43 +00003546## -------------------- ##
3547## Main body of script. ##
3548## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003549
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556
3557
3558ac_aux_dir=
3559for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003560 if test -f "$ac_dir/install-sh"; then
3561 ac_aux_dir=$ac_dir
3562 ac_install_sh="$ac_aux_dir/install-sh -c"
3563 break
3564 elif test -f "$ac_dir/install.sh"; then
3565 ac_aux_dir=$ac_dir
3566 ac_install_sh="$ac_aux_dir/install.sh -c"
3567 break
3568 elif test -f "$ac_dir/shtool"; then
3569 ac_aux_dir=$ac_dir
3570 ac_install_sh="$ac_aux_dir/shtool install -c"
3571 break
3572 fi
cristy3ed852e2009-09-05 21:47:34 +00003573done
3574if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003575 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003576fi
3577
3578# These three variables are undocumented and unsupported,
3579# and are intended to be withdrawn in a future Autoconf release.
3580# They can cause serious problems if a builder's source tree is in a directory
3581# whose full name contains unusual characters.
3582ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3583ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3584ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3585
3586
3587
3588
3589ac_config_headers="$ac_config_headers config/config.h"
3590
cristy24fc1fe2010-10-23 21:13:01 +00003591
cristy01ff9f32012-12-01 18:15:29 +00003592ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003593
cristy3ed852e2009-09-05 21:47:34 +00003594# Make sure we can run config.sub.
3595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003600if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003601 $as_echo_n "(cached) " >&6
3602else
3603 ac_build_alias=$build_alias
3604test "x$ac_build_alias" = x &&
3605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3606test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610
3611fi
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo "$ac_cv_build" >&6; }
3614case $ac_cv_build in
3615*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003617esac
3618build=$ac_cv_build
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_build
3621shift
3622build_cpu=$1
3623build_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627build_os=$*
3628IFS=$ac_save_IFS
3629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3630
3631
cristy8b350f62009-11-15 23:12:43 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003633$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003634if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003635 $as_echo_n "(cached) " >&6
3636else
3637 if test "x$host_alias" = x; then
3638 ac_cv_host=$ac_cv_build
3639else
3640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003642fi
3643
3644fi
cristy8b350f62009-11-15 23:12:43 +00003645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$ac_cv_host" >&6; }
3647case $ac_cv_host in
3648*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003650esac
3651host=$ac_cv_host
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_host
3654shift
3655host_cpu=$1
3656host_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660host_os=$*
3661IFS=$ac_save_IFS
3662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3663
3664
cristy8b350f62009-11-15 23:12:43 +00003665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003666$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003667if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003668 $as_echo_n "(cached) " >&6
3669else
3670 if test "x$target_alias" = x; then
3671 ac_cv_target=$ac_cv_host
3672else
3673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003675fi
3676
3677fi
cristy8b350f62009-11-15 23:12:43 +00003678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003679$as_echo "$ac_cv_target" >&6; }
3680case $ac_cv_target in
3681*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003683esac
3684target=$ac_cv_target
3685ac_save_IFS=$IFS; IFS='-'
3686set x $ac_cv_target
3687shift
3688target_cpu=$1
3689target_vendor=$2
3690shift; shift
3691# Remember, the first character of IFS is used to create $*,
3692# except with old shells:
3693target_os=$*
3694IFS=$ac_save_IFS
3695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3696
3697
3698# The aliases save the names the user supplied, while $host etc.
3699# will get canonicalized.
3700test -n "$target_alias" &&
3701 test "$program_prefix$program_suffix$program_transform_name" = \
3702 NONENONEs,x,x, &&
3703 program_prefix=${target_alias}-
3704
cristy837d6dc2010-02-27 01:16:57 +00003705
cristyead532a2015-06-05 00:49:30 +00003706am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003707
3708# Find a good install program. We prefer a C program (faster),
3709# so one script is as good as another. But avoid the broken or
3710# incompatible versions:
3711# SysV /etc/install, /usr/sbin/install
3712# SunOS /usr/etc/install
3713# IRIX /sbin/install
3714# AIX /bin/install
3715# AmigaOS /C/install, which installs bootblocks on floppy discs
3716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3719# OS/2's system install, which has a completely different semantic
3720# ./install, which can be erroneously created by make from ./install.sh.
3721# Reject install programs that cannot install multiple files.
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3723$as_echo_n "checking for a BSD-compatible install... " >&6; }
3724if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003725if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003726 $as_echo_n "(cached) " >&6
3727else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 # Account for people who put trailing slashes in PATH elements.
3734case $as_dir/ in #((
3735 ./ | .// | /[cC]/* | \
3736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3738 /usr/ucb/* ) ;;
3739 *)
3740 # OSF1 and SCO ODT 3.0 have their own names for install.
3741 # Don't use installbsd from OSF since it installs stuff as root
3742 # by default.
3743 for ac_prog in ginstall scoinst install; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003745 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003746 if test $ac_prog = install &&
3747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # AIX install. It has an incompatible calling convention.
3749 :
3750 elif test $ac_prog = install &&
3751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3752 # program-specific install script used by HP pwplus--don't use.
3753 :
3754 else
3755 rm -rf conftest.one conftest.two conftest.dir
3756 echo one > conftest.one
3757 echo two > conftest.two
3758 mkdir conftest.dir
3759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3760 test -s conftest.one && test -s conftest.two &&
3761 test -s conftest.dir/conftest.one &&
3762 test -s conftest.dir/conftest.two
3763 then
3764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3765 break 3
3766 fi
3767 fi
3768 fi
3769 done
3770 done
3771 ;;
3772esac
3773
3774 done
3775IFS=$as_save_IFS
3776
3777rm -rf conftest.one conftest.two conftest.dir
3778
3779fi
3780 if test "${ac_cv_path_install+set}" = set; then
3781 INSTALL=$ac_cv_path_install
3782 else
3783 # As a last resort, use the slow shell script. Don't cache a
3784 # value for INSTALL within a source directory, because that will
3785 # break other packages using the cache if that directory is
3786 # removed, or if the value is a relative name.
3787 INSTALL=$ac_install_sh
3788 fi
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3791$as_echo "$INSTALL" >&6; }
3792
3793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3794# It thinks the first close brace ends the variable substitution.
3795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3796
3797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3798
3799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3800
cristy9af1cbf2014-12-28 22:03:09 +00003801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3802$as_echo_n "checking whether build environment is sane... " >&6; }
3803# Reject unsafe characters in $srcdir or the absolute working directory
3804# name. Accept space and tab only in the latter.
3805am_lf='
3806'
3807case `pwd` in
3808 *[\\\"\#\$\&\'\`$am_lf]*)
3809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3810esac
3811case $srcdir in
3812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3814esac
3815
3816# Do 'set' in a subshell so we don't clobber the current shell's
3817# arguments. Must try -L first in case configure is actually a
3818# symlink; some systems play weird games with the mod time of symlinks
3819# (eg FreeBSD returns the mod time of the symlink's containing
3820# directory).
3821if (
3822 am_has_slept=no
3823 for am_try in 1 2; do
3824 echo "timestamp, slept: $am_has_slept" > conftest.file
3825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3826 if test "$*" = "X"; then
3827 # -L didn't work.
3828 set X `ls -t "$srcdir/configure" conftest.file`
3829 fi
3830 if test "$*" != "X $srcdir/configure conftest.file" \
3831 && test "$*" != "X conftest.file $srcdir/configure"; then
3832
3833 # If neither matched, then we have a broken ls. This can happen
3834 # if, for instance, CONFIG_SHELL is bash and it inherits a
3835 # broken ls alias from the environment. This has actually
3836 # happened. Such a system could not be considered "sane".
3837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3838 alias in your environment" "$LINENO" 5
3839 fi
3840 if test "$2" = conftest.file || test $am_try -eq 2; then
3841 break
3842 fi
3843 # Just in case.
3844 sleep 1
3845 am_has_slept=yes
3846 done
3847 test "$2" = conftest.file
3848 )
3849then
3850 # Ok.
3851 :
3852else
3853 as_fn_error $? "newly created file is older than distributed files!
3854Check your system clock" "$LINENO" 5
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857$as_echo "yes" >&6; }
3858# If we didn't sleep, we still need to ensure time stamps of config.status and
3859# generated files are strictly newer.
3860am_sleep_pid=
3861if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3862 ( sleep 1 ) &
3863 am_sleep_pid=$!
3864fi
3865
3866rm -f conftest.file
3867
cristy73bd4a52010-10-05 11:24:23 +00003868test "$program_prefix" != NONE &&
3869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3870# Use a double $ so make ignores it.
3871test "$program_suffix" != NONE &&
3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3873# Double any \ or $.
3874# By default was `s,x,x', remove it if useless.
3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3877
cristyead532a2015-06-05 00:49:30 +00003878# Expand $ac_aux_dir to an absolute path.
3879am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003880
3881if test x"${MISSING+set}" != xset; then
3882 case $am_aux_dir in
3883 *\ * | *\ *)
3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3885 *)
3886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3887 esac
3888fi
3889# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003890if eval "$MISSING --is-lightweight"; then
3891 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003892else
3893 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003896fi
3897
cristyead532a2015-06-05 00:49:30 +00003898if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3902 *)
3903 install_sh="\${SHELL} $am_aux_dir/install-sh"
3904 esac
3905fi
3906
cristyc0890a62012-07-19 00:18:20 +00003907# Installed binaries are usually stripped using 'strip' when the user
3908# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003909# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003910# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003911if test "$cross_compiling" != no; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003917if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940STRIP=$ac_cv_prog_STRIP
3941if test -n "$STRIP"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3943$as_echo "$STRIP" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_STRIP"; then
3952 ac_ct_STRIP=$STRIP
3953 # Extract the first word of "strip", so it can be a program name with args.
3954set dummy strip; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_STRIP"; then
3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003970 ac_cv_prog_ac_ct_STRIP="strip"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981if test -n "$ac_ct_STRIP"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3983$as_echo "$ac_ct_STRIP" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_STRIP" = x; then
3990 STRIP=":"
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 STRIP=$ac_ct_STRIP
3999 fi
4000else
4001 STRIP="$ac_cv_prog_STRIP"
4002fi
4003
4004fi
4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4009if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004010 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in mkdir gmkdir; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4022 'mkdir (GNU coreutils) '* | \
4023 'mkdir (coreutils) '* | \
4024 'mkdir (fileutils) '4.1*)
4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4026 break 3;;
4027 esac
4028 done
4029 done
4030 done
4031IFS=$as_save_IFS
4032
4033fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test "${ac_cv_path_mkdir+set}" = set; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for MKDIR_P within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 MKDIR_P="$ac_install_sh -d"
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4047$as_echo "$MKDIR_P" >&6; }
4048
cristy73bd4a52010-10-05 11:24:23 +00004049for ac_prog in gawk mawk nawk awk
4050do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004055if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004056 $as_echo_n "(cached) " >&6
4057else
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004068 ac_cv_prog_AWK="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078AWK=$ac_cv_prog_AWK
4079if test -n "$AWK"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4081$as_echo "$AWK" >&6; }
4082else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088 test -n "$AWK" && break
4089done
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4093set x ${MAKE-make}
4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004096 $as_echo_n "(cached) " >&6
4097else
4098 cat >conftest.make <<\_ACEOF
4099SHELL = /bin/sh
4100all:
4101 @echo '@@@%%%=$(MAKE)=@@@%%%'
4102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004104case `${MAKE-make} -f conftest.make 2>/dev/null` in
4105 *@@@%%%=?*=@@@%%%*)
4106 eval ac_cv_prog_make_${ac_make}_set=yes;;
4107 *)
4108 eval ac_cv_prog_make_${ac_make}_set=no;;
4109esac
4110rm -f conftest.make
4111fi
4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
4115 SET_MAKE=
4116else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119 SET_MAKE="MAKE=${MAKE-make}"
4120fi
4121
4122rm -rf .tst 2>/dev/null
4123mkdir .tst 2>/dev/null
4124if test -d .tst; then
4125 am__leading_dot=.
4126else
4127 am__leading_dot=_
4128fi
4129rmdir .tst 2>/dev/null
4130
cristya448bd22011-10-14 12:38:13 +00004131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133 enableval=$enable_silent_rules;
4134fi
4135
cristyc0890a62012-07-19 00:18:20 +00004136case $enable_silent_rules in # (((
4137 yes) AM_DEFAULT_VERBOSITY=0;;
4138 no) AM_DEFAULT_VERBOSITY=1;;
4139 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004140esac
cristyc3fb77b2012-02-06 01:49:41 +00004141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152 @$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154 am_cv_make_support_nested_variables=yes
4155else
4156 am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162 AM_V='$(V)'
4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165 AM_V=$AM_DEFAULT_VERBOSITY
4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
cristya448bd22011-10-14 12:38:13 +00004168AM_BACKSLASH='\'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172 # is not polluted with repeated "-I."
4173 am__isrc=' -I$(srcdir)'
4174 # test to see if srcdir already configured
4175 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004177 fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182 if (cygpath --version) >/dev/null 2>/dev/null; then
4183 CYGPATH_W='cygpath -w'
4184 else
4185 CYGPATH_W=echo
4186 fi
4187fi
4188
4189
4190# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004191 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004192 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004193
4194
cristya448bd22011-10-14 12:38:13 +00004195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
cristy73bd4a52010-10-05 11:24:23 +00004204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
cristyc0890a62012-07-19 00:18:20 +00004220# For better backward compatibility. To be removed once Automake 1.9.x
4221# dies out for good. For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
cristyead532a2015-06-05 00:49:30 +00004226# We need awk for the "check" target (and possibly the TAP driver). The
4227# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004228# Always define AMTAR for backward compatibility. Yes, it's still used
4229# in the wild :-( We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004231
cristye69bdbe2013-05-03 21:40:44 +00004232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar pax cpio none'
4235
cristyc3fb77b2012-02-06 01:49:41 +00004236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004237
4238
4239
4240
4241
cristy3ed852e2009-09-05 21:47:34 +00004242
cristya5bda012013-11-03 18:05:38 +00004243# POSIX will say in a future version that running "rm -f" with no argument
4244# is OK; and we want to be able to make that assumption in our Makefile
4245# recipes. So use an aggressive probe to check that the usage we want is
4246# actually supported "in the wild" to an acceptable degree.
4247# See automake bug#10828.
4248# To make any issue more visible, cause the running configure to be aborted
4249# by default if the 'rm' program in use doesn't match our expectations; the
4250# user can still override this though.
4251if rm -f && rm -fr && rm -rf; then : OK; else
4252 cat >&2 <<'END'
4253Oops!
4254
4255Your 'rm' program seems unable to run without file operands specified
4256on the command line, even when the '-f' option is present. This is contrary
4257to the behaviour of most rm programs out there, and not conforming with
4258the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4259
4260Please tell bug-automake@gnu.org about your system, including the value
4261of your $PATH and any error possibly output before this message. This
4262can help us improve future automake versions.
4263
4264END
4265 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4266 echo 'Configuration will proceed anyway, since you have set the' >&2
4267 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4268 echo >&2
4269 else
4270 cat >&2 <<'END'
4271Aborting the configuration process, to ensure you take notice of the issue.
4272
4273You can download and install GNU coreutils to get an 'rm' implementation
4274that behaves properly: <http://www.gnu.org/software/coreutils/>.
4275
4276If you want to complete the configuration process using your problematic
4277'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4278to "yes", and re-run configure.
4279
4280END
4281 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4282 fi
4283fi
cristyead532a2015-06-05 00:49:30 +00004284
cristy73bd4a52010-10-05 11:24:23 +00004285# Check whether --enable-silent-rules was given.
4286if test "${enable_silent_rules+set}" = set; then :
4287 enableval=$enable_silent_rules;
4288fi
4289
cristyc0890a62012-07-19 00:18:20 +00004290case $enable_silent_rules in # (((
4291 yes) AM_DEFAULT_VERBOSITY=0;;
4292 no) AM_DEFAULT_VERBOSITY=1;;
4293 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004294esac
cristyc3fb77b2012-02-06 01:49:41 +00004295am_make=${MAKE-make}
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4297$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4298if ${am_cv_make_support_nested_variables+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300else
4301 if $as_echo 'TRUE=$(BAR$(V))
4302BAR0=false
4303BAR1=true
4304V=1
4305am__doit:
4306 @$(TRUE)
4307.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4308 am_cv_make_support_nested_variables=yes
4309else
4310 am_cv_make_support_nested_variables=no
4311fi
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4314$as_echo "$am_cv_make_support_nested_variables" >&6; }
4315if test $am_cv_make_support_nested_variables = yes; then
4316 AM_V='$(V)'
4317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4318else
4319 AM_V=$AM_DEFAULT_VERBOSITY
4320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4321fi
cristy73bd4a52010-10-05 11:24:23 +00004322AM_BACKSLASH='\'
4323
cristy3ed852e2009-09-05 21:47:34 +00004324
cristy9af1cbf2014-12-28 22:03:09 +00004325#
4326# Save initial user-tunable values
4327#
4328USER_LIBS=$LIBS
4329for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4330 eval isset=\${$var+set}
4331 if test "$isset" = 'set'; then
4332 eval val=$`echo $var`
4333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4334 fi
4335done
4336
4337
4338CONFIGURE_ARGS="$0 ${ac_configure_args}"
4339
4340
cristy187791c2015-05-03 22:17:00 +00004341# Check whether --enable-reproducible-build was given.
4342if test "${enable_reproducible_build+set}" = set; then :
4343 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4344else
4345 enable_reproducible_build='no'
4346fi
4347
4348
cristy9af1cbf2014-12-28 22:03:09 +00004349# Source file containing package/library versioning information.
4350. ${srcdir}/version.sh
4351
4352echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4353
4354MAGICK_TARGET_CPU=$host_cpu
4355
4356
4357cat >>confdefs.h <<_ACEOF
4358#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4359_ACEOF
4360
4361
4362MAGICK_TARGET_VENDOR=$host_vendor
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4367_ACEOF
4368
4369
4370MAGICK_TARGET_OS=$host_os
4371
4372
4373cat >>confdefs.h <<_ACEOF
4374#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4375_ACEOF
4376
4377
4378
4379# Substitute versioning
4380MAGICK_MAJOR_VERSION=7
4381
4382MAGICK_MINOR_VERSION=0
4383
4384MAGICK_MICRO_VERSION=0
4385
4386MAGICK_PATCHLEVEL_VERSION=0
4387
4388MAGICK_VERSION=7.0.0-0
4389
cristybc8ef1c2015-06-06 14:32:21 +00004390MAGICK_SVN_REVISION=18759:18763M
cristy9af1cbf2014-12-28 22:03:09 +00004391
4392
4393# Substitute library versioning
4394MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4395
4396MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4397
4398
4399MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4400
4401MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4402
4403
cristy187791c2015-05-03 22:17:00 +00004404if test X$enable_reproducible_build = Xyes; then :
4405 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4406elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4407
4408fi
4409
cristy9af1cbf2014-12-28 22:03:09 +00004410
4411# Ensure that make can run correctly
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4413$as_echo_n "checking whether build environment is sane... " >&6; }
4414# Reject unsafe characters in $srcdir or the absolute working directory
4415# name. Accept space and tab only in the latter.
4416am_lf='
4417'
4418case `pwd` in
4419 *[\\\"\#\$\&\'\`$am_lf]*)
4420 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4421esac
4422case $srcdir in
4423 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4424 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4425esac
4426
4427# Do 'set' in a subshell so we don't clobber the current shell's
4428# arguments. Must try -L first in case configure is actually a
4429# symlink; some systems play weird games with the mod time of symlinks
4430# (eg FreeBSD returns the mod time of the symlink's containing
4431# directory).
4432if (
4433 am_has_slept=no
4434 for am_try in 1 2; do
4435 echo "timestamp, slept: $am_has_slept" > conftest.file
4436 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4437 if test "$*" = "X"; then
4438 # -L didn't work.
4439 set X `ls -t "$srcdir/configure" conftest.file`
4440 fi
4441 if test "$*" != "X $srcdir/configure conftest.file" \
4442 && test "$*" != "X conftest.file $srcdir/configure"; then
4443
4444 # If neither matched, then we have a broken ls. This can happen
4445 # if, for instance, CONFIG_SHELL is bash and it inherits a
4446 # broken ls alias from the environment. This has actually
4447 # happened. Such a system could not be considered "sane".
4448 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4449 alias in your environment" "$LINENO" 5
4450 fi
4451 if test "$2" = conftest.file || test $am_try -eq 2; then
4452 break
4453 fi
4454 # Just in case.
4455 sleep 1
4456 am_has_slept=yes
4457 done
4458 test "$2" = conftest.file
4459 )
4460then
4461 # Ok.
4462 :
4463else
4464 as_fn_error $? "newly created file is older than distributed files!
4465Check your system clock" "$LINENO" 5
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468$as_echo "yes" >&6; }
4469# If we didn't sleep, we still need to ensure time stamps of config.status and
4470# generated files are strictly newer.
4471am_sleep_pid=
4472if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4473 ( sleep 1 ) &
4474 am_sleep_pid=$!
4475fi
4476
4477rm -f conftest.file
4478
4479
cristyf279b692014-08-13 12:01:27 +00004480# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004481MAGICK_LIB_VERSION="0x"
4482if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4484fi
4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4486if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4487 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4488fi
4489MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4490if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4491 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4492fi
4493MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4494
4495
4496# Definition used to define MagickLibVersionText in version.h
4497MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4498
4499
4500# Definition used to define MagickLibVersionNumber in version.h
4501MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4502
4503
cristy5ed9c6e2013-07-14 21:20:31 +00004504MAGICKPP_LIB_VERSION="0x"
4505if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4507fi
4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4509if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4510 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4511fi
4512MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4513if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4514 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4515fi
4516MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4517
4518
4519# Definition used to define MagickLibVersionText in version.h
4520MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4521
4522
4523# Definition used to define MagickLibVersionNumber in version.h
4524MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4525
4526
4527
4528
cristy3ed852e2009-09-05 21:47:34 +00004529# Regenerate config.status if ChangeLog or version.sh is updated.
4530CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4531
4532
4533PERLMAINCC=$CC
4534
4535MAGICK_CFLAGS=''
4536MAGICK_CPPFLAGS=$CPPFLAGS_USER
4537MAGICK_PCFLAGS=$CPPFLAGS_USER
4538MAGICK_LDFLAGS=''
4539MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004540MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004541
4542#
4543# Evaluate shell variable equivalents to Makefile directory variables
4544#
4545if test "x$prefix" = xNONE; then
4546 prefix=$ac_default_prefix
4547fi
4548# Let make expand exec_prefix.
4549if test "x$exec_prefix" = xNONE; then
4550 exec_prefix='${prefix}'
4551fi
4552
4553#
4554eval "eval PREFIX_DIR=${prefix}"
4555
4556eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4557
4558eval "eval BIN_DIR=$bindir"
4559
4560eval "eval SBIN_DIR=$sbindir"
4561
4562eval "eval LIBEXEC_DIR=$libexecdir"
4563
4564eval "eval DATA_DIR=$datadir"
4565
cristy4e65ec22012-04-08 01:33:27 +00004566eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004567
cristy3ed852e2009-09-05 21:47:34 +00004568eval "eval SYSCONF_DIR=$sysconfdir"
4569
4570eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4571
4572eval "eval LOCALSTATE_DIR=$localstatedir"
4573
4574eval "eval LIB_DIR=$libdir"
4575
4576eval "eval INCLUDE_DIR=$includedir"
4577
4578eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4579
4580eval "eval INFO_DIR=$infodir"
4581
4582eval "eval MAN_DIR=$mandir"
4583
4584
4585# Get full paths to source and build directories
4586srcdirfull="`cd $srcdir && pwd`"
4587builddir="`pwd`"
4588
4589#
4590# Compute variables useful for running uninstalled software.
4591#
4592MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4593MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4594MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4595MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4596DIRSEP=':'
4597case "${build_os}" in
4598 mingw* )
4599 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4600 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4601 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4602 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4603 DIRSEP=';'
4604 ;;
4605esac
4606case "${host_os}" in
4607 mingw* )
4608 DIRSEP=';'
4609 ;;
4610esac
4611
4612
4613
4614
4615
4616
cristya0b81c32010-01-22 02:54:33 +00004617
4618#
4619# Enable OS features.
4620#
cristy73bd4a52010-10-05 11:24:23 +00004621DEPDIR="${am__leading_dot}deps"
4622
4623ac_config_commands="$ac_config_commands depfiles"
4624
4625
4626am_make=${MAKE-make}
4627cat > confinc << 'END'
4628am__doit:
4629 @echo this is the am__doit target
4630.PHONY: am__doit
4631END
4632# If we don't find an include directive, just comment out the code.
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4634$as_echo_n "checking for style of include used by $am_make... " >&6; }
4635am__include="#"
4636am__quote=
4637_am_result=none
4638# First try GNU make style include.
4639echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004640# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004641case `$am_make -s -f confmf 2> /dev/null` in #(
4642*the\ am__doit\ target*)
4643 am__include=include
4644 am__quote=
4645 _am_result=GNU
4646 ;;
4647esac
4648# Now try BSD make style include.
4649if test "$am__include" = "#"; then
4650 echo '.include "confinc"' > confmf
4651 case `$am_make -s -f confmf 2> /dev/null` in #(
4652 *the\ am__doit\ target*)
4653 am__include=.include
4654 am__quote="\""
4655 _am_result=BSD
4656 ;;
4657 esac
4658fi
4659
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4662$as_echo "$_am_result" >&6; }
4663rm -f confinc confmf
4664
4665# Check whether --enable-dependency-tracking was given.
4666if test "${enable_dependency_tracking+set}" = set; then :
4667 enableval=$enable_dependency_tracking;
4668fi
4669
4670if test "x$enable_dependency_tracking" != xno; then
4671 am_depcomp="$ac_aux_dir/depcomp"
4672 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004673 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004674fi
4675 if test "x$enable_dependency_tracking" != xno; then
4676 AMDEP_TRUE=
4677 AMDEP_FALSE='#'
4678else
4679 AMDEP_TRUE='#'
4680 AMDEP_FALSE=
4681fi
4682
4683
cristy3ed852e2009-09-05 21:47:34 +00004684ac_ext=c
4685ac_cpp='$CPP $CPPFLAGS'
4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4691set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004694if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709 break 2
4710 fi
4711done
cristy8b350f62009-11-15 23:12:43 +00004712 done
cristy3ed852e2009-09-05 21:47:34 +00004713IFS=$as_save_IFS
4714
4715fi
4716fi
4717CC=$ac_cv_prog_CC
4718if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "$CC" >&6; }
4721else
cristy8b350f62009-11-15 23:12:43 +00004722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004723$as_echo "no" >&6; }
4724fi
4725
4726
4727fi
4728if test -z "$ac_cv_prog_CC"; then
4729 ac_ct_CC=$CC
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004734if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004735 $as_echo_n "(cached) " >&6
4736else
4737 if test -n "$ac_ct_CC"; then
4738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749 break 2
4750 fi
4751done
cristy8b350f62009-11-15 23:12:43 +00004752 done
cristy3ed852e2009-09-05 21:47:34 +00004753IFS=$as_save_IFS
4754
4755fi
4756fi
4757ac_ct_CC=$ac_cv_prog_ac_ct_CC
4758if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo "$ac_ct_CC" >&6; }
4761else
cristy8b350f62009-11-15 23:12:43 +00004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763$as_echo "no" >&6; }
4764fi
4765
4766 if test "x$ac_ct_CC" = x; then
4767 CC=""
4768 else
4769 case $cross_compiling:$ac_tool_warned in
4770yes:)
cristy8b350f62009-11-15 23:12:43 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775 CC=$ac_ct_CC
4776 fi
4777else
4778 CC="$ac_cv_prog_CC"
4779fi
4780
4781if test -z "$CC"; then
4782 if test -n "$ac_tool_prefix"; then
4783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4784set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004787if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC="$CC" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004800 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802 break 2
4803 fi
4804done
cristy8b350f62009-11-15 23:12:43 +00004805 done
cristy3ed852e2009-09-05 21:47:34 +00004806IFS=$as_save_IFS
4807
4808fi
4809fi
4810CC=$ac_cv_prog_CC
4811if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004813$as_echo "$CC" >&6; }
4814else
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "no" >&6; }
4817fi
4818
4819
4820 fi
4821fi
4822if test -z "$CC"; then
4823 # Extract the first word of "cc", so it can be a program name with args.
4824set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004827if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004828 $as_echo_n "(cached) " >&6
4829else
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC="$CC" # Let the user override the test.
4832else
4833 ac_prog_rejected=no
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4842 ac_prog_rejected=yes
4843 continue
4844 fi
4845 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 break 2
4848 fi
4849done
cristy8b350f62009-11-15 23:12:43 +00004850 done
cristy3ed852e2009-09-05 21:47:34 +00004851IFS=$as_save_IFS
4852
4853if test $ac_prog_rejected = yes; then
4854 # We found a bogon in the path, so make sure we never use it.
4855 set dummy $ac_cv_prog_CC
4856 shift
4857 if test $# != 0; then
4858 # We chose a different compiler from the bogus one.
4859 # However, it has the same basename, so the bogon will be chosen
4860 # first if we set CC to just the basename; use the full file name.
4861 shift
4862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4863 fi
4864fi
4865fi
4866fi
4867CC=$ac_cv_prog_CC
4868if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$CC" >&6; }
4871else
cristy8b350f62009-11-15 23:12:43 +00004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004873$as_echo "no" >&6; }
4874fi
4875
4876
4877fi
4878if test -z "$CC"; then
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in cl.exe
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004886if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004887 $as_echo_n "(cached) " >&6
4888else
4889 if test -n "$CC"; then
4890 ac_cv_prog_CC="$CC" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901 break 2
4902 fi
4903done
cristy8b350f62009-11-15 23:12:43 +00004904 done
cristy3ed852e2009-09-05 21:47:34 +00004905IFS=$as_save_IFS
4906
4907fi
4908fi
4909CC=$ac_cv_prog_CC
4910if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004912$as_echo "$CC" >&6; }
4913else
cristy8b350f62009-11-15 23:12:43 +00004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004915$as_echo "no" >&6; }
4916fi
4917
4918
4919 test -n "$CC" && break
4920 done
4921fi
4922if test -z "$CC"; then
4923 ac_ct_CC=$CC
4924 for ac_prog in cl.exe
4925do
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004930if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 $as_echo_n "(cached) " >&6
4932else
4933 if test -n "$ac_ct_CC"; then
4934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4935else
4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004943 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004945 break 2
4946 fi
4947done
cristy8b350f62009-11-15 23:12:43 +00004948 done
cristy3ed852e2009-09-05 21:47:34 +00004949IFS=$as_save_IFS
4950
4951fi
4952fi
4953ac_ct_CC=$ac_cv_prog_ac_ct_CC
4954if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo "$ac_ct_CC" >&6; }
4957else
cristy8b350f62009-11-15 23:12:43 +00004958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo "no" >&6; }
4960fi
4961
4962
4963 test -n "$ac_ct_CC" && break
4964done
4965
4966 if test "x$ac_ct_CC" = x; then
4967 CC=""
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970yes:)
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973ac_tool_warned=yes ;;
4974esac
4975 CC=$ac_ct_CC
4976 fi
4977fi
4978
4979fi
4980
4981
cristy8b350f62009-11-15 23:12:43 +00004982test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004984as_fn_error $? "no acceptable C compiler found in \$PATH
4985See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004986
4987# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004989set X $ac_compile
4990ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004991for ac_option in --version -v -V -qversion; do
4992 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
cristy8b350f62009-11-15 23:12:43 +00004997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998$as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00005000 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005001 if test -s conftest.err; then
5002 sed '10a\
5003... rest of stderr output deleted ...
5004 10q' conftest.err >conftest.er1
5005 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00005006 fi
cristycd4c5312009-11-22 01:19:08 +00005007 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }
5010done
cristy3ed852e2009-09-05 21:47:34 +00005011
cristy8b350f62009-11-15 23:12:43 +00005012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005013/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005014
cristy3ed852e2009-09-05 21:47:34 +00005015int
5016main ()
5017{
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005024ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005025# Try to create an executable without -o first, disregard a.out.
5026# It will help us diagnose broken compilers, and finding out an intuition
5027# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5029$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005030ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5031
5032# The possible output files:
5033ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5034
5035ac_rmfiles=
5036for ac_file in $ac_files
5037do
5038 case $ac_file in
5039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5041 esac
5042done
5043rm -f $ac_rmfiles
5044
cristy8b350f62009-11-15 23:12:43 +00005045if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005046case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049esac
cristy8b350f62009-11-15 23:12:43 +00005050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005052 (eval "$ac_link_default") 2>&5
5053 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5057# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5058# in a Makefile. We should not override ac_cv_exeext if it was cached,
5059# so that the user can short-circuit this test for compilers unknown to
5060# Autoconf.
5061for ac_file in $ac_files ''
5062do
5063 test -f "$ac_file" || continue
5064 case $ac_file in
5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5066 ;;
5067 [ab].out )
5068 # We found the default executable, but exeext='' is most
5069 # certainly right.
5070 break;;
5071 *.* )
cristy8b350f62009-11-15 23:12:43 +00005072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005073 then :; else
5074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 fi
5076 # We set ac_cv_exeext here because the later test for it is not
5077 # safe: cross compilers may not add the suffix if given an `-o'
5078 # argument, so we may need to know it at that point already.
5079 # Even if this section looks crufty: it has the advantage of
5080 # actually working.
5081 break;;
5082 * )
5083 break;;
5084 esac
5085done
5086test "$ac_cv_exeext" = no && ac_cv_exeext=
5087
5088else
5089 ac_file=''
5090fi
cristy8b350f62009-11-15 23:12:43 +00005091if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005095sed 's/^/| /' conftest.$ac_ext >&5
5096
cristy8b350f62009-11-15 23:12:43 +00005097{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005099as_fn_error 77 "C compiler cannot create executables
5100See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005101else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005104fi
cristycd4c5312009-11-22 01:19:08 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5106$as_echo_n "checking for C compiler default output file name... " >&6; }
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5108$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005109ac_exeext=$ac_cv_exeext
5110
cristycd4c5312009-11-22 01:19:08 +00005111rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005112ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005115if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
cristy8b350f62009-11-15 23:12:43 +00005120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005122 (eval "$ac_link") 2>&5
5123 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5128# work properly (i.e., refer to `conftest.exe'), while it won't with
5129# `rm'.
5130for ac_file in conftest.exe conftest conftest.*; do
5131 test -f "$ac_file" || continue
5132 case $ac_file in
5133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5135 break;;
5136 * ) break;;
5137 esac
5138done
5139else
cristy8b350f62009-11-15 23:12:43 +00005140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005142as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5143See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005144fi
cristycd4c5312009-11-22 01:19:08 +00005145rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005147$as_echo "$ac_cv_exeext" >&6; }
5148
5149rm -f conftest.$ac_ext
5150EXEEXT=$ac_cv_exeext
5151ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#include <stdio.h>
5155int
5156main ()
5157{
5158FILE *f = fopen ("conftest.out", "w");
5159 return ferror (f) || fclose (f) != 0;
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165ac_clean_files="$ac_clean_files conftest.out"
5166# Check that the compiler produces executables we can run. If not, either
5167# the compiler is broken, or we cross compile.
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5169$as_echo_n "checking whether we are cross compiling... " >&6; }
5170if test "$cross_compiling" != yes; then
5171 { { ac_try="$ac_link"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177$as_echo "$ac_try_echo"; } >&5
5178 (eval "$ac_link") 2>&5
5179 ac_status=$?
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }
5182 if { ac_try='./conftest$ac_cv_exeext'
5183 { { case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5188$as_echo "$ac_try_echo"; } >&5
5189 (eval "$ac_try") 2>&5
5190 ac_status=$?
5191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; }; then
5193 cross_compiling=no
5194 else
5195 if test "$cross_compiling" = maybe; then
5196 cross_compiling=yes
5197 else
5198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005200as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005201If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005202See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005203 fi
5204 fi
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5207$as_echo "$cross_compiling" >&6; }
5208
5209rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5210ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005213if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005214 $as_echo_n "(cached) " >&6
5215else
cristy8b350f62009-11-15 23:12:43 +00005216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005217/* end confdefs.h. */
5218
5219int
5220main ()
5221{
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
5227rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005228if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005229case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232esac
cristy8b350f62009-11-15 23:12:43 +00005233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005235 (eval "$ac_compile") 2>&5
5236 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005239 for ac_file in conftest.o conftest.obj conftest.*; do
5240 test -f "$ac_file" || continue;
5241 case $ac_file in
5242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5244 break;;
5245 esac
5246done
5247else
5248 $as_echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
cristy8b350f62009-11-15 23:12:43 +00005251{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005253as_fn_error $? "cannot compute suffix of object files: cannot compile
5254See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005255fi
cristy3ed852e2009-09-05 21:47:34 +00005256rm -f conftest.$ac_cv_objext conftest.$ac_ext
5257fi
cristy8b350f62009-11-15 23:12:43 +00005258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo "$ac_cv_objext" >&6; }
5260OBJEXT=$ac_cv_objext
5261ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005263$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005264if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005265 $as_echo_n "(cached) " >&6
5266else
cristy8b350f62009-11-15 23:12:43 +00005267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005268/* end confdefs.h. */
5269
5270int
5271main ()
5272{
5273#ifndef __GNUC__
5274 choke me
5275#endif
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005282 ac_compiler_gnu=yes
5283else
cristy8b350f62009-11-15 23:12:43 +00005284 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005285fi
cristy3ed852e2009-09-05 21:47:34 +00005286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287ac_cv_c_compiler_gnu=$ac_compiler_gnu
5288
5289fi
cristy8b350f62009-11-15 23:12:43 +00005290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005291$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5292if test $ac_compiler_gnu = yes; then
5293 GCC=yes
5294else
5295 GCC=
5296fi
5297ac_test_CFLAGS=${CFLAGS+set}
5298ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005300$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005301if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005302 $as_echo_n "(cached) " >&6
5303else
5304 ac_save_c_werror_flag=$ac_c_werror_flag
5305 ac_c_werror_flag=yes
5306 ac_cv_prog_cc_g=no
5307 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005309/* end confdefs.h. */
5310
5311int
5312main ()
5313{
5314
5315 ;
5316 return 0;
5317}
5318_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005319if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005320 ac_cv_prog_cc_g=yes
5321else
cristy8b350f62009-11-15 23:12:43 +00005322 CFLAGS=""
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005324/* end confdefs.h. */
5325
5326int
5327main ()
5328{
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005334if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005335
cristy8b350f62009-11-15 23:12:43 +00005336else
5337 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005338 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005340/* end confdefs.h. */
5341
5342int
5343main ()
5344{
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005351 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005352fi
cristy3ed852e2009-09-05 21:47:34 +00005353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354fi
cristy3ed852e2009-09-05 21:47:34 +00005355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356fi
cristy3ed852e2009-09-05 21:47:34 +00005357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_c_werror_flag=$ac_save_c_werror_flag
5359fi
cristy8b350f62009-11-15 23:12:43 +00005360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005361$as_echo "$ac_cv_prog_cc_g" >&6; }
5362if test "$ac_test_CFLAGS" = set; then
5363 CFLAGS=$ac_save_CFLAGS
5364elif test $ac_cv_prog_cc_g = yes; then
5365 if test "$GCC" = yes; then
5366 CFLAGS="-g -O2"
5367 else
5368 CFLAGS="-g"
5369 fi
5370else
5371 if test "$GCC" = yes; then
5372 CFLAGS="-O2"
5373 else
5374 CFLAGS=
5375 fi
5376fi
cristy8b350f62009-11-15 23:12:43 +00005377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005379if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005380 $as_echo_n "(cached) " >&6
5381else
5382 ac_cv_prog_cc_c89=no
5383ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005385/* end confdefs.h. */
5386#include <stdarg.h>
5387#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005388struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5390struct buf { int x; };
5391FILE * (*rcsopen) (struct buf *, struct stat *, int);
5392static char *e (p, i)
5393 char **p;
5394 int i;
5395{
5396 return p[i];
5397}
5398static char *f (char * (*g) (char **, int), char **p, ...)
5399{
5400 char *s;
5401 va_list v;
5402 va_start (v,p);
5403 s = g (p, va_arg (v,int));
5404 va_end (v);
5405 return s;
5406}
5407
5408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5409 function prototypes and stuff, but not '\xHH' hex character constants.
5410 These don't provoke an error unfortunately, instead are silently treated
5411 as 'x'. The following induces an error, until -std is added to get
5412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5413 array size at least. It's necessary to write '\x00'==0 to get something
5414 that's true only with -std. */
5415int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5416
5417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5418 inside strings and character constants. */
5419#define FOO(x) 'x'
5420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5421
5422int test (int i, double x);
5423struct s1 {int (*f) (int a);};
5424struct s2 {int (*f) (double a);};
5425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5426int argc;
5427char **argv;
5428int
5429main ()
5430{
5431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5432 ;
5433 return 0;
5434}
5435_ACEOF
5436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5438do
5439 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005440 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005441 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005442fi
cristy3ed852e2009-09-05 21:47:34 +00005443rm -f core conftest.err conftest.$ac_objext
5444 test "x$ac_cv_prog_cc_c89" != "xno" && break
5445done
5446rm -f conftest.$ac_ext
5447CC=$ac_save_CC
5448
5449fi
5450# AC_CACHE_VAL
5451case "x$ac_cv_prog_cc_c89" in
5452 x)
cristy8b350f62009-11-15 23:12:43 +00005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005454$as_echo "none needed" >&6; } ;;
5455 xno)
cristy8b350f62009-11-15 23:12:43 +00005456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005457$as_echo "unsupported" >&6; } ;;
5458 *)
5459 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005461$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5462esac
cristy8b350f62009-11-15 23:12:43 +00005463if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005464
cristy8b350f62009-11-15 23:12:43 +00005465fi
cristy3ed852e2009-09-05 21:47:34 +00005466
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005472
cristya5bda012013-11-03 18:05:38 +00005473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5479$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5480if ${am_cv_prog_cc_c_o+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494 # Make sure it works both with $CC and with simple cc.
5495 # Following AC_PROG_CC_C_O, we do the test twice because some
5496 # compilers refuse to overwrite an existing .o file with -o,
5497 # though they will create one.
5498 am_cv_prog_cc_c_o=yes
5499 for am_i in 1 2; do
5500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } \
5505 && test -f conftest2.$ac_objext; then
5506 : OK
5507 else
5508 am_cv_prog_cc_c_o=no
5509 break
5510 fi
5511 done
5512 rm -f core conftest*
5513 unset am_i
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5516$as_echo "$am_cv_prog_cc_c_o" >&6; }
5517if test "$am_cv_prog_cc_c_o" != yes; then
5518 # Losing compiler, so override with the script.
5519 # FIXME: It is wrong to rewrite CC.
5520 # But if we don't then we get into trouble of one sort or another.
5521 # A longer-term fix would be to have automake use am__CC in this case,
5522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5523 CC="$am_aux_dir/compile $CC"
5524fi
5525ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530
5531
cristy73bd4a52010-10-05 11:24:23 +00005532depcc="$CC" am_compiler_list=
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5535$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005536if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005537 $as_echo_n "(cached) " >&6
5538else
5539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5540 # We make a subdir and do the tests there. Otherwise we can end up
5541 # making bogus files that we don't know about and never remove. For
5542 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005543 # making a dummy file named 'D' -- because '-MD' means "put the output
5544 # in D".
cristy7247bba2012-02-05 16:37:27 +00005545 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005546 mkdir conftest.dir
5547 # Copy depcomp to subdir because otherwise we won't find it if we're
5548 # using a relative directory.
5549 cp "$am_depcomp" conftest.dir
5550 cd conftest.dir
5551 # We will build objects and dependencies in a subdirectory because
5552 # it helps to detect inapplicable dependency modes. For instance
5553 # both Tru64's cc and ICC support -MD to output dependencies as a
5554 # side effect of compilation, but ICC will put the dependencies in
5555 # the current directory while Tru64 will put them in the object
5556 # directory.
5557 mkdir sub
5558
5559 am_cv_CC_dependencies_compiler_type=none
5560 if test "$am_compiler_list" = ""; then
5561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5562 fi
5563 am__universal=false
5564 case " $depcc " in #(
5565 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5566 esac
5567
5568 for depmode in $am_compiler_list; do
5569 # Setup a source with many dependencies, because some compilers
5570 # like to wrap large dependency lists on column 80 (with \), and
5571 # we should not choose a depcomp mode which is confused by this.
5572 #
5573 # We need to recreate these files for each test, as the compiler may
5574 # overwrite some of them when testing with obscure command lines.
5575 # This happens at least with the AIX C compiler.
5576 : > sub/conftest.c
5577 for i in 1 2 3 4 5 6; do
5578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5580 # Solaris 10 /bin/sh.
5581 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005582 done
5583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5584
cristyc0890a62012-07-19 00:18:20 +00005585 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005586 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005587 # handle '-M -o', and we need to detect this. Also, some Intel
5588 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005589 am__obj=sub/conftest.${OBJEXT-o}
5590 am__minus_obj="-o $am__obj"
5591 case $depmode in
5592 gcc)
5593 # This depmode causes a compiler race in universal mode.
5594 test "$am__universal" = false || continue
5595 ;;
5596 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005597 # After this tag, mechanisms are not by side-effect, so they'll
5598 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005599 if test "x$enable_dependency_tracking" = xyes; then
5600 continue
5601 else
5602 break
5603 fi
5604 ;;
cristy7247bba2012-02-05 16:37:27 +00005605 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005606 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005607 # not run yet. These depmodes are late enough in the game, and
5608 # so weak that their functioning should not be impacted.
5609 am__obj=conftest.${OBJEXT-o}
5610 am__minus_obj=
5611 ;;
5612 none) break ;;
5613 esac
5614 if depmode=$depmode \
5615 source=sub/conftest.c object=$am__obj \
5616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5618 >/dev/null 2>conftest.err &&
5619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623 # icc doesn't choke on unknown options, it will just issue warnings
5624 # or remarks (even with -Werror). So we grep stderr for any message
5625 # that says an option was ignored or not supported.
5626 # When given -MP, icc 7.0 and 7.1 complain thusly:
5627 # icc: Command line warning: ignoring option '-M'; no argument required
5628 # The diagnosis changed in icc 8.0:
5629 # icc: Command line remark: option '-MP' not supported
5630 if (grep 'ignoring option' conftest.err ||
5631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632 am_cv_CC_dependencies_compiler_type=$depmode
5633 break
5634 fi
5635 fi
5636 done
5637
5638 cd ..
5639 rm -rf conftest.dir
5640else
5641 am_cv_CC_dependencies_compiler_type=none
5642fi
5643
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5646$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5648
5649 if
5650 test "x$enable_dependency_tracking" != xno \
5651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5652 am__fastdepCC_TRUE=
5653 am__fastdepCC_FALSE='#'
5654else
5655 am__fastdepCC_TRUE='#'
5656 am__fastdepCC_FALSE=
5657fi
5658
5659
cristy3ed852e2009-09-05 21:47:34 +00005660
cristya0b81c32010-01-22 02:54:33 +00005661ac_ext=c
5662ac_cpp='$CPP $CPPFLAGS'
5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5667$as_echo_n "checking how to run the C preprocessor... " >&6; }
5668# On Suns, sometimes $CPP names a directory.
5669if test -n "$CPP" && test -d "$CPP"; then
5670 CPP=
5671fi
5672if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005673 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005674 $as_echo_n "(cached) " >&6
5675else
5676 # Double quotes because CPP needs to be expanded
5677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5678 do
5679 ac_preproc_ok=false
5680for ac_c_preproc_warn_flag in '' yes
5681do
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690#ifdef __STDC__
5691# include <limits.h>
5692#else
5693# include <assert.h>
5694#endif
5695 Syntax error
5696_ACEOF
5697if ac_fn_c_try_cpp "$LINENO"; then :
5698
5699else
5700 # Broken: fails on valid input.
5701continue
5702fi
cristyda16f162011-02-19 23:52:17 +00005703rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005704
5705 # OK, works on sane cases. Now check whether nonexistent headers
5706 # can be detected and how.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709#include <ac_nonexistent.h>
5710_ACEOF
5711if ac_fn_c_try_cpp "$LINENO"; then :
5712 # Broken: success on invalid input.
5713continue
5714else
5715 # Passes both tests.
5716ac_preproc_ok=:
5717break
5718fi
cristyda16f162011-02-19 23:52:17 +00005719rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005720
5721done
5722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005723rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005724if $ac_preproc_ok; then :
5725 break
5726fi
5727
5728 done
5729 ac_cv_prog_CPP=$CPP
5730
5731fi
5732 CPP=$ac_cv_prog_CPP
5733else
5734 ac_cv_prog_CPP=$CPP
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5737$as_echo "$CPP" >&6; }
5738ac_preproc_ok=false
5739for ac_c_preproc_warn_flag in '' yes
5740do
5741 # Use a header file that comes with gcc, so configuring glibc
5742 # with a fresh cross-compiler works.
5743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 # <limits.h> exists even on freestanding compilers.
5745 # On the NeXT, cc -E runs the code through the compiler's parser,
5746 # not just through cpp. "Syntax error" is here to catch this case.
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h. */
5749#ifdef __STDC__
5750# include <limits.h>
5751#else
5752# include <assert.h>
5753#endif
5754 Syntax error
5755_ACEOF
5756if ac_fn_c_try_cpp "$LINENO"; then :
5757
5758else
5759 # Broken: fails on valid input.
5760continue
5761fi
cristyda16f162011-02-19 23:52:17 +00005762rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005763
5764 # OK, works on sane cases. Now check whether nonexistent headers
5765 # can be detected and how.
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768#include <ac_nonexistent.h>
5769_ACEOF
5770if ac_fn_c_try_cpp "$LINENO"; then :
5771 # Broken: success on invalid input.
5772continue
5773else
5774 # Passes both tests.
5775ac_preproc_ok=:
5776break
5777fi
cristyda16f162011-02-19 23:52:17 +00005778rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005779
5780done
5781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005782rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005783if $ac_preproc_ok; then :
5784
5785else
5786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005788as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5789See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005790fi
5791
5792ac_ext=c
5793ac_cpp='$CPP $CPPFLAGS'
5794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5800$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005801if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005802 $as_echo_n "(cached) " >&6
5803else
5804 if test -z "$GREP"; then
5805 ac_path_GREP_found=false
5806 # Loop through the user's path and test for each of PROGNAME-LIST
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_prog in grep ggrep; do
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005815 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005816# Check for GNU ac_path_GREP and select it if it is found.
5817 # Check for GNU $ac_path_GREP
5818case `"$ac_path_GREP" --version 2>&1` in
5819*GNU*)
5820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5821*)
5822 ac_count=0
5823 $as_echo_n 0123456789 >"conftest.in"
5824 while :
5825 do
5826 cat "conftest.in" "conftest.in" >"conftest.tmp"
5827 mv "conftest.tmp" "conftest.in"
5828 cp "conftest.in" "conftest.nl"
5829 $as_echo 'GREP' >> "conftest.nl"
5830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832 as_fn_arith $ac_count + 1 && ac_count=$as_val
5833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5834 # Best one so far, save it but keep looking for a better one
5835 ac_cv_path_GREP="$ac_path_GREP"
5836 ac_path_GREP_max=$ac_count
5837 fi
5838 # 10*(2^10) chars as input seems more than enough
5839 test $ac_count -gt 10 && break
5840 done
5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842esac
5843
5844 $ac_path_GREP_found && break 3
5845 done
5846 done
5847 done
5848IFS=$as_save_IFS
5849 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005851 fi
5852else
5853 ac_cv_path_GREP=$GREP
5854fi
5855
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5858$as_echo "$ac_cv_path_GREP" >&6; }
5859 GREP="$ac_cv_path_GREP"
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5863$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005864if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005865 $as_echo_n "(cached) " >&6
5866else
5867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5868 then ac_cv_path_EGREP="$GREP -E"
5869 else
5870 if test -z "$EGREP"; then
5871 ac_path_EGREP_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in egrep; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005881 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005882# Check for GNU ac_path_EGREP and select it if it is found.
5883 # Check for GNU $ac_path_EGREP
5884case `"$ac_path_EGREP" --version 2>&1` in
5885*GNU*)
5886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5887*)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'EGREP' >> "conftest.nl"
5896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_EGREP="$ac_path_EGREP"
5902 ac_path_EGREP_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908esac
5909
5910 $ac_path_EGREP_found && break 3
5911 done
5912 done
5913 done
5914IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005917 fi
5918else
5919 ac_cv_path_EGREP=$EGREP
5920fi
5921
5922 fi
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5925$as_echo "$ac_cv_path_EGREP" >&6; }
5926 EGREP="$ac_cv_path_EGREP"
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5930$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005931if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005932 $as_echo_n "(cached) " >&6
5933else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936#include <stdlib.h>
5937#include <stdarg.h>
5938#include <string.h>
5939#include <float.h>
5940
5941int
5942main ()
5943{
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 ac_cv_header_stdc=yes
5951else
5952 ac_cv_header_stdc=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955
5956if test $ac_cv_header_stdc = yes; then
5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h. */
5960#include <string.h>
5961
5962_ACEOF
5963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964 $EGREP "memchr" >/dev/null 2>&1; then :
5965
5966else
5967 ac_cv_header_stdc=no
5968fi
5969rm -f conftest*
5970
5971fi
5972
5973if test $ac_cv_header_stdc = yes; then
5974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h. */
5977#include <stdlib.h>
5978
5979_ACEOF
5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5981 $EGREP "free" >/dev/null 2>&1; then :
5982
5983else
5984 ac_cv_header_stdc=no
5985fi
5986rm -f conftest*
5987
5988fi
5989
5990if test $ac_cv_header_stdc = yes; then
5991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5992 if test "$cross_compiling" = yes; then :
5993 :
5994else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h. */
5997#include <ctype.h>
5998#include <stdlib.h>
5999#if ((' ' & 0x0FF) == 0x020)
6000# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6001# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6002#else
6003# define ISLOWER(c) \
6004 (('a' <= (c) && (c) <= 'i') \
6005 || ('j' <= (c) && (c) <= 'r') \
6006 || ('s' <= (c) && (c) <= 'z'))
6007# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6008#endif
6009
6010#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6011int
6012main ()
6013{
6014 int i;
6015 for (i = 0; i < 256; i++)
6016 if (XOR (islower (i), ISLOWER (i))
6017 || toupper (i) != TOUPPER (i))
6018 return 2;
6019 return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_run "$LINENO"; then :
6023
6024else
6025 ac_cv_header_stdc=no
6026fi
6027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6028 conftest.$ac_objext conftest.beam conftest.$ac_ext
6029fi
6030
6031fi
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6034$as_echo "$ac_cv_header_stdc" >&6; }
6035if test $ac_cv_header_stdc = yes; then
6036
6037$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6038
6039fi
6040
6041# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6042for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6043 inttypes.h stdint.h unistd.h
6044do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6047"
cristy98dddb52010-11-04 00:30:15 +00006048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006049 cat >>confdefs.h <<_ACEOF
6050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051_ACEOF
6052
6053fi
6054
6055done
6056
6057
6058
6059 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 +00006060if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006061 MINIX=yes
6062else
6063 MINIX=
6064fi
6065
6066
6067 if test "$MINIX" = yes; then
6068
6069$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6070
6071
6072$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6073
6074
6075$as_echo "#define _MINIX 1" >>confdefs.h
6076
6077 fi
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6081$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006082if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006083 $as_echo_n "(cached) " >&6
6084else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h. */
6087
cristy14fefe52012-05-21 00:59:18 +00006088# define __EXTENSIONS__ 1
6089 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006090int
6091main ()
6092{
6093
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_safe_to_define___extensions__=yes
6100else
6101 ac_cv_safe_to_define___extensions__=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6106$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6107 test $ac_cv_safe_to_define___extensions__ = yes &&
6108 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6109
6110 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6111
6112 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6113
6114 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6115
6116 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6117
6118
6119
cristy9af1cbf2014-12-28 22:03:09 +00006120# ==============================================================================
6121# Find required base packages
6122# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006123if test -n "$ac_tool_prefix"; then
6124 for ac_prog in ar lib "link -lib"
6125 do
6126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if ${ac_cv_prog_AR+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 if test -n "$AR"; then
6134 ac_cv_prog_AR="$AR" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148 done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153AR=$ac_cv_prog_AR
6154if test -n "$AR"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6156$as_echo "$AR" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162
6163 test -n "$AR" && break
6164 done
6165fi
6166if test -z "$AR"; then
6167 ac_ct_AR=$AR
6168 for ac_prog in ar lib "link -lib"
6169do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171set dummy $ac_prog; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if ${ac_cv_prog_ac_ct_AR+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$ac_ct_AR"; then
6178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_AR="$ac_prog"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197ac_ct_AR=$ac_cv_prog_ac_ct_AR
6198if test -n "$ac_ct_AR"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6200$as_echo "$ac_ct_AR" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207 test -n "$ac_ct_AR" && break
6208done
6209
6210 if test "x$ac_ct_AR" = x; then
6211 AR="false"
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214yes:)
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217ac_tool_warned=yes ;;
6218esac
6219 AR=$ac_ct_AR
6220 fi
6221fi
6222
6223: ${AR=ar}
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6226$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6227if ${am_cv_ar_interface+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229else
6230 ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236 am_cv_ar_interface=ar
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239int some_variable = 0;
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6244 (eval $am_ar_try) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }
6248 if test "$ac_status" -eq 0; then
6249 am_cv_ar_interface=ar
6250 else
6251 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6253 (eval $am_ar_try) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }
6257 if test "$ac_status" -eq 0; then
6258 am_cv_ar_interface=lib
6259 else
6260 am_cv_ar_interface=unknown
6261 fi
6262 fi
6263 rm -f conftest.lib libconftest.a
6264
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_ext=c
6268ac_cpp='$CPP $CPPFLAGS'
6269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6275$as_echo "$am_cv_ar_interface" >&6; }
6276
6277case $am_cv_ar_interface in
6278ar)
6279 ;;
6280lib)
6281 # Microsoft lib, so override with the ar-lib wrapper script.
6282 # FIXME: It is wrong to rewrite AR.
6283 # But if we don't then we get into trouble of one sort or another.
6284 # A longer-term fix would be to have automake use am__AR in this case,
6285 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6286 # similar.
6287 AR="$am_aux_dir/ar-lib $AR"
6288 ;;
6289unknown)
6290 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6291 ;;
6292esac
cristy9af1cbf2014-12-28 22:03:09 +00006293
cristya0b81c32010-01-22 02:54:33 +00006294ac_ext=c
6295ac_cpp='$CPP $CPPFLAGS'
6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6301set dummy ${ac_tool_prefix}gcc; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006304if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006305 $as_echo_n "(cached) " >&6
6306else
6307 if test -n "$CC"; then
6308 ac_cv_prog_CC="$CC" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327CC=$ac_cv_prog_CC
6328if test -n "$CC"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6330$as_echo "$CC" >&6; }
6331else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337fi
6338if test -z "$ac_cv_prog_CC"; then
6339 ac_ct_CC=$CC
6340 # Extract the first word of "gcc", so it can be a program name with args.
6341set dummy gcc; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006344if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006345 $as_echo_n "(cached) " >&6
6346else
6347 if test -n "$ac_ct_CC"; then
6348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006357 ac_cv_prog_ac_ct_CC="gcc"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362 done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367ac_ct_CC=$ac_cv_prog_ac_ct_CC
6368if test -n "$ac_ct_CC"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6370$as_echo "$ac_ct_CC" >&6; }
6371else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376 if test "x$ac_ct_CC" = x; then
6377 CC=""
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380yes:)
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383ac_tool_warned=yes ;;
6384esac
6385 CC=$ac_ct_CC
6386 fi
6387else
6388 CC="$ac_cv_prog_CC"
6389fi
6390
6391if test -z "$CC"; then
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6394set dummy ${ac_tool_prefix}cc; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006397if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -n "$CC"; then
6401 ac_cv_prog_CC="$CC" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006410 ac_cv_prog_CC="${ac_tool_prefix}cc"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420CC=$ac_cv_prog_CC
6421if test -n "$CC"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6423$as_echo "$CC" >&6; }
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430 fi
6431fi
6432if test -z "$CC"; then
6433 # Extract the first word of "cc", so it can be a program name with args.
6434set dummy cc; ac_word=$2
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006437if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006438 $as_echo_n "(cached) " >&6
6439else
6440 if test -n "$CC"; then
6441 ac_cv_prog_CC="$CC" # Let the user override the test.
6442else
6443 ac_prog_rejected=no
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6452 ac_prog_rejected=yes
6453 continue
6454 fi
6455 ac_cv_prog_CC="cc"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459done
6460 done
6461IFS=$as_save_IFS
6462
6463if test $ac_prog_rejected = yes; then
6464 # We found a bogon in the path, so make sure we never use it.
6465 set dummy $ac_cv_prog_CC
6466 shift
6467 if test $# != 0; then
6468 # We chose a different compiler from the bogus one.
6469 # However, it has the same basename, so the bogon will be chosen
6470 # first if we set CC to just the basename; use the full file name.
6471 shift
6472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6473 fi
6474fi
6475fi
6476fi
6477CC=$ac_cv_prog_CC
6478if test -n "$CC"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6480$as_echo "$CC" >&6; }
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486
6487fi
6488if test -z "$CC"; then
6489 if test -n "$ac_tool_prefix"; then
6490 for ac_prog in cl.exe
6491 do
6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006496if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006497 $as_echo_n "(cached) " >&6
6498else
6499 if test -n "$CC"; then
6500 ac_cv_prog_CC="$CC" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514 done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519CC=$ac_cv_prog_CC
6520if test -n "$CC"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6522$as_echo "$CC" >&6; }
6523else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529 test -n "$CC" && break
6530 done
6531fi
6532if test -z "$CC"; then
6533 ac_ct_CC=$CC
6534 for ac_prog in cl.exe
6535do
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537set dummy $ac_prog; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006540if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006541 $as_echo_n "(cached) " >&6
6542else
6543 if test -n "$ac_ct_CC"; then
6544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006553 ac_cv_prog_ac_ct_CC="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_CC=$ac_cv_prog_ac_ct_CC
6564if test -n "$ac_ct_CC"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6566$as_echo "$ac_ct_CC" >&6; }
6567else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573 test -n "$ac_ct_CC" && break
6574done
6575
6576 if test "x$ac_ct_CC" = x; then
6577 CC=""
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585 CC=$ac_ct_CC
6586 fi
6587fi
6588
6589fi
6590
6591
6592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006594as_fn_error $? "no acceptable C compiler found in \$PATH
6595See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006596
6597# Provide some information about the compiler.
6598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6599set X $ac_compile
6600ac_compiler=$2
6601for ac_option in --version -v -V -qversion; do
6602 { { ac_try="$ac_compiler $ac_option >&5"
6603case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606esac
6607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6608$as_echo "$ac_try_echo"; } >&5
6609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6610 ac_status=$?
6611 if test -s conftest.err; then
6612 sed '10a\
6613... rest of stderr output deleted ...
6614 10q' conftest.err >conftest.er1
6615 cat conftest.er1 >&5
6616 fi
6617 rm -f conftest.er1 conftest.err
6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }
6620done
6621
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006624if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006625 $as_echo_n "(cached) " >&6
6626else
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h. */
6629
6630int
6631main ()
6632{
6633#ifndef __GNUC__
6634 choke me
6635#endif
6636
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_compile "$LINENO"; then :
6642 ac_compiler_gnu=yes
6643else
6644 ac_compiler_gnu=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647ac_cv_c_compiler_gnu=$ac_compiler_gnu
6648
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6651$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6652if test $ac_compiler_gnu = yes; then
6653 GCC=yes
6654else
6655 GCC=
6656fi
6657ac_test_CFLAGS=${CFLAGS+set}
6658ac_save_CFLAGS=$CFLAGS
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6660$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006661if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006662 $as_echo_n "(cached) " >&6
6663else
6664 ac_save_c_werror_flag=$ac_c_werror_flag
6665 ac_c_werror_flag=yes
6666 ac_cv_prog_cc_g=no
6667 CFLAGS="-g"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h. */
6670
6671int
6672main ()
6673{
6674
6675 ;
6676 return 0;
6677}
6678_ACEOF
6679if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_prog_cc_g=yes
6681else
6682 CFLAGS=""
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h. */
6685
6686int
6687main ()
6688{
6689
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695
6696else
6697 ac_c_werror_flag=$ac_save_c_werror_flag
6698 CFLAGS="-g"
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h. */
6701
6702int
6703main ()
6704{
6705
6706 ;
6707 return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711 ac_cv_prog_cc_g=yes
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 ac_c_werror_flag=$ac_save_c_werror_flag
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6721$as_echo "$ac_cv_prog_cc_g" >&6; }
6722if test "$ac_test_CFLAGS" = set; then
6723 CFLAGS=$ac_save_CFLAGS
6724elif test $ac_cv_prog_cc_g = yes; then
6725 if test "$GCC" = yes; then
6726 CFLAGS="-g -O2"
6727 else
6728 CFLAGS="-g"
6729 fi
6730else
6731 if test "$GCC" = yes; then
6732 CFLAGS="-O2"
6733 else
6734 CFLAGS=
6735 fi
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006739if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006740 $as_echo_n "(cached) " >&6
6741else
6742 ac_cv_prog_cc_c89=no
6743ac_save_CC=$CC
6744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h. */
6746#include <stdarg.h>
6747#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006748struct stat;
cristya0b81c32010-01-22 02:54:33 +00006749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6750struct buf { int x; };
6751FILE * (*rcsopen) (struct buf *, struct stat *, int);
6752static char *e (p, i)
6753 char **p;
6754 int i;
6755{
6756 return p[i];
6757}
6758static char *f (char * (*g) (char **, int), char **p, ...)
6759{
6760 char *s;
6761 va_list v;
6762 va_start (v,p);
6763 s = g (p, va_arg (v,int));
6764 va_end (v);
6765 return s;
6766}
6767
6768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6769 function prototypes and stuff, but not '\xHH' hex character constants.
6770 These don't provoke an error unfortunately, instead are silently treated
6771 as 'x'. The following induces an error, until -std is added to get
6772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6773 array size at least. It's necessary to write '\x00'==0 to get something
6774 that's true only with -std. */
6775int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6776
6777/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6778 inside strings and character constants. */
6779#define FOO(x) 'x'
6780int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6781
6782int test (int i, double x);
6783struct s1 {int (*f) (int a);};
6784struct s2 {int (*f) (double a);};
6785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6786int argc;
6787char **argv;
6788int
6789main ()
6790{
6791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6798do
6799 CC="$ac_save_CC $ac_arg"
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_prog_cc_c89=$ac_arg
6802fi
6803rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c89" != "xno" && break
6805done
6806rm -f conftest.$ac_ext
6807CC=$ac_save_CC
6808
6809fi
6810# AC_CACHE_VAL
6811case "x$ac_cv_prog_cc_c89" in
6812 x)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6814$as_echo "none needed" >&6; } ;;
6815 xno)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6817$as_echo "unsupported" >&6; } ;;
6818 *)
6819 CC="$CC $ac_cv_prog_cc_c89"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6821$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6822esac
6823if test "x$ac_cv_prog_cc_c89" != xno; then :
6824
6825fi
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
cristya5bda012013-11-03 18:05:38 +00006833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6839$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6840if ${am_cv_prog_cc_c_o+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h. */
6845
6846int
6847main ()
6848{
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854 # Make sure it works both with $CC and with simple cc.
6855 # Following AC_PROG_CC_C_O, we do the test twice because some
6856 # compilers refuse to overwrite an existing .o file with -o,
6857 # though they will create one.
6858 am_cv_prog_cc_c_o=yes
6859 for am_i in 1 2; do
6860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } \
6865 && test -f conftest2.$ac_objext; then
6866 : OK
6867 else
6868 am_cv_prog_cc_c_o=no
6869 break
6870 fi
6871 done
6872 rm -f core conftest*
6873 unset am_i
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6876$as_echo "$am_cv_prog_cc_c_o" >&6; }
6877if test "$am_cv_prog_cc_c_o" != yes; then
6878 # Losing compiler, so override with the script.
6879 # FIXME: It is wrong to rewrite CC.
6880 # But if we don't then we get into trouble of one sort or another.
6881 # A longer-term fix would be to have automake use am__CC in this case,
6882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6883 CC="$am_aux_dir/compile $CC"
6884fi
6885ac_ext=c
6886ac_cpp='$CPP $CPPFLAGS'
6887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889ac_compiler_gnu=$ac_cv_c_compiler_gnu
6890
6891
cristy73bd4a52010-10-05 11:24:23 +00006892depcc="$CC" am_compiler_list=
6893
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6895$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006896if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006897 $as_echo_n "(cached) " >&6
6898else
6899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6900 # We make a subdir and do the tests there. Otherwise we can end up
6901 # making bogus files that we don't know about and never remove. For
6902 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006903 # making a dummy file named 'D' -- because '-MD' means "put the output
6904 # in D".
cristy7247bba2012-02-05 16:37:27 +00006905 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006906 mkdir conftest.dir
6907 # Copy depcomp to subdir because otherwise we won't find it if we're
6908 # using a relative directory.
6909 cp "$am_depcomp" conftest.dir
6910 cd conftest.dir
6911 # We will build objects and dependencies in a subdirectory because
6912 # it helps to detect inapplicable dependency modes. For instance
6913 # both Tru64's cc and ICC support -MD to output dependencies as a
6914 # side effect of compilation, but ICC will put the dependencies in
6915 # the current directory while Tru64 will put them in the object
6916 # directory.
6917 mkdir sub
6918
6919 am_cv_CC_dependencies_compiler_type=none
6920 if test "$am_compiler_list" = ""; then
6921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6922 fi
6923 am__universal=false
6924 case " $depcc " in #(
6925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6926 esac
6927
6928 for depmode in $am_compiler_list; do
6929 # Setup a source with many dependencies, because some compilers
6930 # like to wrap large dependency lists on column 80 (with \), and
6931 # we should not choose a depcomp mode which is confused by this.
6932 #
6933 # We need to recreate these files for each test, as the compiler may
6934 # overwrite some of them when testing with obscure command lines.
6935 # This happens at least with the AIX C compiler.
6936 : > sub/conftest.c
6937 for i in 1 2 3 4 5 6; do
6938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6940 # Solaris 10 /bin/sh.
6941 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006942 done
6943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6944
cristyc0890a62012-07-19 00:18:20 +00006945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006946 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006947 # handle '-M -o', and we need to detect this. Also, some Intel
6948 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006949 am__obj=sub/conftest.${OBJEXT-o}
6950 am__minus_obj="-o $am__obj"
6951 case $depmode in
6952 gcc)
6953 # This depmode causes a compiler race in universal mode.
6954 test "$am__universal" = false || continue
6955 ;;
6956 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006957 # After this tag, mechanisms are not by side-effect, so they'll
6958 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006959 if test "x$enable_dependency_tracking" = xyes; then
6960 continue
6961 else
6962 break
6963 fi
6964 ;;
cristy7247bba2012-02-05 16:37:27 +00006965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006966 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006967 # not run yet. These depmodes are late enough in the game, and
6968 # so weak that their functioning should not be impacted.
6969 am__obj=conftest.${OBJEXT-o}
6970 am__minus_obj=
6971 ;;
6972 none) break ;;
6973 esac
6974 if depmode=$depmode \
6975 source=sub/conftest.c object=$am__obj \
6976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6978 >/dev/null 2>conftest.err &&
6979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6983 # icc doesn't choke on unknown options, it will just issue warnings
6984 # or remarks (even with -Werror). So we grep stderr for any message
6985 # that says an option was ignored or not supported.
6986 # When given -MP, icc 7.0 and 7.1 complain thusly:
6987 # icc: Command line warning: ignoring option '-M'; no argument required
6988 # The diagnosis changed in icc 8.0:
6989 # icc: Command line remark: option '-MP' not supported
6990 if (grep 'ignoring option' conftest.err ||
6991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6992 am_cv_CC_dependencies_compiler_type=$depmode
6993 break
6994 fi
6995 fi
6996 done
6997
6998 cd ..
6999 rm -rf conftest.dir
7000else
7001 am_cv_CC_dependencies_compiler_type=none
7002fi
7003
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7008
7009 if
7010 test "x$enable_dependency_tracking" != xno \
7011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7012 am__fastdepCC_TRUE=
7013 am__fastdepCC_FALSE='#'
7014else
7015 am__fastdepCC_TRUE='#'
7016 am__fastdepCC_FALSE=
7017fi
7018
7019
cristy95646052009-11-28 23:05:30 +00007020ac_ext=cpp
7021ac_cpp='$CXXCPP $CPPFLAGS'
7022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7025if test -z "$CXX"; then
7026 if test -n "$CCC"; then
7027 CXX=$CCC
7028 else
7029 if test -n "$ac_tool_prefix"; then
7030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7031 do
7032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007036if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007037 $as_echo_n "(cached) " >&6
7038else
7039 if test -n "$CXX"; then
7040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054 done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059CXX=$ac_cv_prog_CXX
7060if test -n "$CXX"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7062$as_echo "$CXX" >&6; }
7063else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068
7069 test -n "$CXX" && break
7070 done
7071fi
7072if test -z "$CXX"; then
7073 ac_ct_CXX=$CXX
7074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7075do
7076 # Extract the first word of "$ac_prog", so it can be a program name with args.
7077set dummy $ac_prog; ac_word=$2
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007080if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007081 $as_echo_n "(cached) " >&6
7082else
7083 if test -n "$ac_ct_CXX"; then
7084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007093 ac_cv_prog_ac_ct_CXX="$ac_prog"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098 done
7099IFS=$as_save_IFS
7100
7101fi
7102fi
7103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7104if test -n "$ac_ct_CXX"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7106$as_echo "$ac_ct_CXX" >&6; }
7107else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112
7113 test -n "$ac_ct_CXX" && break
7114done
7115
7116 if test "x$ac_ct_CXX" = x; then
7117 CXX="g++"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120yes:)
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123ac_tool_warned=yes ;;
7124esac
7125 CXX=$ac_ct_CXX
7126 fi
7127fi
7128
7129 fi
7130fi
7131# Provide some information about the compiler.
7132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7133set X $ac_compile
7134ac_compiler=$2
7135for ac_option in --version -v -V -qversion; do
7136 { { ac_try="$ac_compiler $ac_option >&5"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7142$as_echo "$ac_try_echo"; } >&5
7143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7144 ac_status=$?
7145 if test -s conftest.err; then
7146 sed '10a\
7147... rest of stderr output deleted ...
7148 10q' conftest.err >conftest.er1
7149 cat conftest.er1 >&5
7150 fi
7151 rm -f conftest.er1 conftest.err
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }
7154done
7155
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7157$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007158if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007159 $as_echo_n "(cached) " >&6
7160else
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h. */
7163
7164int
7165main ()
7166{
7167#ifndef __GNUC__
7168 choke me
7169#endif
7170
7171 ;
7172 return 0;
7173}
7174_ACEOF
7175if ac_fn_cxx_try_compile "$LINENO"; then :
7176 ac_compiler_gnu=yes
7177else
7178 ac_compiler_gnu=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7185$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7186if test $ac_compiler_gnu = yes; then
7187 GXX=yes
7188else
7189 GXX=
7190fi
7191ac_test_CXXFLAGS=${CXXFLAGS+set}
7192ac_save_CXXFLAGS=$CXXFLAGS
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7194$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007195if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007196 $as_echo_n "(cached) " >&6
7197else
7198 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7199 ac_cxx_werror_flag=yes
7200 ac_cv_prog_cxx_g=no
7201 CXXFLAGS="-g"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h. */
7204
7205int
7206main ()
7207{
7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213if ac_fn_cxx_try_compile "$LINENO"; then :
7214 ac_cv_prog_cxx_g=yes
7215else
7216 CXXFLAGS=""
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h. */
7219
7220int
7221main ()
7222{
7223
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228if ac_fn_cxx_try_compile "$LINENO"; then :
7229
7230else
7231 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7232 CXXFLAGS="-g"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235
7236int
7237main ()
7238{
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_compile "$LINENO"; then :
7245 ac_cv_prog_cxx_g=yes
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248fi
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7253fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7255$as_echo "$ac_cv_prog_cxx_g" >&6; }
7256if test "$ac_test_CXXFLAGS" = set; then
7257 CXXFLAGS=$ac_save_CXXFLAGS
7258elif test $ac_cv_prog_cxx_g = yes; then
7259 if test "$GXX" = yes; then
7260 CXXFLAGS="-g -O2"
7261 else
7262 CXXFLAGS="-g"
7263 fi
7264else
7265 if test "$GXX" = yes; then
7266 CXXFLAGS="-O2"
7267 else
7268 CXXFLAGS=
7269 fi
7270fi
7271ac_ext=c
7272ac_cpp='$CPP $CPPFLAGS'
7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276
cristy73bd4a52010-10-05 11:24:23 +00007277depcc="$CXX" am_compiler_list=
7278
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7280$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007281if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007282 $as_echo_n "(cached) " >&6
7283else
7284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7285 # We make a subdir and do the tests there. Otherwise we can end up
7286 # making bogus files that we don't know about and never remove. For
7287 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007288 # making a dummy file named 'D' -- because '-MD' means "put the output
7289 # in D".
cristy7247bba2012-02-05 16:37:27 +00007290 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007291 mkdir conftest.dir
7292 # Copy depcomp to subdir because otherwise we won't find it if we're
7293 # using a relative directory.
7294 cp "$am_depcomp" conftest.dir
7295 cd conftest.dir
7296 # We will build objects and dependencies in a subdirectory because
7297 # it helps to detect inapplicable dependency modes. For instance
7298 # both Tru64's cc and ICC support -MD to output dependencies as a
7299 # side effect of compilation, but ICC will put the dependencies in
7300 # the current directory while Tru64 will put them in the object
7301 # directory.
7302 mkdir sub
7303
7304 am_cv_CXX_dependencies_compiler_type=none
7305 if test "$am_compiler_list" = ""; then
7306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7307 fi
7308 am__universal=false
7309 case " $depcc " in #(
7310 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7311 esac
7312
7313 for depmode in $am_compiler_list; do
7314 # Setup a source with many dependencies, because some compilers
7315 # like to wrap large dependency lists on column 80 (with \), and
7316 # we should not choose a depcomp mode which is confused by this.
7317 #
7318 # We need to recreate these files for each test, as the compiler may
7319 # overwrite some of them when testing with obscure command lines.
7320 # This happens at least with the AIX C compiler.
7321 : > sub/conftest.c
7322 for i in 1 2 3 4 5 6; do
7323 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007324 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7325 # Solaris 10 /bin/sh.
7326 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007327 done
7328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7329
cristyc0890a62012-07-19 00:18:20 +00007330 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007331 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007332 # handle '-M -o', and we need to detect this. Also, some Intel
7333 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007334 am__obj=sub/conftest.${OBJEXT-o}
7335 am__minus_obj="-o $am__obj"
7336 case $depmode in
7337 gcc)
7338 # This depmode causes a compiler race in universal mode.
7339 test "$am__universal" = false || continue
7340 ;;
7341 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007342 # After this tag, mechanisms are not by side-effect, so they'll
7343 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007344 if test "x$enable_dependency_tracking" = xyes; then
7345 continue
7346 else
7347 break
7348 fi
7349 ;;
cristy7247bba2012-02-05 16:37:27 +00007350 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007351 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007352 # not run yet. These depmodes are late enough in the game, and
7353 # so weak that their functioning should not be impacted.
7354 am__obj=conftest.${OBJEXT-o}
7355 am__minus_obj=
7356 ;;
7357 none) break ;;
7358 esac
7359 if depmode=$depmode \
7360 source=sub/conftest.c object=$am__obj \
7361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7362 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7363 >/dev/null 2>conftest.err &&
7364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7366 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7368 # icc doesn't choke on unknown options, it will just issue warnings
7369 # or remarks (even with -Werror). So we grep stderr for any message
7370 # that says an option was ignored or not supported.
7371 # When given -MP, icc 7.0 and 7.1 complain thusly:
7372 # icc: Command line warning: ignoring option '-M'; no argument required
7373 # The diagnosis changed in icc 8.0:
7374 # icc: Command line remark: option '-MP' not supported
7375 if (grep 'ignoring option' conftest.err ||
7376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7377 am_cv_CXX_dependencies_compiler_type=$depmode
7378 break
7379 fi
7380 fi
7381 done
7382
7383 cd ..
7384 rm -rf conftest.dir
7385else
7386 am_cv_CXX_dependencies_compiler_type=none
7387fi
7388
7389fi
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7391$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7392CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7393
7394 if
7395 test "x$enable_dependency_tracking" != xno \
7396 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7397 am__fastdepCXX_TRUE=
7398 am__fastdepCXX_FALSE='#'
7399else
7400 am__fastdepCXX_TRUE='#'
7401 am__fastdepCXX_FALSE=
7402fi
7403
7404
cristy8b350f62009-11-15 23:12:43 +00007405 case $ac_cv_prog_cc_stdc in #(
7406 no) :
7407 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7408 *) :
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007410$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007411if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007412 $as_echo_n "(cached) " >&6
7413else
7414 ac_cv_prog_cc_c99=no
7415ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007417/* end confdefs.h. */
7418#include <stdarg.h>
7419#include <stdbool.h>
7420#include <stdlib.h>
7421#include <wchar.h>
7422#include <stdio.h>
7423
7424// Check varargs macros. These examples are taken from C99 6.10.3.5.
7425#define debug(...) fprintf (stderr, __VA_ARGS__)
7426#define showlist(...) puts (#__VA_ARGS__)
7427#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7428static void
7429test_varargs_macros (void)
7430{
7431 int x = 1234;
7432 int y = 5678;
7433 debug ("Flag");
7434 debug ("X = %d\n", x);
7435 showlist (The first, second, and third items.);
7436 report (x>y, "x is %d but y is %d", x, y);
7437}
7438
7439// Check long long types.
7440#define BIG64 18446744073709551615ull
7441#define BIG32 4294967295ul
7442#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7443#if !BIG_OK
7444 your preprocessor is broken;
7445#endif
7446#if BIG_OK
7447#else
7448 your preprocessor is broken;
7449#endif
7450static long long int bignum = -9223372036854775807LL;
7451static unsigned long long int ubignum = BIG64;
7452
7453struct incomplete_array
7454{
7455 int datasize;
7456 double data[];
7457};
7458
7459struct named_init {
7460 int number;
7461 const wchar_t *name;
7462 double average;
7463};
7464
7465typedef const char *ccp;
7466
7467static inline int
7468test_restrict (ccp restrict text)
7469{
7470 // See if C++-style comments work.
7471 // Iterate through items via the restricted pointer.
7472 // Also check for declarations in for loops.
7473 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7474 continue;
7475 return 0;
7476}
7477
7478// Check varargs and va_copy.
7479static void
7480test_varargs (const char *format, ...)
7481{
7482 va_list args;
7483 va_start (args, format);
7484 va_list args_copy;
7485 va_copy (args_copy, args);
7486
7487 const char *str;
7488 int number;
7489 float fnumber;
7490
7491 while (*format)
7492 {
7493 switch (*format++)
7494 {
7495 case 's': // string
7496 str = va_arg (args_copy, const char *);
7497 break;
7498 case 'd': // int
7499 number = va_arg (args_copy, int);
7500 break;
7501 case 'f': // float
7502 fnumber = va_arg (args_copy, double);
7503 break;
7504 default:
7505 break;
7506 }
7507 }
7508 va_end (args_copy);
7509 va_end (args);
7510}
7511
7512int
7513main ()
7514{
7515
7516 // Check bool.
7517 _Bool success = false;
7518
7519 // Check restrict.
7520 if (test_restrict ("String literal") == 0)
7521 success = true;
7522 char *restrict newvar = "Another string";
7523
7524 // Check varargs.
7525 test_varargs ("s, d' f .", "string", 65, 34.234);
7526 test_varargs_macros ();
7527
7528 // Check flexible array members.
7529 struct incomplete_array *ia =
7530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7531 ia->datasize = 10;
7532 for (int i = 0; i < ia->datasize; ++i)
7533 ia->data[i] = i * 1.234;
7534
7535 // Check named initializers.
7536 struct named_init ni = {
7537 .number = 34,
7538 .name = L"Test wide string",
7539 .average = 543.34343,
7540 };
7541
7542 ni.number = 58;
7543
7544 int dynamic_array[ni.number];
7545 dynamic_array[ni.number - 1] = 543;
7546
7547 // work around unused variable warnings
7548 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7549 || dynamic_array[ni.number - 1] != 543);
7550
7551 ;
7552 return 0;
7553}
7554_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007555for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007556do
7557 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007558 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007559 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007560fi
cristy3ed852e2009-09-05 21:47:34 +00007561rm -f core conftest.err conftest.$ac_objext
7562 test "x$ac_cv_prog_cc_c99" != "xno" && break
7563done
7564rm -f conftest.$ac_ext
7565CC=$ac_save_CC
7566
7567fi
7568# AC_CACHE_VAL
7569case "x$ac_cv_prog_cc_c99" in
7570 x)
cristy8b350f62009-11-15 23:12:43 +00007571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007572$as_echo "none needed" >&6; } ;;
7573 xno)
cristy8b350f62009-11-15 23:12:43 +00007574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007575$as_echo "unsupported" >&6; } ;;
7576 *)
7577 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007579$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7580esac
cristy8b350f62009-11-15 23:12:43 +00007581if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007582 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7583else
cristy8b350f62009-11-15 23:12:43 +00007584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007586if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007587 $as_echo_n "(cached) " >&6
7588else
7589 ac_cv_prog_cc_c89=no
7590ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007592/* end confdefs.h. */
7593#include <stdarg.h>
7594#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007595struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7597struct buf { int x; };
7598FILE * (*rcsopen) (struct buf *, struct stat *, int);
7599static char *e (p, i)
7600 char **p;
7601 int i;
7602{
7603 return p[i];
7604}
7605static char *f (char * (*g) (char **, int), char **p, ...)
7606{
7607 char *s;
7608 va_list v;
7609 va_start (v,p);
7610 s = g (p, va_arg (v,int));
7611 va_end (v);
7612 return s;
7613}
7614
7615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7616 function prototypes and stuff, but not '\xHH' hex character constants.
7617 These don't provoke an error unfortunately, instead are silently treated
7618 as 'x'. The following induces an error, until -std is added to get
7619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7620 array size at least. It's necessary to write '\x00'==0 to get something
7621 that's true only with -std. */
7622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7623
7624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7625 inside strings and character constants. */
7626#define FOO(x) 'x'
7627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7628
7629int test (int i, double x);
7630struct s1 {int (*f) (int a);};
7631struct s2 {int (*f) (double a);};
7632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7633int argc;
7634char **argv;
7635int
7636main ()
7637{
7638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7639 ;
7640 return 0;
7641}
7642_ACEOF
7643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7645do
7646 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007647 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007648 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007649fi
cristy3ed852e2009-09-05 21:47:34 +00007650rm -f core conftest.err conftest.$ac_objext
7651 test "x$ac_cv_prog_cc_c89" != "xno" && break
7652done
7653rm -f conftest.$ac_ext
7654CC=$ac_save_CC
7655
7656fi
7657# AC_CACHE_VAL
7658case "x$ac_cv_prog_cc_c89" in
7659 x)
cristy8b350f62009-11-15 23:12:43 +00007660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007661$as_echo "none needed" >&6; } ;;
7662 xno)
cristy8b350f62009-11-15 23:12:43 +00007663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007664$as_echo "unsupported" >&6; } ;;
7665 *)
7666 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7669esac
cristy8b350f62009-11-15 23:12:43 +00007670if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7672else
7673 ac_cv_prog_cc_stdc=no
7674fi
7675
cristy3ed852e2009-09-05 21:47:34 +00007676fi
cristy3ed852e2009-09-05 21:47:34 +00007677 ;;
7678esac
cristy8b350f62009-11-15 23:12:43 +00007679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007680$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007681 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007682 $as_echo_n "(cached) " >&6
7683fi
7684
cristy8b350f62009-11-15 23:12:43 +00007685 case $ac_cv_prog_cc_stdc in #(
7686 no) :
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7688$as_echo "unsupported" >&6; } ;; #(
7689 '') :
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7691$as_echo "none needed" >&6; } ;; #(
7692 *) :
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7695esac
7696
cristy3ed852e2009-09-05 21:47:34 +00007697ac_ext=c
7698ac_cpp='$CPP $CPPFLAGS'
7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007703$as_echo_n "checking how to run the C preprocessor... " >&6; }
7704# On Suns, sometimes $CPP names a directory.
7705if test -n "$CPP" && test -d "$CPP"; then
7706 CPP=
7707fi
7708if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007709 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007710 $as_echo_n "(cached) " >&6
7711else
7712 # Double quotes because CPP needs to be expanded
7713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7714 do
7715 ac_preproc_ok=false
7716for ac_c_preproc_warn_flag in '' yes
7717do
7718 # Use a header file that comes with gcc, so configuring glibc
7719 # with a fresh cross-compiler works.
7720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 # <limits.h> exists even on freestanding compilers.
7722 # On the NeXT, cc -E runs the code through the compiler's parser,
7723 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007725/* end confdefs.h. */
7726#ifdef __STDC__
7727# include <limits.h>
7728#else
7729# include <assert.h>
7730#endif
7731 Syntax error
7732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007733if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007734
cristy8b350f62009-11-15 23:12:43 +00007735else
cristy3ed852e2009-09-05 21:47:34 +00007736 # Broken: fails on valid input.
7737continue
7738fi
cristyda16f162011-02-19 23:52:17 +00007739rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007740
7741 # OK, works on sane cases. Now check whether nonexistent headers
7742 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007744/* end confdefs.h. */
7745#include <ac_nonexistent.h>
7746_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007747if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007748 # Broken: success on invalid input.
7749continue
7750else
cristy3ed852e2009-09-05 21:47:34 +00007751 # Passes both tests.
7752ac_preproc_ok=:
7753break
7754fi
cristyda16f162011-02-19 23:52:17 +00007755rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007756
7757done
7758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007759rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007760if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007761 break
7762fi
7763
7764 done
7765 ac_cv_prog_CPP=$CPP
7766
7767fi
7768 CPP=$ac_cv_prog_CPP
7769else
7770 ac_cv_prog_CPP=$CPP
7771fi
cristy8b350f62009-11-15 23:12:43 +00007772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007773$as_echo "$CPP" >&6; }
7774ac_preproc_ok=false
7775for ac_c_preproc_warn_flag in '' yes
7776do
7777 # Use a header file that comes with gcc, so configuring glibc
7778 # with a fresh cross-compiler works.
7779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7780 # <limits.h> exists even on freestanding compilers.
7781 # On the NeXT, cc -E runs the code through the compiler's parser,
7782 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007784/* end confdefs.h. */
7785#ifdef __STDC__
7786# include <limits.h>
7787#else
7788# include <assert.h>
7789#endif
7790 Syntax error
7791_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007792if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007793
cristy8b350f62009-11-15 23:12:43 +00007794else
cristy3ed852e2009-09-05 21:47:34 +00007795 # Broken: fails on valid input.
7796continue
7797fi
cristyda16f162011-02-19 23:52:17 +00007798rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007799
7800 # OK, works on sane cases. Now check whether nonexistent headers
7801 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007803/* end confdefs.h. */
7804#include <ac_nonexistent.h>
7805_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007806if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007807 # Broken: success on invalid input.
7808continue
7809else
cristy3ed852e2009-09-05 21:47:34 +00007810 # Passes both tests.
7811ac_preproc_ok=:
7812break
7813fi
cristyda16f162011-02-19 23:52:17 +00007814rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007815
7816done
7817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007818rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007819if $ac_preproc_ok; then :
7820
cristy3ed852e2009-09-05 21:47:34 +00007821else
cristy8b350f62009-11-15 23:12:43 +00007822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007824as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7825See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007826fi
7827
7828ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
cristy73bd4a52010-10-05 11:24:23 +00007834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7835$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007836if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007837 $as_echo_n "(cached) " >&6
7838else
7839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7840 for ac_i in 1 2 3 4 5 6 7; do
7841 ac_script="$ac_script$as_nl$ac_script"
7842 done
7843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7844 { ac_script=; unset ac_script;}
7845 if test -z "$SED"; then
7846 ac_path_SED_found=false
7847 # Loop through the user's path and test for each of PROGNAME-LIST
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_prog in sed gsed; do
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007856 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007857# Check for GNU ac_path_SED and select it if it is found.
7858 # Check for GNU $ac_path_SED
7859case `"$ac_path_SED" --version 2>&1` in
7860*GNU*)
7861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7862*)
7863 ac_count=0
7864 $as_echo_n 0123456789 >"conftest.in"
7865 while :
7866 do
7867 cat "conftest.in" "conftest.in" >"conftest.tmp"
7868 mv "conftest.tmp" "conftest.in"
7869 cp "conftest.in" "conftest.nl"
7870 $as_echo '' >> "conftest.nl"
7871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7873 as_fn_arith $ac_count + 1 && ac_count=$as_val
7874 if test $ac_count -gt ${ac_path_SED_max-0}; then
7875 # Best one so far, save it but keep looking for a better one
7876 ac_cv_path_SED="$ac_path_SED"
7877 ac_path_SED_max=$ac_count
7878 fi
7879 # 10*(2^10) chars as input seems more than enough
7880 test $ac_count -gt 10 && break
7881 done
7882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7883esac
7884
7885 $ac_path_SED_found && break 3
7886 done
7887 done
7888 done
7889IFS=$as_save_IFS
7890 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007892 fi
7893else
7894 ac_cv_path_SED=$SED
7895fi
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7899$as_echo "$ac_cv_path_SED" >&6; }
7900 SED="$ac_cv_path_SED"
7901 rm -f conftest.sed
7902
7903test -z "$SED" && SED=sed
7904Xsed="$SED -e 1s/^X//"
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7917$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007918if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007919 $as_echo_n "(cached) " >&6
7920else
7921 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7922 then ac_cv_path_FGREP="$GREP -F"
7923 else
7924 if test -z "$FGREP"; then
7925 ac_path_FGREP_found=false
7926 # Loop through the user's path and test for each of PROGNAME-LIST
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_prog in fgrep; do
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007935 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007936# Check for GNU ac_path_FGREP and select it if it is found.
7937 # Check for GNU $ac_path_FGREP
7938case `"$ac_path_FGREP" --version 2>&1` in
7939*GNU*)
7940 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7941*)
7942 ac_count=0
7943 $as_echo_n 0123456789 >"conftest.in"
7944 while :
7945 do
7946 cat "conftest.in" "conftest.in" >"conftest.tmp"
7947 mv "conftest.tmp" "conftest.in"
7948 cp "conftest.in" "conftest.nl"
7949 $as_echo 'FGREP' >> "conftest.nl"
7950 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7952 as_fn_arith $ac_count + 1 && ac_count=$as_val
7953 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7954 # Best one so far, save it but keep looking for a better one
7955 ac_cv_path_FGREP="$ac_path_FGREP"
7956 ac_path_FGREP_max=$ac_count
7957 fi
7958 # 10*(2^10) chars as input seems more than enough
7959 test $ac_count -gt 10 && break
7960 done
7961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7962esac
7963
7964 $ac_path_FGREP_found && break 3
7965 done
7966 done
7967 done
7968IFS=$as_save_IFS
7969 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007970 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007971 fi
7972else
7973 ac_cv_path_FGREP=$FGREP
7974fi
7975
7976 fi
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7979$as_echo "$ac_cv_path_FGREP" >&6; }
7980 FGREP="$ac_cv_path_FGREP"
7981
7982
7983test -z "$GREP" && GREP=grep
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
cristy0c60a692010-11-04 01:09:47 +00008001ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8003ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8004
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8006$as_echo_n "checking how to print strings... " >&6; }
8007# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008008if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8010 ECHO='print -r --'
8011elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8012 ECHO='printf %s\n'
8013else
8014 # Use this function as a fallback that always works.
8015 func_fallback_echo ()
8016 {
8017 eval 'cat <<_LTECHO_EOF
8018$1
8019_LTECHO_EOF'
8020 }
8021 ECHO='func_fallback_echo'
8022fi
8023
8024# func_echo_all arg...
8025# Invoke $ECHO with all args, space-separated.
8026func_echo_all ()
8027{
8028 $ECHO ""
8029}
8030
8031case "$ECHO" in
8032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8033$as_echo "printf" >&6; } ;;
8034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8035$as_echo "print -r" >&6; } ;;
8036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8037$as_echo "cat" >&6; } ;;
8038esac
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
cristy73bd4a52010-10-05 11:24:23 +00008053
8054
8055# Check whether --with-gnu-ld was given.
8056if test "${with_gnu_ld+set}" = set; then :
8057 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8058else
8059 with_gnu_ld=no
8060fi
8061
8062ac_prog=ld
8063if test "$GCC" = yes; then
8064 # Check if gcc -print-prog-name=ld gives a path.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8066$as_echo_n "checking for ld used by $CC... " >&6; }
8067 case $host in
8068 *-*-mingw*)
8069 # gcc leaves a trailing carriage return which upsets mingw
8070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8071 *)
8072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8073 esac
8074 case $ac_prog in
8075 # Accept absolute paths.
8076 [\\/]* | ?:[\\/]*)
8077 re_direlt='/[^/][^/]*/\.\./'
8078 # Canonicalize the pathname of ld
8079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8082 done
8083 test -z "$LD" && LD="$ac_prog"
8084 ;;
8085 "")
8086 # If it fails, then pretend we aren't using GCC.
8087 ac_prog=ld
8088 ;;
8089 *)
8090 # If it is relative, then search for the first ld in PATH.
8091 with_gnu_ld=unknown
8092 ;;
8093 esac
8094elif test "$with_gnu_ld" = yes; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8096$as_echo_n "checking for GNU ld... " >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8099$as_echo_n "checking for non-GNU ld... " >&6; }
8100fi
cristyda16f162011-02-19 23:52:17 +00008101if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008102 $as_echo_n "(cached) " >&6
8103else
8104 if test -z "$LD"; then
8105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8106 for ac_dir in $PATH; do
8107 IFS="$lt_save_ifs"
8108 test -z "$ac_dir" && ac_dir=.
8109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8110 lt_cv_path_LD="$ac_dir/$ac_prog"
8111 # Check to see if the program is GNU ld. I'd rather use --version,
8112 # but apparently some variants of GNU ld only accept -v.
8113 # Break only if it was the GNU/non-GNU ld that we prefer.
8114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8115 *GNU* | *'with BFD'*)
8116 test "$with_gnu_ld" != no && break
8117 ;;
8118 *)
8119 test "$with_gnu_ld" != yes && break
8120 ;;
8121 esac
8122 fi
8123 done
8124 IFS="$lt_save_ifs"
8125else
8126 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8127fi
8128fi
8129
8130LD="$lt_cv_path_LD"
8131if test -n "$LD"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8133$as_echo "$LD" >&6; }
8134else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137fi
cristy98dddb52010-11-04 00:30:15 +00008138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008141if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008142 $as_echo_n "(cached) " >&6
8143else
8144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8145case `$LD -v 2>&1 </dev/null` in
8146*GNU* | *'with BFD'*)
8147 lt_cv_prog_gnu_ld=yes
8148 ;;
8149*)
8150 lt_cv_prog_gnu_ld=no
8151 ;;
8152esac
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8155$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8156with_gnu_ld=$lt_cv_prog_gnu_ld
8157
8158
8159
8160
8161
8162
8163
8164
8165
cristy3ed852e2009-09-05 21:47:34 +00008166
cristy837d6dc2010-02-27 01:16:57 +00008167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8168$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008169if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008170 $as_echo_n "(cached) " >&6
8171else
8172 ac_cv_prog_cc_c99=no
8173ac_save_CC=$CC
8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176#include <stdarg.h>
8177#include <stdbool.h>
8178#include <stdlib.h>
8179#include <wchar.h>
8180#include <stdio.h>
8181
8182// Check varargs macros. These examples are taken from C99 6.10.3.5.
8183#define debug(...) fprintf (stderr, __VA_ARGS__)
8184#define showlist(...) puts (#__VA_ARGS__)
8185#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8186static void
8187test_varargs_macros (void)
8188{
8189 int x = 1234;
8190 int y = 5678;
8191 debug ("Flag");
8192 debug ("X = %d\n", x);
8193 showlist (The first, second, and third items.);
8194 report (x>y, "x is %d but y is %d", x, y);
8195}
8196
8197// Check long long types.
8198#define BIG64 18446744073709551615ull
8199#define BIG32 4294967295ul
8200#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8201#if !BIG_OK
8202 your preprocessor is broken;
8203#endif
8204#if BIG_OK
8205#else
8206 your preprocessor is broken;
8207#endif
8208static long long int bignum = -9223372036854775807LL;
8209static unsigned long long int ubignum = BIG64;
8210
8211struct incomplete_array
8212{
8213 int datasize;
8214 double data[];
8215};
8216
8217struct named_init {
8218 int number;
8219 const wchar_t *name;
8220 double average;
8221};
8222
8223typedef const char *ccp;
8224
8225static inline int
8226test_restrict (ccp restrict text)
8227{
8228 // See if C++-style comments work.
8229 // Iterate through items via the restricted pointer.
8230 // Also check for declarations in for loops.
8231 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8232 continue;
8233 return 0;
8234}
8235
8236// Check varargs and va_copy.
8237static void
8238test_varargs (const char *format, ...)
8239{
8240 va_list args;
8241 va_start (args, format);
8242 va_list args_copy;
8243 va_copy (args_copy, args);
8244
8245 const char *str;
8246 int number;
8247 float fnumber;
8248
8249 while (*format)
8250 {
8251 switch (*format++)
8252 {
8253 case 's': // string
8254 str = va_arg (args_copy, const char *);
8255 break;
8256 case 'd': // int
8257 number = va_arg (args_copy, int);
8258 break;
8259 case 'f': // float
8260 fnumber = va_arg (args_copy, double);
8261 break;
8262 default:
8263 break;
8264 }
8265 }
8266 va_end (args_copy);
8267 va_end (args);
8268}
8269
8270int
8271main ()
8272{
8273
8274 // Check bool.
8275 _Bool success = false;
8276
8277 // Check restrict.
8278 if (test_restrict ("String literal") == 0)
8279 success = true;
8280 char *restrict newvar = "Another string";
8281
8282 // Check varargs.
8283 test_varargs ("s, d' f .", "string", 65, 34.234);
8284 test_varargs_macros ();
8285
8286 // Check flexible array members.
8287 struct incomplete_array *ia =
8288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8289 ia->datasize = 10;
8290 for (int i = 0; i < ia->datasize; ++i)
8291 ia->data[i] = i * 1.234;
8292
8293 // Check named initializers.
8294 struct named_init ni = {
8295 .number = 34,
8296 .name = L"Test wide string",
8297 .average = 543.34343,
8298 };
8299
8300 ni.number = 58;
8301
8302 int dynamic_array[ni.number];
8303 dynamic_array[ni.number - 1] = 543;
8304
8305 // work around unused variable warnings
8306 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8307 || dynamic_array[ni.number - 1] != 543);
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008313for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008314do
8315 CC="$ac_save_CC $ac_arg"
8316 if ac_fn_c_try_compile "$LINENO"; then :
8317 ac_cv_prog_cc_c99=$ac_arg
8318fi
8319rm -f core conftest.err conftest.$ac_objext
8320 test "x$ac_cv_prog_cc_c99" != "xno" && break
8321done
8322rm -f conftest.$ac_ext
8323CC=$ac_save_CC
8324
8325fi
8326# AC_CACHE_VAL
8327case "x$ac_cv_prog_cc_c99" in
8328 x)
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8330$as_echo "none needed" >&6; } ;;
8331 xno)
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8333$as_echo "unsupported" >&6; } ;;
8334 *)
8335 CC="$CC $ac_cv_prog_cc_c99"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8337$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8338esac
8339if test "x$ac_cv_prog_cc_c99" != xno; then :
8340
8341fi
8342
8343
cristy73bd4a52010-10-05 11:24:23 +00008344
cristy17491be2014-06-24 01:10:53 +00008345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
cristy73bd4a52010-10-05 11:24:23 +00008351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8352$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008353if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008354 $as_echo_n "(cached) " >&6
8355else
8356 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008357ac_save_CFLAGS="$CFLAGS"
8358for 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 +00008359do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h. */
8362
8363int
8364main ()
8365{
cristy24fc1fe2010-10-23 21:13:01 +00008366
cristy73bd4a52010-10-05 11:24:23 +00008367 ;
8368 return 0;
8369}
8370_ACEOF
8371if ac_fn_c_try_compile "$LINENO"; then :
8372 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8373fi
8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375done
cristy17491be2014-06-24 01:10:53 +00008376CFLAGS="$ac_save_CFLAGS"
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8380$as_echo "$ac_cv_cflags_warn_all" >&6; }
8381
8382
8383case ".$ac_cv_cflags_warn_all" in
8384 .ok|.ok,*) ;;
8385 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008386 *)
8387if ${CFLAGS+:} false; then :
8388
8389 case " $CFLAGS " in #(
8390 *" $ac_cv_cflags_warn_all "*) :
8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008392 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8393 ac_status=$?
8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008395 test $ac_status = 0; } ;; #(
8396 *) :
8397
8398 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8400 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008401 ac_status=$?
8402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8403 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008404 ;;
8405esac
8406
cristy17491be2014-06-24 01:10:53 +00008407else
cristy146497a2015-05-17 22:46:16 +00008408
8409 CFLAGS=$ac_cv_cflags_warn_all
8410 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8411 (: CFLAGS="$CFLAGS") 2>&5
8412 ac_status=$?
8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414 test $ac_status = 0; }
8415
cristy17491be2014-06-24 01:10:53 +00008416fi
8417 ;;
8418esac
8419
8420ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008421ac_cpp='$CPP $CPPFLAGS'
8422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8424ac_compiler_gnu=$ac_cv_c_compiler_gnu
8425
8426
cristya0b81c32010-01-22 02:54:33 +00008427
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8429$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8430set x ${MAKE-make}
8431ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008432if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008433 $as_echo_n "(cached) " >&6
8434else
8435 cat >conftest.make <<\_ACEOF
8436SHELL = /bin/sh
8437all:
8438 @echo '@@@%%%=$(MAKE)=@@@%%%'
8439_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008440# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008441case `${MAKE-make} -f conftest.make 2>/dev/null` in
8442 *@@@%%%=?*=@@@%%%*)
8443 eval ac_cv_prog_make_${ac_make}_set=yes;;
8444 *)
8445 eval ac_cv_prog_make_${ac_make}_set=no;;
8446esac
8447rm -f conftest.make
8448fi
8449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451$as_echo "yes" >&6; }
8452 SET_MAKE=
8453else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456 SET_MAKE="MAKE=${MAKE-make}"
8457fi
8458
cristy8b350f62009-11-15 23:12:43 +00008459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo_n "checking whether ln -s works... " >&6; }
8461LN_S=$as_ln_s
8462if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008464$as_echo "yes" >&6; }
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008467$as_echo "no, using $LN_S" >&6; }
8468fi
8469
cristy8d0ff762013-03-10 20:33:28 +00008470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8471$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8472if ${ac_cv_path_SED+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474else
8475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8476 for ac_i in 1 2 3 4 5 6 7; do
8477 ac_script="$ac_script$as_nl$ac_script"
8478 done
8479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8480 { ac_script=; unset ac_script;}
8481 if test -z "$SED"; then
8482 ac_path_SED_found=false
8483 # Loop through the user's path and test for each of PROGNAME-LIST
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_prog in sed gsed; do
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8492 as_fn_executable_p "$ac_path_SED" || continue
8493# Check for GNU ac_path_SED and select it if it is found.
8494 # Check for GNU $ac_path_SED
8495case `"$ac_path_SED" --version 2>&1` in
8496*GNU*)
8497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8498*)
8499 ac_count=0
8500 $as_echo_n 0123456789 >"conftest.in"
8501 while :
8502 do
8503 cat "conftest.in" "conftest.in" >"conftest.tmp"
8504 mv "conftest.tmp" "conftest.in"
8505 cp "conftest.in" "conftest.nl"
8506 $as_echo '' >> "conftest.nl"
8507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8509 as_fn_arith $ac_count + 1 && ac_count=$as_val
8510 if test $ac_count -gt ${ac_path_SED_max-0}; then
8511 # Best one so far, save it but keep looking for a better one
8512 ac_cv_path_SED="$ac_path_SED"
8513 ac_path_SED_max=$ac_count
8514 fi
8515 # 10*(2^10) chars as input seems more than enough
8516 test $ac_count -gt 10 && break
8517 done
8518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8519esac
8520
8521 $ac_path_SED_found && break 3
8522 done
8523 done
8524 done
8525IFS=$as_save_IFS
8526 if test -z "$ac_cv_path_SED"; then
8527 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8528 fi
8529else
8530 ac_cv_path_SED=$SED
8531fi
8532
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8535$as_echo "$ac_cv_path_SED" >&6; }
8536 SED="$ac_cv_path_SED"
8537 rm -f conftest.sed
8538
cristybc556452012-08-17 19:44:03 +00008539for ac_prog in gawk mawk nawk awk
8540do
8541 # Extract the first word of "$ac_prog", so it can be a program name with args.
8542set dummy $ac_prog; ac_word=$2
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if ${ac_cv_prog_AWK+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547else
8548 if test -n "$AWK"; then
8549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8550else
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_AWK="$ac_prog"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562done
8563 done
8564IFS=$as_save_IFS
8565
8566fi
8567fi
8568AWK=$ac_cv_prog_AWK
8569if test -n "$AWK"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8571$as_echo "$AWK" >&6; }
8572else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577
8578 test -n "$AWK" && break
8579done
8580
cristy73bd4a52010-10-05 11:24:23 +00008581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8582$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8583
8584# Check whether --with-dmalloc was given.
8585if test "${with_dmalloc+set}" = set; then :
8586 withval=$with_dmalloc; if test "$withval" = yes; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588$as_echo "yes" >&6; }
8589
8590$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8591
8592 LIBS="$LIBS -ldmalloc"
8593 LDFLAGS="$LDFLAGS -g"
8594else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
8601fi
8602
8603
8604
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8606$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008607if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008608 $as_echo_n "(cached) " >&6
8609else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h. */
8612#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008613 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008614 static void
8615 foo(void) {
8616 exit(1);
8617 }
8618
8619int
8620main ()
8621{
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627if ac_fn_c_try_compile "$LINENO"; then :
8628 ax_cv___attribute__=yes
8629else
8630 ax_cv___attribute__=no
8631
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8637$as_echo "$ax_cv___attribute__" >&6; }
8638 if test "$ax_cv___attribute__" = "yes"; then
8639
8640$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8641
8642 fi
8643
cristy146497a2015-05-17 22:46:16 +00008644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8645$as_echo_n "checking for C compiler vendor... " >&6; }
8646if ${ax_cv_c_compiler_vendor+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 # note: don't check for gcc first since some other compilers define __GNUC__
8650 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8651 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8652 pathscale: __PATHCC__,__PATHSCALE__
8653 clang: __clang__
8654 cray: _CRAYC
8655 fujitsu: __FUJITSU
8656 gnu: __GNUC__
8657 sun: __SUNPRO_C,__SUNPRO_CC
8658 hp: __HP_cc,__HP_aCC
8659 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8660 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8661 comeau: __COMO__
8662 kai: __KCC
8663 lcc: __LCC__
8664 sgi: __sgi,sgi
8665 microsoft: _MSC_VER
8666 metrowerks: __MWERKS__
8667 watcom: __WATCOMC__
8668 portland: __PGI
8669 tcc: __TINYC__
8670 unknown: UNKNOWN"
8671 for ventest in $vendors; do
8672 case $ventest in
8673 *:) vendor=$ventest; continue ;;
8674 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8675 esac
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h. */
8678
8679int
8680main ()
8681{
8682
8683 #if !($vencpp)
8684 thisisanerror;
8685 #endif
8686
8687 ;
8688 return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692 break
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 done
8696 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8697
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8700$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8701
8702
cristy73bd4a52010-10-05 11:24:23 +00008703
8704
cristya0459972013-11-03 18:09:35 +00008705
8706
cristy17491be2014-06-24 01:10:53 +00008707
cristya0459972013-11-03 18:09:35 +00008708# Check whether --with-gcc-arch was given.
8709if test "${with_gcc_arch+set}" = set; then :
8710 withval=$with_gcc_arch; ax_gcc_arch=$withval
8711else
cristy17491be2014-06-24 01:10:53 +00008712 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008713fi
8714
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8717$as_echo_n "checking for gcc architecture flag... " >&6; }
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8719$as_echo "" >&6; }
8720if ${ax_cv_gcc_archflag+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722else
8723
8724ax_cv_gcc_archflag="unknown"
8725
8726if test "$GCC" = yes; then
8727
8728if test "x$ax_gcc_arch" = xyes; then
8729ax_gcc_arch=""
8730if test "$cross_compiling" = no; then
8731case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008732 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008733
8734ac_ext=c
8735ac_cpp='$CPP $CPPFLAGS'
8736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8741$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8742if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744else
8745 if test "$cross_compiling" = yes; then :
8746 ax_cv_gcc_x86_cpuid_0=unknown
8747else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750#include <stdio.h>
8751int
8752main ()
8753{
8754
8755 int op = 0, eax, ebx, ecx, edx;
8756 FILE *f;
8757 __asm__("cpuid"
8758 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8759 : "a" (op));
8760 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8761 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8762 fclose(f);
8763 return 0;
8764
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_run "$LINENO"; then :
8770 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8771else
8772 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8773fi
8774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8775 conftest.$ac_objext conftest.beam conftest.$ac_ext
8776fi
8777
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8780$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8781ac_ext=c
8782ac_cpp='$CPP $CPPFLAGS'
8783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786
8787
8788
8789ac_ext=c
8790ac_cpp='$CPP $CPPFLAGS'
8791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793ac_compiler_gnu=$ac_cv_c_compiler_gnu
8794
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8796$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8797if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799else
8800 if test "$cross_compiling" = yes; then :
8801 ax_cv_gcc_x86_cpuid_1=unknown
8802else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h. */
8805#include <stdio.h>
8806int
8807main ()
8808{
8809
8810 int op = 1, eax, ebx, ecx, edx;
8811 FILE *f;
8812 __asm__("cpuid"
8813 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8814 : "a" (op));
8815 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8816 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8817 fclose(f);
8818 return 0;
8819
8820 ;
8821 return 0;
8822}
8823_ACEOF
8824if ac_fn_c_try_run "$LINENO"; then :
8825 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8826else
8827 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8828fi
8829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8830 conftest.$ac_objext conftest.beam conftest.$ac_ext
8831fi
8832
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8835$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8836ac_ext=c
8837ac_cpp='$CPP $CPPFLAGS'
8838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8840ac_compiler_gnu=$ac_cv_c_compiler_gnu
8841
8842
8843 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008844 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008845 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008846 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8847 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8848 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8849 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8850 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8851 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8852 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8853 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008854 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008855 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8856 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8857 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8858 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8859 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8860 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8861 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8862 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8863 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8864 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8865 # fallback
8866 *5??:*:*:*) ax_gcc_arch=pentium ;;
8867 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008868 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008869 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008870 esac ;;
cristy146497a2015-05-17 22:46:16 +00008871 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008872 case $ax_cv_gcc_x86_cpuid_1 in
8873 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008874 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8875 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008876 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8877 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008878 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8879 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8880 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8881 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8882 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8883 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8884 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8885 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8886 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8887 # fallback
8888 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8889 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8890 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8891 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8892 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8893 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8894 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8895 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008896 esac ;;
cristy146497a2015-05-17 22:46:16 +00008897 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008898 case $ax_cv_gcc_x86_cpuid_1 in
8899 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008900 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8901 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008902 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008903 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008904 esac ;;
8905 esac
8906 if test x"$ax_gcc_arch" = x; then # fallback
8907 case $host_cpu in
8908 i586*) ax_gcc_arch=pentium ;;
8909 i686*) ax_gcc_arch=pentiumpro ;;
8910 esac
8911 fi
8912 ;;
8913
8914 sparc*)
8915 # Extract the first word of "prtdiag", so it can be a program name with args.
8916set dummy prtdiag; ac_word=$2
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918$as_echo_n "checking for $ac_word... " >&6; }
8919if ${ac_cv_path_PRTDIAG+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921else
8922 case $PRTDIAG in
8923 [\\/]* | ?:[\\/]*)
8924 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8925 ;;
8926 *)
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8929for as_dir in $as_dummy
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8944 ;;
8945esac
8946fi
8947PRTDIAG=$ac_cv_path_PRTDIAG
8948if test -n "$PRTDIAG"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8950$as_echo "$PRTDIAG" >&6; }
8951else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
8954fi
8955
8956
8957 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 +00008958 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008959 case $cputype in
8960 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8961 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8962 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8963 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8964 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8965 *cypress*) ax_gcc_arch=cypress ;;
8966 esac ;;
8967
8968 alphaev5) ax_gcc_arch=ev5 ;;
8969 alphaev56) ax_gcc_arch=ev56 ;;
8970 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8971 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8972 alphaev6) ax_gcc_arch=ev6 ;;
8973 alphaev67) ax_gcc_arch=ev67 ;;
8974 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8975 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8976 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8977 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8978
8979 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008980 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`
8981 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008982 case $cputype in
8983 *750*) ax_gcc_arch="750 G3" ;;
8984 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8985 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8986 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8987 *970*) ax_gcc_arch="970 G5 power4";;
8988 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8989 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8990 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8991 *) ax_gcc_arch=$cputype ;;
8992 esac
8993 ax_gcc_arch="$ax_gcc_arch powerpc"
8994 ;;
8995esac
8996fi # not cross-compiling
8997fi # guess arch
8998
8999if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00009000if test "xyes" = xyes; then # if we require portable code
9001 flag_prefixes="-mtune="
9002 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9003 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9004 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9005 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9006else
9007 flag_prefixes="-march= -mcpu= -m"
9008fi
9009for flag_prefix in $flag_prefixes; do
9010 for arch in $ax_gcc_arch; do
9011 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009012 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9014$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9015if eval \${$as_CACHEVAR+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018
9019 ax_check_save_flags=$CFLAGS
9020 CFLAGS="$CFLAGS $flag"
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h. */
9023
9024int
9025main ()
9026{
9027
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_compile "$LINENO"; then :
9033 eval "$as_CACHEVAR=yes"
9034else
9035 eval "$as_CACHEVAR=no"
9036fi
9037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 CFLAGS=$ax_check_save_flags
9039fi
9040eval ac_res=\$$as_CACHEVAR
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9042$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009043if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9044 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9045 if test "xyes" = xyes; then
9046 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9047 fi
9048 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009049else
9050 :
9051fi
9052
9053 done
9054 test "x$ax_cv_gcc_archflag" = xunknown || break
9055done
9056fi
9057
9058fi # $GCC=yes
9059
9060fi
9061
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9063$as_echo_n "checking for gcc architecture flag... " >&6; }
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9065$as_echo "$ax_cv_gcc_archflag" >&6; }
9066if test "x$ax_cv_gcc_archflag" = xunknown; then
9067 :
9068else
9069 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9070fi
9071
9072
9073
cristy146497a2015-05-17 22:46:16 +00009074
9075
9076
9077
9078
cristy73bd4a52010-10-05 11:24:23 +00009079if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9080 if test -n "$ac_tool_prefix"; then
9081 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9082set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009085if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009086 $as_echo_n "(cached) " >&6
9087else
9088 case $PKG_CONFIG in
9089 [\\/]* | ?:[\\/]*)
9090 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9091 ;;
9092 *)
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009100 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 break 2
9103 fi
9104done
9105 done
9106IFS=$as_save_IFS
9107
9108 ;;
9109esac
9110fi
9111PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9112if test -n "$PKG_CONFIG"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9114$as_echo "$PKG_CONFIG" >&6; }
9115else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
9118fi
9119
9120
9121fi
9122if test -z "$ac_cv_path_PKG_CONFIG"; then
9123 ac_pt_PKG_CONFIG=$PKG_CONFIG
9124 # Extract the first word of "pkg-config", so it can be a program name with args.
9125set dummy pkg-config; ac_word=$2
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009128if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009129 $as_echo_n "(cached) " >&6
9130else
9131 case $ac_pt_PKG_CONFIG in
9132 [\\/]* | ?:[\\/]*)
9133 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9134 ;;
9135 *)
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009143 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148 done
9149IFS=$as_save_IFS
9150
9151 ;;
9152esac
9153fi
9154ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9155if test -n "$ac_pt_PKG_CONFIG"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9157$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9158else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160$as_echo "no" >&6; }
9161fi
9162
9163 if test "x$ac_pt_PKG_CONFIG" = x; then
9164 PKG_CONFIG=""
9165 else
9166 case $cross_compiling:$ac_tool_warned in
9167yes:)
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170ac_tool_warned=yes ;;
9171esac
9172 PKG_CONFIG=$ac_pt_PKG_CONFIG
9173 fi
9174else
9175 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9176fi
9177
9178fi
9179if test -n "$PKG_CONFIG"; then
9180 _pkg_min_version=0.9.0
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9182$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9183 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9185$as_echo "yes" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
9189 PKG_CONFIG=""
9190 fi
cristy73bd4a52010-10-05 11:24:23 +00009191fi
cristy3ed852e2009-09-05 21:47:34 +00009192
cristy9af1cbf2014-12-28 22:03:09 +00009193
9194
cristyd95b7a52013-10-23 13:12:53 +00009195# Test for 64-bit build.
9196# The cast to long int works around a bug in the HP C Compiler
9197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9199# This bug is HP SR number 8606223364.
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9201$as_echo_n "checking size of size_t... " >&6; }
9202if ${ac_cv_sizeof_size_t+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204else
9205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9206
9207else
9208 if test "$ac_cv_type_size_t" = yes; then
9209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9211as_fn_error 77 "cannot compute sizeof (size_t)
9212See \`config.log' for more details" "$LINENO" 5; }
9213 else
9214 ac_cv_sizeof_size_t=0
9215 fi
9216fi
9217
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9220$as_echo "$ac_cv_sizeof_size_t" >&6; }
9221
9222
9223
9224cat >>confdefs.h <<_ACEOF
9225#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9226_ACEOF
9227
9228
9229
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9231$as_echo_n "checking for C compiler vendor... " >&6; }
9232if ${ax_cv_c_compiler_vendor+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234else
cristy146497a2015-05-17 22:46:16 +00009235 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009236 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9237 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9238 pathscale: __PATHCC__,__PATHSCALE__
9239 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009240 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009241 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009242 gnu: __GNUC__
9243 sun: __SUNPRO_C,__SUNPRO_CC
9244 hp: __HP_cc,__HP_aCC
9245 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009246 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009247 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009248 kai: __KCC
9249 lcc: __LCC__
9250 sgi: __sgi,sgi
9251 microsoft: _MSC_VER
9252 metrowerks: __MWERKS__
9253 watcom: __WATCOMC__
9254 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009255 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009256 unknown: UNKNOWN"
9257 for ventest in $vendors; do
9258 case $ventest in
9259 *:) vendor=$ventest; continue ;;
9260 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9261 esac
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263/* end confdefs.h. */
9264
9265int
9266main ()
9267{
9268
9269 #if !($vencpp)
9270 thisisanerror;
9271 #endif
9272
9273 ;
9274 return 0;
9275}
9276_ACEOF
9277if ac_fn_c_try_compile "$LINENO"; then :
9278 break
9279fi
9280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 done
9282 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9283
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9286$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9287
cristyd95b7a52013-10-23 13:12:53 +00009288# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9289# compiler.
9290if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009291 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009292ac_cpp='$CPP $CPPFLAGS'
9293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295ac_compiler_gnu=$ac_cv_c_compiler_gnu
9296
cristy17491be2014-06-24 01:10:53 +00009297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9298$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9299if ${ac_cv_cflags_warn_all+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301else
9302 ac_cv_cflags_warn_all="no, unknown"
9303ac_save_CFLAGS="$CFLAGS"
9304for 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 +00009305do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307/* end confdefs.h. */
9308
9309int
9310main ()
9311{
9312
9313 ;
9314 return 0;
9315}
9316_ACEOF
9317if ac_fn_c_try_compile "$LINENO"; then :
9318 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321done
cristy17491be2014-06-24 01:10:53 +00009322CFLAGS="$ac_save_CFLAGS"
9323
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9326$as_echo "$ac_cv_cflags_warn_all" >&6; }
9327
9328
9329case ".$ac_cv_cflags_warn_all" in
9330 .ok|.ok,*) ;;
9331 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009332 *)
9333if ${CFLAGS+:} false; then :
9334
9335 case " $CFLAGS " in #(
9336 *" $ac_cv_cflags_warn_all "*) :
9337 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009338 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9339 ac_status=$?
9340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009341 test $ac_status = 0; } ;; #(
9342 *) :
9343
9344 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9345 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9346 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009347 ac_status=$?
9348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9349 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009350 ;;
9351esac
9352
cristy17491be2014-06-24 01:10:53 +00009353else
cristy146497a2015-05-17 22:46:16 +00009354
9355 CFLAGS=$ac_cv_cflags_warn_all
9356 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9357 (: CFLAGS="$CFLAGS") 2>&5
9358 ac_status=$?
9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9360 test $ac_status = 0; }
9361
cristy17491be2014-06-24 01:10:53 +00009362fi
9363 ;;
9364esac
9365
9366ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009367ac_cpp='$CPP $CPPFLAGS'
9368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370ac_compiler_gnu=$ac_cv_c_compiler_gnu
9371
9372
9373fi
cristyd95b7a52013-10-23 13:12:53 +00009374
9375if test "x$GCC" = "xyes"; then
9376 CFLAGS="$CFLAGS -fexceptions"
9377 touch local.exp
9378else
9379 cat > local.exp <<EOF
9380set CC_FOR_TARGET "$CC"
9381EOF
9382fi
9383
cristy9b86f202012-11-28 21:55:35 +00009384# Check for linker script support
9385
9386 # Check whether --enable-ld-version-script was given.
9387if test "${enable_ld_version_script+set}" = set; then :
9388 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9389fi
9390
9391 if test -z "$have_ld_version_script"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9393$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9394 save_LDFLAGS="$LDFLAGS"
9395 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9396 cat > conftest.map <<EOF
9397foo
9398EOF
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400/* end confdefs.h. */
9401
9402int
9403main ()
9404{
9405
9406 ;
9407 return 0;
9408}
9409_ACEOF
9410if ac_fn_c_try_link "$LINENO"; then :
9411 accepts_syntax_errors=yes
9412else
9413 accepts_syntax_errors=no
9414fi
9415rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 if test "$accepts_syntax_errors" = no; then
9418 cat > conftest.map <<EOF
9419VERS_1 {
9420 global: sym;
9421};
9422
9423VERS_2 {
9424 global: sym;
9425} VERS_1;
9426EOF
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
9429
9430int
9431main ()
9432{
9433
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438if ac_fn_c_try_link "$LINENO"; then :
9439 have_ld_version_script=yes
9440else
9441 have_ld_version_script=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 else
9446 have_ld_version_script=no
9447 fi
9448 rm -f conftest.map
9449 LDFLAGS="$save_LDFLAGS"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9451$as_echo "$have_ld_version_script" >&6; }
9452 fi
9453 if test "$have_ld_version_script" = "yes"; then
9454 HAVE_LD_VERSION_SCRIPT_TRUE=
9455 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9456else
9457 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9458 HAVE_LD_VERSION_SCRIPT_FALSE=
9459fi
9460
9461
9462
cristy3ed852e2009-09-05 21:47:34 +00009463#
cristy3ed852e2009-09-05 21:47:34 +00009464# Enable run-time checking.
9465#
9466# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009467if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009468 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9469else
9470 enable_bounds_checking='no'
9471fi
9472
9473
9474if test "$enable_bounds_checking" = yes; then
9475
cristy8b350f62009-11-15 23:12:43 +00009476$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009477
9478fi
9479
9480#
9481# Tests for Windows
9482#
9483
9484
9485
9486GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009487native_win32_build='no'
9488cygwin_build='no'
9489case "${host_os}" in
9490 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009491 cygwin_build='yes'
9492 GDI32_LIBS='-lgdi32'
9493 ;;
9494 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009495 native_win32_build='yes'
9496 GDI32_LIBS='-lgdi32'
9497 ;;
9498esac
9499if test "${GDI32_LIBS}x" != 'x'; then
9500
cristy8b350f62009-11-15 23:12:43 +00009501$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009502
9503fi
9504
cristy73bd4a52010-10-05 11:24:23 +00009505 if test "${GDI32_LIBS}x" != 'x' ; then
9506 WINGDI32_DELEGATE_TRUE=
9507 WINGDI32_DELEGATE_FALSE='#'
9508else
9509 WINGDI32_DELEGATE_TRUE='#'
9510 WINGDI32_DELEGATE_FALSE=
9511fi
9512
9513 if test "${native_win32_build}" = 'yes' ; then
9514 WIN32_NATIVE_BUILD_TRUE=
9515 WIN32_NATIVE_BUILD_FALSE='#'
9516else
9517 WIN32_NATIVE_BUILD_TRUE='#'
9518 WIN32_NATIVE_BUILD_FALSE=
9519fi
9520
9521 if test "${cygwin_build}" = 'yes' ; then
9522 CYGWIN_BUILD_TRUE=
9523 CYGWIN_BUILD_FALSE='#'
9524else
9525 CYGWIN_BUILD_TRUE='#'
9526 CYGWIN_BUILD_FALSE=
9527fi
9528
9529 if test "x${CC}" = 'xcl.exe' ; then
9530 USING_CL_TRUE=
9531 USING_CL_FALSE='#'
9532else
9533 USING_CL_TRUE='#'
9534 USING_CL_FALSE=
9535fi
9536
cristy3ed852e2009-09-05 21:47:34 +00009537
9538WinPathScript="${srcdirfull}/winpath.sh"
9539
9540
9541#
9542# Compiler flags tweaks
9543#
9544if test "${GCC}" != "yes"; then
9545 case "${host}" in
9546 *-*-hpux* )
9547 # aCC: HP ANSI C++ B3910B A.03.34
9548 CFLAGS="${CFLAGS} -Wp,-H30000"
9549 if test -n "${CXXFLAGS}"; then
9550 CXXFLAGS='-AA'
9551 else
9552 CXXFLAGS="${CXXFLAGS} -AA"
9553 fi
9554 ;;
9555 *-dec-osf5.* )
9556 # Compaq alphaev68-dec-osf5.1 compiler
9557 if test -n "${CXXFLAGS}"; then
9558 CXXFLAGS='-std strict_ansi -noimplicit_include'
9559 else
9560 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9561 fi
9562 esac
9563fi
9564
9565# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009567$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009568if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009569 $as_echo_n "(cached) " >&6
9570else
9571
9572im_cv_ld_lazyload='none'
9573case "${host}" in
9574 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9575 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9576 im_cv_ld_lazyload='-Wl,-zlazyload'
9577 fi
9578 ;;
9579esac
9580
9581fi
cristy8b350f62009-11-15 23:12:43 +00009582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009583$as_echo "$im_cv_ld_lazyload" >&6; }
9584if test "${im_cv_ld_lazyload}" != 'none' ; then
9585 if test -z "${LDFLAGS}" ; then
9586 LDFLAGS="${im_cv_ld_lazyload}"
9587 else
9588 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9589 fi
9590fi
9591
9592case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009593 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009594 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009595 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009596if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009597 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9598else
9599 build_osxuniversal=no
9600fi
9601
9602
cristyc37574e2013-02-16 01:04:55 +00009603 if test "${build_osxuniversal}" != no ; then
9604 if test "$enable_dependency_tracking" != no ; then
9605 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009606Please re-run configure with these options:
9607 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009608 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009609 fi
9610 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9611 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9612 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009613 fi
9614 ;;
9615esac
9616
cristy0151ae12011-10-28 16:32:29 +00009617#
9618# ARCH specific include directory
9619#
9620
cristy670aa3c2011-11-03 00:54:00 +00009621# Check whether --with-includearch-dir was given.
9622if test "${with_includearch_dir+set}" = set; then :
9623 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009624else
cristy670aa3c2011-11-03 00:54:00 +00009625 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009626fi
9627
9628
cristyd286fd72013-02-24 19:25:33 +00009629eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009630
cristy0151ae12011-10-28 16:32:29 +00009631
9632#
9633# ARCH specific configuration directory
9634#
9635
cristy670aa3c2011-11-03 00:54:00 +00009636# Check whether --with-sharearch-dir was given.
9637if test "${with_sharearch_dir+set}" = set; then :
9638 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009639else
cristy408ebcd2011-11-14 01:36:57 +00009640 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009641fi
9642
9643
cristy670aa3c2011-11-03 00:54:00 +00009644eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009645
cristy0151ae12011-10-28 16:32:29 +00009646
cristy2ec87cc2013-02-18 17:46:50 +00009647# Path to the pkgconfig folder
9648
9649# Check whether --with-pkgconfigdir was given.
9650if test "${with_pkgconfigdir+set}" = set; then :
9651 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9652else
9653 pkgconfigdir='${libdir}/pkgconfig'
9654fi
9655
9656
9657
cristy0151ae12011-10-28 16:32:29 +00009658#
cristy3ed852e2009-09-05 21:47:34 +00009659# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009660#
9661# Find Posix threads library
9662#
cristy3ed852e2009-09-05 21:47:34 +00009663
9664# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009665if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009666 withval=$with_threads; with_threads=$withval
9667else
9668 with_threads='yes'
9669fi
9670
9671
cristy1ae5c992013-07-30 14:55:07 +00009672THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009673have_threads=no
9674if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009675
9676
cristy73bd4a52010-10-05 11:24:23 +00009677ac_ext=c
9678ac_cpp='$CPP $CPPFLAGS'
9679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682
9683ax_pthread_ok=no
9684
9685# We used to check for pthread.h first, but this fails if pthread.h
9686# requires special compiler flags (e.g. on True64 or Sequent).
9687# It gets checked for in the link test anyway.
9688
9689# First of all, check if the user has set any of the PTHREAD_LIBS,
9690# etcetera environment variables, and if threads linking works using
9691# them:
9692if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9693 save_CFLAGS="$CFLAGS"
9694 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9695 save_LIBS="$LIBS"
9696 LIBS="$PTHREAD_LIBS $LIBS"
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9698$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h. */
9701
9702/* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9705#ifdef __cplusplus
9706extern "C"
9707#endif
9708char pthread_join ();
9709int
9710main ()
9711{
9712return pthread_join ();
9713 ;
9714 return 0;
9715}
9716_ACEOF
9717if ac_fn_c_try_link "$LINENO"; then :
9718 ax_pthread_ok=yes
9719fi
9720rm -f core conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9723$as_echo "$ax_pthread_ok" >&6; }
9724 if test x"$ax_pthread_ok" = xno; then
9725 PTHREAD_LIBS=""
9726 PTHREAD_CFLAGS=""
9727 fi
9728 LIBS="$save_LIBS"
9729 CFLAGS="$save_CFLAGS"
9730fi
9731
9732# We must check for the threads library under a number of different
9733# names; the ordering is very important because some systems
9734# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9735# libraries is broken (non-POSIX).
9736
9737# Create a list of thread flags to try. Items starting with a "-" are
9738# C compiler flags, and other items are library names, except for "none"
9739# which indicates that we try without any flags at all, and "pthread-config"
9740# which is a program returning the flags for the Pth emulation library.
9741
cristy2ec87cc2013-02-18 17:46:50 +00009742ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009743
9744# The ordering *is* (sometimes) important. Some notes on the
9745# individual items follow:
9746
9747# pthreads: AIX (must check this before -lpthread)
9748# none: in case threads are in libc; should be tried before -Kthread and
9749# other compiler flags to prevent continual compiler warnings
9750# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9751# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9752# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9753# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9754# -pthreads: Solaris/gcc
9755# -mthreads: Mingw32/gcc, Lynx/gcc
9756# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9757# doesn't hurt to check since this sometimes defines pthreads too;
9758# also defines -D_REENTRANT)
9759# ... -mt is also the pthreads flag for HP/aCC
9760# pthread: Linux, etcetera
9761# --thread-safe: KAI C++
9762# pthread-config: use pthread-config program (for GNU Pth library)
9763
cristy2ec87cc2013-02-18 17:46:50 +00009764case ${host_os} in
9765 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009766
9767 # On Solaris (at least, for some versions), libc contains stubbed
9768 # (non-functional) versions of the pthreads routines, so link-based
9769 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9770 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9771 # a function called by this macro, so we could check for that, but
9772 # who knows whether they'll stub that too in a future libc.) So,
9773 # we'll just look for -pthreads and -lpthread first:
9774
9775 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9776 ;;
9777
cristy2ec87cc2013-02-18 17:46:50 +00009778 darwin*)
cristya316db12011-10-24 00:49:45 +00009779 ax_pthread_flags="-pthread $ax_pthread_flags"
9780 ;;
cristy73bd4a52010-10-05 11:24:23 +00009781esac
9782
cristy17491be2014-06-24 01:10:53 +00009783# Clang doesn't consider unrecognized options an error unless we specify
9784# -Werror. We throw in some extra Clang-specific options to ensure that
9785# this doesn't happen for GCC, which also accepts -Werror.
9786
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9788$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9789save_CFLAGS="$CFLAGS"
9790ax_pthread_extra_flags="-Werror"
9791CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h. */
9794int foo(void);
9795int
9796main ()
9797{
9798foo()
9799 ;
9800 return 0;
9801}
9802_ACEOF
9803if ac_fn_c_try_compile "$LINENO"; then :
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9805$as_echo "yes" >&6; }
9806else
9807 ax_pthread_extra_flags=
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812CFLAGS="$save_CFLAGS"
9813
cristy73bd4a52010-10-05 11:24:23 +00009814if test x"$ax_pthread_ok" = xno; then
9815for flag in $ax_pthread_flags; do
9816
9817 case $flag in
9818 none)
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9820$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9821 ;;
9822
9823 -*)
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9825$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9826 PTHREAD_CFLAGS="$flag"
9827 ;;
9828
cristya316db12011-10-24 00:49:45 +00009829 pthread-config)
9830 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009831set dummy pthread-config; ac_word=$2
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009834if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009835 $as_echo_n "(cached) " >&6
9836else
9837 if test -n "$ax_pthread_config"; then
9838 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9839else
9840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841for as_dir in $PATH
9842do
9843 IFS=$as_save_IFS
9844 test -z "$as_dir" && as_dir=.
9845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009847 ac_cv_prog_ax_pthread_config="yes"
9848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9849 break 2
9850 fi
9851done
9852 done
9853IFS=$as_save_IFS
9854
9855 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9856fi
9857fi
9858ax_pthread_config=$ac_cv_prog_ax_pthread_config
9859if test -n "$ax_pthread_config"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9861$as_echo "$ax_pthread_config" >&6; }
9862else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867
cristya316db12011-10-24 00:49:45 +00009868 if test x"$ax_pthread_config" = xno; then continue; fi
9869 PTHREAD_CFLAGS="`pthread-config --cflags`"
9870 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9871 ;;
cristy73bd4a52010-10-05 11:24:23 +00009872
9873 *)
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9875$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9876 PTHREAD_LIBS="-l$flag"
9877 ;;
9878 esac
9879
9880 save_LIBS="$LIBS"
9881 save_CFLAGS="$CFLAGS"
9882 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009883 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009884
9885 # Check for various functions. We must include pthread.h,
9886 # since some functions may be macros. (On the Sequent, we
9887 # need a special flag -Kthread to make this header compile.)
9888 # We check for pthread_join because it is in -lpthread on IRIX
9889 # while pthread_create is in libc. We check for pthread_attr_init
9890 # due to DEC craziness with -lpthreads. We check for
9891 # pthread_cleanup_push because it is one of the few pthread
9892 # functions on Solaris that doesn't have a non-functional libc stub.
9893 # We try pthread_create on general principles.
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h. */
9896#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009897 static void routine(void *a) { a = 0; }
9898 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009899int
9900main ()
9901{
9902pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009903 pthread_create(&th, 0, start_routine, 0);
9904 pthread_join(th, 0);
9905 pthread_attr_init(&attr);
9906 pthread_cleanup_push(routine, 0);
9907 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009908 ;
9909 return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913 ax_pthread_ok=yes
9914fi
9915rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917
9918 LIBS="$save_LIBS"
9919 CFLAGS="$save_CFLAGS"
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9922$as_echo "$ax_pthread_ok" >&6; }
9923 if test "x$ax_pthread_ok" = xyes; then
9924 break;
9925 fi
9926
9927 PTHREAD_LIBS=""
9928 PTHREAD_CFLAGS=""
9929done
9930fi
9931
9932# Various other checks:
9933if test "x$ax_pthread_ok" = xyes; then
9934 save_LIBS="$LIBS"
9935 LIBS="$PTHREAD_LIBS $LIBS"
9936 save_CFLAGS="$CFLAGS"
9937 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9938
9939 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009941$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009942 attr_name=unknown
9943 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009945/* end confdefs.h. */
9946#include <pthread.h>
9947int
9948main ()
9949{
cristya316db12011-10-24 00:49:45 +00009950int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009951 ;
9952 return 0;
9953}
9954_ACEOF
9955if ac_fn_c_try_link "$LINENO"; then :
9956 attr_name=$attr; break
9957fi
9958rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009960 done
cristy73bd4a52010-10-05 11:24:23 +00009961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9962$as_echo "$attr_name" >&6; }
9963 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9964
9965cat >>confdefs.h <<_ACEOF
9966#define PTHREAD_CREATE_JOINABLE $attr_name
9967_ACEOF
9968
9969 fi
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9972$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9973 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009974 case ${host_os} in
9975 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9976 osf* | hpux*) flag="-D_REENTRANT";;
9977 solaris*)
9978 if test "$GCC" = "yes"; then
9979 flag="-D_REENTRANT"
9980 else
cristy17491be2014-06-24 01:10:53 +00009981 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009982 flag="-mt -D_REENTRANT"
9983 fi
9984 ;;
cristy73bd4a52010-10-05 11:24:23 +00009985 esac
cristy17491be2014-06-24 01:10:53 +00009986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9987$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009988 if test "x$flag" != xno; then
9989 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9990 fi
9991
cristya316db12011-10-24 00:49:45 +00009992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9993$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9994if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996else
9997
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010000#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010001int
10002main ()
10003{
10004int i = PTHREAD_PRIO_INHERIT;
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_link "$LINENO"; then :
10010 ax_cv_PTHREAD_PRIO_INHERIT=yes
10011else
10012 ax_cv_PTHREAD_PRIO_INHERIT=no
10013fi
10014rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016
10017fi
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10019$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10020 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10021
10022$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10023
10024fi
10025
cristy73bd4a52010-10-05 11:24:23 +000010026 LIBS="$save_LIBS"
10027 CFLAGS="$save_CFLAGS"
10028
cristy23493c42013-04-11 16:04:59 +000010029 # More AIX lossage: compile with *_r variant
10030 if test "x$GCC" != xyes; then
10031 case $host_os in
10032 aix*)
10033 case "x/$CC" in #(
10034 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10035 #handle absolute path differently from PATH based program lookup
10036 case "x$CC" in #(
10037 x/*) :
10038 if as_fn_executable_p ${CC}_r; then :
10039 PTHREAD_CC="${CC}_r"
10040fi ;; #(
10041 *) :
10042 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010043do
10044 # Extract the first word of "$ac_prog", so it can be a program name with args.
10045set dummy $ac_prog; ac_word=$2
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010048if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010049 $as_echo_n "(cached) " >&6
10050else
10051 if test -n "$PTHREAD_CC"; then
10052 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10053else
10054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055for as_dir in $PATH
10056do
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010061 ac_cv_prog_PTHREAD_CC="$ac_prog"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 break 2
10064 fi
10065done
10066 done
10067IFS=$as_save_IFS
10068
10069fi
10070fi
10071PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10072if test -n "$PTHREAD_CC"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10074$as_echo "$PTHREAD_CC" >&6; }
10075else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077$as_echo "no" >&6; }
10078fi
10079
10080
10081 test -n "$PTHREAD_CC" && break
10082done
cristy23493c42013-04-11 16:04:59 +000010083test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10084 ;;
10085esac ;; #(
10086 *) :
10087 ;;
10088esac
10089 ;;
10090 esac
cristya316db12011-10-24 00:49:45 +000010091 fi
cristy73bd4a52010-10-05 11:24:23 +000010092fi
10093
cristy23493c42013-04-11 16:04:59 +000010094test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10095
cristy73bd4a52010-10-05 11:24:23 +000010096
10097
10098
10099
10100# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10101if test x"$ax_pthread_ok" = xyes; then
10102
10103$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10104
10105 :
10106else
10107 ax_pthread_ok=no
10108
10109fi
10110ac_ext=c
10111ac_cpp='$CPP $CPPFLAGS'
10112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10114ac_compiler_gnu=$ac_cv_c_compiler_gnu
10115
10116
cristy7acf8fb2010-09-23 19:58:53 +000010117 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010118 have_threads=yes
10119 DEF_THREAD="$PTHREAD_CFLAGS"
10120 CFLAGS="$CFLAGS $DEF_THREAD"
10121 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010122 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010123 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010124 { $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 +000010125$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10126 CC="$PTHREAD_CC"
10127 fi
cristy55bf91c2010-09-24 00:29:41 +000010128
10129$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10130
cristy3ed852e2009-09-05 21:47:34 +000010131 fi
10132fi
cristy1ae5c992013-07-30 14:55:07 +000010133LIBS="$LIBS $THREAD_LIBS"
10134
cristy3ed852e2009-09-05 21:47:34 +000010135
10136# Enable support for OpenMP
10137if test "$have_threads" != 'yes'; then
10138 ac_cv_prog_c_openmp=unsupported
10139fi
10140
10141 OPENMP_CFLAGS=
10142 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010143if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 enableval=$enable_openmp;
10145fi
10146
10147 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010149$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010150if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010151 $as_echo_n "(cached) " >&6
10152else
cristy8b350f62009-11-15 23:12:43 +000010153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010155
10156#ifndef _OPENMP
10157 choke me
10158#endif
10159#include <omp.h>
10160int main () { return omp_get_num_threads (); }
10161
10162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010164 ac_cv_prog_c_openmp='none needed'
10165else
cristy8b350f62009-11-15 23:12:43 +000010166 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010167 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10168 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010169 ac_save_CFLAGS=$CFLAGS
10170 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010173
10174#ifndef _OPENMP
10175 choke me
10176#endif
10177#include <omp.h>
10178int main () { return omp_get_num_threads (); }
10179
10180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010181if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010182 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010183fi
cristy8b350f62009-11-15 23:12:43 +000010184rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010186 CFLAGS=$ac_save_CFLAGS
10187 if test "$ac_cv_prog_c_openmp" != unsupported; then
10188 break
10189 fi
10190 done
10191fi
cristy8b350f62009-11-15 23:12:43 +000010192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010194fi
cristy8b350f62009-11-15 23:12:43 +000010195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010196$as_echo "$ac_cv_prog_c_openmp" >&6; }
10197 case $ac_cv_prog_c_openmp in #(
10198 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010199 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010200 *)
cristy8b350f62009-11-15 23:12:43 +000010201 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010202 esac
10203 fi
10204
10205
10206CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10207MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10208
cristy391f1ce2010-09-09 17:23:28 +000010209if test "$enable_openmp" != no; then
10210 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10211 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10212 fi
10213fi
cristy3ed852e2009-09-05 21:47:34 +000010214
cristy736173a2009-09-20 21:18:22 +000010215# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010216
10217
cristy73bd4a52010-10-05 11:24:23 +000010218ac_ext=c
10219ac_cpp='$CPP $CPPFLAGS'
10220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10222ac_compiler_gnu=$ac_cv_c_compiler_gnu
10223
10224ax_pthread_ok=no
10225
10226# We used to check for pthread.h first, but this fails if pthread.h
10227# requires special compiler flags (e.g. on True64 or Sequent).
10228# It gets checked for in the link test anyway.
10229
10230# First of all, check if the user has set any of the PTHREAD_LIBS,
10231# etcetera environment variables, and if threads linking works using
10232# them:
10233if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10234 save_CFLAGS="$CFLAGS"
10235 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10236 save_LIBS="$LIBS"
10237 LIBS="$PTHREAD_LIBS $LIBS"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10239$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h. */
10242
10243/* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246#ifdef __cplusplus
10247extern "C"
10248#endif
10249char pthread_join ();
10250int
10251main ()
10252{
10253return pthread_join ();
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258if ac_fn_c_try_link "$LINENO"; then :
10259 ax_pthread_ok=yes
10260fi
10261rm -f core conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10264$as_echo "$ax_pthread_ok" >&6; }
10265 if test x"$ax_pthread_ok" = xno; then
10266 PTHREAD_LIBS=""
10267 PTHREAD_CFLAGS=""
10268 fi
10269 LIBS="$save_LIBS"
10270 CFLAGS="$save_CFLAGS"
10271fi
10272
10273# We must check for the threads library under a number of different
10274# names; the ordering is very important because some systems
10275# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10276# libraries is broken (non-POSIX).
10277
10278# Create a list of thread flags to try. Items starting with a "-" are
10279# C compiler flags, and other items are library names, except for "none"
10280# which indicates that we try without any flags at all, and "pthread-config"
10281# which is a program returning the flags for the Pth emulation library.
10282
cristy2ec87cc2013-02-18 17:46:50 +000010283ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010284
10285# The ordering *is* (sometimes) important. Some notes on the
10286# individual items follow:
10287
10288# pthreads: AIX (must check this before -lpthread)
10289# none: in case threads are in libc; should be tried before -Kthread and
10290# other compiler flags to prevent continual compiler warnings
10291# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10292# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10293# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10294# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10295# -pthreads: Solaris/gcc
10296# -mthreads: Mingw32/gcc, Lynx/gcc
10297# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10298# doesn't hurt to check since this sometimes defines pthreads too;
10299# also defines -D_REENTRANT)
10300# ... -mt is also the pthreads flag for HP/aCC
10301# pthread: Linux, etcetera
10302# --thread-safe: KAI C++
10303# pthread-config: use pthread-config program (for GNU Pth library)
10304
cristy2ec87cc2013-02-18 17:46:50 +000010305case ${host_os} in
10306 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010307
10308 # On Solaris (at least, for some versions), libc contains stubbed
10309 # (non-functional) versions of the pthreads routines, so link-based
10310 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10311 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10312 # a function called by this macro, so we could check for that, but
10313 # who knows whether they'll stub that too in a future libc.) So,
10314 # we'll just look for -pthreads and -lpthread first:
10315
10316 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10317 ;;
10318
cristy2ec87cc2013-02-18 17:46:50 +000010319 darwin*)
cristya316db12011-10-24 00:49:45 +000010320 ax_pthread_flags="-pthread $ax_pthread_flags"
10321 ;;
cristy73bd4a52010-10-05 11:24:23 +000010322esac
10323
cristy17491be2014-06-24 01:10:53 +000010324# Clang doesn't consider unrecognized options an error unless we specify
10325# -Werror. We throw in some extra Clang-specific options to ensure that
10326# this doesn't happen for GCC, which also accepts -Werror.
10327
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10329$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10330save_CFLAGS="$CFLAGS"
10331ax_pthread_extra_flags="-Werror"
10332CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h. */
10335int foo(void);
10336int
10337main ()
10338{
10339foo()
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344if ac_fn_c_try_compile "$LINENO"; then :
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10346$as_echo "yes" >&6; }
10347else
10348 ax_pthread_extra_flags=
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350$as_echo "no" >&6; }
10351fi
10352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353CFLAGS="$save_CFLAGS"
10354
cristy73bd4a52010-10-05 11:24:23 +000010355if test x"$ax_pthread_ok" = xno; then
10356for flag in $ax_pthread_flags; do
10357
10358 case $flag in
10359 none)
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10361$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10362 ;;
10363
10364 -*)
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10366$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10367 PTHREAD_CFLAGS="$flag"
10368 ;;
10369
cristya316db12011-10-24 00:49:45 +000010370 pthread-config)
10371 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010372set dummy pthread-config; ac_word=$2
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010375if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010376 $as_echo_n "(cached) " >&6
10377else
10378 if test -n "$ax_pthread_config"; then
10379 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10380else
10381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010388 ac_cv_prog_ax_pthread_config="yes"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392done
10393 done
10394IFS=$as_save_IFS
10395
10396 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10397fi
10398fi
10399ax_pthread_config=$ac_cv_prog_ax_pthread_config
10400if test -n "$ax_pthread_config"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10402$as_echo "$ax_pthread_config" >&6; }
10403else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405$as_echo "no" >&6; }
10406fi
10407
10408
cristya316db12011-10-24 00:49:45 +000010409 if test x"$ax_pthread_config" = xno; then continue; fi
10410 PTHREAD_CFLAGS="`pthread-config --cflags`"
10411 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10412 ;;
cristy73bd4a52010-10-05 11:24:23 +000010413
10414 *)
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10416$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10417 PTHREAD_LIBS="-l$flag"
10418 ;;
10419 esac
10420
10421 save_LIBS="$LIBS"
10422 save_CFLAGS="$CFLAGS"
10423 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010424 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010425
10426 # Check for various functions. We must include pthread.h,
10427 # since some functions may be macros. (On the Sequent, we
10428 # need a special flag -Kthread to make this header compile.)
10429 # We check for pthread_join because it is in -lpthread on IRIX
10430 # while pthread_create is in libc. We check for pthread_attr_init
10431 # due to DEC craziness with -lpthreads. We check for
10432 # pthread_cleanup_push because it is one of the few pthread
10433 # functions on Solaris that doesn't have a non-functional libc stub.
10434 # We try pthread_create on general principles.
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h. */
10437#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010438 static void routine(void *a) { a = 0; }
10439 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010440int
10441main ()
10442{
10443pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010444 pthread_create(&th, 0, start_routine, 0);
10445 pthread_join(th, 0);
10446 pthread_attr_init(&attr);
10447 pthread_cleanup_push(routine, 0);
10448 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010449 ;
10450 return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 ax_pthread_ok=yes
10455fi
10456rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458
10459 LIBS="$save_LIBS"
10460 CFLAGS="$save_CFLAGS"
10461
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10463$as_echo "$ax_pthread_ok" >&6; }
10464 if test "x$ax_pthread_ok" = xyes; then
10465 break;
10466 fi
10467
10468 PTHREAD_LIBS=""
10469 PTHREAD_CFLAGS=""
10470done
10471fi
10472
10473# Various other checks:
10474if test "x$ax_pthread_ok" = xyes; then
10475 save_LIBS="$LIBS"
10476 LIBS="$PTHREAD_LIBS $LIBS"
10477 save_CFLAGS="$CFLAGS"
10478 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10479
10480 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010482$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010483 attr_name=unknown
10484 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010486/* end confdefs.h. */
10487#include <pthread.h>
10488int
10489main ()
10490{
cristya316db12011-10-24 00:49:45 +000010491int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010492 ;
10493 return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497 attr_name=$attr; break
10498fi
10499rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010501 done
cristy73bd4a52010-10-05 11:24:23 +000010502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10503$as_echo "$attr_name" >&6; }
10504 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10505
10506cat >>confdefs.h <<_ACEOF
10507#define PTHREAD_CREATE_JOINABLE $attr_name
10508_ACEOF
10509
10510 fi
10511
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10513$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10514 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010515 case ${host_os} in
10516 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10517 osf* | hpux*) flag="-D_REENTRANT";;
10518 solaris*)
10519 if test "$GCC" = "yes"; then
10520 flag="-D_REENTRANT"
10521 else
cristy17491be2014-06-24 01:10:53 +000010522 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010523 flag="-mt -D_REENTRANT"
10524 fi
10525 ;;
cristy73bd4a52010-10-05 11:24:23 +000010526 esac
cristy17491be2014-06-24 01:10:53 +000010527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10528$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010529 if test "x$flag" != xno; then
10530 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10531 fi
10532
cristya316db12011-10-24 00:49:45 +000010533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10534$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10535if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537else
10538
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010541#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010542int
10543main ()
10544{
10545int i = PTHREAD_PRIO_INHERIT;
10546 ;
10547 return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551 ax_cv_PTHREAD_PRIO_INHERIT=yes
10552else
10553 ax_cv_PTHREAD_PRIO_INHERIT=no
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10560$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10561 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10562
10563$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10564
10565fi
10566
cristy73bd4a52010-10-05 11:24:23 +000010567 LIBS="$save_LIBS"
10568 CFLAGS="$save_CFLAGS"
10569
cristy23493c42013-04-11 16:04:59 +000010570 # More AIX lossage: compile with *_r variant
10571 if test "x$GCC" != xyes; then
10572 case $host_os in
10573 aix*)
10574 case "x/$CC" in #(
10575 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10576 #handle absolute path differently from PATH based program lookup
10577 case "x$CC" in #(
10578 x/*) :
10579 if as_fn_executable_p ${CC}_r; then :
10580 PTHREAD_CC="${CC}_r"
10581fi ;; #(
10582 *) :
10583 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010584do
10585 # Extract the first word of "$ac_prog", so it can be a program name with args.
10586set dummy $ac_prog; ac_word=$2
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010589if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010590 $as_echo_n "(cached) " >&6
10591else
10592 if test -n "$PTHREAD_CC"; then
10593 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10594else
10595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596for as_dir in $PATH
10597do
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010602 ac_cv_prog_PTHREAD_CC="$ac_prog"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604 break 2
10605 fi
10606done
10607 done
10608IFS=$as_save_IFS
10609
10610fi
10611fi
10612PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10613if test -n "$PTHREAD_CC"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10615$as_echo "$PTHREAD_CC" >&6; }
10616else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618$as_echo "no" >&6; }
10619fi
10620
10621
10622 test -n "$PTHREAD_CC" && break
10623done
cristy23493c42013-04-11 16:04:59 +000010624test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10625 ;;
10626esac ;; #(
10627 *) :
10628 ;;
10629esac
10630 ;;
10631 esac
cristya316db12011-10-24 00:49:45 +000010632 fi
cristy73bd4a52010-10-05 11:24:23 +000010633fi
10634
cristy23493c42013-04-11 16:04:59 +000010635test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10636
cristy73bd4a52010-10-05 11:24:23 +000010637
10638
10639
10640
10641# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10642if test x"$ax_pthread_ok" = xyes; then
10643
10644$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10645
10646 :
10647else
10648 ax_pthread_ok=no
10649
10650fi
10651ac_ext=c
10652ac_cpp='$CPP $CPPFLAGS'
10653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10655ac_compiler_gnu=$ac_cv_c_compiler_gnu
10656
10657
10658
10659# Check whether --enable-opencl was given.
10660if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010661 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010662else
cristy48794642012-09-02 15:19:08 +000010663 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010664fi
10665
10666
cristy48794642012-09-02 15:19:08 +000010667if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010668 ac_ext=c
10669ac_cpp='$CPP $CPPFLAGS'
10670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672ac_compiler_gnu=$ac_cv_c_compiler_gnu
10673
cristy75314cc2012-09-15 23:08:29 +000010674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10675$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10676if ${ax_cv_c_compiler_ms+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678else
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h. */
10681
10682int
10683main ()
10684{
10685#ifndef _MSC_VER
10686 choke me
10687#endif
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693if ac_fn_c_try_compile "$LINENO"; then :
10694 ax_compiler_ms=yes
10695else
10696 ax_compiler_ms=no
10697fi
10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699ax_cv_c_compiler_ms=$ax_compiler_ms
10700
10701fi
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10703$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010704 if test X$ax_compiler_ms = Xno; then :
10705 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10706fi
10707
10708 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010709 ax_save_CL_CFLAGS=$CL_CFLAGS
10710
10711 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010712 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10713 for ac_header in CL/cl.h OpenCL/cl.h
10714do :
10715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010718 cat >>confdefs.h <<_ACEOF
10719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10720_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010721 found_opencl_header='yes'
10722 break;
10723else
10724 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010725fi
10726
10727done
10728
cristyfdc7d122013-08-17 20:46:45 +000010729
10730 if test X$found_opencl_header = Xno; then :
10731 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10732 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10733 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10734 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10735 for ac_header in CL/cl.h OpenCL/cl.h
10736do :
10737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10740 cat >>confdefs.h <<_ACEOF
10741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10742_ACEOF
10743 found_opencl_header='yes'
10744 break;
10745else
10746 found_opencl_header='no'
10747fi
10748
10749done
10750
10751
10752fi
10753
10754 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010755
10756 for ac_header in windows.h
10757do :
10758 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010759if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010760 cat >>confdefs.h <<_ACEOF
10761#define HAVE_WINDOWS_H 1
10762_ACEOF
10763
10764fi
10765
10766done
10767
10768
10769
10770
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10772$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010773if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010774 $as_echo_n "(cached) " >&6
10775else
10776 ax_cv_check_cl_libcl=no
10777 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010778 x86_64) ax_check_cl_libdir=lib64
10779 ax_check_cl_amd_libdir=x86_64
10780 ;;
10781 *) ax_check_cl_libdir=lib
10782 ax_check_cl_amd_libdir=x86
10783 ;;
cristy73bd4a52010-10-05 11:24:23 +000010784 esac
10785 ax_save_CPPFLAGS=$CPPFLAGS
10786 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10787 ax_save_LIBS=$LIBS
10788 LIBS=""
10789 ax_check_libs="-lOpenCL -lCL -lclparser"
10790 for ax_lib in $ax_check_libs; do
10791 if test X$ax_compiler_ms = Xyes; then :
10792 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10793else
10794 ax_try_lib=$ax_lib
10795fi
10796 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h. */
10799
10800 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10801 # include <windows.h>
10802 # endif
10803 # ifdef HAVE_CL_CL_H
10804 # include <CL/cl.h>
10805 # elif defined(HAVE_OPENCL_CL_H)
10806 # include <OpenCL/cl.h>
10807 # else
10808 # error no CL.h
10809 # endif
10810int
10811main ()
10812{
10813clCreateContextFromType(0,0,0,0,0)
10814 ;
10815 return 0;
10816}
10817_ACEOF
10818if ac_fn_c_try_link "$LINENO"; then :
10819 ax_cv_check_cl_libcl=$ax_try_lib; break
10820else
10821 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"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823/* end confdefs.h. */
10824
10825 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10826 # include <windows.h>
10827 # endif
10828 # ifdef HAVE_CL_CL_H
10829 # include <CL/cl.h>
10830 # elif defined(HAVE_OPENCL_CL_H)
10831 # include <OpenCL/cl.h>
10832 # else
10833 # error no CL.h
10834 # endif
10835int
10836main ()
10837{
10838clCreateContextFromType(0,0,0,0,0)
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843if ac_fn_c_try_link "$LINENO"; then :
10844 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10845else
cristy78c5a0c2010-12-04 20:00:59 +000010846 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 +000010847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h. */
10849
10850 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10851 # include <windows.h>
10852 # endif
10853 # ifdef HAVE_CL_CL_H
10854 # include <CL/cl.h>
10855 # elif defined(HAVE_OPENCL_CL_H)
10856 # include <OpenCL/cl.h>
10857 # else
10858 # error no CL.h
10859 # endif
10860int
10861main ()
10862{
10863clCreateContextFromType(0,0,0,0,0)
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868if ac_fn_c_try_link "$LINENO"; then :
10869 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010870else
10871 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"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h. */
10874
10875 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10876 # include <windows.h>
10877 # endif
10878 # ifdef HAVE_CL_CL_H
10879 # include <CL/cl.h>
10880 # elif defined(HAVE_OPENCL_CL_H)
10881 # include <OpenCL/cl.h>
10882 # else
10883 # error no CL.h
10884 # endif
10885int
10886main ()
10887{
10888clCreateContextFromType(0,0,0,0,0)
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_link "$LINENO"; then :
10894 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10895
10896fi
10897rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899
10900
cristy73bd4a52010-10-05 11:24:23 +000010901fi
10902rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904fi
10905rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907fi
10908rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 done
10911
cristyc3f8b8e2011-12-22 14:55:16 +000010912 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010913 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915/* end confdefs.h. */
10916
10917 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10918 # include <windows.h>
10919 # endif
10920 # ifdef HAVE_CL_CL_H
10921 # include <CL/cl.h>
10922 # elif defined(HAVE_OPENCL_CL_H)
10923 # include <OpenCL/cl.h>
10924 # else
10925 # error no CL.h
10926 # endif
10927int
10928main ()
10929{
10930clCreateContextFromType(0,0,0,0,0)
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935if ac_fn_c_try_link "$LINENO"; then :
10936 ax_cv_check_cl_libcl=$LIBS
10937fi
10938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940fi
10941
10942 LIBS=$ax_save_LIBS
10943 CPPFLAGS=$ax_save_CPPFLAGS
10944fi
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10946$as_echo "$ax_cv_check_cl_libcl" >&6; }
10947
10948 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10949 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10950else
10951 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10952$as_echo "#define _OPENCL 1" >>confdefs.h
10953
10954fi
10955 ac_ext=c
10956ac_cpp='$CPP $CPPFLAGS'
10957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960
10961fi
10962
10963
10964
cristy0c832c62014-03-07 22:21:04 +000010965#remove static link on Linux
10966CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10967
cristy73bd4a52010-10-05 11:24:23 +000010968
cristyc7083c12009-10-14 03:16:55 +000010969CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010970CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010971LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010972
cristy391f1ce2010-09-09 17:23:28 +000010973if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010974 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010975 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10976 fi
cristyfd9dcd42010-08-08 18:07:02 +000010977fi
cristy2e8b51d2009-10-17 18:26:15 +000010978
cristy3ed852e2009-09-05 21:47:34 +000010979########
10980#
10981# Check for large file support
10982#
10983########
10984# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010985if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010986 enableval=$enable_largefile;
10987fi
10988
10989if test "$enable_largefile" != no; then
10990
cristy8b350f62009-11-15 23:12:43 +000010991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010992$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010993if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010994 $as_echo_n "(cached) " >&6
10995else
10996 ac_cv_sys_largefile_CC=no
10997 if test "$GCC" != yes; then
10998 ac_save_CC=$CC
10999 while :; do
11000 # IRIX 6.2 and later do not support large files by default,
11001 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000011002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011003/* end confdefs.h. */
11004#include <sys/types.h>
11005 /* Check that off_t can represent 2**63 - 1 correctly.
11006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11007 since some C++ compilers masquerading as C compilers
11008 incorrectly reject 9223372036854775807. */
11009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11011 && LARGE_OFF_T % 2147483647 == 1)
11012 ? 1 : -1];
11013int
11014main ()
11015{
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011021 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011022 break
cristy3ed852e2009-09-05 21:47:34 +000011023fi
cristy3ed852e2009-09-05 21:47:34 +000011024rm -f core conftest.err conftest.$ac_objext
11025 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011026 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011027 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011028fi
cristy3ed852e2009-09-05 21:47:34 +000011029rm -f core conftest.err conftest.$ac_objext
11030 break
11031 done
11032 CC=$ac_save_CC
11033 rm -f conftest.$ac_ext
11034 fi
11035fi
cristy8b350f62009-11-15 23:12:43 +000011036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011037$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11038 if test "$ac_cv_sys_largefile_CC" != no; then
11039 CC=$CC$ac_cv_sys_largefile_CC
11040 fi
11041
cristy8b350f62009-11-15 23:12:43 +000011042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011043$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011044if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011045 $as_echo_n "(cached) " >&6
11046else
11047 while :; do
cristy8b350f62009-11-15 23:12:43 +000011048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011049/* end confdefs.h. */
11050#include <sys/types.h>
11051 /* Check that off_t can represent 2**63 - 1 correctly.
11052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11053 since some C++ compilers masquerading as C compilers
11054 incorrectly reject 9223372036854775807. */
11055#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11057 && LARGE_OFF_T % 2147483647 == 1)
11058 ? 1 : -1];
11059int
11060main ()
11061{
11062
11063 ;
11064 return 0;
11065}
11066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011067if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011068 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011069fi
cristy3ed852e2009-09-05 21:47:34 +000011070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011072/* end confdefs.h. */
11073#define _FILE_OFFSET_BITS 64
11074#include <sys/types.h>
11075 /* Check that off_t can represent 2**63 - 1 correctly.
11076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11077 since some C++ compilers masquerading as C compilers
11078 incorrectly reject 9223372036854775807. */
11079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11081 && LARGE_OFF_T % 2147483647 == 1)
11082 ? 1 : -1];
11083int
11084main ()
11085{
11086
11087 ;
11088 return 0;
11089}
11090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011092 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011093fi
cristy3ed852e2009-09-05 21:47:34 +000011094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 ac_cv_sys_file_offset_bits=unknown
11096 break
11097done
11098fi
cristy8b350f62009-11-15 23:12:43 +000011099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011100$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11101case $ac_cv_sys_file_offset_bits in #(
11102 no | unknown) ;;
11103 *)
11104cat >>confdefs.h <<_ACEOF
11105#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11106_ACEOF
11107;;
11108esac
11109rm -rf conftest*
11110 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011112$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011113if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011114 $as_echo_n "(cached) " >&6
11115else
11116 while :; do
cristy8b350f62009-11-15 23:12:43 +000011117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011118/* end confdefs.h. */
11119#include <sys/types.h>
11120 /* Check that off_t can represent 2**63 - 1 correctly.
11121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11122 since some C++ compilers masquerading as C compilers
11123 incorrectly reject 9223372036854775807. */
11124#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11126 && LARGE_OFF_T % 2147483647 == 1)
11127 ? 1 : -1];
11128int
11129main ()
11130{
11131
11132 ;
11133 return 0;
11134}
11135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011136if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011137 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011138fi
cristy3ed852e2009-09-05 21:47:34 +000011139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011141/* end confdefs.h. */
11142#define _LARGE_FILES 1
11143#include <sys/types.h>
11144 /* Check that off_t can represent 2**63 - 1 correctly.
11145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11146 since some C++ compilers masquerading as C compilers
11147 incorrectly reject 9223372036854775807. */
11148#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11150 && LARGE_OFF_T % 2147483647 == 1)
11151 ? 1 : -1];
11152int
11153main ()
11154{
11155
11156 ;
11157 return 0;
11158}
11159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011160if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011161 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011162fi
cristy3ed852e2009-09-05 21:47:34 +000011163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 ac_cv_sys_large_files=unknown
11165 break
11166done
11167fi
cristy8b350f62009-11-15 23:12:43 +000011168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011169$as_echo "$ac_cv_sys_large_files" >&6; }
11170case $ac_cv_sys_large_files in #(
11171 no | unknown) ;;
11172 *)
11173cat >>confdefs.h <<_ACEOF
11174#define _LARGE_FILES $ac_cv_sys_large_files
11175_ACEOF
11176;;
11177esac
11178rm -rf conftest*
11179 fi
cristy14fefe52012-05-21 00:59:18 +000011180
11181
cristy3ed852e2009-09-05 21:47:34 +000011182fi
11183
cristy8b350f62009-11-15 23:12:43 +000011184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011185$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011186if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011187 $as_echo_n "(cached) " >&6
11188else
11189 while :; do
cristy8b350f62009-11-15 23:12:43 +000011190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011191/* end confdefs.h. */
11192#include <sys/types.h> /* for off_t */
11193 #include <stdio.h>
11194int
11195main ()
11196{
11197int (*fp) (FILE *, off_t, int) = fseeko;
11198 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11199 ;
11200 return 0;
11201}
11202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011204 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011205fi
cristy8b350f62009-11-15 23:12:43 +000011206rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011209/* end confdefs.h. */
11210#define _LARGEFILE_SOURCE 1
11211#include <sys/types.h> /* for off_t */
11212 #include <stdio.h>
11213int
11214main ()
11215{
11216int (*fp) (FILE *, off_t, int) = fseeko;
11217 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11218 ;
11219 return 0;
11220}
11221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011223 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011224fi
cristy8b350f62009-11-15 23:12:43 +000011225rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011227 ac_cv_sys_largefile_source=unknown
11228 break
11229done
11230fi
cristy8b350f62009-11-15 23:12:43 +000011231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011232$as_echo "$ac_cv_sys_largefile_source" >&6; }
11233case $ac_cv_sys_largefile_source in #(
11234 no | unknown) ;;
11235 *)
11236cat >>confdefs.h <<_ACEOF
11237#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11238_ACEOF
11239;;
11240esac
11241rm -rf conftest*
11242
11243# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11244# in glibc 2.1.3, but that breaks too many other things.
11245# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11246if test $ac_cv_sys_largefile_source != unknown; then
11247
cristy8b350f62009-11-15 23:12:43 +000011248$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011249
11250fi
11251
11252LFS_CPPFLAGS=''
11253if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011254 case $ac_cv_sys_file_offset_bits in
11255 no)
11256 # nothing to do here as the host supports LFS fine
11257 ;;
11258 unknown)
cristy8b350f62009-11-15 23:12:43 +000011259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011260$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011261 if test "$cross_compiling" = yes; then :
11262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011264as_fn_error $? "cannot run test program while cross compiling
11265See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011266else
cristy8b350f62009-11-15 23:12:43 +000011267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011269#include <unistd.h>
11270 main () {
11271 exit(!(sizeof(off_t) == 8));
11272 }
cristyda16f162011-02-19 23:52:17 +000011273int
11274main ()
11275{
11276
11277 ;
11278 return 0;
11279}
cristy3ed852e2009-09-05 21:47:34 +000011280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011281if ac_fn_c_try_run "$LINENO"; then :
11282 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011283
cristyad38abe2012-12-23 23:03:21 +000011284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011286else
cristyad38abe2012-12-23 23:03:21 +000011287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011289fi
cristy8b350f62009-11-15 23:12:43 +000011290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11291 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011292fi
11293
cristyc1e0cc12011-09-21 16:41:16 +000011294 ;;
11295 *)
11296 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11297 ;;
11298 esac
cristy3ed852e2009-09-05 21:47:34 +000011299 if test "$ac_cv_sys_large_files" != 'no'; then
11300 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11301 fi
11302 if test "$ac_cv_sys_largefile_source" != 'no'; then
11303 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11304 fi
11305fi
11306
11307
cristy3ed852e2009-09-05 21:47:34 +000011308# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011309enable_dlopen=yes
11310
11311
11312
11313case `pwd` in
11314 *\ * | *\ *)
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11316$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11317esac
11318
11319
11320
cristy99bd5232011-12-07 14:38:20 +000011321macro_version='2.4.2'
11322macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336ltmain="$ac_aux_dir/ltmain.sh"
11337
cristy0c60a692010-11-04 01:09:47 +000011338# Backslashify metacharacters that are still active within
11339# double-quoted strings.
11340sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11341
11342# Same as above, but do not quote variable references.
11343double_quote_subst='s/\(["`\\]\)/\\\1/g'
11344
11345# Sed substitution to delay expansion of an escaped shell variable in a
11346# double_quote_subst'ed string.
11347delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11348
11349# Sed substitution to delay expansion of an escaped single quote.
11350delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11351
11352# Sed substitution to avoid accidental globbing in evaled expressions
11353no_glob_subst='s/\*/\\\*/g'
11354
cristy73bd4a52010-10-05 11:24:23 +000011355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11356$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011357if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011358 $as_echo_n "(cached) " >&6
11359else
11360 if test -n "$NM"; then
11361 # Let the user override the test.
11362 lt_cv_path_NM="$NM"
11363else
11364 lt_nm_to_check="${ac_tool_prefix}nm"
11365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11366 lt_nm_to_check="$lt_nm_to_check nm"
11367 fi
11368 for lt_tmp_nm in $lt_nm_to_check; do
11369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11371 IFS="$lt_save_ifs"
11372 test -z "$ac_dir" && ac_dir=.
11373 tmp_nm="$ac_dir/$lt_tmp_nm"
11374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11375 # Check to see if the nm accepts a BSD-compat flag.
11376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11377 # nm: unknown option "B" ignored
11378 # Tru64's nm complains that /dev/null is an invalid object file
11379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11380 */dev/null* | *'Invalid file or object type'*)
11381 lt_cv_path_NM="$tmp_nm -B"
11382 break
11383 ;;
11384 *)
11385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11386 */dev/null*)
11387 lt_cv_path_NM="$tmp_nm -p"
11388 break
11389 ;;
11390 *)
11391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11392 continue # so that we can try to find one that supports BSD flags
11393 ;;
11394 esac
11395 ;;
11396 esac
11397 fi
11398 done
11399 IFS="$lt_save_ifs"
11400 done
11401 : ${lt_cv_path_NM=no}
11402fi
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11405$as_echo "$lt_cv_path_NM" >&6; }
11406if test "$lt_cv_path_NM" != "no"; then
11407 NM="$lt_cv_path_NM"
11408else
11409 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011410 if test -n "$DUMPBIN"; then :
11411 # Let the user override the test.
11412 else
11413 if test -n "$ac_tool_prefix"; then
11414 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011415 do
11416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011420if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011421 $as_echo_n "(cached) " >&6
11422else
11423 if test -n "$DUMPBIN"; then
11424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11425else
11426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427for as_dir in $PATH
11428do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11436 fi
11437done
11438 done
11439IFS=$as_save_IFS
11440
11441fi
11442fi
11443DUMPBIN=$ac_cv_prog_DUMPBIN
11444if test -n "$DUMPBIN"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11446$as_echo "$DUMPBIN" >&6; }
11447else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449$as_echo "no" >&6; }
11450fi
11451
11452
11453 test -n "$DUMPBIN" && break
11454 done
11455fi
11456if test -z "$DUMPBIN"; then
11457 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011458 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011459do
11460 # Extract the first word of "$ac_prog", so it can be a program name with args.
11461set dummy $ac_prog; ac_word=$2
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011464if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011465 $as_echo_n "(cached) " >&6
11466else
11467 if test -n "$ac_ct_DUMPBIN"; then
11468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11469else
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11480 fi
11481done
11482 done
11483IFS=$as_save_IFS
11484
11485fi
11486fi
11487ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11488if test -n "$ac_ct_DUMPBIN"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11490$as_echo "$ac_ct_DUMPBIN" >&6; }
11491else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493$as_echo "no" >&6; }
11494fi
11495
11496
11497 test -n "$ac_ct_DUMPBIN" && break
11498done
11499
11500 if test "x$ac_ct_DUMPBIN" = x; then
11501 DUMPBIN=":"
11502 else
11503 case $cross_compiling:$ac_tool_warned in
11504yes:)
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11507ac_tool_warned=yes ;;
11508esac
11509 DUMPBIN=$ac_ct_DUMPBIN
11510 fi
11511fi
11512
cristy0c60a692010-11-04 01:09:47 +000011513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11514 *COFF*)
11515 DUMPBIN="$DUMPBIN -symbols"
11516 ;;
11517 *)
11518 DUMPBIN=:
11519 ;;
11520 esac
11521 fi
cristy73bd4a52010-10-05 11:24:23 +000011522
11523 if test "$DUMPBIN" != ":"; then
11524 NM="$DUMPBIN"
11525 fi
11526fi
11527test -z "$NM" && NM=nm
11528
11529
11530
11531
11532
11533
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11535$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011536if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011537 $as_echo_n "(cached) " >&6
11538else
11539 lt_cv_nm_interface="BSD nm"
11540 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011542 (eval "$ac_compile" 2>conftest.err)
11543 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11546 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011547 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011548 cat conftest.out >&5
11549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11550 lt_cv_nm_interface="MS dumpbin"
11551 fi
11552 rm -f conftest*
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11555$as_echo "$lt_cv_nm_interface" >&6; }
11556
11557# find the maximum length of command line arguments
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11559$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011560if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011561 $as_echo_n "(cached) " >&6
11562else
11563 i=0
11564 teststring="ABCD"
11565
11566 case $build_os in
11567 msdosdjgpp*)
11568 # On DJGPP, this test can blow up pretty badly due to problems in libc
11569 # (any single argument exceeding 2000 bytes causes a buffer overrun
11570 # during glob expansion). Even if it were fixed, the result of this
11571 # check would be larger than it should be.
11572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11573 ;;
11574
11575 gnu*)
11576 # Under GNU Hurd, this test is not required because there is
11577 # no limit to the length of command line arguments.
11578 # Libtool will interpret -1 as no limit whatsoever
11579 lt_cv_sys_max_cmd_len=-1;
11580 ;;
11581
11582 cygwin* | mingw* | cegcc*)
11583 # On Win9x/ME, this test blows up -- it succeeds, but takes
11584 # about 5 minutes as the teststring grows exponentially.
11585 # Worse, since 9x/ME are not pre-emptively multitasking,
11586 # you end up with a "frozen" computer, even though with patience
11587 # the test eventually succeeds (with a max line length of 256k).
11588 # Instead, let's just punt: use the minimum linelength reported by
11589 # all of the supported platforms: 8192 (on NT/2K/XP).
11590 lt_cv_sys_max_cmd_len=8192;
11591 ;;
11592
cristy0c60a692010-11-04 01:09:47 +000011593 mint*)
11594 # On MiNT this can take a long time and run out of memory.
11595 lt_cv_sys_max_cmd_len=8192;
11596 ;;
11597
cristy73bd4a52010-10-05 11:24:23 +000011598 amigaos*)
11599 # On AmigaOS with pdksh, this test takes hours, literally.
11600 # So we just punt and use a minimum line length of 8192.
11601 lt_cv_sys_max_cmd_len=8192;
11602 ;;
11603
11604 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11605 # This has been around since 386BSD, at least. Likely further.
11606 if test -x /sbin/sysctl; then
11607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11608 elif test -x /usr/sbin/sysctl; then
11609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11610 else
11611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11612 fi
11613 # And add a safety zone
11614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11616 ;;
11617
11618 interix*)
11619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11620 lt_cv_sys_max_cmd_len=196608
11621 ;;
11622
cristy99bd5232011-12-07 14:38:20 +000011623 os2*)
11624 # The test takes a long time on OS/2.
11625 lt_cv_sys_max_cmd_len=8192
11626 ;;
11627
cristy73bd4a52010-10-05 11:24:23 +000011628 osf*)
11629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11631 # nice to cause kernel panics so lets avoid the loop below.
11632 # First set a reasonable default.
11633 lt_cv_sys_max_cmd_len=16384
11634 #
11635 if test -x /sbin/sysconfig; then
11636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11638 esac
11639 fi
11640 ;;
11641 sco3.2v5*)
11642 lt_cv_sys_max_cmd_len=102400
11643 ;;
11644 sysv5* | sco5v6* | sysv4.2uw2*)
11645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11646 if test -n "$kargmax"; then
11647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11648 else
11649 lt_cv_sys_max_cmd_len=32768
11650 fi
11651 ;;
11652 *)
11653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11654 if test -n "$lt_cv_sys_max_cmd_len"; then
11655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11657 else
11658 # Make teststring a little bigger before we do anything with it.
11659 # a 1K string should be a reasonable start.
11660 for i in 1 2 3 4 5 6 7 8 ; do
11661 teststring=$teststring$teststring
11662 done
11663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11664 # If test is not a shell built-in, we'll probably end up computing a
11665 # maximum length that is only half of the actual maximum length, but
11666 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011667 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011669 test $i != 17 # 1/2 MB should be enough
11670 do
11671 i=`expr $i + 1`
11672 teststring=$teststring$teststring
11673 done
11674 # Only check the string length outside the loop.
11675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11676 teststring=
11677 # Add a significant safety factor because C++ compilers can tack on
11678 # massive amounts of additional arguments before passing them to the
11679 # linker. It appears as though 1/2 is a usable value.
11680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11681 fi
11682 ;;
11683 esac
11684
11685fi
11686
11687if test -n $lt_cv_sys_max_cmd_len ; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11689$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11690else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11692$as_echo "none" >&6; }
11693fi
11694max_cmd_len=$lt_cv_sys_max_cmd_len
11695
11696
11697
11698
11699
11700
11701: ${CP="cp -f"}
11702: ${MV="mv -f"}
11703: ${RM="rm -f"}
11704
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11706$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11707# Try some XSI features
11708xsi_shell=no
11709( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011710 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11711 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011712 && eval 'test $(( 1 + 1 )) -eq 2 \
11713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11714 && xsi_shell=yes
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11716$as_echo "$xsi_shell" >&6; }
11717
11718
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11720$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11721lt_shell_append=no
11722( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11723 >/dev/null 2>&1 \
11724 && lt_shell_append=yes
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11726$as_echo "$lt_shell_append" >&6; }
11727
11728
11729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11730 lt_unset=unset
11731else
11732 lt_unset=false
11733fi
11734
11735
11736
11737
11738
11739# test EBCDIC or ASCII
11740case `echo X|tr X '\101'` in
11741 A) # ASCII based system
11742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11743 lt_SP2NL='tr \040 \012'
11744 lt_NL2SP='tr \015\012 \040\040'
11745 ;;
11746 *) # EBCDIC based system
11747 lt_SP2NL='tr \100 \n'
11748 lt_NL2SP='tr \r\n \100\100'
11749 ;;
11750esac
11751
11752
11753
11754
11755
11756
11757
11758
11759
cristyda16f162011-02-19 23:52:17 +000011760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11761$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11762if ${lt_cv_to_host_file_cmd+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764else
11765 case $host in
11766 *-*-mingw* )
11767 case $build in
11768 *-*-mingw* ) # actually msys
11769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11770 ;;
11771 *-*-cygwin* )
11772 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11773 ;;
11774 * ) # otherwise, assume *nix
11775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11776 ;;
11777 esac
11778 ;;
11779 *-*-cygwin* )
11780 case $build in
11781 *-*-mingw* ) # actually msys
11782 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11783 ;;
11784 *-*-cygwin* )
11785 lt_cv_to_host_file_cmd=func_convert_file_noop
11786 ;;
11787 * ) # otherwise, assume *nix
11788 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11789 ;;
11790 esac
11791 ;;
11792 * ) # unhandled hosts (and "normal" native builds)
11793 lt_cv_to_host_file_cmd=func_convert_file_noop
11794 ;;
11795esac
11796
11797fi
11798
11799to_host_file_cmd=$lt_cv_to_host_file_cmd
11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11801$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11802
11803
11804
11805
11806
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11808$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11809if ${lt_cv_to_tool_file_cmd+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811else
11812 #assume ordinary cross tools, or native build.
11813lt_cv_to_tool_file_cmd=func_convert_file_noop
11814case $host in
11815 *-*-mingw* )
11816 case $build in
11817 *-*-mingw* ) # actually msys
11818 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11819 ;;
11820 esac
11821 ;;
11822esac
11823
11824fi
11825
11826to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11828$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11829
11830
11831
11832
11833
cristy73bd4a52010-10-05 11:24:23 +000011834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11835$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011836if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011837 $as_echo_n "(cached) " >&6
11838else
11839 lt_cv_ld_reload_flag='-r'
11840fi
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11842$as_echo "$lt_cv_ld_reload_flag" >&6; }
11843reload_flag=$lt_cv_ld_reload_flag
11844case $reload_flag in
11845"" | " "*) ;;
11846*) reload_flag=" $reload_flag" ;;
11847esac
11848reload_cmds='$LD$reload_flag -o $output$reload_objs'
11849case $host_os in
cristyda16f162011-02-19 23:52:17 +000011850 cygwin* | mingw* | pw32* | cegcc*)
11851 if test "$GCC" != yes; then
11852 reload_cmds=false
11853 fi
11854 ;;
cristy73bd4a52010-10-05 11:24:23 +000011855 darwin*)
11856 if test "$GCC" = yes; then
11857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11858 else
11859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11860 fi
11861 ;;
11862esac
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872if test -n "$ac_tool_prefix"; then
11873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11874set dummy ${ac_tool_prefix}objdump; ac_word=$2
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011877if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011878 $as_echo_n "(cached) " >&6
11879else
11880 if test -n "$OBJDUMP"; then
11881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11882else
11883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884for as_dir in $PATH
11885do
11886 IFS=$as_save_IFS
11887 test -z "$as_dir" && as_dir=.
11888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 break 2
11893 fi
11894done
11895 done
11896IFS=$as_save_IFS
11897
11898fi
11899fi
11900OBJDUMP=$ac_cv_prog_OBJDUMP
11901if test -n "$OBJDUMP"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11903$as_echo "$OBJDUMP" >&6; }
11904else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
11907fi
11908
11909
11910fi
11911if test -z "$ac_cv_prog_OBJDUMP"; then
11912 ac_ct_OBJDUMP=$OBJDUMP
11913 # Extract the first word of "objdump", so it can be a program name with args.
11914set dummy objdump; ac_word=$2
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011917if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011918 $as_echo_n "(cached) " >&6
11919else
11920 if test -n "$ac_ct_OBJDUMP"; then
11921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11922else
11923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926 IFS=$as_save_IFS
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011930 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932 break 2
11933 fi
11934done
11935 done
11936IFS=$as_save_IFS
11937
11938fi
11939fi
11940ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11941if test -n "$ac_ct_OBJDUMP"; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11943$as_echo "$ac_ct_OBJDUMP" >&6; }
11944else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946$as_echo "no" >&6; }
11947fi
11948
11949 if test "x$ac_ct_OBJDUMP" = x; then
11950 OBJDUMP="false"
11951 else
11952 case $cross_compiling:$ac_tool_warned in
11953yes:)
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11956ac_tool_warned=yes ;;
11957esac
11958 OBJDUMP=$ac_ct_OBJDUMP
11959 fi
11960else
11961 OBJDUMP="$ac_cv_prog_OBJDUMP"
11962fi
11963
11964test -z "$OBJDUMP" && OBJDUMP=objdump
11965
11966
11967
11968
11969
11970
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11972$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011973if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011974 $as_echo_n "(cached) " >&6
11975else
11976 lt_cv_file_magic_cmd='$MAGIC_CMD'
11977lt_cv_file_magic_test_file=
11978lt_cv_deplibs_check_method='unknown'
11979# Need to set the preceding variable on all platforms that support
11980# interlibrary dependencies.
11981# 'none' -- dependencies not supported.
11982# `unknown' -- same as none, but documents that we really don't know.
11983# 'pass_all' -- all dependencies passed with no checks.
11984# 'test_compile' -- check by making test program.
11985# 'file_magic [[regex]]' -- check by looking for files in library path
11986# which responds to the $file_magic_cmd with a given extended regex.
11987# If you have `file' or equivalent on your system and you're not sure
11988# whether `pass_all' will *always* work, you probably want this one.
11989
11990case $host_os in
11991aix[4-9]*)
11992 lt_cv_deplibs_check_method=pass_all
11993 ;;
11994
11995beos*)
11996 lt_cv_deplibs_check_method=pass_all
11997 ;;
11998
11999bsdi[45]*)
12000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12001 lt_cv_file_magic_cmd='/usr/bin/file -L'
12002 lt_cv_file_magic_test_file=/shlib/libc.so
12003 ;;
12004
12005cygwin*)
12006 # func_win32_libid is a shell function defined in ltmain.sh
12007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12008 lt_cv_file_magic_cmd='func_win32_libid'
12009 ;;
12010
12011mingw* | pw32*)
12012 # Base MSYS/MinGW do not provide the 'file' command needed by
12013 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12014 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012015 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12016 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12018 lt_cv_file_magic_cmd='func_win32_libid'
12019 else
cristy0c60a692010-11-04 01:09:47 +000012020 # Keep this pattern in sync with the one in func_win32_libid.
12021 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 +000012022 lt_cv_file_magic_cmd='$OBJDUMP -f'
12023 fi
12024 ;;
12025
cristy0c60a692010-11-04 01:09:47 +000012026cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012027 # use the weaker test based on 'objdump'. See mingw*.
12028 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12029 lt_cv_file_magic_cmd='$OBJDUMP -f'
12030 ;;
12031
12032darwin* | rhapsody*)
12033 lt_cv_deplibs_check_method=pass_all
12034 ;;
12035
12036freebsd* | dragonfly*)
12037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12038 case $host_cpu in
12039 i*86 )
12040 # Not sure whether the presence of OpenBSD here was a mistake.
12041 # Let's accept both of them until this is cleared up.
12042 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12043 lt_cv_file_magic_cmd=/usr/bin/file
12044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12045 ;;
12046 esac
12047 else
12048 lt_cv_deplibs_check_method=pass_all
12049 fi
12050 ;;
12051
12052gnu*)
12053 lt_cv_deplibs_check_method=pass_all
12054 ;;
12055
cristy0c60a692010-11-04 01:09:47 +000012056haiku*)
12057 lt_cv_deplibs_check_method=pass_all
12058 ;;
12059
cristy73bd4a52010-10-05 11:24:23 +000012060hpux10.20* | hpux11*)
12061 lt_cv_file_magic_cmd=/usr/bin/file
12062 case $host_cpu in
12063 ia64*)
12064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12065 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12066 ;;
12067 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012068 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 +000012069 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12070 ;;
12071 *)
cristy0c60a692010-11-04 01:09:47 +000012072 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 +000012073 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12074 ;;
12075 esac
12076 ;;
12077
12078interix[3-9]*)
12079 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12081 ;;
12082
12083irix5* | irix6* | nonstopux*)
12084 case $LD in
12085 *-32|*"-32 ") libmagic=32-bit;;
12086 *-n32|*"-n32 ") libmagic=N32;;
12087 *-64|*"-64 ") libmagic=64-bit;;
12088 *) libmagic=never-match;;
12089 esac
12090 lt_cv_deplibs_check_method=pass_all
12091 ;;
12092
cristy99bd5232011-12-07 14:38:20 +000012093# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012094linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012095 lt_cv_deplibs_check_method=pass_all
12096 ;;
12097
12098netbsd*)
12099 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12101 else
12102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12103 fi
12104 ;;
12105
12106newos6*)
12107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12108 lt_cv_file_magic_cmd=/usr/bin/file
12109 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12110 ;;
12111
12112*nto* | *qnx*)
12113 lt_cv_deplibs_check_method=pass_all
12114 ;;
12115
12116openbsd*)
12117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12119 else
12120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12121 fi
12122 ;;
12123
12124osf3* | osf4* | osf5*)
12125 lt_cv_deplibs_check_method=pass_all
12126 ;;
12127
12128rdos*)
12129 lt_cv_deplibs_check_method=pass_all
12130 ;;
12131
12132solaris*)
12133 lt_cv_deplibs_check_method=pass_all
12134 ;;
12135
12136sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12137 lt_cv_deplibs_check_method=pass_all
12138 ;;
12139
12140sysv4 | sysv4.3*)
12141 case $host_vendor in
12142 motorola)
12143 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]'
12144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12145 ;;
12146 ncr)
12147 lt_cv_deplibs_check_method=pass_all
12148 ;;
12149 sequent)
12150 lt_cv_file_magic_cmd='/bin/file'
12151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12152 ;;
12153 sni)
12154 lt_cv_file_magic_cmd='/bin/file'
12155 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12156 lt_cv_file_magic_test_file=/lib/libc.so
12157 ;;
12158 siemens)
12159 lt_cv_deplibs_check_method=pass_all
12160 ;;
12161 pc)
12162 lt_cv_deplibs_check_method=pass_all
12163 ;;
12164 esac
12165 ;;
12166
12167tpf*)
12168 lt_cv_deplibs_check_method=pass_all
12169 ;;
12170esac
12171
12172fi
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12174$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012175
12176file_magic_glob=
12177want_nocaseglob=no
12178if test "$build" = "$host"; then
12179 case $host_os in
12180 mingw* | pw32*)
12181 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12182 want_nocaseglob=yes
12183 else
12184 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12185 fi
12186 ;;
12187 esac
12188fi
12189
cristy73bd4a52010-10-05 11:24:23 +000012190file_magic_cmd=$lt_cv_file_magic_cmd
12191deplibs_check_method=$lt_cv_deplibs_check_method
12192test -z "$deplibs_check_method" && deplibs_check_method=unknown
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
cristyda16f162011-02-19 23:52:17 +000012205
12206
12207
12208
12209
12210
12211
12212
12213
12214
cristy73bd4a52010-10-05 11:24:23 +000012215if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012216 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12217set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012220if ${ac_cv_prog_DLLTOOL+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222else
12223 if test -n "$DLLTOOL"; then
12224 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12225else
12226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $PATH
12228do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012233 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12236 fi
12237done
12238 done
12239IFS=$as_save_IFS
12240
12241fi
12242fi
12243DLLTOOL=$ac_cv_prog_DLLTOOL
12244if test -n "$DLLTOOL"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12246$as_echo "$DLLTOOL" >&6; }
12247else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249$as_echo "no" >&6; }
12250fi
12251
12252
12253fi
12254if test -z "$ac_cv_prog_DLLTOOL"; then
12255 ac_ct_DLLTOOL=$DLLTOOL
12256 # Extract the first word of "dlltool", so it can be a program name with args.
12257set dummy dlltool; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262else
12263 if test -n "$ac_ct_DLLTOOL"; then
12264 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012273 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277done
12278 done
12279IFS=$as_save_IFS
12280
12281fi
12282fi
12283ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12284if test -n "$ac_ct_DLLTOOL"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12286$as_echo "$ac_ct_DLLTOOL" >&6; }
12287else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292 if test "x$ac_ct_DLLTOOL" = x; then
12293 DLLTOOL="false"
12294 else
12295 case $cross_compiling:$ac_tool_warned in
12296yes:)
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12299ac_tool_warned=yes ;;
12300esac
12301 DLLTOOL=$ac_ct_DLLTOOL
12302 fi
12303else
12304 DLLTOOL="$ac_cv_prog_DLLTOOL"
12305fi
12306
12307test -z "$DLLTOOL" && DLLTOOL=dlltool
12308
12309
12310
12311
12312
12313
12314
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12316$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12317if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319else
12320 lt_cv_sharedlib_from_linklib_cmd='unknown'
12321
12322case $host_os in
12323cygwin* | mingw* | pw32* | cegcc*)
12324 # two different shell functions defined in ltmain.sh
12325 # decide which to use based on capabilities of $DLLTOOL
12326 case `$DLLTOOL --help 2>&1` in
12327 *--identify-strict*)
12328 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12329 ;;
12330 *)
12331 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12332 ;;
12333 esac
12334 ;;
12335*)
12336 # fallback: assume linklib IS sharedlib
12337 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12338 ;;
12339esac
12340
12341fi
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12343$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12344sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12345test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12346
12347
12348
12349
12350
12351
12352
12353if test -n "$ac_tool_prefix"; then
12354 for ac_prog in ar
12355 do
12356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12357set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012361 $as_echo_n "(cached) " >&6
12362else
12363 if test -n "$AR"; then
12364 ac_cv_prog_AR="$AR" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012373 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383AR=$ac_cv_prog_AR
12384if test -n "$AR"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12386$as_echo "$AR" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392
cristyda16f162011-02-19 23:52:17 +000012393 test -n "$AR" && break
12394 done
cristy73bd4a52010-10-05 11:24:23 +000012395fi
cristyda16f162011-02-19 23:52:17 +000012396if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012397 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012398 for ac_prog in ar
12399do
12400 # Extract the first word of "$ac_prog", so it can be a program name with args.
12401set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012404if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012405 $as_echo_n "(cached) " >&6
12406else
12407 if test -n "$ac_ct_AR"; then
12408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12409else
12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411for as_dir in $PATH
12412do
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012417 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419 break 2
12420 fi
12421done
12422 done
12423IFS=$as_save_IFS
12424
12425fi
12426fi
12427ac_ct_AR=$ac_cv_prog_ac_ct_AR
12428if test -n "$ac_ct_AR"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12430$as_echo "$ac_ct_AR" >&6; }
12431else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
12434fi
12435
cristyda16f162011-02-19 23:52:17 +000012436
12437 test -n "$ac_ct_AR" && break
12438done
12439
cristy73bd4a52010-10-05 11:24:23 +000012440 if test "x$ac_ct_AR" = x; then
12441 AR="false"
12442 else
12443 case $cross_compiling:$ac_tool_warned in
12444yes:)
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12447ac_tool_warned=yes ;;
12448esac
12449 AR=$ac_ct_AR
12450 fi
cristy73bd4a52010-10-05 11:24:23 +000012451fi
12452
cristyda16f162011-02-19 23:52:17 +000012453: ${AR=ar}
12454: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
cristyda16f162011-02-19 23:52:17 +000012466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12467$as_echo_n "checking for archiver @FILE support... " >&6; }
12468if ${lt_cv_ar_at_file+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470else
12471 lt_cv_ar_at_file=no
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473/* end confdefs.h. */
12474
12475int
12476main ()
12477{
12478
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483if ac_fn_c_try_compile "$LINENO"; then :
12484 echo conftest.$ac_objext > conftest.lst
12485 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12487 (eval $lt_ar_try) 2>&5
12488 ac_status=$?
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; }
12491 if test "$ac_status" -eq 0; then
12492 # Ensure the archiver fails upon bogus file names.
12493 rm -f conftest.$ac_objext libconftest.a
12494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12495 (eval $lt_ar_try) 2>&5
12496 ac_status=$?
12497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498 test $ac_status = 0; }
12499 if test "$ac_status" -ne 0; then
12500 lt_cv_ar_at_file=@
12501 fi
12502 fi
12503 rm -f conftest.* libconftest.a
12504
12505fi
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12507
12508fi
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12510$as_echo "$lt_cv_ar_at_file" >&6; }
12511
12512if test "x$lt_cv_ar_at_file" = xno; then
12513 archiver_list_spec=
12514else
12515 archiver_list_spec=$lt_cv_ar_at_file
12516fi
12517
12518
12519
12520
12521
12522
12523
cristy73bd4a52010-10-05 11:24:23 +000012524if test -n "$ac_tool_prefix"; then
12525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12526set dummy ${ac_tool_prefix}strip; ac_word=$2
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012529if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012530 $as_echo_n "(cached) " >&6
12531else
12532 if test -n "$STRIP"; then
12533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12534else
12535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536for as_dir in $PATH
12537do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 break 2
12545 fi
12546done
12547 done
12548IFS=$as_save_IFS
12549
12550fi
12551fi
12552STRIP=$ac_cv_prog_STRIP
12553if test -n "$STRIP"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12555$as_echo "$STRIP" >&6; }
12556else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558$as_echo "no" >&6; }
12559fi
12560
12561
12562fi
12563if test -z "$ac_cv_prog_STRIP"; then
12564 ac_ct_STRIP=$STRIP
12565 # Extract the first word of "strip", so it can be a program name with args.
12566set dummy strip; ac_word=$2
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012569if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012570 $as_echo_n "(cached) " >&6
12571else
12572 if test -n "$ac_ct_STRIP"; then
12573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12574else
12575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576for as_dir in $PATH
12577do
12578 IFS=$as_save_IFS
12579 test -z "$as_dir" && as_dir=.
12580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012582 ac_cv_prog_ac_ct_STRIP="strip"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584 break 2
12585 fi
12586done
12587 done
12588IFS=$as_save_IFS
12589
12590fi
12591fi
12592ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12593if test -n "$ac_ct_STRIP"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12595$as_echo "$ac_ct_STRIP" >&6; }
12596else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598$as_echo "no" >&6; }
12599fi
12600
12601 if test "x$ac_ct_STRIP" = x; then
12602 STRIP=":"
12603 else
12604 case $cross_compiling:$ac_tool_warned in
12605yes:)
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12608ac_tool_warned=yes ;;
12609esac
12610 STRIP=$ac_ct_STRIP
12611 fi
12612else
12613 STRIP="$ac_cv_prog_STRIP"
12614fi
12615
12616test -z "$STRIP" && STRIP=:
12617
12618
12619
12620
12621
12622
12623if test -n "$ac_tool_prefix"; then
12624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012628if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012629 $as_echo_n "(cached) " >&6
12630else
12631 if test -n "$RANLIB"; then
12632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12633else
12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635for as_dir in $PATH
12636do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12644 fi
12645done
12646 done
12647IFS=$as_save_IFS
12648
12649fi
12650fi
12651RANLIB=$ac_cv_prog_RANLIB
12652if test -n "$RANLIB"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12654$as_echo "$RANLIB" >&6; }
12655else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
12658fi
12659
12660
12661fi
12662if test -z "$ac_cv_prog_RANLIB"; then
12663 ac_ct_RANLIB=$RANLIB
12664 # Extract the first word of "ranlib", so it can be a program name with args.
12665set dummy ranlib; ac_word=$2
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012668if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012669 $as_echo_n "(cached) " >&6
12670else
12671 if test -n "$ac_ct_RANLIB"; then
12672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12673else
12674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675for as_dir in $PATH
12676do
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012681 ac_cv_prog_ac_ct_RANLIB="ranlib"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12684 fi
12685done
12686 done
12687IFS=$as_save_IFS
12688
12689fi
12690fi
12691ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12692if test -n "$ac_ct_RANLIB"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12694$as_echo "$ac_ct_RANLIB" >&6; }
12695else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697$as_echo "no" >&6; }
12698fi
12699
12700 if test "x$ac_ct_RANLIB" = x; then
12701 RANLIB=":"
12702 else
12703 case $cross_compiling:$ac_tool_warned in
12704yes:)
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12707ac_tool_warned=yes ;;
12708esac
12709 RANLIB=$ac_ct_RANLIB
12710 fi
12711else
12712 RANLIB="$ac_cv_prog_RANLIB"
12713fi
12714
12715test -z "$RANLIB" && RANLIB=:
12716
12717
12718
12719
12720
12721
12722# Determine commands to create old-style static archives.
12723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12724old_postinstall_cmds='chmod 644 $oldlib'
12725old_postuninstall_cmds=
12726
12727if test -n "$RANLIB"; then
12728 case $host_os in
12729 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012731 ;;
12732 *)
cristy99bd5232011-12-07 14:38:20 +000012733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012734 ;;
12735 esac
cristy99bd5232011-12-07 14:38:20 +000012736 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012737fi
12738
cristy0c60a692010-11-04 01:09:47 +000012739case $host_os in
12740 darwin*)
12741 lock_old_archive_extraction=yes ;;
12742 *)
12743 lock_old_archive_extraction=no ;;
12744esac
12745
12746
12747
12748
12749
12750
cristy73bd4a52010-10-05 11:24:23 +000012751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784# If no C compiler was specified, use CC.
12785LTCC=${LTCC-"$CC"}
12786
12787# If no C compiler flags were specified, use CFLAGS.
12788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12789
12790# Allow CC to be a program name with arguments.
12791compiler=$CC
12792
12793
12794# Check for command to grab the raw symbol name followed by C symbol from nm.
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12796$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012797if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012798 $as_echo_n "(cached) " >&6
12799else
12800
12801# These are sane defaults that work on at least a few old systems.
12802# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12803
12804# Character class describing NM global symbol codes.
12805symcode='[BCDEGRST]'
12806
12807# Regexp to match symbols that can be accessed directly from C.
12808sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12809
12810# Define system-specific variables.
12811case $host_os in
12812aix*)
12813 symcode='[BCDT]'
12814 ;;
12815cygwin* | mingw* | pw32* | cegcc*)
12816 symcode='[ABCDGISTW]'
12817 ;;
12818hpux*)
12819 if test "$host_cpu" = ia64; then
12820 symcode='[ABCDEGRST]'
12821 fi
12822 ;;
12823irix* | nonstopux*)
12824 symcode='[BCDEGRST]'
12825 ;;
12826osf*)
12827 symcode='[BCDEGQRST]'
12828 ;;
12829solaris*)
12830 symcode='[BDRT]'
12831 ;;
12832sco3.2v5*)
12833 symcode='[DT]'
12834 ;;
12835sysv4.2uw2*)
12836 symcode='[DT]'
12837 ;;
12838sysv5* | sco5v6* | unixware* | OpenUNIX*)
12839 symcode='[ABDT]'
12840 ;;
12841sysv4)
12842 symcode='[DFNSTU]'
12843 ;;
12844esac
12845
12846# If we're using GNU nm, then use its standard symbol codes.
12847case `$NM -V 2>&1` in
12848*GNU* | *'with BFD'*)
12849 symcode='[ABCDGIRSTW]' ;;
12850esac
12851
12852# Transform an extracted symbol line into a proper C declaration.
12853# Some systems (esp. on ia64) link data and code symbols differently,
12854# so use this general approach.
12855lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12856
12857# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012858lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12859lt_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 +000012860
12861# Handle CRLF in mingw tool chain
12862opt_cr=
12863case $build_os in
12864mingw*)
12865 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12866 ;;
12867esac
12868
12869# Try without a prefix underscore, then with it.
12870for ac_symprfx in "" "_"; do
12871
12872 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12873 symxfrm="\\1 $ac_symprfx\\2 \\2"
12874
12875 # Write the raw and C identifiers.
12876 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12877 # Fake it for dumpbin and say T for any non-static function
12878 # and D for any global variable.
12879 # Also find C++ and __fastcall symbols from MSVC++,
12880 # which start with @ or ?.
12881 lt_cv_sys_global_symbol_pipe="$AWK '"\
12882" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012883" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012884" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12885" \$ 0!~/External *\|/{next};"\
12886" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12887" {if(hide[section]) next};"\
12888" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12889" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12890" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12891" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12892" ' prfx=^$ac_symprfx"
12893 else
12894 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12895 fi
cristyda16f162011-02-19 23:52:17 +000012896 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012897
12898 # Check to see that the pipe works correctly.
12899 pipe_works=no
12900
12901 rm -f conftest*
12902 cat > conftest.$ac_ext <<_LT_EOF
12903#ifdef __cplusplus
12904extern "C" {
12905#endif
12906char nm_test_var;
12907void nm_test_func(void);
12908void nm_test_func(void){}
12909#ifdef __cplusplus
12910}
12911#endif
12912int main(){nm_test_var='a';nm_test_func();return(0);}
12913_LT_EOF
12914
12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12916 (eval $ac_compile) 2>&5
12917 ac_status=$?
12918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; }; then
12920 # Now try to grab the symbols.
12921 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12923 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012924 ac_status=$?
12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926 test $ac_status = 0; } && test -s "$nlist"; then
12927 # Try sorting and uniquifying the output.
12928 if sort "$nlist" | uniq > "$nlist"T; then
12929 mv -f "$nlist"T "$nlist"
12930 else
12931 rm -f "$nlist"T
12932 fi
12933
12934 # Make sure that we snagged all the symbols we need.
12935 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12936 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12937 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012938/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12939#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12940/* DATA imports from DLLs on WIN32 con't be const, because runtime
12941 relocations are performed -- see ld's documentation on pseudo-relocs. */
12942# define LT_DLSYM_CONST
12943#elif defined(__osf__)
12944/* This system does not cope well with relocations in const data. */
12945# define LT_DLSYM_CONST
12946#else
12947# define LT_DLSYM_CONST const
12948#endif
12949
cristy73bd4a52010-10-05 11:24:23 +000012950#ifdef __cplusplus
12951extern "C" {
12952#endif
12953
12954_LT_EOF
12955 # Now generate the symbol file.
12956 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12957
12958 cat <<_LT_EOF >> conftest.$ac_ext
12959
12960/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012961LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012962 const char *name;
12963 void *address;
12964}
12965lt__PROGRAM__LTX_preloaded_symbols[] =
12966{
12967 { "@PROGRAM@", (void *) 0 },
12968_LT_EOF
12969 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12970 cat <<\_LT_EOF >> conftest.$ac_ext
12971 {0, (void *) 0}
12972};
12973
12974/* This works around a problem in FreeBSD linker */
12975#ifdef FREEBSD_WORKAROUND
12976static const void *lt_preloaded_setup() {
12977 return lt__PROGRAM__LTX_preloaded_symbols;
12978}
12979#endif
12980
12981#ifdef __cplusplus
12982}
12983#endif
12984_LT_EOF
12985 # Now try linking the two files.
12986 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012987 lt_globsym_save_LIBS=$LIBS
12988 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012989 LIBS="conftstm.$ac_objext"
12990 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12992 (eval $ac_link) 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12996 pipe_works=yes
12997 fi
cristyda16f162011-02-19 23:52:17 +000012998 LIBS=$lt_globsym_save_LIBS
12999 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013000 else
13001 echo "cannot find nm_test_func in $nlist" >&5
13002 fi
13003 else
13004 echo "cannot find nm_test_var in $nlist" >&5
13005 fi
13006 else
13007 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13008 fi
13009 else
13010 echo "$progname: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 fi
13013 rm -rf conftest* conftst*
13014
13015 # Do not use the global_symbol_pipe unless it works.
13016 if test "$pipe_works" = yes; then
13017 break
13018 else
13019 lt_cv_sys_global_symbol_pipe=
13020 fi
13021done
13022
13023fi
13024
13025if test -z "$lt_cv_sys_global_symbol_pipe"; then
13026 lt_cv_sys_global_symbol_to_cdecl=
13027fi
13028if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13030$as_echo "failed" >&6; }
13031else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13033$as_echo "ok" >&6; }
13034fi
13035
cristyda16f162011-02-19 23:52:17 +000013036# Response file support.
13037if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13038 nm_file_list_spec='@'
13039elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13040 nm_file_list_spec='@'
13041fi
cristy73bd4a52010-10-05 11:24:23 +000013042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
cristyda16f162011-02-19 23:52:17 +000013063
13064
13065
13066
13067
13068
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13070$as_echo_n "checking for sysroot... " >&6; }
13071
13072# Check whether --with-sysroot was given.
13073if test "${with_sysroot+set}" = set; then :
13074 withval=$with_sysroot;
13075else
13076 with_sysroot=no
13077fi
13078
13079
13080lt_sysroot=
13081case ${with_sysroot} in #(
13082 yes)
13083 if test "$GCC" = yes; then
13084 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13085 fi
13086 ;; #(
13087 /*)
13088 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13089 ;; #(
13090 no|'')
13091 ;; #(
13092 *)
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13094$as_echo "${with_sysroot}" >&6; }
13095 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13096 ;;
13097esac
13098
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13100$as_echo "${lt_sysroot:-no}" >&6; }
13101
13102
13103
13104
13105
cristy73bd4a52010-10-05 11:24:23 +000013106# Check whether --enable-libtool-lock was given.
13107if test "${enable_libtool_lock+set}" = set; then :
13108 enableval=$enable_libtool_lock;
13109fi
13110
13111test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13112
13113# Some flags need to be propagated to the compiler or linker for good
13114# libtool support.
13115case $host in
13116ia64-*-hpux*)
13117 # Find out which ABI we are using.
13118 echo 'int i;' > conftest.$ac_ext
13119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13120 (eval $ac_compile) 2>&5
13121 ac_status=$?
13122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13123 test $ac_status = 0; }; then
13124 case `/usr/bin/file conftest.$ac_objext` in
13125 *ELF-32*)
13126 HPUX_IA64_MODE="32"
13127 ;;
13128 *ELF-64*)
13129 HPUX_IA64_MODE="64"
13130 ;;
13131 esac
13132 fi
13133 rm -rf conftest*
13134 ;;
13135*-*-irix6*)
13136 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013137 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13139 (eval $ac_compile) 2>&5
13140 ac_status=$?
13141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13142 test $ac_status = 0; }; then
13143 if test "$lt_cv_prog_gnu_ld" = yes; then
13144 case `/usr/bin/file conftest.$ac_objext` in
13145 *32-bit*)
13146 LD="${LD-ld} -melf32bsmip"
13147 ;;
13148 *N32*)
13149 LD="${LD-ld} -melf32bmipn32"
13150 ;;
13151 *64-bit*)
13152 LD="${LD-ld} -melf64bmip"
13153 ;;
13154 esac
13155 else
13156 case `/usr/bin/file conftest.$ac_objext` in
13157 *32-bit*)
13158 LD="${LD-ld} -32"
13159 ;;
13160 *N32*)
13161 LD="${LD-ld} -n32"
13162 ;;
13163 *64-bit*)
13164 LD="${LD-ld} -64"
13165 ;;
13166 esac
13167 fi
13168 fi
13169 rm -rf conftest*
13170 ;;
13171
cristyd95b7a52013-10-23 13:12:53 +000013172x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013173s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13174 # Find out which ABI we are using.
13175 echo 'int i;' > conftest.$ac_ext
13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13177 (eval $ac_compile) 2>&5
13178 ac_status=$?
13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13180 test $ac_status = 0; }; then
13181 case `/usr/bin/file conftest.o` in
13182 *32-bit*)
13183 case $host in
13184 x86_64-*kfreebsd*-gnu)
13185 LD="${LD-ld} -m elf_i386_fbsd"
13186 ;;
13187 x86_64-*linux*)
13188 LD="${LD-ld} -m elf_i386"
13189 ;;
cristya5bda012013-11-03 18:05:38 +000013190 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013191 LD="${LD-ld} -m elf32lppclinux"
13192 ;;
cristya5bda012013-11-03 18:05:38 +000013193 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013194 LD="${LD-ld} -m elf32ppclinux"
13195 ;;
13196 s390x-*linux*)
13197 LD="${LD-ld} -m elf_s390"
13198 ;;
13199 sparc64-*linux*)
13200 LD="${LD-ld} -m elf32_sparc"
13201 ;;
13202 esac
13203 ;;
13204 *64-bit*)
13205 case $host in
13206 x86_64-*kfreebsd*-gnu)
13207 LD="${LD-ld} -m elf_x86_64_fbsd"
13208 ;;
13209 x86_64-*linux*)
13210 LD="${LD-ld} -m elf_x86_64"
13211 ;;
cristyd95b7a52013-10-23 13:12:53 +000013212 powerpcle-*linux*)
13213 LD="${LD-ld} -m elf64lppc"
13214 ;;
13215 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013216 LD="${LD-ld} -m elf64ppc"
13217 ;;
13218 s390*-*linux*|s390*-*tpf*)
13219 LD="${LD-ld} -m elf64_s390"
13220 ;;
13221 sparc*-*linux*)
13222 LD="${LD-ld} -m elf64_sparc"
13223 ;;
13224 esac
13225 ;;
13226 esac
13227 fi
13228 rm -rf conftest*
13229 ;;
13230
13231*-*-sco3.2v5*)
13232 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13233 SAVE_CFLAGS="$CFLAGS"
13234 CFLAGS="$CFLAGS -belf"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13236$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013237if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013238 $as_echo_n "(cached) " >&6
13239else
13240 ac_ext=c
13241ac_cpp='$CPP $CPPFLAGS'
13242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h. */
13248
13249int
13250main ()
13251{
13252
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257if ac_fn_c_try_link "$LINENO"; then :
13258 lt_cv_cc_needs_belf=yes
13259else
13260 lt_cv_cc_needs_belf=no
13261fi
13262rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 ac_ext=c
13265ac_cpp='$CPP $CPPFLAGS'
13266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269
13270fi
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13272$as_echo "$lt_cv_cc_needs_belf" >&6; }
13273 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13274 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13275 CFLAGS="$SAVE_CFLAGS"
13276 fi
13277 ;;
cristy99bd5232011-12-07 14:38:20 +000013278*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013279 # Find out which ABI we are using.
13280 echo 'int i;' > conftest.$ac_ext
13281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13282 (eval $ac_compile) 2>&5
13283 ac_status=$?
13284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13285 test $ac_status = 0; }; then
13286 case `/usr/bin/file conftest.o` in
13287 *64-bit*)
13288 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013289 yes*)
13290 case $host in
13291 i?86-*-solaris*)
13292 LD="${LD-ld} -m elf_x86_64"
13293 ;;
13294 sparc*-*-solaris*)
13295 LD="${LD-ld} -m elf64_sparc"
13296 ;;
13297 esac
13298 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13299 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13300 LD="${LD-ld}_sol2"
13301 fi
13302 ;;
cristy73bd4a52010-10-05 11:24:23 +000013303 *)
13304 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13305 LD="${LD-ld} -64"
13306 fi
13307 ;;
13308 esac
13309 ;;
13310 esac
13311 fi
13312 rm -rf conftest*
13313 ;;
13314esac
13315
13316need_locks="$enable_libtool_lock"
13317
cristyda16f162011-02-19 23:52:17 +000013318if test -n "$ac_tool_prefix"; then
13319 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13320set dummy ${ac_tool_prefix}mt; ac_word=$2
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322$as_echo_n "checking for $ac_word... " >&6; }
13323if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325else
13326 if test -n "$MANIFEST_TOOL"; then
13327 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13328else
13329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $PATH
13331do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013336 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13339 fi
13340done
13341 done
13342IFS=$as_save_IFS
13343
13344fi
13345fi
13346MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13347if test -n "$MANIFEST_TOOL"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13349$as_echo "$MANIFEST_TOOL" >&6; }
13350else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352$as_echo "no" >&6; }
13353fi
13354
13355
13356fi
13357if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13358 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13359 # Extract the first word of "mt", so it can be a program name with args.
13360set dummy mt; ac_word=$2
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362$as_echo_n "checking for $ac_word... " >&6; }
13363if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365else
13366 if test -n "$ac_ct_MANIFEST_TOOL"; then
13367 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13368else
13369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370for as_dir in $PATH
13371do
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013376 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378 break 2
13379 fi
13380done
13381 done
13382IFS=$as_save_IFS
13383
13384fi
13385fi
13386ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13387if test -n "$ac_ct_MANIFEST_TOOL"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13389$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13390else
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392$as_echo "no" >&6; }
13393fi
13394
13395 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13396 MANIFEST_TOOL=":"
13397 else
13398 case $cross_compiling:$ac_tool_warned in
13399yes:)
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13402ac_tool_warned=yes ;;
13403esac
13404 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13405 fi
13406else
13407 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13408fi
13409
13410test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13412$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13413if ${lt_cv_path_mainfest_tool+:} false; then :
13414 $as_echo_n "(cached) " >&6
13415else
13416 lt_cv_path_mainfest_tool=no
13417 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13418 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13419 cat conftest.err >&5
13420 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13421 lt_cv_path_mainfest_tool=yes
13422 fi
13423 rm -f conftest*
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13426$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13427if test "x$lt_cv_path_mainfest_tool" != xyes; then
13428 MANIFEST_TOOL=:
13429fi
13430
13431
13432
13433
13434
cristy73bd4a52010-10-05 11:24:23 +000013435
13436 case $host_os in
13437 rhapsody* | darwin*)
13438 if test -n "$ac_tool_prefix"; then
13439 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13440set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013443if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013444 $as_echo_n "(cached) " >&6
13445else
13446 if test -n "$DSYMUTIL"; then
13447 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13448else
13449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450for as_dir in $PATH
13451do
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013456 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13459 fi
13460done
13461 done
13462IFS=$as_save_IFS
13463
13464fi
13465fi
13466DSYMUTIL=$ac_cv_prog_DSYMUTIL
13467if test -n "$DSYMUTIL"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13469$as_echo "$DSYMUTIL" >&6; }
13470else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
13473fi
13474
13475
13476fi
13477if test -z "$ac_cv_prog_DSYMUTIL"; then
13478 ac_ct_DSYMUTIL=$DSYMUTIL
13479 # Extract the first word of "dsymutil", so it can be a program name with args.
13480set dummy dsymutil; ac_word=$2
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013483if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013484 $as_echo_n "(cached) " >&6
13485else
13486 if test -n "$ac_ct_DSYMUTIL"; then
13487 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13488else
13489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490for as_dir in $PATH
13491do
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013496 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 break 2
13499 fi
13500done
13501 done
13502IFS=$as_save_IFS
13503
13504fi
13505fi
13506ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13507if test -n "$ac_ct_DSYMUTIL"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13509$as_echo "$ac_ct_DSYMUTIL" >&6; }
13510else
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512$as_echo "no" >&6; }
13513fi
13514
13515 if test "x$ac_ct_DSYMUTIL" = x; then
13516 DSYMUTIL=":"
13517 else
13518 case $cross_compiling:$ac_tool_warned in
13519yes:)
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13522ac_tool_warned=yes ;;
13523esac
13524 DSYMUTIL=$ac_ct_DSYMUTIL
13525 fi
13526else
13527 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13528fi
13529
13530 if test -n "$ac_tool_prefix"; then
13531 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13532set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013535if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013536 $as_echo_n "(cached) " >&6
13537else
13538 if test -n "$NMEDIT"; then
13539 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13540else
13541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542for as_dir in $PATH
13543do
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013548 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550 break 2
13551 fi
13552done
13553 done
13554IFS=$as_save_IFS
13555
13556fi
13557fi
13558NMEDIT=$ac_cv_prog_NMEDIT
13559if test -n "$NMEDIT"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13561$as_echo "$NMEDIT" >&6; }
13562else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564$as_echo "no" >&6; }
13565fi
13566
13567
13568fi
13569if test -z "$ac_cv_prog_NMEDIT"; then
13570 ac_ct_NMEDIT=$NMEDIT
13571 # Extract the first word of "nmedit", so it can be a program name with args.
13572set dummy nmedit; ac_word=$2
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013575if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013576 $as_echo_n "(cached) " >&6
13577else
13578 if test -n "$ac_ct_NMEDIT"; then
13579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13580else
13581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582for as_dir in $PATH
13583do
13584 IFS=$as_save_IFS
13585 test -z "$as_dir" && as_dir=.
13586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013588 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 break 2
13591 fi
13592done
13593 done
13594IFS=$as_save_IFS
13595
13596fi
13597fi
13598ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13599if test -n "$ac_ct_NMEDIT"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13601$as_echo "$ac_ct_NMEDIT" >&6; }
13602else
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13604$as_echo "no" >&6; }
13605fi
13606
13607 if test "x$ac_ct_NMEDIT" = x; then
13608 NMEDIT=":"
13609 else
13610 case $cross_compiling:$ac_tool_warned in
13611yes:)
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13614ac_tool_warned=yes ;;
13615esac
13616 NMEDIT=$ac_ct_NMEDIT
13617 fi
13618else
13619 NMEDIT="$ac_cv_prog_NMEDIT"
13620fi
13621
13622 if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}lipo; ac_word=$2
13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013627if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013628 $as_echo_n "(cached) " >&6
13629else
13630 if test -n "$LIPO"; then
13631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013640 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645 done
13646IFS=$as_save_IFS
13647
13648fi
13649fi
13650LIPO=$ac_cv_prog_LIPO
13651if test -n "$LIPO"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13653$as_echo "$LIPO" >&6; }
13654else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656$as_echo "no" >&6; }
13657fi
13658
13659
13660fi
13661if test -z "$ac_cv_prog_LIPO"; then
13662 ac_ct_LIPO=$LIPO
13663 # Extract the first word of "lipo", so it can be a program name with args.
13664set dummy lipo; ac_word=$2
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013667if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013668 $as_echo_n "(cached) " >&6
13669else
13670 if test -n "$ac_ct_LIPO"; then
13671 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13672else
13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674for as_dir in $PATH
13675do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013680 ac_cv_prog_ac_ct_LIPO="lipo"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684done
13685 done
13686IFS=$as_save_IFS
13687
13688fi
13689fi
13690ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13691if test -n "$ac_ct_LIPO"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13693$as_echo "$ac_ct_LIPO" >&6; }
13694else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696$as_echo "no" >&6; }
13697fi
13698
13699 if test "x$ac_ct_LIPO" = x; then
13700 LIPO=":"
13701 else
13702 case $cross_compiling:$ac_tool_warned in
13703yes:)
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13706ac_tool_warned=yes ;;
13707esac
13708 LIPO=$ac_ct_LIPO
13709 fi
13710else
13711 LIPO="$ac_cv_prog_LIPO"
13712fi
13713
13714 if test -n "$ac_tool_prefix"; then
13715 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13716set dummy ${ac_tool_prefix}otool; ac_word=$2
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013719if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013720 $as_echo_n "(cached) " >&6
13721else
13722 if test -n "$OTOOL"; then
13723 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13724else
13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726for as_dir in $PATH
13727do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013732 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736done
13737 done
13738IFS=$as_save_IFS
13739
13740fi
13741fi
13742OTOOL=$ac_cv_prog_OTOOL
13743if test -n "$OTOOL"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13745$as_echo "$OTOOL" >&6; }
13746else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748$as_echo "no" >&6; }
13749fi
13750
13751
13752fi
13753if test -z "$ac_cv_prog_OTOOL"; then
13754 ac_ct_OTOOL=$OTOOL
13755 # Extract the first word of "otool", so it can be a program name with args.
13756set dummy otool; ac_word=$2
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013759if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013760 $as_echo_n "(cached) " >&6
13761else
13762 if test -n "$ac_ct_OTOOL"; then
13763 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13764else
13765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766for as_dir in $PATH
13767do
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013772 ac_cv_prog_ac_ct_OTOOL="otool"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13775 fi
13776done
13777 done
13778IFS=$as_save_IFS
13779
13780fi
13781fi
13782ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13783if test -n "$ac_ct_OTOOL"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13785$as_echo "$ac_ct_OTOOL" >&6; }
13786else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788$as_echo "no" >&6; }
13789fi
13790
13791 if test "x$ac_ct_OTOOL" = x; then
13792 OTOOL=":"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795yes:)
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798ac_tool_warned=yes ;;
13799esac
13800 OTOOL=$ac_ct_OTOOL
13801 fi
13802else
13803 OTOOL="$ac_cv_prog_OTOOL"
13804fi
13805
13806 if test -n "$ac_tool_prefix"; then
13807 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13808set dummy ${ac_tool_prefix}otool64; ac_word=$2
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013811if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013812 $as_echo_n "(cached) " >&6
13813else
13814 if test -n "$OTOOL64"; then
13815 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13816else
13817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13818for as_dir in $PATH
13819do
13820 IFS=$as_save_IFS
13821 test -z "$as_dir" && as_dir=.
13822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013824 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13826 break 2
13827 fi
13828done
13829 done
13830IFS=$as_save_IFS
13831
13832fi
13833fi
13834OTOOL64=$ac_cv_prog_OTOOL64
13835if test -n "$OTOOL64"; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13837$as_echo "$OTOOL64" >&6; }
13838else
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840$as_echo "no" >&6; }
13841fi
13842
13843
13844fi
13845if test -z "$ac_cv_prog_OTOOL64"; then
13846 ac_ct_OTOOL64=$OTOOL64
13847 # Extract the first word of "otool64", so it can be a program name with args.
13848set dummy otool64; ac_word=$2
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013851if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013852 $as_echo_n "(cached) " >&6
13853else
13854 if test -n "$ac_ct_OTOOL64"; then
13855 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13856else
13857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858for as_dir in $PATH
13859do
13860 IFS=$as_save_IFS
13861 test -z "$as_dir" && as_dir=.
13862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013864 ac_cv_prog_ac_ct_OTOOL64="otool64"
13865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13866 break 2
13867 fi
13868done
13869 done
13870IFS=$as_save_IFS
13871
13872fi
13873fi
13874ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13875if test -n "$ac_ct_OTOOL64"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13877$as_echo "$ac_ct_OTOOL64" >&6; }
13878else
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880$as_echo "no" >&6; }
13881fi
13882
13883 if test "x$ac_ct_OTOOL64" = x; then
13884 OTOOL64=":"
13885 else
13886 case $cross_compiling:$ac_tool_warned in
13887yes:)
13888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13890ac_tool_warned=yes ;;
13891esac
13892 OTOOL64=$ac_ct_OTOOL64
13893 fi
13894else
13895 OTOOL64="$ac_cv_prog_OTOOL64"
13896fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13925$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013926if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013927 $as_echo_n "(cached) " >&6
13928else
13929 lt_cv_apple_cc_single_mod=no
13930 if test -z "${LT_MULTI_MODULE}"; then
13931 # By default we will add the -single_module flag. You can override
13932 # by either setting the environment variable LT_MULTI_MODULE
13933 # non-empty at configure time, or by adding -multi_module to the
13934 # link flags.
13935 rm -rf libconftest.dylib*
13936 echo "int foo(void){return 1;}" > conftest.c
13937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13938-dynamiclib -Wl,-single_module conftest.c" >&5
13939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13941 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013942 # If there is a non-empty error log, and "single_module"
13943 # appears in it, assume the flag caused a linker warning
13944 if test -s conftest.err && $GREP single_module conftest.err; then
13945 cat conftest.err >&5
13946 # Otherwise, if the output was created with a 0 exit code from
13947 # the compiler, it worked.
13948 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013949 lt_cv_apple_cc_single_mod=yes
13950 else
13951 cat conftest.err >&5
13952 fi
13953 rm -rf libconftest.dylib*
13954 rm -f conftest.*
13955 fi
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13958$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013959
cristy73bd4a52010-10-05 11:24:23 +000013960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13961$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013962if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013963 $as_echo_n "(cached) " >&6
13964else
13965 lt_cv_ld_exported_symbols_list=no
13966 save_LDFLAGS=$LDFLAGS
13967 echo "_main" > conftest.sym
13968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970/* end confdefs.h. */
13971
13972int
13973main ()
13974{
13975
13976 ;
13977 return 0;
13978}
13979_ACEOF
13980if ac_fn_c_try_link "$LINENO"; then :
13981 lt_cv_ld_exported_symbols_list=yes
13982else
13983 lt_cv_ld_exported_symbols_list=no
13984fi
13985rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LDFLAGS="$save_LDFLAGS"
13988
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13991$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013992
cristy0c60a692010-11-04 01:09:47 +000013993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13994$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013995if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013996 $as_echo_n "(cached) " >&6
13997else
13998 lt_cv_ld_force_load=no
13999 cat > conftest.c << _LT_EOF
14000int forced_loaded() { return 2;}
14001_LT_EOF
14002 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14003 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14004 echo "$AR cru libconftest.a conftest.o" >&5
14005 $AR cru libconftest.a conftest.o 2>&5
14006 echo "$RANLIB libconftest.a" >&5
14007 $RANLIB libconftest.a 2>&5
14008 cat > conftest.c << _LT_EOF
14009int main() { return 0;}
14010_LT_EOF
14011 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14012 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14013 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014014 if test -s conftest.err && $GREP force_load conftest.err; then
14015 cat conftest.err >&5
14016 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014017 lt_cv_ld_force_load=yes
14018 else
14019 cat conftest.err >&5
14020 fi
14021 rm -f conftest.err libconftest.a conftest conftest.c
14022 rm -rf conftest.dSYM
14023
14024fi
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14026$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014027 case $host_os in
14028 rhapsody* | darwin1.[012])
14029 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14030 darwin1.*)
14031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14032 darwin*) # darwin 5.x on
14033 # if running on 10.5 or later, the deployment target defaults
14034 # to the OS version, if on x86, and 10.4, the deployment
14035 # target defaults to 10.4. Don't you love it?
14036 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14037 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14039 10.[012]*)
14040 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14041 10.*)
14042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14043 esac
14044 ;;
14045 esac
14046 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14047 _lt_dar_single_mod='$single_module'
14048 fi
14049 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14050 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14051 else
14052 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14053 fi
cristy0c60a692010-11-04 01:09:47 +000014054 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014055 _lt_dsymutil='~$DSYMUTIL $lib || :'
14056 else
14057 _lt_dsymutil=
14058 fi
14059 ;;
14060 esac
14061
14062for ac_header in dlfcn.h
14063do :
14064 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14065"
cristyda16f162011-02-19 23:52:17 +000014066if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014067 cat >>confdefs.h <<_ACEOF
14068#define HAVE_DLFCN_H 1
14069_ACEOF
14070
14071fi
14072
14073done
14074
14075
14076
cristy73bd4a52010-10-05 11:24:23 +000014077
cristyda16f162011-02-19 23:52:17 +000014078func_stripname_cnf ()
14079{
14080 case ${2} in
14081 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14082 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14083 esac
14084} # func_stripname_cnf
14085
14086
14087
cristy73bd4a52010-10-05 11:24:23 +000014088
14089
14090# Set options
14091enable_win32_dll=yes
14092
14093case $host in
cristy0c60a692010-11-04 01:09:47 +000014094*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014095 if test -n "$ac_tool_prefix"; then
14096 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14097set dummy ${ac_tool_prefix}as; ac_word=$2
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014100if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014101 $as_echo_n "(cached) " >&6
14102else
14103 if test -n "$AS"; then
14104 ac_cv_prog_AS="$AS" # Let the user override the test.
14105else
14106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107for as_dir in $PATH
14108do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014113 ac_cv_prog_AS="${ac_tool_prefix}as"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117done
14118 done
14119IFS=$as_save_IFS
14120
14121fi
14122fi
14123AS=$ac_cv_prog_AS
14124if test -n "$AS"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14126$as_echo "$AS" >&6; }
14127else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129$as_echo "no" >&6; }
14130fi
14131
14132
14133fi
14134if test -z "$ac_cv_prog_AS"; then
14135 ac_ct_AS=$AS
14136 # Extract the first word of "as", so it can be a program name with args.
14137set dummy as; ac_word=$2
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014140if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014141 $as_echo_n "(cached) " >&6
14142else
14143 if test -n "$ac_ct_AS"; then
14144 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14145else
14146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147for as_dir in $PATH
14148do
14149 IFS=$as_save_IFS
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014153 ac_cv_prog_ac_ct_AS="as"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 break 2
14156 fi
14157done
14158 done
14159IFS=$as_save_IFS
14160
14161fi
14162fi
14163ac_ct_AS=$ac_cv_prog_ac_ct_AS
14164if test -n "$ac_ct_AS"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14166$as_echo "$ac_ct_AS" >&6; }
14167else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169$as_echo "no" >&6; }
14170fi
14171
14172 if test "x$ac_ct_AS" = x; then
14173 AS="false"
14174 else
14175 case $cross_compiling:$ac_tool_warned in
14176yes:)
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14179ac_tool_warned=yes ;;
14180esac
14181 AS=$ac_ct_AS
14182 fi
14183else
14184 AS="$ac_cv_prog_AS"
14185fi
14186
14187 if test -n "$ac_tool_prefix"; then
14188 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14189set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014192if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014193 $as_echo_n "(cached) " >&6
14194else
14195 if test -n "$DLLTOOL"; then
14196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14197else
14198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199for as_dir in $PATH
14200do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014205 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14208 fi
14209done
14210 done
14211IFS=$as_save_IFS
14212
14213fi
14214fi
14215DLLTOOL=$ac_cv_prog_DLLTOOL
14216if test -n "$DLLTOOL"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14218$as_echo "$DLLTOOL" >&6; }
14219else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221$as_echo "no" >&6; }
14222fi
14223
14224
14225fi
14226if test -z "$ac_cv_prog_DLLTOOL"; then
14227 ac_ct_DLLTOOL=$DLLTOOL
14228 # Extract the first word of "dlltool", so it can be a program name with args.
14229set dummy dlltool; ac_word=$2
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014232if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014233 $as_echo_n "(cached) " >&6
14234else
14235 if test -n "$ac_ct_DLLTOOL"; then
14236 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14237else
14238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239for as_dir in $PATH
14240do
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014245 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 break 2
14248 fi
14249done
14250 done
14251IFS=$as_save_IFS
14252
14253fi
14254fi
14255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14256if test -n "$ac_ct_DLLTOOL"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14258$as_echo "$ac_ct_DLLTOOL" >&6; }
14259else
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261$as_echo "no" >&6; }
14262fi
14263
14264 if test "x$ac_ct_DLLTOOL" = x; then
14265 DLLTOOL="false"
14266 else
14267 case $cross_compiling:$ac_tool_warned in
14268yes:)
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14271ac_tool_warned=yes ;;
14272esac
14273 DLLTOOL=$ac_ct_DLLTOOL
14274 fi
14275else
14276 DLLTOOL="$ac_cv_prog_DLLTOOL"
14277fi
14278
14279 if test -n "$ac_tool_prefix"; then
14280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14281set dummy ${ac_tool_prefix}objdump; ac_word=$2
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014284if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014285 $as_echo_n "(cached) " >&6
14286else
14287 if test -n "$OBJDUMP"; then
14288 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14289else
14290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291for as_dir in $PATH
14292do
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014297 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14300 fi
14301done
14302 done
14303IFS=$as_save_IFS
14304
14305fi
14306fi
14307OBJDUMP=$ac_cv_prog_OBJDUMP
14308if test -n "$OBJDUMP"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14310$as_echo "$OBJDUMP" >&6; }
14311else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313$as_echo "no" >&6; }
14314fi
14315
14316
14317fi
14318if test -z "$ac_cv_prog_OBJDUMP"; then
14319 ac_ct_OBJDUMP=$OBJDUMP
14320 # Extract the first word of "objdump", so it can be a program name with args.
14321set dummy objdump; ac_word=$2
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014324if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014325 $as_echo_n "(cached) " >&6
14326else
14327 if test -n "$ac_ct_OBJDUMP"; then
14328 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14329else
14330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331for as_dir in $PATH
14332do
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
14335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014337 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 break 2
14340 fi
14341done
14342 done
14343IFS=$as_save_IFS
14344
14345fi
14346fi
14347ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14348if test -n "$ac_ct_OBJDUMP"; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14350$as_echo "$ac_ct_OBJDUMP" >&6; }
14351else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353$as_echo "no" >&6; }
14354fi
14355
14356 if test "x$ac_ct_OBJDUMP" = x; then
14357 OBJDUMP="false"
14358 else
14359 case $cross_compiling:$ac_tool_warned in
14360yes:)
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14363ac_tool_warned=yes ;;
14364esac
14365 OBJDUMP=$ac_ct_OBJDUMP
14366 fi
14367else
14368 OBJDUMP="$ac_cv_prog_OBJDUMP"
14369fi
14370
14371 ;;
14372esac
14373
14374test -z "$AS" && AS=as
14375
14376
14377
14378
14379
14380test -z "$DLLTOOL" && DLLTOOL=dlltool
14381
14382
14383
14384
14385
14386test -z "$OBJDUMP" && OBJDUMP=objdump
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396 # Check whether --enable-shared was given.
14397if test "${enable_shared+set}" = set; then :
14398 enableval=$enable_shared; p=${PACKAGE-default}
14399 case $enableval in
14400 yes) enable_shared=yes ;;
14401 no) enable_shared=no ;;
14402 *)
14403 enable_shared=no
14404 # Look at the argument we got. We use all the common list separators.
14405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14406 for pkg in $enableval; do
14407 IFS="$lt_save_ifs"
14408 if test "X$pkg" = "X$p"; then
14409 enable_shared=yes
14410 fi
14411 done
14412 IFS="$lt_save_ifs"
14413 ;;
14414 esac
14415else
14416 enable_shared=yes
14417fi
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427 # Check whether --enable-static was given.
14428if test "${enable_static+set}" = set; then :
14429 enableval=$enable_static; p=${PACKAGE-default}
14430 case $enableval in
14431 yes) enable_static=yes ;;
14432 no) enable_static=no ;;
14433 *)
14434 enable_static=no
14435 # Look at the argument we got. We use all the common list separators.
14436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14437 for pkg in $enableval; do
14438 IFS="$lt_save_ifs"
14439 if test "X$pkg" = "X$p"; then
14440 enable_static=yes
14441 fi
14442 done
14443 IFS="$lt_save_ifs"
14444 ;;
14445 esac
14446else
14447 enable_static=yes
14448fi
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459# Check whether --with-pic was given.
14460if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014461 withval=$with_pic; lt_p=${PACKAGE-default}
14462 case $withval in
14463 yes|no) pic_mode=$withval ;;
14464 *)
14465 pic_mode=default
14466 # Look at the argument we got. We use all the common list separators.
14467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14468 for lt_pkg in $withval; do
14469 IFS="$lt_save_ifs"
14470 if test "X$lt_pkg" = "X$lt_p"; then
14471 pic_mode=yes
14472 fi
14473 done
14474 IFS="$lt_save_ifs"
14475 ;;
14476 esac
cristy73bd4a52010-10-05 11:24:23 +000014477else
14478 pic_mode=default
14479fi
14480
14481
14482test -z "$pic_mode" && pic_mode=default
14483
14484
14485
14486
14487
14488
14489
14490 # Check whether --enable-fast-install was given.
14491if test "${enable_fast_install+set}" = set; then :
14492 enableval=$enable_fast_install; p=${PACKAGE-default}
14493 case $enableval in
14494 yes) enable_fast_install=yes ;;
14495 no) enable_fast_install=no ;;
14496 *)
14497 enable_fast_install=no
14498 # Look at the argument we got. We use all the common list separators.
14499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14500 for pkg in $enableval; do
14501 IFS="$lt_save_ifs"
14502 if test "X$pkg" = "X$p"; then
14503 enable_fast_install=yes
14504 fi
14505 done
14506 IFS="$lt_save_ifs"
14507 ;;
14508 esac
14509else
14510 enable_fast_install=yes
14511fi
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523# This can be used to rebuild libtool when needed
14524LIBTOOL_DEPS="$ltmain"
14525
14526# Always use our own libtool.
14527LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
cristy0c60a692010-11-04 01:09:47 +000014553
cristy99bd5232011-12-07 14:38:20 +000014554
14555
14556
14557
cristy73bd4a52010-10-05 11:24:23 +000014558test -z "$LN_S" && LN_S="ln -s"
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573if test -n "${ZSH_VERSION+set}" ; then
14574 setopt NO_GLOB_SUBST
14575fi
14576
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14578$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014579if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014580 $as_echo_n "(cached) " >&6
14581else
14582 rm -f .libs 2>/dev/null
14583mkdir .libs 2>/dev/null
14584if test -d .libs; then
14585 lt_cv_objdir=.libs
14586else
14587 # MS-DOS does not allow filenames that begin with a dot.
14588 lt_cv_objdir=_libs
14589fi
14590rmdir .libs 2>/dev/null
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14593$as_echo "$lt_cv_objdir" >&6; }
14594objdir=$lt_cv_objdir
14595
14596
14597
14598
14599
14600cat >>confdefs.h <<_ACEOF
14601#define LT_OBJDIR "$lt_cv_objdir/"
14602_ACEOF
14603
14604
14605
14606
cristy73bd4a52010-10-05 11:24:23 +000014607case $host_os in
14608aix3*)
14609 # AIX sometimes has problems with the GCC collect2 program. For some
14610 # reason, if we set the COLLECT_NAMES environment variable, the problems
14611 # vanish in a puff of smoke.
14612 if test "X${COLLECT_NAMES+set}" != Xset; then
14613 COLLECT_NAMES=
14614 export COLLECT_NAMES
14615 fi
14616 ;;
14617esac
14618
cristy73bd4a52010-10-05 11:24:23 +000014619# Global variables:
14620ofile=libtool
14621can_build_shared=yes
14622
14623# All known linkers require a `.a' archive for static linking (except MSVC,
14624# which needs '.lib').
14625libext=a
14626
14627with_gnu_ld="$lt_cv_prog_gnu_ld"
14628
14629old_CC="$CC"
14630old_CFLAGS="$CFLAGS"
14631
14632# Set sane defaults for various variables
14633test -z "$CC" && CC=cc
14634test -z "$LTCC" && LTCC=$CC
14635test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14636test -z "$LD" && LD=ld
14637test -z "$ac_objext" && ac_objext=o
14638
14639for cc_temp in $compiler""; do
14640 case $cc_temp in
14641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14643 \-*) ;;
14644 *) break;;
14645 esac
14646done
cristy0c60a692010-11-04 01:09:47 +000014647cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014648
14649
14650# Only perform the check for file, if the check method requires it
14651test -z "$MAGIC_CMD" && MAGIC_CMD=file
14652case $deplibs_check_method in
14653file_magic*)
14654 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14656$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014657if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014658 $as_echo_n "(cached) " >&6
14659else
14660 case $MAGIC_CMD in
14661[\\/*] | ?:[\\/]*)
14662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14663 ;;
14664*)
14665 lt_save_MAGIC_CMD="$MAGIC_CMD"
14666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14668 for ac_dir in $ac_dummy; do
14669 IFS="$lt_save_ifs"
14670 test -z "$ac_dir" && ac_dir=.
14671 if test -f $ac_dir/${ac_tool_prefix}file; then
14672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14673 if test -n "$file_magic_test_file"; then
14674 case $deplibs_check_method in
14675 "file_magic "*)
14676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14679 $EGREP "$file_magic_regex" > /dev/null; then
14680 :
14681 else
14682 cat <<_LT_EOF 1>&2
14683
14684*** Warning: the command libtool uses to detect shared libraries,
14685*** $file_magic_cmd, produces output that libtool cannot recognize.
14686*** The result is that libtool may fail to recognize shared libraries
14687*** as such. This will affect the creation of libtool libraries that
14688*** depend on shared libraries, but programs linked with such libtool
14689*** libraries will work regardless of this problem. Nevertheless, you
14690*** may want to report the problem to your system manager and/or to
14691*** bug-libtool@gnu.org
14692
14693_LT_EOF
14694 fi ;;
14695 esac
14696 fi
14697 break
14698 fi
14699 done
14700 IFS="$lt_save_ifs"
14701 MAGIC_CMD="$lt_save_MAGIC_CMD"
14702 ;;
14703esac
14704fi
14705
14706MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14707if test -n "$MAGIC_CMD"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14709$as_echo "$MAGIC_CMD" >&6; }
14710else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712$as_echo "no" >&6; }
14713fi
14714
14715
14716
14717
14718
14719if test -z "$lt_cv_path_MAGIC_CMD"; then
14720 if test -n "$ac_tool_prefix"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14722$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014723if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014724 $as_echo_n "(cached) " >&6
14725else
14726 case $MAGIC_CMD in
14727[\\/*] | ?:[\\/]*)
14728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14729 ;;
14730*)
14731 lt_save_MAGIC_CMD="$MAGIC_CMD"
14732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14734 for ac_dir in $ac_dummy; do
14735 IFS="$lt_save_ifs"
14736 test -z "$ac_dir" && ac_dir=.
14737 if test -f $ac_dir/file; then
14738 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14739 if test -n "$file_magic_test_file"; then
14740 case $deplibs_check_method in
14741 "file_magic "*)
14742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14745 $EGREP "$file_magic_regex" > /dev/null; then
14746 :
14747 else
14748 cat <<_LT_EOF 1>&2
14749
14750*** Warning: the command libtool uses to detect shared libraries,
14751*** $file_magic_cmd, produces output that libtool cannot recognize.
14752*** The result is that libtool may fail to recognize shared libraries
14753*** as such. This will affect the creation of libtool libraries that
14754*** depend on shared libraries, but programs linked with such libtool
14755*** libraries will work regardless of this problem. Nevertheless, you
14756*** may want to report the problem to your system manager and/or to
14757*** bug-libtool@gnu.org
14758
14759_LT_EOF
14760 fi ;;
14761 esac
14762 fi
14763 break
14764 fi
14765 done
14766 IFS="$lt_save_ifs"
14767 MAGIC_CMD="$lt_save_MAGIC_CMD"
14768 ;;
14769esac
14770fi
14771
14772MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14773if test -n "$MAGIC_CMD"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14775$as_echo "$MAGIC_CMD" >&6; }
14776else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778$as_echo "no" >&6; }
14779fi
14780
14781
14782 else
14783 MAGIC_CMD=:
14784 fi
14785fi
14786
14787 fi
14788 ;;
14789esac
14790
14791# Use C for the default configuration in the libtool script
14792
14793lt_save_CC="$CC"
14794ac_ext=c
14795ac_cpp='$CPP $CPPFLAGS'
14796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14798ac_compiler_gnu=$ac_cv_c_compiler_gnu
14799
14800
14801# Source file extension for C test sources.
14802ac_ext=c
14803
14804# Object file extension for compiled C test sources.
14805objext=o
14806objext=$objext
14807
14808# Code to be used in simple compile tests
14809lt_simple_compile_test_code="int some_variable = 0;"
14810
14811# Code to be used in simple link tests
14812lt_simple_link_test_code='int main(){return(0);}'
14813
14814
14815
14816
14817
14818
14819
14820# If no C compiler was specified, use CC.
14821LTCC=${LTCC-"$CC"}
14822
14823# If no C compiler flags were specified, use CFLAGS.
14824LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14825
14826# Allow CC to be a program name with arguments.
14827compiler=$CC
14828
14829# Save the default compiler, since it gets overwritten when the other
14830# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14831compiler_DEFAULT=$CC
14832
14833# save warnings/boilerplate of simple test code
14834ac_outfile=conftest.$ac_objext
14835echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14836eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14837_lt_compiler_boilerplate=`cat conftest.err`
14838$RM conftest*
14839
14840ac_outfile=conftest.$ac_objext
14841echo "$lt_simple_link_test_code" >conftest.$ac_ext
14842eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14843_lt_linker_boilerplate=`cat conftest.err`
14844$RM -r conftest*
14845
14846
14847## CAVEAT EMPTOR:
14848## There is no encapsulation within the following macros, do not change
14849## the running order or otherwise move them around unless you know exactly
14850## what you are doing...
14851if test -n "$compiler"; then
14852
14853lt_prog_compiler_no_builtin_flag=
14854
14855if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014856 case $cc_basename in
14857 nvcc*)
14858 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14859 *)
14860 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14861 esac
cristy73bd4a52010-10-05 11:24:23 +000014862
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14864$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014865if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014866 $as_echo_n "(cached) " >&6
14867else
14868 lt_cv_prog_compiler_rtti_exceptions=no
14869 ac_outfile=conftest.$ac_objext
14870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14871 lt_compiler_flag="-fno-rtti -fno-exceptions"
14872 # Insert the option either (1) after the last *FLAGS variable, or
14873 # (2) before a word containing "conftest.", or (3) at the end.
14874 # Note that $ac_compile itself does not contain backslashes and begins
14875 # with a dollar sign (not a hyphen), so the echo should work correctly.
14876 # The option is referenced via a variable to avoid confusing sed.
14877 lt_compile=`echo "$ac_compile" | $SED \
14878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14880 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014882 (eval "$lt_compile" 2>conftest.err)
14883 ac_status=$?
14884 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014886 if (exit $ac_status) && test -s "$ac_outfile"; then
14887 # The compiler can only warn and ignore the option if not recognized
14888 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14891 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14892 lt_cv_prog_compiler_rtti_exceptions=yes
14893 fi
14894 fi
14895 $RM conftest*
14896
14897fi
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14899$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14900
14901if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14902 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14903else
14904 :
14905fi
14906
14907fi
14908
14909
14910
14911
14912
14913
14914 lt_prog_compiler_wl=
14915lt_prog_compiler_pic=
14916lt_prog_compiler_static=
14917
cristy73bd4a52010-10-05 11:24:23 +000014918
14919 if test "$GCC" = yes; then
14920 lt_prog_compiler_wl='-Wl,'
14921 lt_prog_compiler_static='-static'
14922
14923 case $host_os in
14924 aix*)
14925 # All AIX code is PIC.
14926 if test "$host_cpu" = ia64; then
14927 # AIX 5 now supports IA64 processor
14928 lt_prog_compiler_static='-Bstatic'
14929 fi
14930 ;;
14931
14932 amigaos*)
14933 case $host_cpu in
14934 powerpc)
14935 # see comment about AmigaOS4 .so support
14936 lt_prog_compiler_pic='-fPIC'
14937 ;;
14938 m68k)
14939 # FIXME: we need at least 68020 code to build shared libraries, but
14940 # adding the `-m68020' flag to GCC prevents building anything better,
14941 # like `-m68040'.
14942 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14943 ;;
14944 esac
14945 ;;
14946
14947 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14948 # PIC is the default for these OSes.
14949 ;;
14950
14951 mingw* | cygwin* | pw32* | os2* | cegcc*)
14952 # This hack is so that the source file can tell whether it is being
14953 # built for inclusion in a dll (and should export symbols for example).
14954 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14955 # (--disable-auto-import) libraries
14956 lt_prog_compiler_pic='-DDLL_EXPORT'
14957 ;;
14958
14959 darwin* | rhapsody*)
14960 # PIC is the default on this platform
14961 # Common symbols not allowed in MH_DYLIB files
14962 lt_prog_compiler_pic='-fno-common'
14963 ;;
14964
cristy0c60a692010-11-04 01:09:47 +000014965 haiku*)
14966 # PIC is the default for Haiku.
14967 # The "-static" flag exists, but is broken.
14968 lt_prog_compiler_static=
14969 ;;
14970
cristy73bd4a52010-10-05 11:24:23 +000014971 hpux*)
14972 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14973 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14974 # sets the default TLS model and affects inlining.
14975 case $host_cpu in
14976 hppa*64*)
14977 # +Z the default
14978 ;;
14979 *)
14980 lt_prog_compiler_pic='-fPIC'
14981 ;;
14982 esac
14983 ;;
14984
14985 interix[3-9]*)
14986 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14987 # Instead, we relocate shared libraries at runtime.
14988 ;;
14989
14990 msdosdjgpp*)
14991 # Just because we use GCC doesn't mean we suddenly get shared libraries
14992 # on systems that don't support them.
14993 lt_prog_compiler_can_build_shared=no
14994 enable_shared=no
14995 ;;
14996
14997 *nto* | *qnx*)
14998 # QNX uses GNU C++, but need to define -shared option too, otherwise
14999 # it will coredump.
15000 lt_prog_compiler_pic='-fPIC -shared'
15001 ;;
15002
15003 sysv4*MP*)
15004 if test -d /usr/nec; then
15005 lt_prog_compiler_pic=-Kconform_pic
15006 fi
15007 ;;
15008
15009 *)
15010 lt_prog_compiler_pic='-fPIC'
15011 ;;
15012 esac
cristy0c60a692010-11-04 01:09:47 +000015013
15014 case $cc_basename in
15015 nvcc*) # Cuda Compiler Driver 2.2
15016 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015017 if test -n "$lt_prog_compiler_pic"; then
15018 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15019 fi
cristy0c60a692010-11-04 01:09:47 +000015020 ;;
15021 esac
cristy73bd4a52010-10-05 11:24:23 +000015022 else
15023 # PORTME Check for flag to pass linker flags through the system compiler.
15024 case $host_os in
15025 aix*)
15026 lt_prog_compiler_wl='-Wl,'
15027 if test "$host_cpu" = ia64; then
15028 # AIX 5 now supports IA64 processor
15029 lt_prog_compiler_static='-Bstatic'
15030 else
15031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15032 fi
15033 ;;
15034
15035 mingw* | cygwin* | pw32* | os2* | cegcc*)
15036 # This hack is so that the source file can tell whether it is being
15037 # built for inclusion in a dll (and should export symbols for example).
15038 lt_prog_compiler_pic='-DDLL_EXPORT'
15039 ;;
15040
15041 hpux9* | hpux10* | hpux11*)
15042 lt_prog_compiler_wl='-Wl,'
15043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15044 # not for PA HP-UX.
15045 case $host_cpu in
15046 hppa*64*|ia64*)
15047 # +Z the default
15048 ;;
15049 *)
15050 lt_prog_compiler_pic='+Z'
15051 ;;
15052 esac
15053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15054 lt_prog_compiler_static='${wl}-a ${wl}archive'
15055 ;;
15056
15057 irix5* | irix6* | nonstopux*)
15058 lt_prog_compiler_wl='-Wl,'
15059 # PIC (with -KPIC) is the default.
15060 lt_prog_compiler_static='-non_shared'
15061 ;;
15062
cristy0c60a692010-11-04 01:09:47 +000015063 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015064 case $cc_basename in
15065 # old Intel for x86_64 which still supported -KPIC.
15066 ecc*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-static'
15070 ;;
15071 # icc used to be incompatible with GCC.
15072 # ICC 10 doesn't accept -KPIC any more.
15073 icc* | ifort*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-fPIC'
15076 lt_prog_compiler_static='-static'
15077 ;;
15078 # Lahey Fortran 8.1.
15079 lf95*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='--shared'
15082 lt_prog_compiler_static='--static'
15083 ;;
cristyda16f162011-02-19 23:52:17 +000015084 nagfor*)
15085 # NAG Fortran compiler
15086 lt_prog_compiler_wl='-Wl,-Wl,,'
15087 lt_prog_compiler_pic='-PIC'
15088 lt_prog_compiler_static='-Bstatic'
15089 ;;
cristy0c60a692010-11-04 01:09:47 +000015090 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015091 # Portland Group compilers (*not* the Pentium gcc compiler,
15092 # which looks to be a dead project)
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_pic='-fpic'
15095 lt_prog_compiler_static='-Bstatic'
15096 ;;
15097 ccc*)
15098 lt_prog_compiler_wl='-Wl,'
15099 # All Alpha code is PIC.
15100 lt_prog_compiler_static='-non_shared'
15101 ;;
cristy0c60a692010-11-04 01:09:47 +000015102 xl* | bgxl* | bgf* | mpixl*)
15103 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_pic='-qpic'
15106 lt_prog_compiler_static='-qstaticlink'
15107 ;;
15108 *)
15109 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015110 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015111 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15112 lt_prog_compiler_pic='-KPIC'
15113 lt_prog_compiler_static='-Bstatic'
15114 lt_prog_compiler_wl=''
15115 ;;
cristy99bd5232011-12-07 14:38:20 +000015116 *Sun\ F* | *Sun*Fortran*)
15117 lt_prog_compiler_pic='-KPIC'
15118 lt_prog_compiler_static='-Bstatic'
15119 lt_prog_compiler_wl='-Qoption ld '
15120 ;;
cristy73bd4a52010-10-05 11:24:23 +000015121 *Sun\ C*)
15122 # Sun C 5.9
15123 lt_prog_compiler_pic='-KPIC'
15124 lt_prog_compiler_static='-Bstatic'
15125 lt_prog_compiler_wl='-Wl,'
15126 ;;
cristy99bd5232011-12-07 14:38:20 +000015127 *Intel*\ [CF]*Compiler*)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_pic='-fPIC'
15130 lt_prog_compiler_static='-static'
15131 ;;
15132 *Portland\ Group*)
15133 lt_prog_compiler_wl='-Wl,'
15134 lt_prog_compiler_pic='-fpic'
15135 lt_prog_compiler_static='-Bstatic'
15136 ;;
cristy73bd4a52010-10-05 11:24:23 +000015137 esac
15138 ;;
15139 esac
15140 ;;
15141
15142 newsos6)
15143 lt_prog_compiler_pic='-KPIC'
15144 lt_prog_compiler_static='-Bstatic'
15145 ;;
15146
15147 *nto* | *qnx*)
15148 # QNX uses GNU C++, but need to define -shared option too, otherwise
15149 # it will coredump.
15150 lt_prog_compiler_pic='-fPIC -shared'
15151 ;;
15152
15153 osf3* | osf4* | osf5*)
15154 lt_prog_compiler_wl='-Wl,'
15155 # All OSF/1 code is PIC.
15156 lt_prog_compiler_static='-non_shared'
15157 ;;
15158
15159 rdos*)
15160 lt_prog_compiler_static='-non_shared'
15161 ;;
15162
15163 solaris*)
15164 lt_prog_compiler_pic='-KPIC'
15165 lt_prog_compiler_static='-Bstatic'
15166 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015167 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015168 lt_prog_compiler_wl='-Qoption ld ';;
15169 *)
15170 lt_prog_compiler_wl='-Wl,';;
15171 esac
15172 ;;
15173
15174 sunos4*)
15175 lt_prog_compiler_wl='-Qoption ld '
15176 lt_prog_compiler_pic='-PIC'
15177 lt_prog_compiler_static='-Bstatic'
15178 ;;
15179
15180 sysv4 | sysv4.2uw2* | sysv4.3*)
15181 lt_prog_compiler_wl='-Wl,'
15182 lt_prog_compiler_pic='-KPIC'
15183 lt_prog_compiler_static='-Bstatic'
15184 ;;
15185
15186 sysv4*MP*)
15187 if test -d /usr/nec ;then
15188 lt_prog_compiler_pic='-Kconform_pic'
15189 lt_prog_compiler_static='-Bstatic'
15190 fi
15191 ;;
15192
15193 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_pic='-KPIC'
15196 lt_prog_compiler_static='-Bstatic'
15197 ;;
15198
15199 unicos*)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_can_build_shared=no
15202 ;;
15203
15204 uts4*)
15205 lt_prog_compiler_pic='-pic'
15206 lt_prog_compiler_static='-Bstatic'
15207 ;;
15208
15209 *)
15210 lt_prog_compiler_can_build_shared=no
15211 ;;
15212 esac
15213 fi
15214
15215case $host_os in
15216 # For platforms which do not support PIC, -DPIC is meaningless:
15217 *djgpp*)
15218 lt_prog_compiler_pic=
15219 ;;
15220 *)
15221 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15222 ;;
15223esac
cristy73bd4a52010-10-05 11:24:23 +000015224
cristyda16f162011-02-19 23:52:17 +000015225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15226$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15227if ${lt_cv_prog_compiler_pic+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229else
15230 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15231fi
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15233$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15234lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015235
15236#
15237# Check to make sure the PIC flag actually works.
15238#
15239if test -n "$lt_prog_compiler_pic"; then
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15241$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015242if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015243 $as_echo_n "(cached) " >&6
15244else
15245 lt_cv_prog_compiler_pic_works=no
15246 ac_outfile=conftest.$ac_objext
15247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15249 # Insert the option either (1) after the last *FLAGS variable, or
15250 # (2) before a word containing "conftest.", or (3) at the end.
15251 # Note that $ac_compile itself does not contain backslashes and begins
15252 # with a dollar sign (not a hyphen), so the echo should work correctly.
15253 # The option is referenced via a variable to avoid confusing sed.
15254 lt_compile=`echo "$ac_compile" | $SED \
15255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15257 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015259 (eval "$lt_compile" 2>conftest.err)
15260 ac_status=$?
15261 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015263 if (exit $ac_status) && test -s "$ac_outfile"; then
15264 # The compiler can only warn and ignore the option if not recognized
15265 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15269 lt_cv_prog_compiler_pic_works=yes
15270 fi
15271 fi
15272 $RM conftest*
15273
15274fi
15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15276$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15277
15278if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15279 case $lt_prog_compiler_pic in
15280 "" | " "*) ;;
15281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15282 esac
15283else
15284 lt_prog_compiler_pic=
15285 lt_prog_compiler_can_build_shared=no
15286fi
15287
15288fi
15289
15290
15291
15292
15293
15294
cristyda16f162011-02-19 23:52:17 +000015295
15296
15297
15298
15299
cristy73bd4a52010-10-05 11:24:23 +000015300#
15301# Check to make sure the static flag actually works.
15302#
15303wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15305$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015306if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015307 $as_echo_n "(cached) " >&6
15308else
15309 lt_cv_prog_compiler_static_works=no
15310 save_LDFLAGS="$LDFLAGS"
15311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15314 # The linker can only warn and ignore the option if not recognized
15315 # So say no if there are warnings
15316 if test -s conftest.err; then
15317 # Append any errors to the config.log.
15318 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015319 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15321 if diff conftest.exp conftest.er2 >/dev/null; then
15322 lt_cv_prog_compiler_static_works=yes
15323 fi
15324 else
15325 lt_cv_prog_compiler_static_works=yes
15326 fi
15327 fi
15328 $RM -r conftest*
15329 LDFLAGS="$save_LDFLAGS"
15330
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15333$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15334
15335if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15336 :
15337else
15338 lt_prog_compiler_static=
15339fi
15340
15341
15342
15343
15344
15345
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15348$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015349if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015350 $as_echo_n "(cached) " >&6
15351else
15352 lt_cv_prog_compiler_c_o=no
15353 $RM -r conftest 2>/dev/null
15354 mkdir conftest
15355 cd conftest
15356 mkdir out
15357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15358
15359 lt_compiler_flag="-o out/conftest2.$ac_objext"
15360 # Insert the option either (1) after the last *FLAGS variable, or
15361 # (2) before a word containing "conftest.", or (3) at the end.
15362 # Note that $ac_compile itself does not contain backslashes and begins
15363 # with a dollar sign (not a hyphen), so the echo should work correctly.
15364 lt_compile=`echo "$ac_compile" | $SED \
15365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15367 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015369 (eval "$lt_compile" 2>out/conftest.err)
15370 ac_status=$?
15371 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15374 then
15375 # The compiler can only warn and ignore the option if not recognized
15376 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15380 lt_cv_prog_compiler_c_o=yes
15381 fi
15382 fi
15383 chmod u+w . 2>&5
15384 $RM conftest*
15385 # SGI C++ compiler will create directory out/ii_files/ for
15386 # template instantiation
15387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15388 $RM out/* && rmdir out
15389 cd ..
15390 $RM -r conftest
15391 $RM conftest*
15392
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15395$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15396
15397
15398
15399
15400
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015404if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015405 $as_echo_n "(cached) " >&6
15406else
15407 lt_cv_prog_compiler_c_o=no
15408 $RM -r conftest 2>/dev/null
15409 mkdir conftest
15410 cd conftest
15411 mkdir out
15412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15413
15414 lt_compiler_flag="-o out/conftest2.$ac_objext"
15415 # Insert the option either (1) after the last *FLAGS variable, or
15416 # (2) before a word containing "conftest.", or (3) at the end.
15417 # Note that $ac_compile itself does not contain backslashes and begins
15418 # with a dollar sign (not a hyphen), so the echo should work correctly.
15419 lt_compile=`echo "$ac_compile" | $SED \
15420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15422 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015424 (eval "$lt_compile" 2>out/conftest.err)
15425 ac_status=$?
15426 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15429 then
15430 # The compiler can only warn and ignore the option if not recognized
15431 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15435 lt_cv_prog_compiler_c_o=yes
15436 fi
15437 fi
15438 chmod u+w . 2>&5
15439 $RM conftest*
15440 # SGI C++ compiler will create directory out/ii_files/ for
15441 # template instantiation
15442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15443 $RM out/* && rmdir out
15444 cd ..
15445 $RM -r conftest
15446 $RM conftest*
15447
15448fi
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15450$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15451
15452
15453
15454
15455hard_links="nottested"
15456if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15457 # do not overwrite the value of need_locks provided by the user
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15459$as_echo_n "checking if we can lock with hard links... " >&6; }
15460 hard_links=yes
15461 $RM conftest*
15462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15463 touch conftest.a
15464 ln conftest.a conftest.b 2>&5 || hard_links=no
15465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15467$as_echo "$hard_links" >&6; }
15468 if test "$hard_links" = no; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15470$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15471 need_locks=warn
15472 fi
15473else
15474 need_locks=no
15475fi
15476
15477
15478
15479
15480
15481
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15483$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15484
15485 runpath_var=
15486 allow_undefined_flag=
15487 always_export_symbols=no
15488 archive_cmds=
15489 archive_expsym_cmds=
15490 compiler_needs_object=no
15491 enable_shared_with_static_runtimes=no
15492 export_dynamic_flag_spec=
15493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15494 hardcode_automatic=no
15495 hardcode_direct=no
15496 hardcode_direct_absolute=no
15497 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015498 hardcode_libdir_separator=
15499 hardcode_minus_L=no
15500 hardcode_shlibpath_var=unsupported
15501 inherit_rpath=no
15502 link_all_deplibs=unknown
15503 module_cmds=
15504 module_expsym_cmds=
15505 old_archive_from_new_cmds=
15506 old_archive_from_expsyms_cmds=
15507 thread_safe_flag_spec=
15508 whole_archive_flag_spec=
15509 # include_expsyms should be a list of space-separated symbols to be *always*
15510 # included in the symbol list
15511 include_expsyms=
15512 # exclude_expsyms can be an extended regexp of symbols to exclude
15513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15515 # as well as any symbol that contains `d'.
15516 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15518 # platforms (ab)use it in PIC code, but their linkers get confused if
15519 # the symbol is explicitly referenced. Since portable code cannot
15520 # rely on this symbol name, it's probably fine to never include it in
15521 # preloaded symbol tables.
15522 # Exclude shared library initialization/finalization symbols.
15523 extract_expsyms_cmds=
15524
15525 case $host_os in
15526 cygwin* | mingw* | pw32* | cegcc*)
15527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15528 # When not using gcc, we currently assume that we are using
15529 # Microsoft Visual C++.
15530 if test "$GCC" != yes; then
15531 with_gnu_ld=no
15532 fi
15533 ;;
15534 interix*)
15535 # we just hope/assume this is gcc and not c89 (= MSVC++)
15536 with_gnu_ld=yes
15537 ;;
15538 openbsd*)
15539 with_gnu_ld=no
15540 ;;
15541 esac
15542
15543 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015544
15545 # On some targets, GNU ld is compatible enough with the native linker
15546 # that we're better off using the native interface for both.
15547 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015548 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015549 case $host_os in
15550 aix*)
15551 # The AIX port of GNU ld has always aspired to compatibility
15552 # with the native linker. However, as the warning in the GNU ld
15553 # block says, versions before 2.19.5* couldn't really create working
15554 # shared libraries, regardless of the interface used.
15555 case `$LD -v 2>&1` in
15556 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15557 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15558 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15559 *)
15560 lt_use_gnu_ld_interface=yes
15561 ;;
15562 esac
15563 ;;
15564 *)
15565 lt_use_gnu_ld_interface=yes
15566 ;;
15567 esac
15568 fi
15569
15570 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015571 # If archive_cmds runs LD, not CC, wlarc should be empty
15572 wlarc='${wl}'
15573
15574 # Set some defaults for GNU ld with shared library support. These
15575 # are reset later if shared libraries are not supported. Putting them
15576 # here allows them to be overridden if necessary.
15577 runpath_var=LD_RUN_PATH
15578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15579 export_dynamic_flag_spec='${wl}--export-dynamic'
15580 # ancient GNU ld didn't support --whole-archive et. al.
15581 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15583 else
15584 whole_archive_flag_spec=
15585 fi
15586 supports_anon_versioning=no
15587 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015588 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15592 *\ 2.11.*) ;; # other 2.11 versions
15593 *) supports_anon_versioning=yes ;;
15594 esac
15595
15596 # See if GNU ld supports shared libraries.
15597 case $host_os in
15598 aix[3-9]*)
15599 # On AIX/PPC, the GNU linker is very broken
15600 if test "$host_cpu" != ia64; then
15601 ld_shlibs=no
15602 cat <<_LT_EOF 1>&2
15603
cristy0c60a692010-11-04 01:09:47 +000015604*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015605*** to be unable to reliably create shared libraries on AIX.
15606*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015607*** really care for shared libraries, you may want to install binutils
15608*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15609*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015610
15611_LT_EOF
15612 fi
15613 ;;
15614
15615 amigaos*)
15616 case $host_cpu in
15617 powerpc)
15618 # see comment about AmigaOS4 .so support
15619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15620 archive_expsym_cmds=''
15621 ;;
15622 m68k)
15623 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)'
15624 hardcode_libdir_flag_spec='-L$libdir'
15625 hardcode_minus_L=yes
15626 ;;
15627 esac
15628 ;;
15629
15630 beos*)
15631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15632 allow_undefined_flag=unsupported
15633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15634 # support --undefined. This deserves some investigation. FIXME
15635 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 else
15637 ld_shlibs=no
15638 fi
15639 ;;
15640
15641 cygwin* | mingw* | pw32* | cegcc*)
15642 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15643 # as there is no search path for DLLs.
15644 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015645 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015646 allow_undefined_flag=unsupported
15647 always_export_symbols=no
15648 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015649 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'
15650 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 +000015651
15652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15654 # If the export-symbols file already is a .def file (1st line
15655 # is EXPORTS), use it as is; otherwise, prepend...
15656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15657 cp $export_symbols $output_objdir/$soname.def;
15658 else
15659 echo EXPORTS > $output_objdir/$soname.def;
15660 cat $export_symbols >> $output_objdir/$soname.def;
15661 fi~
15662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15663 else
15664 ld_shlibs=no
15665 fi
15666 ;;
15667
cristy0c60a692010-11-04 01:09:47 +000015668 haiku*)
15669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15670 link_all_deplibs=yes
15671 ;;
15672
cristy73bd4a52010-10-05 11:24:23 +000015673 interix[3-9]*)
15674 hardcode_direct=no
15675 hardcode_shlibpath_var=no
15676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15677 export_dynamic_flag_spec='${wl}-E'
15678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15679 # Instead, shared libraries are loaded at an image base (0x10000000 by
15680 # default) and relocated if they conflict, which is a slow very memory
15681 # consuming and fragmenting process. To avoid this, we pick a random,
15682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15685 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'
15686 ;;
15687
cristy0c60a692010-11-04 01:09:47 +000015688 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015689 tmp_diet=no
15690 if test "$host_os" = linux-dietlibc; then
15691 case $cc_basename in
15692 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15693 esac
15694 fi
15695 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15696 && test "$tmp_diet" = no
15697 then
cristyda16f162011-02-19 23:52:17 +000015698 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015699 tmp_sharedflag='-shared'
15700 case $cc_basename,$host_cpu in
15701 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015702 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 +000015703 tmp_addflag=' $pic_flag'
15704 ;;
cristy0c60a692010-11-04 01:09:47 +000015705 pgf77* | pgf90* | pgf95* | pgfortran*)
15706 # Portland Group f77 and f90 compilers
15707 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 +000015708 tmp_addflag=' $pic_flag -Mnomain' ;;
15709 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15710 tmp_addflag=' -i_dynamic' ;;
15711 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15712 tmp_addflag=' -i_dynamic -nofor_main' ;;
15713 ifc* | ifort*) # Intel Fortran compiler
15714 tmp_addflag=' -nofor_main' ;;
15715 lf95*) # Lahey Fortran 8.1
15716 whole_archive_flag_spec=
15717 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015719 tmp_sharedflag='-qmkshrobj'
15720 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015721 nvcc*) # Cuda Compiler Driver 2.2
15722 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'
15723 compiler_needs_object=yes
15724 ;;
cristy73bd4a52010-10-05 11:24:23 +000015725 esac
15726 case `$CC -V 2>&1 | sed 5q` in
15727 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015728 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 +000015729 compiler_needs_object=yes
15730 tmp_sharedflag='-G' ;;
15731 *Sun\ F*) # Sun Fortran 8.3
15732 tmp_sharedflag='-G' ;;
15733 esac
15734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735
15736 if test "x$supports_anon_versioning" = xyes; then
15737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15739 echo "local: *; };" >> $output_objdir/$libname.ver~
15740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15741 fi
15742
15743 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015744 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015745 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15746 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015748 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015749 if test "x$supports_anon_versioning" = xyes; then
15750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15752 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015753 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015754 fi
15755 ;;
15756 esac
15757 else
15758 ld_shlibs=no
15759 fi
15760 ;;
15761
15762 netbsd*)
15763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15764 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15765 wlarc=
15766 else
cristyda16f162011-02-19 23:52:17 +000015767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15768 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 +000015769 fi
15770 ;;
15771
15772 solaris*)
15773 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15774 ld_shlibs=no
15775 cat <<_LT_EOF 1>&2
15776
15777*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15778*** create shared libraries on Solaris systems. Therefore, libtool
15779*** is disabling shared libraries support. We urge you to upgrade GNU
15780*** binutils to release 2.9.1 or newer. Another option is to modify
15781*** your PATH or compiler configuration so that the native linker is
15782*** used, and then restart.
15783
15784_LT_EOF
15785 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 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 +000015788 else
15789 ld_shlibs=no
15790 fi
15791 ;;
15792
15793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15794 case `$LD -v 2>&1` in
15795 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15796 ld_shlibs=no
15797 cat <<_LT_EOF 1>&2
15798
15799*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15800*** reliably create shared libraries on SCO systems. Therefore, libtool
15801*** is disabling shared libraries support. We urge you to upgrade GNU
15802*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15803*** your PATH or compiler configuration so that the native linker is
15804*** used, and then restart.
15805
15806_LT_EOF
15807 ;;
15808 *)
15809 # For security reasons, it is highly recommended that you always
15810 # use absolute paths for naming shared libraries, and exclude the
15811 # DT_RUNPATH tag from executables and libraries. But doing so
15812 # requires that you compile everything twice, which is a pain.
15813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15817 else
15818 ld_shlibs=no
15819 fi
15820 ;;
15821 esac
15822 ;;
15823
15824 sunos4*)
15825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15826 wlarc=
15827 hardcode_direct=yes
15828 hardcode_shlibpath_var=no
15829 ;;
15830
15831 *)
15832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15834 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 +000015835 else
15836 ld_shlibs=no
15837 fi
15838 ;;
15839 esac
15840
15841 if test "$ld_shlibs" = no; then
15842 runpath_var=
15843 hardcode_libdir_flag_spec=
15844 export_dynamic_flag_spec=
15845 whole_archive_flag_spec=
15846 fi
15847 else
15848 # PORTME fill in a description of your system's linker (not GNU ld)
15849 case $host_os in
15850 aix3*)
15851 allow_undefined_flag=unsupported
15852 always_export_symbols=yes
15853 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'
15854 # Note: this linker hardcodes the directories in LIBPATH if there
15855 # are no directories specified by -L.
15856 hardcode_minus_L=yes
15857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15858 # Neither direct hardcoding nor static linking is supported with a
15859 # broken collect2.
15860 hardcode_direct=unsupported
15861 fi
15862 ;;
15863
15864 aix[4-9]*)
15865 if test "$host_cpu" = ia64; then
15866 # On IA64, the linker does run time linking by default, so we don't
15867 # have to do anything special.
15868 aix_use_runtimelinking=no
15869 exp_sym_flag='-Bexport'
15870 no_entry_flag=""
15871 else
15872 # If we're using GNU nm, then we don't want the "-C" option.
15873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015874 # Also, AIX nm treats weak defined symbols like other global
15875 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015876 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015877 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 +000015878 else
15879 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'
15880 fi
15881 aix_use_runtimelinking=no
15882
15883 # Test if we are trying to use run time linking or normal
15884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15885 # need to do runtime linking.
15886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15887 for ld_flag in $LDFLAGS; do
15888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15889 aix_use_runtimelinking=yes
15890 break
15891 fi
15892 done
15893 ;;
15894 esac
15895
15896 exp_sym_flag='-bexport'
15897 no_entry_flag='-bnoentry'
15898 fi
15899
15900 # When large executables or shared objects are built, AIX ld can
15901 # have problems creating the table of contents. If linking a library
15902 # or program results in "error TOC overflow" add -mminimal-toc to
15903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15905
15906 archive_cmds=''
15907 hardcode_direct=yes
15908 hardcode_direct_absolute=yes
15909 hardcode_libdir_separator=':'
15910 link_all_deplibs=yes
15911 file_list_spec='${wl}-f,'
15912
15913 if test "$GCC" = yes; then
15914 case $host_os in aix4.[012]|aix4.[012].*)
15915 # We only want to do this on AIX 4.2 and lower, the check
15916 # below for broken collect2 doesn't work under 4.3+
15917 collect2name=`${CC} -print-prog-name=collect2`
15918 if test -f "$collect2name" &&
15919 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15920 then
15921 # We have reworked collect2
15922 :
15923 else
15924 # We have old collect2
15925 hardcode_direct=unsupported
15926 # It fails to find uninstalled libraries when the uninstalled
15927 # path is not listed in the libpath. Setting hardcode_minus_L
15928 # to unsupported forces relinking
15929 hardcode_minus_L=yes
15930 hardcode_libdir_flag_spec='-L$libdir'
15931 hardcode_libdir_separator=
15932 fi
15933 ;;
15934 esac
15935 shared_flag='-shared'
15936 if test "$aix_use_runtimelinking" = yes; then
15937 shared_flag="$shared_flag "'${wl}-G'
15938 fi
15939 else
15940 # not using gcc
15941 if test "$host_cpu" = ia64; then
15942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15943 # chokes on -Wl,-G. The following line is correct:
15944 shared_flag='-G'
15945 else
15946 if test "$aix_use_runtimelinking" = yes; then
15947 shared_flag='${wl}-G'
15948 else
15949 shared_flag='${wl}-bM:SRE'
15950 fi
15951 fi
15952 fi
15953
15954 export_dynamic_flag_spec='${wl}-bexpall'
15955 # It seems that -bexpall does not export symbols beginning with
15956 # underscore (_), so it is better to generate a list of symbols to export.
15957 always_export_symbols=yes
15958 if test "$aix_use_runtimelinking" = yes; then
15959 # Warning - without using the other runtime loading flags (-brtl),
15960 # -berok will link without error, but may produce a broken library.
15961 allow_undefined_flag='-berok'
15962 # Determine the default libpath from the value encoded in an
15963 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015964 if test "${lt_cv_aix_libpath+set}" = set; then
15965 aix_libpath=$lt_cv_aix_libpath
15966else
15967 if ${lt_cv_aix_libpath_+:} false; then :
15968 $as_echo_n "(cached) " >&6
15969else
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015971/* end confdefs.h. */
15972
15973int
15974main ()
15975{
15976
15977 ;
15978 return 0;
15979}
15980_ACEOF
15981if ac_fn_c_try_link "$LINENO"; then :
15982
cristyda16f162011-02-19 23:52:17 +000015983 lt_aix_libpath_sed='
15984 /Import File Strings/,/^$/ {
15985 /^0/ {
15986 s/^0 *\([^ ]*\) *$/\1/
15987 p
15988 }
15989 }'
15990 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15991 # Check for a 64-bit object if we didn't find anything.
15992 if test -z "$lt_cv_aix_libpath_"; then
15993 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15994 fi
cristy73bd4a52010-10-05 11:24:23 +000015995fi
15996rm -f core conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015998 if test -z "$lt_cv_aix_libpath_"; then
15999 lt_cv_aix_libpath_="/usr/lib:/lib"
16000 fi
16001
16002fi
16003
16004 aix_libpath=$lt_cv_aix_libpath_
16005fi
cristy73bd4a52010-10-05 11:24:23 +000016006
16007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016008 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 +000016009 else
16010 if test "$host_cpu" = ia64; then
16011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16012 allow_undefined_flag="-z nodefs"
16013 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"
16014 else
16015 # Determine the default libpath from the value encoded in an
16016 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016017 if test "${lt_cv_aix_libpath+set}" = set; then
16018 aix_libpath=$lt_cv_aix_libpath
16019else
16020 if ${lt_cv_aix_libpath_+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022else
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016024/* end confdefs.h. */
16025
16026int
16027main ()
16028{
16029
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_link "$LINENO"; then :
16035
cristyda16f162011-02-19 23:52:17 +000016036 lt_aix_libpath_sed='
16037 /Import File Strings/,/^$/ {
16038 /^0/ {
16039 s/^0 *\([^ ]*\) *$/\1/
16040 p
16041 }
16042 }'
16043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16044 # Check for a 64-bit object if we didn't find anything.
16045 if test -z "$lt_cv_aix_libpath_"; then
16046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047 fi
cristy73bd4a52010-10-05 11:24:23 +000016048fi
16049rm -f core conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016051 if test -z "$lt_cv_aix_libpath_"; then
16052 lt_cv_aix_libpath_="/usr/lib:/lib"
16053 fi
16054
16055fi
16056
16057 aix_libpath=$lt_cv_aix_libpath_
16058fi
cristy73bd4a52010-10-05 11:24:23 +000016059
16060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16061 # Warning - without using the other run time loading flags,
16062 # -berok will link without error, but may produce a broken library.
16063 no_undefined_flag=' ${wl}-bernotok'
16064 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016065 if test "$with_gnu_ld" = yes; then
16066 # We only use this code for GNU lds that support --whole-archive.
16067 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16068 else
16069 # Exported symbols can be pulled into shared objects from archives
16070 whole_archive_flag_spec='$convenience'
16071 fi
cristy73bd4a52010-10-05 11:24:23 +000016072 archive_cmds_need_lc=yes
16073 # This is similar to how AIX traditionally builds its shared libraries.
16074 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'
16075 fi
16076 fi
16077 ;;
16078
16079 amigaos*)
16080 case $host_cpu in
16081 powerpc)
16082 # see comment about AmigaOS4 .so support
16083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084 archive_expsym_cmds=''
16085 ;;
16086 m68k)
16087 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)'
16088 hardcode_libdir_flag_spec='-L$libdir'
16089 hardcode_minus_L=yes
16090 ;;
16091 esac
16092 ;;
16093
16094 bsdi[45]*)
16095 export_dynamic_flag_spec=-rdynamic
16096 ;;
16097
16098 cygwin* | mingw* | pw32* | cegcc*)
16099 # When not using gcc, we currently assume that we are using
16100 # Microsoft Visual C++.
16101 # hardcode_libdir_flag_spec is actually meaningless, as there is
16102 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016103 case $cc_basename in
16104 cl*)
16105 # Native MSVC
16106 hardcode_libdir_flag_spec=' '
16107 allow_undefined_flag=unsupported
16108 always_export_symbols=yes
16109 file_list_spec='@'
16110 # Tell ltmain to make .lib files, not .a files.
16111 libext=lib
16112 # Tell ltmain to make .dll files, not .so files.
16113 shrext_cmds=".dll"
16114 # FIXME: Setting linknames here is a bad hack.
16115 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16117 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16118 else
16119 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16120 fi~
16121 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16122 linknames='
16123 # The linker will not automatically build a static lib if we build a DLL.
16124 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16125 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016126 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16128 # Don't use ranlib
16129 old_postinstall_cmds='chmod 644 $oldlib'
16130 postlink_cmds='lt_outputfile="@OUTPUT@"~
16131 lt_tool_outputfile="@TOOL_OUTPUT@"~
16132 case $lt_outputfile in
16133 *.exe|*.EXE) ;;
16134 *)
16135 lt_outputfile="$lt_outputfile.exe"
16136 lt_tool_outputfile="$lt_tool_outputfile.exe"
16137 ;;
16138 esac~
16139 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16140 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16141 $RM "$lt_outputfile.manifest";
16142 fi'
16143 ;;
16144 *)
16145 # Assume MSVC wrapper
16146 hardcode_libdir_flag_spec=' '
16147 allow_undefined_flag=unsupported
16148 # Tell ltmain to make .lib files, not .a files.
16149 libext=lib
16150 # Tell ltmain to make .dll files, not .so files.
16151 shrext_cmds=".dll"
16152 # FIXME: Setting linknames here is a bad hack.
16153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16154 # The linker will automatically build a .lib file if we build a DLL.
16155 old_archive_from_new_cmds='true'
16156 # FIXME: Should let the user specify the lib program.
16157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16158 enable_shared_with_static_runtimes=yes
16159 ;;
16160 esac
cristy73bd4a52010-10-05 11:24:23 +000016161 ;;
16162
16163 darwin* | rhapsody*)
16164
16165
16166 archive_cmds_need_lc=no
16167 hardcode_direct=no
16168 hardcode_automatic=yes
16169 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016170 if test "$lt_cv_ld_force_load" = "yes"; then
16171 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 +000016172
cristy0c60a692010-11-04 01:09:47 +000016173 else
16174 whole_archive_flag_spec=''
16175 fi
cristy73bd4a52010-10-05 11:24:23 +000016176 link_all_deplibs=yes
16177 allow_undefined_flag="$_lt_dar_allow_undefined"
16178 case $cc_basename in
16179 ifort*) _lt_dar_can_shared=yes ;;
16180 *) _lt_dar_can_shared=$GCC ;;
16181 esac
16182 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016183 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016184 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16185 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16186 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}"
16187 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}"
16188
16189 else
16190 ld_shlibs=no
16191 fi
16192
16193 ;;
16194
16195 dgux*)
16196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_libdir_flag_spec='-L$libdir'
16198 hardcode_shlibpath_var=no
16199 ;;
16200
cristy73bd4a52010-10-05 11:24:23 +000016201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16202 # support. Future versions do this automatically, but an explicit c++rt0.o
16203 # does not break anything, and helps significantly (at the cost of a little
16204 # extra space).
16205 freebsd2.2*)
16206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16207 hardcode_libdir_flag_spec='-R$libdir'
16208 hardcode_direct=yes
16209 hardcode_shlibpath_var=no
16210 ;;
16211
16212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016213 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16215 hardcode_direct=yes
16216 hardcode_minus_L=yes
16217 hardcode_shlibpath_var=no
16218 ;;
16219
16220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16221 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016223 hardcode_libdir_flag_spec='-R$libdir'
16224 hardcode_direct=yes
16225 hardcode_shlibpath_var=no
16226 ;;
16227
16228 hpux9*)
16229 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016230 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 +000016231 else
16232 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'
16233 fi
16234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16235 hardcode_libdir_separator=:
16236 hardcode_direct=yes
16237
16238 # hardcode_minus_L: Not really in the search PATH,
16239 # but as the default location of the library.
16240 hardcode_minus_L=yes
16241 export_dynamic_flag_spec='${wl}-E'
16242 ;;
16243
16244 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016246 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 +000016247 else
16248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16249 fi
16250 if test "$with_gnu_ld" = no; then
16251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016252 hardcode_libdir_separator=:
16253 hardcode_direct=yes
16254 hardcode_direct_absolute=yes
16255 export_dynamic_flag_spec='${wl}-E'
16256 # hardcode_minus_L: Not really in the search PATH,
16257 # but as the default location of the library.
16258 hardcode_minus_L=yes
16259 fi
16260 ;;
16261
16262 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016263 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016264 case $host_cpu in
16265 hppa*64*)
16266 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 ;;
16268 ia64*)
cristyda16f162011-02-19 23:52:17 +000016269 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016270 ;;
16271 *)
cristyda16f162011-02-19 23:52:17 +000016272 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 +000016273 ;;
16274 esac
16275 else
16276 case $host_cpu in
16277 hppa*64*)
16278 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16279 ;;
16280 ia64*)
16281 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16282 ;;
16283 *)
cristy0c60a692010-11-04 01:09:47 +000016284
16285 # Older versions of the 11.00 compiler do not understand -b yet
16286 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16288$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016289if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016290 $as_echo_n "(cached) " >&6
16291else
16292 lt_cv_prog_compiler__b=no
16293 save_LDFLAGS="$LDFLAGS"
16294 LDFLAGS="$LDFLAGS -b"
16295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16297 # The linker can only warn and ignore the option if not recognized
16298 # So say no if there are warnings
16299 if test -s conftest.err; then
16300 # Append any errors to the config.log.
16301 cat conftest.err 1>&5
16302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304 if diff conftest.exp conftest.er2 >/dev/null; then
16305 lt_cv_prog_compiler__b=yes
16306 fi
16307 else
16308 lt_cv_prog_compiler__b=yes
16309 fi
16310 fi
16311 $RM -r conftest*
16312 LDFLAGS="$save_LDFLAGS"
16313
16314fi
16315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16316$as_echo "$lt_cv_prog_compiler__b" >&6; }
16317
16318if test x"$lt_cv_prog_compiler__b" = xyes; then
16319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16320else
16321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16322fi
16323
cristy73bd4a52010-10-05 11:24:23 +000016324 ;;
16325 esac
16326 fi
16327 if test "$with_gnu_ld" = no; then
16328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16329 hardcode_libdir_separator=:
16330
16331 case $host_cpu in
16332 hppa*64*|ia64*)
16333 hardcode_direct=no
16334 hardcode_shlibpath_var=no
16335 ;;
16336 *)
16337 hardcode_direct=yes
16338 hardcode_direct_absolute=yes
16339 export_dynamic_flag_spec='${wl}-E'
16340
16341 # hardcode_minus_L: Not really in the search PATH,
16342 # but as the default location of the library.
16343 hardcode_minus_L=yes
16344 ;;
16345 esac
16346 fi
16347 ;;
16348
16349 irix5* | irix6* | nonstopux*)
16350 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016351 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 +000016352 # Try to use the -exported_symbol ld option, if it does not
16353 # work, assume that -exports_file does not work either and
16354 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016355 # This should be the same for all languages, so no per-tag cache variable.
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16357$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16358if ${lt_cv_irix_exported_symbol+:} false; then :
16359 $as_echo_n "(cached) " >&6
16360else
16361 save_LDFLAGS="$LDFLAGS"
16362 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016364/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016365int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016366_ACEOF
16367if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016368 lt_cv_irix_exported_symbol=yes
16369else
16370 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016371fi
16372rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016374 LDFLAGS="$save_LDFLAGS"
16375fi
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16377$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16378 if test "$lt_cv_irix_exported_symbol" = yes; then
16379 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'
16380 fi
cristy73bd4a52010-10-05 11:24:23 +000016381 else
cristy0c60a692010-11-04 01:09:47 +000016382 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'
16383 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 +000016384 fi
16385 archive_cmds_need_lc='no'
16386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16387 hardcode_libdir_separator=:
16388 inherit_rpath=yes
16389 link_all_deplibs=yes
16390 ;;
16391
16392 netbsd*)
16393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16395 else
16396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16397 fi
16398 hardcode_libdir_flag_spec='-R$libdir'
16399 hardcode_direct=yes
16400 hardcode_shlibpath_var=no
16401 ;;
16402
16403 newsos6)
16404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 hardcode_direct=yes
16406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16407 hardcode_libdir_separator=:
16408 hardcode_shlibpath_var=no
16409 ;;
16410
16411 *nto* | *qnx*)
16412 ;;
16413
16414 openbsd*)
16415 if test -f /usr/libexec/ld.so; then
16416 hardcode_direct=yes
16417 hardcode_shlibpath_var=no
16418 hardcode_direct_absolute=yes
16419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16423 export_dynamic_flag_spec='${wl}-E'
16424 else
16425 case $host_os in
16426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16428 hardcode_libdir_flag_spec='-R$libdir'
16429 ;;
16430 *)
16431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16433 ;;
16434 esac
16435 fi
16436 else
16437 ld_shlibs=no
16438 fi
16439 ;;
16440
16441 os2*)
16442 hardcode_libdir_flag_spec='-L$libdir'
16443 hardcode_minus_L=yes
16444 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016445 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 +000016446 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16447 ;;
16448
16449 osf3*)
16450 if test "$GCC" = yes; then
16451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016452 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 +000016453 else
16454 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016455 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 +000016456 fi
16457 archive_cmds_need_lc='no'
16458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16459 hardcode_libdir_separator=:
16460 ;;
16461
16462 osf4* | osf5*) # as osf3* with the addition of -msym flag
16463 if test "$GCC" = yes; then
16464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016465 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 +000016466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16467 else
16468 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016469 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 +000016470 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 +000016471 $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 +000016472
16473 # Both c and cxx compiler support -rpath directly
16474 hardcode_libdir_flag_spec='-rpath $libdir'
16475 fi
16476 archive_cmds_need_lc='no'
16477 hardcode_libdir_separator=:
16478 ;;
16479
16480 solaris*)
16481 no_undefined_flag=' -z defs'
16482 if test "$GCC" = yes; then
16483 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016484 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 +000016485 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 +000016486 $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 +000016487 else
16488 case `$CC -V 2>&1` in
16489 *"Compilers 5.0"*)
16490 wlarc=''
16491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16494 ;;
16495 *)
16496 wlarc='${wl}'
16497 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16499 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16500 ;;
16501 esac
16502 fi
16503 hardcode_libdir_flag_spec='-R$libdir'
16504 hardcode_shlibpath_var=no
16505 case $host_os in
16506 solaris2.[0-5] | solaris2.[0-5].*) ;;
16507 *)
16508 # The compiler driver will combine and reorder linker options,
16509 # but understands `-z linker_flag'. GCC discards it without `$wl',
16510 # but is careful enough not to reorder.
16511 # Supported since Solaris 2.6 (maybe 2.5.1?)
16512 if test "$GCC" = yes; then
16513 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16514 else
16515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16516 fi
16517 ;;
16518 esac
16519 link_all_deplibs=yes
16520 ;;
16521
16522 sunos4*)
16523 if test "x$host_vendor" = xsequent; then
16524 # Use $CC to link under sequent, because it throws in some extra .o
16525 # files that make .init and .fini sections work.
16526 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16527 else
16528 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16529 fi
16530 hardcode_libdir_flag_spec='-L$libdir'
16531 hardcode_direct=yes
16532 hardcode_minus_L=yes
16533 hardcode_shlibpath_var=no
16534 ;;
16535
16536 sysv4)
16537 case $host_vendor in
16538 sni)
16539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct=yes # is this really true???
16541 ;;
16542 siemens)
16543 ## LD is ld it makes a PLAMLIB
16544 ## CC just makes a GrossModule.
16545 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16546 reload_cmds='$CC -r -o $output$reload_objs'
16547 hardcode_direct=no
16548 ;;
16549 motorola)
16550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16552 ;;
16553 esac
16554 runpath_var='LD_RUN_PATH'
16555 hardcode_shlibpath_var=no
16556 ;;
16557
16558 sysv4.3*)
16559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_shlibpath_var=no
16561 export_dynamic_flag_spec='-Bexport'
16562 ;;
16563
16564 sysv4*MP*)
16565 if test -d /usr/nec; then
16566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_shlibpath_var=no
16568 runpath_var=LD_RUN_PATH
16569 hardcode_runpath_var=yes
16570 ld_shlibs=yes
16571 fi
16572 ;;
16573
16574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16575 no_undefined_flag='${wl}-z,text'
16576 archive_cmds_need_lc=no
16577 hardcode_shlibpath_var=no
16578 runpath_var='LD_RUN_PATH'
16579
16580 if test "$GCC" = yes; then
16581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 else
16584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 fi
16587 ;;
16588
16589 sysv5* | sco3.2v5* | sco5v6*)
16590 # Note: We can NOT use -z defs as we might desire, because we do not
16591 # link with -lc, and that would cause any symbols used from libc to
16592 # always be unresolved, which means just about no library would
16593 # ever link correctly. If we're not using GNU ld we use -z text
16594 # though, which does catch some bad symbols but isn't as heavy-handed
16595 # as -z defs.
16596 no_undefined_flag='${wl}-z,text'
16597 allow_undefined_flag='${wl}-z,nodefs'
16598 archive_cmds_need_lc=no
16599 hardcode_shlibpath_var=no
16600 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16601 hardcode_libdir_separator=':'
16602 link_all_deplibs=yes
16603 export_dynamic_flag_spec='${wl}-Bexport'
16604 runpath_var='LD_RUN_PATH'
16605
16606 if test "$GCC" = yes; then
16607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 else
16610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16612 fi
16613 ;;
16614
16615 uts4*)
16616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_libdir_flag_spec='-L$libdir'
16618 hardcode_shlibpath_var=no
16619 ;;
16620
16621 *)
16622 ld_shlibs=no
16623 ;;
16624 esac
16625
16626 if test x$host_vendor = xsni; then
16627 case $host in
16628 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16629 export_dynamic_flag_spec='${wl}-Blargedynsym'
16630 ;;
16631 esac
16632 fi
16633 fi
16634
16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16636$as_echo "$ld_shlibs" >&6; }
16637test "$ld_shlibs" = no && can_build_shared=no
16638
16639with_gnu_ld=$with_gnu_ld
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655#
16656# Do we need to explicitly link libc?
16657#
16658case "x$archive_cmds_need_lc" in
16659x|xyes)
16660 # Assume -lc should be added
16661 archive_cmds_need_lc=yes
16662
16663 if test "$enable_shared" = yes && test "$GCC" = yes; then
16664 case $archive_cmds in
16665 *'~'*)
16666 # FIXME: we may have to deal with multi-command sequences.
16667 ;;
16668 '$CC '*)
16669 # Test whether the compiler implicitly links with -lc since on some
16670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16671 # to ld, don't add -lc before -lgcc.
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16673$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016674if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016675 $as_echo_n "(cached) " >&6
16676else
16677 $RM conftest*
16678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016679
cristy0c60a692010-11-04 01:09:47 +000016680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016681 (eval $ac_compile) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016685 soname=conftest
16686 lib=conftest
16687 libobjs=conftest.$ac_objext
16688 deplibs=
16689 wl=$lt_prog_compiler_wl
16690 pic_flag=$lt_prog_compiler_pic
16691 compiler_flags=-v
16692 linker_flags=-v
16693 verstring=
16694 output_objdir=.
16695 libname=conftest
16696 lt_save_allow_undefined_flag=$allow_undefined_flag
16697 allow_undefined_flag=
16698 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 +000016699 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16700 ac_status=$?
16701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16702 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016703 then
16704 lt_cv_archive_cmds_need_lc=no
16705 else
16706 lt_cv_archive_cmds_need_lc=yes
16707 fi
16708 allow_undefined_flag=$lt_save_allow_undefined_flag
16709 else
16710 cat conftest.err 1>&5
16711 fi
16712 $RM conftest*
16713
16714fi
16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16716$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16717 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016718 ;;
16719 esac
16720 fi
16721 ;;
16722esac
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
cristy73bd4a52010-10-05 11:24:23 +000016875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16876$as_echo_n "checking dynamic linker characteristics... " >&6; }
16877
16878if test "$GCC" = yes; then
16879 case $host_os in
16880 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16881 *) lt_awk_arg="/^libraries:/" ;;
16882 esac
cristy0c60a692010-11-04 01:09:47 +000016883 case $host_os in
16884 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16885 *) lt_sed_strip_eq="s,=/,/,g" ;;
16886 esac
16887 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16888 case $lt_search_path_spec in
16889 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016890 # if the path contains ";" then we assume it to be the separator
16891 # otherwise default to the standard path separator (i.e. ":") - it is
16892 # assumed that no part of a normal pathname contains ";" but that should
16893 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16895 ;;
16896 *)
16897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16898 ;;
16899 esac
cristy73bd4a52010-10-05 11:24:23 +000016900 # Ok, now we have the path, separated by spaces, we can step through it
16901 # and add multilib dir if necessary.
16902 lt_tmp_lt_search_path_spec=
16903 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16904 for lt_sys_path in $lt_search_path_spec; do
16905 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16906 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16907 else
16908 test -d "$lt_sys_path" && \
16909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16910 fi
16911 done
cristy0c60a692010-11-04 01:09:47 +000016912 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016913BEGIN {RS=" "; FS="/|\n";} {
16914 lt_foo="";
16915 lt_count=0;
16916 for (lt_i = NF; lt_i > 0; lt_i--) {
16917 if ($lt_i != "" && $lt_i != ".") {
16918 if ($lt_i == "..") {
16919 lt_count++;
16920 } else {
16921 if (lt_count == 0) {
16922 lt_foo="/" $lt_i lt_foo;
16923 } else {
16924 lt_count--;
16925 }
16926 }
16927 }
16928 }
16929 if (lt_foo != "") { lt_freq[lt_foo]++; }
16930 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16931}'`
cristy0c60a692010-11-04 01:09:47 +000016932 # AWK program above erroneously prepends '/' to C:/dos/paths
16933 # for these hosts.
16934 case $host_os in
16935 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16936 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16937 esac
16938 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016939else
16940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16941fi
16942library_names_spec=
16943libname_spec='lib$name'
16944soname_spec=
16945shrext_cmds=".so"
16946postinstall_cmds=
16947postuninstall_cmds=
16948finish_cmds=
16949finish_eval=
16950shlibpath_var=
16951shlibpath_overrides_runpath=unknown
16952version_type=none
16953dynamic_linker="$host_os ld.so"
16954sys_lib_dlsearch_path_spec="/lib /usr/lib"
16955need_lib_prefix=unknown
16956hardcode_into_libs=no
16957
16958# when you set need_version to no, make sure it does not cause -set_version
16959# flags to be left without arguments
16960need_version=unknown
16961
16962case $host_os in
16963aix3*)
cristy99bd5232011-12-07 14:38:20 +000016964 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16966 shlibpath_var=LIBPATH
16967
16968 # AIX 3 has no versioning support, so we append a major version to the name.
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 ;;
16971
16972aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016973 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016974 need_lib_prefix=no
16975 need_version=no
16976 hardcode_into_libs=yes
16977 if test "$host_cpu" = ia64; then
16978 # AIX 5 supports IA64
16979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 else
16982 # With GCC up to 2.95.x, collect2 would create an import file
16983 # for dependence libraries. The import file would start with
16984 # the line `#! .'. This would cause the generated library to
16985 # depend on `.', always an invalid library. This was fixed in
16986 # development snapshots of GCC prior to 3.0.
16987 case $host_os in
16988 aix4 | aix4.[01] | aix4.[01].*)
16989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16990 echo ' yes '
16991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16992 :
16993 else
16994 can_build_shared=no
16995 fi
16996 ;;
16997 esac
16998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16999 # soname into executable. Probably we can add versioning support to
17000 # collect2, so additional links can be useful in future.
17001 if test "$aix_use_runtimelinking" = yes; then
17002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17003 # instead of lib<name>.a to let people know that these are not
17004 # typical AIX shared libraries.
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17006 else
17007 # We preserve .a as extension for shared libraries through AIX4.2
17008 # and later when we are not doing run time linking.
17009 library_names_spec='${libname}${release}.a $libname.a'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 fi
17012 shlibpath_var=LIBPATH
17013 fi
17014 ;;
17015
17016amigaos*)
17017 case $host_cpu in
17018 powerpc)
17019 # Since July 2007 AmigaOS4 officially supports .so libraries.
17020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022 ;;
17023 m68k)
17024 library_names_spec='$libname.ixlibrary $libname.a'
17025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017026 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 +000017027 ;;
17028 esac
17029 ;;
17030
17031beos*)
17032 library_names_spec='${libname}${shared_ext}'
17033 dynamic_linker="$host_os ld.so"
17034 shlibpath_var=LIBRARY_PATH
17035 ;;
17036
17037bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017038 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017039 need_version=no
17040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041 soname_spec='${libname}${release}${shared_ext}$major'
17042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17046 # the default ld.so.conf also contains /usr/contrib/lib and
17047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17048 # libtool to hard-code these into programs
17049 ;;
17050
17051cygwin* | mingw* | pw32* | cegcc*)
17052 version_type=windows
17053 shrext_cmds=".dll"
17054 need_version=no
17055 need_lib_prefix=no
17056
cristyda16f162011-02-19 23:52:17 +000017057 case $GCC,$cc_basename in
17058 yes,*)
17059 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017060 library_names_spec='$libname.dll.a'
17061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17062 postinstall_cmds='base_file=`basename \${file}`~
17063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17064 dldir=$destdir/`dirname \$dlpath`~
17065 test -d \$dldir || mkdir -p \$dldir~
17066 $install_prog $dir/$dlname \$dldir/$dlname~
17067 chmod a+x \$dldir/$dlname~
17068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17070 fi'
17071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17072 dlpath=$dir/\$dldll~
17073 $RM \$dlpath'
17074 shlibpath_overrides_runpath=yes
17075
17076 case $host_os in
17077 cygwin*)
17078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017080
17081 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017082 ;;
17083 mingw* | cegcc*)
17084 # MinGW DLLs use traditional 'lib' prefix
17085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017086 ;;
17087 pw32*)
17088 # pw32 DLLs use 'pw' prefix rather than 'lib'
17089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17090 ;;
17091 esac
cristyda16f162011-02-19 23:52:17 +000017092 dynamic_linker='Win32 ld.exe'
17093 ;;
17094
17095 *,cl*)
17096 # Native MSVC
17097 libname_spec='$name'
17098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17099 library_names_spec='${libname}.dll.lib'
17100
17101 case $build_os in
17102 mingw*)
17103 sys_lib_search_path_spec=
17104 lt_save_ifs=$IFS
17105 IFS=';'
17106 for lt_path in $LIB
17107 do
17108 IFS=$lt_save_ifs
17109 # Let DOS variable expansion print the short 8.3 style file name.
17110 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17111 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17112 done
17113 IFS=$lt_save_ifs
17114 # Convert to MSYS style.
17115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17116 ;;
17117 cygwin*)
17118 # Convert to unix form, then to dos form, then back to unix form
17119 # but this time dos style (no spaces!) so that the unix form looks
17120 # like /cygdrive/c/PROGRA~1:/cygdr...
17121 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17122 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17123 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17124 ;;
17125 *)
17126 sys_lib_search_path_spec="$LIB"
17127 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17128 # It is most probably a Windows format PATH.
17129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17130 else
17131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17132 fi
17133 # FIXME: find the short name or the path components, as spaces are
17134 # common. (e.g. "Program Files" -> "PROGRA~1")
17135 ;;
17136 esac
17137
17138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17139 postinstall_cmds='base_file=`basename \${file}`~
17140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17141 dldir=$destdir/`dirname \$dlpath`~
17142 test -d \$dldir || mkdir -p \$dldir~
17143 $install_prog $dir/$dlname \$dldir/$dlname'
17144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17145 dlpath=$dir/\$dldll~
17146 $RM \$dlpath'
17147 shlibpath_overrides_runpath=yes
17148 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017149 ;;
17150
17151 *)
cristyda16f162011-02-19 23:52:17 +000017152 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017153 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017154 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017155 ;;
17156 esac
cristy73bd4a52010-10-05 11:24:23 +000017157 # FIXME: first we should search . and the directory the executable is in
17158 shlibpath_var=PATH
17159 ;;
17160
17161darwin* | rhapsody*)
17162 dynamic_linker="$host_os dyld"
17163 version_type=darwin
17164 need_lib_prefix=no
17165 need_version=no
17166 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17167 soname_spec='${libname}${release}${major}$shared_ext'
17168 shlibpath_overrides_runpath=yes
17169 shlibpath_var=DYLD_LIBRARY_PATH
17170 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17171
17172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17174 ;;
17175
17176dgux*)
cristy99bd5232011-12-07 14:38:20 +000017177 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017178 need_lib_prefix=no
17179 need_version=no
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 ;;
17184
cristy73bd4a52010-10-05 11:24:23 +000017185freebsd* | dragonfly*)
17186 # DragonFly does not have aout. When/if they implement a new
17187 # versioning mechanism, adjust this.
17188 if test -x /usr/bin/objformat; then
17189 objformat=`/usr/bin/objformat`
17190 else
17191 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017192 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017193 *) objformat=elf ;;
17194 esac
17195 fi
17196 version_type=freebsd-$objformat
17197 case $version_type in
17198 freebsd-elf*)
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17200 need_version=no
17201 need_lib_prefix=no
17202 ;;
17203 freebsd-*)
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17205 need_version=yes
17206 ;;
17207 esac
17208 shlibpath_var=LD_LIBRARY_PATH
17209 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017210 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017211 shlibpath_overrides_runpath=yes
17212 ;;
17213 freebsd3.[01]* | freebsdelf3.[01]*)
17214 shlibpath_overrides_runpath=yes
17215 hardcode_into_libs=yes
17216 ;;
17217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17219 shlibpath_overrides_runpath=no
17220 hardcode_into_libs=yes
17221 ;;
17222 *) # from 4.6 on, and DragonFly
17223 shlibpath_overrides_runpath=yes
17224 hardcode_into_libs=yes
17225 ;;
17226 esac
17227 ;;
17228
17229gnu*)
cristy99bd5232011-12-07 14:38:20 +000017230 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017231 need_lib_prefix=no
17232 need_version=no
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017236 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017237 hardcode_into_libs=yes
17238 ;;
17239
cristy0c60a692010-11-04 01:09:47 +000017240haiku*)
cristy99bd5232011-12-07 14:38:20 +000017241 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017242 need_lib_prefix=no
17243 need_version=no
17244 dynamic_linker="$host_os runtime_loader"
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 shlibpath_var=LIBRARY_PATH
17248 shlibpath_overrides_runpath=yes
17249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17250 hardcode_into_libs=yes
17251 ;;
17252
cristy73bd4a52010-10-05 11:24:23 +000017253hpux9* | hpux10* | hpux11*)
17254 # Give a soname corresponding to the major version so that dld.sl refuses to
17255 # link against other versions.
17256 version_type=sunos
17257 need_lib_prefix=no
17258 need_version=no
17259 case $host_cpu in
17260 ia64*)
17261 shrext_cmds='.so'
17262 hardcode_into_libs=yes
17263 dynamic_linker="$host_os dld.so"
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267 soname_spec='${libname}${release}${shared_ext}$major'
17268 if test "X$HPUX_IA64_MODE" = X32; then
17269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17270 else
17271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17272 fi
17273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17274 ;;
17275 hppa*64*)
17276 shrext_cmds='.sl'
17277 hardcode_into_libs=yes
17278 dynamic_linker="$host_os dld.sl"
17279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17285 ;;
17286 *)
17287 shrext_cmds='.sl'
17288 dynamic_linker="$host_os dld.sl"
17289 shlibpath_var=SHLIB_PATH
17290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 ;;
17294 esac
cristy0c60a692010-11-04 01:09:47 +000017295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017296 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017297 # or fails outright, so override atomically:
17298 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017299 ;;
17300
17301interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017302 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017303 need_lib_prefix=no
17304 need_version=no
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17308 shlibpath_var=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath=no
17310 hardcode_into_libs=yes
17311 ;;
17312
17313irix5* | irix6* | nonstopux*)
17314 case $host_os in
17315 nonstopux*) version_type=nonstopux ;;
17316 *)
17317 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017318 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017319 else
17320 version_type=irix
17321 fi ;;
17322 esac
17323 need_lib_prefix=no
17324 need_version=no
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17327 case $host_os in
17328 irix5* | nonstopux*)
17329 libsuff= shlibsuff=
17330 ;;
17331 *)
17332 case $LD in # libtool.m4 will add one of these switches to LD
17333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17334 libsuff= shlibsuff= libmagic=32-bit;;
17335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17336 libsuff=32 shlibsuff=N32 libmagic=N32;;
17337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17339 *) libsuff= shlibsuff= libmagic=never-match;;
17340 esac
17341 ;;
17342 esac
17343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17344 shlibpath_overrides_runpath=no
17345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17347 hardcode_into_libs=yes
17348 ;;
17349
17350# No shared lib support for Linux oldld, aout, or coff.
17351linux*oldld* | linux*aout* | linux*coff*)
17352 dynamic_linker=no
17353 ;;
17354
cristy99bd5232011-12-07 14:38:20 +000017355# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017356linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017357 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017358 need_lib_prefix=no
17359 need_version=no
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017365
cristy73bd4a52010-10-05 11:24:23 +000017366 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017368 $as_echo_n "(cached) " >&6
17369else
17370 lt_cv_shlibpath_overrides_runpath=no
17371 save_LDFLAGS=$LDFLAGS
17372 save_libdir=$libdir
17373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017376/* end confdefs.h. */
17377
17378int
17379main ()
17380{
17381
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"; then :
17387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017388 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017389fi
17390fi
17391rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017393 LDFLAGS=$save_LDFLAGS
17394 libdir=$save_libdir
17395
17396fi
17397
17398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017399
17400 # This implies no fast_install, which is unacceptable.
17401 # Some rework will be needed to allow for fast_install
17402 # before this can be enabled.
17403 hardcode_into_libs=yes
17404
17405 # Add ABI-specific directories to the system library path.
17406 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17407
17408 # Append ld.so.conf contents to the search path
17409 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017410 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 +000017411 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017412
cristy73bd4a52010-10-05 11:24:23 +000017413 fi
17414
17415 # We used to test for /lib/ld.so.1 and disable shared libraries on
17416 # powerpc, because MkLinux only supported shared libraries with the
17417 # GNU dynamic linker. Since this was broken with cross compilers,
17418 # most powerpc-linux boxes support dynamic linking these days and
17419 # people can always --disable-shared, the test was removed, and we
17420 # assume the GNU/Linux dynamic linker is in use.
17421 dynamic_linker='GNU/Linux ld.so'
17422 ;;
17423
17424netbsd*)
17425 version_type=sunos
17426 need_lib_prefix=no
17427 need_version=no
17428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17431 dynamic_linker='NetBSD (a.out) ld.so'
17432 else
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 dynamic_linker='NetBSD ld.elf_so'
17436 fi
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17439 hardcode_into_libs=yes
17440 ;;
17441
17442newsos6)
cristy99bd5232011-12-07 14:38:20 +000017443 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=yes
17447 ;;
17448
17449*nto* | *qnx*)
17450 version_type=qnx
17451 need_lib_prefix=no
17452 need_version=no
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=no
17457 hardcode_into_libs=yes
17458 dynamic_linker='ldqnx.so'
17459 ;;
17460
17461openbsd*)
17462 version_type=sunos
17463 sys_lib_dlsearch_path_spec="/usr/lib"
17464 need_lib_prefix=no
17465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17466 case $host_os in
17467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17468 *) need_version=no ;;
17469 esac
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474 case $host_os in
17475 openbsd2.[89] | openbsd2.[89].*)
17476 shlibpath_overrides_runpath=no
17477 ;;
17478 *)
17479 shlibpath_overrides_runpath=yes
17480 ;;
17481 esac
17482 else
17483 shlibpath_overrides_runpath=yes
17484 fi
17485 ;;
17486
17487os2*)
17488 libname_spec='$name'
17489 shrext_cmds=".dll"
17490 need_lib_prefix=no
17491 library_names_spec='$libname${shared_ext} $libname.a'
17492 dynamic_linker='OS/2 ld.exe'
17493 shlibpath_var=LIBPATH
17494 ;;
17495
17496osf3* | osf4* | osf5*)
17497 version_type=osf
17498 need_lib_prefix=no
17499 need_version=no
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17505 ;;
17506
17507rdos*)
17508 dynamic_linker=no
17509 ;;
17510
17511solaris*)
cristy99bd5232011-12-07 14:38:20 +000017512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017513 need_lib_prefix=no
17514 need_version=no
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516 soname_spec='${libname}${release}${shared_ext}$major'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17519 hardcode_into_libs=yes
17520 # ldd complains unless libraries are executable
17521 postinstall_cmds='chmod +x $lib'
17522 ;;
17523
17524sunos4*)
17525 version_type=sunos
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=yes
17530 if test "$with_gnu_ld" = yes; then
17531 need_lib_prefix=no
17532 fi
17533 need_version=yes
17534 ;;
17535
17536sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017537 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539 soname_spec='${libname}${release}${shared_ext}$major'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 case $host_vendor in
17542 sni)
17543 shlibpath_overrides_runpath=no
17544 need_lib_prefix=no
17545 runpath_var=LD_RUN_PATH
17546 ;;
17547 siemens)
17548 need_lib_prefix=no
17549 ;;
17550 motorola)
17551 need_lib_prefix=no
17552 need_version=no
17553 shlibpath_overrides_runpath=no
17554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17555 ;;
17556 esac
17557 ;;
17558
17559sysv4*MP*)
17560 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017561 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17563 soname_spec='$libname${shared_ext}.$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17565 fi
17566 ;;
17567
17568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17569 version_type=freebsd-elf
17570 need_lib_prefix=no
17571 need_version=no
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17577 if test "$with_gnu_ld" = yes; then
17578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17579 else
17580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17581 case $host_os in
17582 sco3.2v5*)
17583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17584 ;;
17585 esac
17586 fi
17587 sys_lib_dlsearch_path_spec='/usr/lib'
17588 ;;
17589
17590tpf*)
17591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017592 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017593 need_lib_prefix=no
17594 need_version=no
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=no
17598 hardcode_into_libs=yes
17599 ;;
17600
17601uts4*)
cristy99bd5232011-12-07 14:38:20 +000017602 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 soname_spec='${libname}${release}${shared_ext}$major'
17605 shlibpath_var=LD_LIBRARY_PATH
17606 ;;
17607
17608*)
17609 dynamic_linker=no
17610 ;;
17611esac
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17613$as_echo "$dynamic_linker" >&6; }
17614test "$dynamic_linker" = no && can_build_shared=no
17615
17616variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17617if test "$GCC" = yes; then
17618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17619fi
17620
17621if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17623fi
17624if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17626fi
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
cristy0c60a692010-11-04 01:09:47 +000017714
17715
17716
17717
17718
cristy73bd4a52010-10-05 11:24:23 +000017719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17720$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17721hardcode_action=
17722if test -n "$hardcode_libdir_flag_spec" ||
17723 test -n "$runpath_var" ||
17724 test "X$hardcode_automatic" = "Xyes" ; then
17725
17726 # We can hardcode non-existent directories.
17727 if test "$hardcode_direct" != no &&
17728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729 # have to relink, otherwise we might link with an installed library
17730 # when we should be linking with a yet-to-be-installed one
17731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17732 test "$hardcode_minus_L" != no; then
17733 # Linking always hardcodes the temporary library directory.
17734 hardcode_action=relink
17735 else
17736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737 hardcode_action=immediate
17738 fi
17739else
17740 # We cannot hardcode anything, or else we can only hardcode existing
17741 # directories.
17742 hardcode_action=unsupported
17743fi
17744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17745$as_echo "$hardcode_action" >&6; }
17746
17747if test "$hardcode_action" = relink ||
17748 test "$inherit_rpath" = yes; then
17749 # Fast installation is not supported
17750 enable_fast_install=no
17751elif test "$shlibpath_overrides_runpath" = yes ||
17752 test "$enable_shared" = no; then
17753 # Fast installation is not necessary
17754 enable_fast_install=needless
17755fi
17756
17757
17758
17759
17760
17761
17762 if test "x$enable_dlopen" != xyes; then
17763 enable_dlopen=unknown
17764 enable_dlopen_self=unknown
17765 enable_dlopen_self_static=unknown
17766else
17767 lt_cv_dlopen=no
17768 lt_cv_dlopen_libs=
17769
17770 case $host_os in
17771 beos*)
17772 lt_cv_dlopen="load_add_on"
17773 lt_cv_dlopen_libs=
17774 lt_cv_dlopen_self=yes
17775 ;;
17776
17777 mingw* | pw32* | cegcc*)
17778 lt_cv_dlopen="LoadLibrary"
17779 lt_cv_dlopen_libs=
17780 ;;
17781
17782 cygwin*)
17783 lt_cv_dlopen="dlopen"
17784 lt_cv_dlopen_libs=
17785 ;;
17786
17787 darwin*)
17788 # if libdl is installed we need to link against it
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17790$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017791if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017792 $as_echo_n "(cached) " >&6
17793else
17794 ac_check_lib_save_LIBS=$LIBS
17795LIBS="-ldl $LIBS"
17796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h. */
17798
17799/* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17802#ifdef __cplusplus
17803extern "C"
17804#endif
17805char dlopen ();
17806int
17807main ()
17808{
17809return dlopen ();
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814if ac_fn_c_try_link "$LINENO"; then :
17815 ac_cv_lib_dl_dlopen=yes
17816else
17817 ac_cv_lib_dl_dlopen=no
17818fi
17819rm -f core conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17821LIBS=$ac_check_lib_save_LIBS
17822fi
17823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17824$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017825if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17827else
17828
17829 lt_cv_dlopen="dyld"
17830 lt_cv_dlopen_libs=
17831 lt_cv_dlopen_self=yes
17832
17833fi
17834
17835 ;;
17836
17837 *)
17838 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017839if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017840 lt_cv_dlopen="shl_load"
17841else
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17843$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017844if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017845 $as_echo_n "(cached) " >&6
17846else
17847 ac_check_lib_save_LIBS=$LIBS
17848LIBS="-ldld $LIBS"
17849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850/* end confdefs.h. */
17851
17852/* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17855#ifdef __cplusplus
17856extern "C"
17857#endif
17858char shl_load ();
17859int
17860main ()
17861{
17862return shl_load ();
17863 ;
17864 return 0;
17865}
17866_ACEOF
17867if ac_fn_c_try_link "$LINENO"; then :
17868 ac_cv_lib_dld_shl_load=yes
17869else
17870 ac_cv_lib_dld_shl_load=no
17871fi
17872rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17874LIBS=$ac_check_lib_save_LIBS
17875fi
17876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17877$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017878if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17880else
17881 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017882if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017883 lt_cv_dlopen="dlopen"
17884else
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17886$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017887if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017888 $as_echo_n "(cached) " >&6
17889else
17890 ac_check_lib_save_LIBS=$LIBS
17891LIBS="-ldl $LIBS"
17892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h. */
17894
17895/* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17898#ifdef __cplusplus
17899extern "C"
17900#endif
17901char dlopen ();
17902int
17903main ()
17904{
17905return dlopen ();
17906 ;
17907 return 0;
17908}
17909_ACEOF
17910if ac_fn_c_try_link "$LINENO"; then :
17911 ac_cv_lib_dl_dlopen=yes
17912else
17913 ac_cv_lib_dl_dlopen=no
17914fi
17915rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917LIBS=$ac_check_lib_save_LIBS
17918fi
17919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17920$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017921if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17923else
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17925$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017926if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017927 $as_echo_n "(cached) " >&6
17928else
17929 ac_check_lib_save_LIBS=$LIBS
17930LIBS="-lsvld $LIBS"
17931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h. */
17933
17934/* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17937#ifdef __cplusplus
17938extern "C"
17939#endif
17940char dlopen ();
17941int
17942main ()
17943{
17944return dlopen ();
17945 ;
17946 return 0;
17947}
17948_ACEOF
17949if ac_fn_c_try_link "$LINENO"; then :
17950 ac_cv_lib_svld_dlopen=yes
17951else
17952 ac_cv_lib_svld_dlopen=no
17953fi
17954rm -f core conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17956LIBS=$ac_check_lib_save_LIBS
17957fi
17958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17959$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017960if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17962else
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17964$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017965if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017966 $as_echo_n "(cached) " >&6
17967else
17968 ac_check_lib_save_LIBS=$LIBS
17969LIBS="-ldld $LIBS"
17970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971/* end confdefs.h. */
17972
17973/* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976#ifdef __cplusplus
17977extern "C"
17978#endif
17979char dld_link ();
17980int
17981main ()
17982{
17983return dld_link ();
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988if ac_fn_c_try_link "$LINENO"; then :
17989 ac_cv_lib_dld_dld_link=yes
17990else
17991 ac_cv_lib_dld_dld_link=no
17992fi
17993rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995LIBS=$ac_check_lib_save_LIBS
17996fi
17997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17998$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017999if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18001fi
18002
18003
18004fi
18005
18006
18007fi
18008
18009
18010fi
18011
18012
18013fi
18014
18015
18016fi
18017
18018 ;;
18019 esac
18020
18021 if test "x$lt_cv_dlopen" != xno; then
18022 enable_dlopen=yes
18023 else
18024 enable_dlopen=no
18025 fi
18026
18027 case $lt_cv_dlopen in
18028 dlopen)
18029 save_CPPFLAGS="$CPPFLAGS"
18030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18031
18032 save_LDFLAGS="$LDFLAGS"
18033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18034
18035 save_LIBS="$LIBS"
18036 LIBS="$lt_cv_dlopen_libs $LIBS"
18037
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18039$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018040if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018041 $as_echo_n "(cached) " >&6
18042else
18043 if test "$cross_compiling" = yes; then :
18044 lt_cv_dlopen_self=cross
18045else
18046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18047 lt_status=$lt_dlunknown
18048 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018049#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018050#include "confdefs.h"
18051
18052#if HAVE_DLFCN_H
18053#include <dlfcn.h>
18054#endif
18055
18056#include <stdio.h>
18057
18058#ifdef RTLD_GLOBAL
18059# define LT_DLGLOBAL RTLD_GLOBAL
18060#else
18061# ifdef DL_GLOBAL
18062# define LT_DLGLOBAL DL_GLOBAL
18063# else
18064# define LT_DLGLOBAL 0
18065# endif
18066#endif
18067
18068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18069 find out it does not work in some platform. */
18070#ifndef LT_DLLAZY_OR_NOW
18071# ifdef RTLD_LAZY
18072# define LT_DLLAZY_OR_NOW RTLD_LAZY
18073# else
18074# ifdef DL_LAZY
18075# define LT_DLLAZY_OR_NOW DL_LAZY
18076# else
18077# ifdef RTLD_NOW
18078# define LT_DLLAZY_OR_NOW RTLD_NOW
18079# else
18080# ifdef DL_NOW
18081# define LT_DLLAZY_OR_NOW DL_NOW
18082# else
18083# define LT_DLLAZY_OR_NOW 0
18084# endif
18085# endif
18086# endif
18087# endif
18088#endif
18089
cristy0c60a692010-11-04 01:09:47 +000018090/* When -fvisbility=hidden is used, assume the code has been annotated
18091 correspondingly for the symbols needed. */
18092#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018093int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018094#endif
18095
cristyda16f162011-02-19 23:52:17 +000018096int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018097int main ()
18098{
18099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100 int status = $lt_dlunknown;
18101
18102 if (self)
18103 {
18104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018105 else
18106 {
18107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18108 else puts (dlerror ());
18109 }
cristy73bd4a52010-10-05 11:24:23 +000018110 /* dlclose (self); */
18111 }
18112 else
18113 puts (dlerror ());
18114
18115 return status;
18116}
18117_LT_EOF
18118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18119 (eval $ac_link) 2>&5
18120 ac_status=$?
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18123 (./conftest; exit; ) >&5 2>/dev/null
18124 lt_status=$?
18125 case x$lt_status in
18126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18129 esac
18130 else :
18131 # compilation failed
18132 lt_cv_dlopen_self=no
18133 fi
18134fi
18135rm -fr conftest*
18136
18137
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18140$as_echo "$lt_cv_dlopen_self" >&6; }
18141
18142 if test "x$lt_cv_dlopen_self" = xyes; then
18143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18145$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018146if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018147 $as_echo_n "(cached) " >&6
18148else
18149 if test "$cross_compiling" = yes; then :
18150 lt_cv_dlopen_self_static=cross
18151else
18152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18153 lt_status=$lt_dlunknown
18154 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018155#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018156#include "confdefs.h"
18157
18158#if HAVE_DLFCN_H
18159#include <dlfcn.h>
18160#endif
18161
18162#include <stdio.h>
18163
18164#ifdef RTLD_GLOBAL
18165# define LT_DLGLOBAL RTLD_GLOBAL
18166#else
18167# ifdef DL_GLOBAL
18168# define LT_DLGLOBAL DL_GLOBAL
18169# else
18170# define LT_DLGLOBAL 0
18171# endif
18172#endif
18173
18174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18175 find out it does not work in some platform. */
18176#ifndef LT_DLLAZY_OR_NOW
18177# ifdef RTLD_LAZY
18178# define LT_DLLAZY_OR_NOW RTLD_LAZY
18179# else
18180# ifdef DL_LAZY
18181# define LT_DLLAZY_OR_NOW DL_LAZY
18182# else
18183# ifdef RTLD_NOW
18184# define LT_DLLAZY_OR_NOW RTLD_NOW
18185# else
18186# ifdef DL_NOW
18187# define LT_DLLAZY_OR_NOW DL_NOW
18188# else
18189# define LT_DLLAZY_OR_NOW 0
18190# endif
18191# endif
18192# endif
18193# endif
18194#endif
18195
cristy0c60a692010-11-04 01:09:47 +000018196/* When -fvisbility=hidden is used, assume the code has been annotated
18197 correspondingly for the symbols needed. */
18198#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018199int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018200#endif
18201
cristyda16f162011-02-19 23:52:17 +000018202int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018203int main ()
18204{
18205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18206 int status = $lt_dlunknown;
18207
18208 if (self)
18209 {
18210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018211 else
18212 {
18213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18214 else puts (dlerror ());
18215 }
cristy73bd4a52010-10-05 11:24:23 +000018216 /* dlclose (self); */
18217 }
18218 else
18219 puts (dlerror ());
18220
18221 return status;
18222}
18223_LT_EOF
18224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18225 (eval $ac_link) 2>&5
18226 ac_status=$?
18227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18228 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18229 (./conftest; exit; ) >&5 2>/dev/null
18230 lt_status=$?
18231 case x$lt_status in
18232 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18233 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18234 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18235 esac
18236 else :
18237 # compilation failed
18238 lt_cv_dlopen_self_static=no
18239 fi
18240fi
18241rm -fr conftest*
18242
18243
18244fi
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18246$as_echo "$lt_cv_dlopen_self_static" >&6; }
18247 fi
18248
18249 CPPFLAGS="$save_CPPFLAGS"
18250 LDFLAGS="$save_LDFLAGS"
18251 LIBS="$save_LIBS"
18252 ;;
18253 esac
18254
18255 case $lt_cv_dlopen_self in
18256 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18257 *) enable_dlopen_self=unknown ;;
18258 esac
18259
18260 case $lt_cv_dlopen_self_static in
18261 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18262 *) enable_dlopen_self_static=unknown ;;
18263 esac
18264fi
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282striplib=
18283old_striplib=
18284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18285$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18286if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18287 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18288 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18290$as_echo "yes" >&6; }
18291else
18292# FIXME - insert some real tests, host_os isn't really good enough
18293 case $host_os in
18294 darwin*)
18295 if test -n "$STRIP" ; then
18296 striplib="$STRIP -x"
18297 old_striplib="$STRIP -S"
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299$as_echo "yes" >&6; }
18300 else
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18302$as_echo "no" >&6; }
18303 fi
18304 ;;
18305 *)
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307$as_echo "no" >&6; }
18308 ;;
18309 esac
18310fi
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323 # Report which library types will actually be built
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18325$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18327$as_echo "$can_build_shared" >&6; }
18328
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18330$as_echo_n "checking whether to build shared libraries... " >&6; }
18331 test "$can_build_shared" = "no" && enable_shared=no
18332
18333 # On AIX, shared libraries and static libraries use the same namespace, and
18334 # are all built from PIC.
18335 case $host_os in
18336 aix3*)
18337 test "$enable_shared" = yes && enable_static=no
18338 if test -n "$RANLIB"; then
18339 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18340 postinstall_cmds='$RANLIB $lib'
18341 fi
18342 ;;
18343
18344 aix[4-9]*)
18345 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18346 test "$enable_shared" = yes && enable_static=no
18347 fi
18348 ;;
18349 esac
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18351$as_echo "$enable_shared" >&6; }
18352
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18354$as_echo_n "checking whether to build static libraries... " >&6; }
18355 # Make sure either enable_shared or enable_static is yes.
18356 test "$enable_shared" = yes || enable_static=yes
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18358$as_echo "$enable_static" >&6; }
18359
18360
18361
18362
18363fi
18364ac_ext=c
18365ac_cpp='$CPP $CPPFLAGS'
18366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368ac_compiler_gnu=$ac_cv_c_compiler_gnu
18369
18370CC="$lt_save_CC"
18371
cristy0c60a692010-11-04 01:09:47 +000018372 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18373 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18374 (test "X$CXX" != "Xg++"))) ; then
18375 ac_ext=cpp
18376ac_cpp='$CXXCPP $CPPFLAGS'
18377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18381$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18382if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018383 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018384 $as_echo_n "(cached) " >&6
18385else
18386 # Double quotes because CXXCPP needs to be expanded
18387 for CXXCPP in "$CXX -E" "/lib/cpp"
18388 do
18389 ac_preproc_ok=false
18390for ac_cxx_preproc_warn_flag in '' yes
18391do
18392 # Use a header file that comes with gcc, so configuring glibc
18393 # with a fresh cross-compiler works.
18394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 # <limits.h> exists even on freestanding compilers.
18396 # On the NeXT, cc -E runs the code through the compiler's parser,
18397 # not just through cpp. "Syntax error" is here to catch this case.
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399/* end confdefs.h. */
18400#ifdef __STDC__
18401# include <limits.h>
18402#else
18403# include <assert.h>
18404#endif
18405 Syntax error
18406_ACEOF
18407if ac_fn_cxx_try_cpp "$LINENO"; then :
18408
18409else
18410 # Broken: fails on valid input.
18411continue
18412fi
cristyda16f162011-02-19 23:52:17 +000018413rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018414
18415 # OK, works on sane cases. Now check whether nonexistent headers
18416 # can be detected and how.
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418/* end confdefs.h. */
18419#include <ac_nonexistent.h>
18420_ACEOF
18421if ac_fn_cxx_try_cpp "$LINENO"; then :
18422 # Broken: success on invalid input.
18423continue
18424else
18425 # Passes both tests.
18426ac_preproc_ok=:
18427break
18428fi
cristyda16f162011-02-19 23:52:17 +000018429rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018430
18431done
18432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018433rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018434if $ac_preproc_ok; then :
18435 break
18436fi
18437
18438 done
18439 ac_cv_prog_CXXCPP=$CXXCPP
18440
18441fi
18442 CXXCPP=$ac_cv_prog_CXXCPP
18443else
18444 ac_cv_prog_CXXCPP=$CXXCPP
18445fi
18446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18447$as_echo "$CXXCPP" >&6; }
18448ac_preproc_ok=false
18449for ac_cxx_preproc_warn_flag in '' yes
18450do
18451 # Use a header file that comes with gcc, so configuring glibc
18452 # with a fresh cross-compiler works.
18453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18454 # <limits.h> exists even on freestanding compilers.
18455 # On the NeXT, cc -E runs the code through the compiler's parser,
18456 # not just through cpp. "Syntax error" is here to catch this case.
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h. */
18459#ifdef __STDC__
18460# include <limits.h>
18461#else
18462# include <assert.h>
18463#endif
18464 Syntax error
18465_ACEOF
18466if ac_fn_cxx_try_cpp "$LINENO"; then :
18467
18468else
18469 # Broken: fails on valid input.
18470continue
18471fi
cristyda16f162011-02-19 23:52:17 +000018472rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018473
18474 # OK, works on sane cases. Now check whether nonexistent headers
18475 # can be detected and how.
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477/* end confdefs.h. */
18478#include <ac_nonexistent.h>
18479_ACEOF
18480if ac_fn_cxx_try_cpp "$LINENO"; then :
18481 # Broken: success on invalid input.
18482continue
18483else
18484 # Passes both tests.
18485ac_preproc_ok=:
18486break
18487fi
cristyda16f162011-02-19 23:52:17 +000018488rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018489
18490done
18491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018492rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018493if $ac_preproc_ok; then :
18494
18495else
18496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18498as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18499See \`config.log' for more details" "$LINENO" 5; }
18500fi
18501
18502ac_ext=c
18503ac_cpp='$CPP $CPPFLAGS'
18504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506ac_compiler_gnu=$ac_cv_c_compiler_gnu
18507
18508else
18509 _lt_caught_CXX_error=yes
18510fi
cristy73bd4a52010-10-05 11:24:23 +000018511
18512ac_ext=cpp
18513ac_cpp='$CXXCPP $CPPFLAGS'
18514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517
18518archive_cmds_need_lc_CXX=no
18519allow_undefined_flag_CXX=
18520always_export_symbols_CXX=no
18521archive_expsym_cmds_CXX=
18522compiler_needs_object_CXX=no
18523export_dynamic_flag_spec_CXX=
18524hardcode_direct_CXX=no
18525hardcode_direct_absolute_CXX=no
18526hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018527hardcode_libdir_separator_CXX=
18528hardcode_minus_L_CXX=no
18529hardcode_shlibpath_var_CXX=unsupported
18530hardcode_automatic_CXX=no
18531inherit_rpath_CXX=no
18532module_cmds_CXX=
18533module_expsym_cmds_CXX=
18534link_all_deplibs_CXX=unknown
18535old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018536reload_flag_CXX=$reload_flag
18537reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018538no_undefined_flag_CXX=
18539whole_archive_flag_spec_CXX=
18540enable_shared_with_static_runtimes_CXX=no
18541
18542# Source file extension for C++ test sources.
18543ac_ext=cpp
18544
18545# Object file extension for compiled C++ test sources.
18546objext=o
18547objext_CXX=$objext
18548
18549# No sense in running all these tests if we already determined that
18550# the CXX compiler isn't working. Some variables (like enable_shared)
18551# are currently assumed to apply to all compilers on this platform,
18552# and will be corrupted by setting them based on a non-working compiler.
18553if test "$_lt_caught_CXX_error" != yes; then
18554 # Code to be used in simple compile tests
18555 lt_simple_compile_test_code="int some_variable = 0;"
18556
18557 # Code to be used in simple link tests
18558 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18559
18560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18561
18562
18563
18564
18565
18566
18567# If no C compiler was specified, use CC.
18568LTCC=${LTCC-"$CC"}
18569
18570# If no C compiler flags were specified, use CFLAGS.
18571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18572
18573# Allow CC to be a program name with arguments.
18574compiler=$CC
18575
18576
18577 # save warnings/boilerplate of simple test code
18578 ac_outfile=conftest.$ac_objext
18579echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581_lt_compiler_boilerplate=`cat conftest.err`
18582$RM conftest*
18583
18584 ac_outfile=conftest.$ac_objext
18585echo "$lt_simple_link_test_code" >conftest.$ac_ext
18586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587_lt_linker_boilerplate=`cat conftest.err`
18588$RM -r conftest*
18589
18590
18591 # Allow CC to be a program name with arguments.
18592 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018593 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018594 lt_save_LD=$LD
18595 lt_save_GCC=$GCC
18596 GCC=$GXX
18597 lt_save_with_gnu_ld=$with_gnu_ld
18598 lt_save_path_LD=$lt_cv_path_LD
18599 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18600 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18601 else
18602 $as_unset lt_cv_prog_gnu_ld
18603 fi
18604 if test -n "${lt_cv_path_LDCXX+set}"; then
18605 lt_cv_path_LD=$lt_cv_path_LDCXX
18606 else
18607 $as_unset lt_cv_path_LD
18608 fi
18609 test -z "${LDCXX+set}" || LD=$LDCXX
18610 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018611 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018612 compiler=$CC
18613 compiler_CXX=$CC
18614 for cc_temp in $compiler""; do
18615 case $cc_temp in
18616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18618 \-*) ;;
18619 *) break;;
18620 esac
18621done
cristy0c60a692010-11-04 01:09:47 +000018622cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018623
18624
18625 if test -n "$compiler"; then
18626 # We don't want -fno-exception when compiling C++ code, so set the
18627 # no_builtin_flag separately
18628 if test "$GXX" = yes; then
18629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18630 else
18631 lt_prog_compiler_no_builtin_flag_CXX=
18632 fi
18633
18634 if test "$GXX" = yes; then
18635 # Set up default GNU C++ configuration
18636
18637
18638
18639# Check whether --with-gnu-ld was given.
18640if test "${with_gnu_ld+set}" = set; then :
18641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18642else
18643 with_gnu_ld=no
18644fi
18645
18646ac_prog=ld
18647if test "$GCC" = yes; then
18648 # Check if gcc -print-prog-name=ld gives a path.
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18650$as_echo_n "checking for ld used by $CC... " >&6; }
18651 case $host in
18652 *-*-mingw*)
18653 # gcc leaves a trailing carriage return which upsets mingw
18654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18655 *)
18656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18657 esac
18658 case $ac_prog in
18659 # Accept absolute paths.
18660 [\\/]* | ?:[\\/]*)
18661 re_direlt='/[^/][^/]*/\.\./'
18662 # Canonicalize the pathname of ld
18663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18666 done
18667 test -z "$LD" && LD="$ac_prog"
18668 ;;
18669 "")
18670 # If it fails, then pretend we aren't using GCC.
18671 ac_prog=ld
18672 ;;
18673 *)
18674 # If it is relative, then search for the first ld in PATH.
18675 with_gnu_ld=unknown
18676 ;;
18677 esac
18678elif test "$with_gnu_ld" = yes; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18680$as_echo_n "checking for GNU ld... " >&6; }
18681else
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18683$as_echo_n "checking for non-GNU ld... " >&6; }
18684fi
cristyda16f162011-02-19 23:52:17 +000018685if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018686 $as_echo_n "(cached) " >&6
18687else
18688 if test -z "$LD"; then
18689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18690 for ac_dir in $PATH; do
18691 IFS="$lt_save_ifs"
18692 test -z "$ac_dir" && ac_dir=.
18693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18694 lt_cv_path_LD="$ac_dir/$ac_prog"
18695 # Check to see if the program is GNU ld. I'd rather use --version,
18696 # but apparently some variants of GNU ld only accept -v.
18697 # Break only if it was the GNU/non-GNU ld that we prefer.
18698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18699 *GNU* | *'with BFD'*)
18700 test "$with_gnu_ld" != no && break
18701 ;;
18702 *)
18703 test "$with_gnu_ld" != yes && break
18704 ;;
18705 esac
18706 fi
18707 done
18708 IFS="$lt_save_ifs"
18709else
18710 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18711fi
18712fi
18713
18714LD="$lt_cv_path_LD"
18715if test -n "$LD"; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18717$as_echo "$LD" >&6; }
18718else
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720$as_echo "no" >&6; }
18721fi
cristy98dddb52010-11-04 00:30:15 +000018722test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18724$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018725if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018726 $as_echo_n "(cached) " >&6
18727else
18728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18729case `$LD -v 2>&1 </dev/null` in
18730*GNU* | *'with BFD'*)
18731 lt_cv_prog_gnu_ld=yes
18732 ;;
18733*)
18734 lt_cv_prog_gnu_ld=no
18735 ;;
18736esac
18737fi
18738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18739$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18740with_gnu_ld=$lt_cv_prog_gnu_ld
18741
18742
18743
18744
18745
18746
18747
18748 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18749 # archiving commands below assume that GNU ld is being used.
18750 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018751 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18752 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 +000018753
18754 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18756
18757 # If archive_cmds runs LD, not CC, wlarc should be empty
18758 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18759 # investigate it a little bit more. (MM)
18760 wlarc='${wl}'
18761
18762 # ancient GNU ld didn't support --whole-archive et. al.
18763 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18764 $GREP 'no-whole-archive' > /dev/null; then
18765 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18766 else
18767 whole_archive_flag_spec_CXX=
18768 fi
18769 else
18770 with_gnu_ld=no
18771 wlarc=
18772
18773 # A generic and very simple default shared library creation
18774 # command for GNU C++ for the case where it uses the native
18775 # linker, instead of GNU ld. If possible, this setting should
18776 # overridden to take advantage of the native linker features on
18777 # the platform it is being used on.
18778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18779 fi
18780
18781 # Commands to make compiler produce verbose output that lists
18782 # what "hidden" libraries, object files and flags are used when
18783 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018785
18786 else
18787 GXX=no
18788 with_gnu_ld=no
18789 wlarc=
18790 fi
18791
18792 # PORTME: fill in a description of your system's C++ link characteristics
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18794$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18795 ld_shlibs_CXX=yes
18796 case $host_os in
18797 aix3*)
18798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18800 ;;
18801 aix[4-9]*)
18802 if test "$host_cpu" = ia64; then
18803 # On IA64, the linker does run time linking by default, so we don't
18804 # have to do anything special.
18805 aix_use_runtimelinking=no
18806 exp_sym_flag='-Bexport'
18807 no_entry_flag=""
18808 else
18809 aix_use_runtimelinking=no
18810
18811 # Test if we are trying to use run time linking or normal
18812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18813 # need to do runtime linking.
18814 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18815 for ld_flag in $LDFLAGS; do
18816 case $ld_flag in
18817 *-brtl*)
18818 aix_use_runtimelinking=yes
18819 break
18820 ;;
18821 esac
18822 done
18823 ;;
18824 esac
18825
18826 exp_sym_flag='-bexport'
18827 no_entry_flag='-bnoentry'
18828 fi
18829
18830 # When large executables or shared objects are built, AIX ld can
18831 # have problems creating the table of contents. If linking a library
18832 # or program results in "error TOC overflow" add -mminimal-toc to
18833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18835
18836 archive_cmds_CXX=''
18837 hardcode_direct_CXX=yes
18838 hardcode_direct_absolute_CXX=yes
18839 hardcode_libdir_separator_CXX=':'
18840 link_all_deplibs_CXX=yes
18841 file_list_spec_CXX='${wl}-f,'
18842
18843 if test "$GXX" = yes; then
18844 case $host_os in aix4.[012]|aix4.[012].*)
18845 # We only want to do this on AIX 4.2 and lower, the check
18846 # below for broken collect2 doesn't work under 4.3+
18847 collect2name=`${CC} -print-prog-name=collect2`
18848 if test -f "$collect2name" &&
18849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18850 then
18851 # We have reworked collect2
18852 :
18853 else
18854 # We have old collect2
18855 hardcode_direct_CXX=unsupported
18856 # It fails to find uninstalled libraries when the uninstalled
18857 # path is not listed in the libpath. Setting hardcode_minus_L
18858 # to unsupported forces relinking
18859 hardcode_minus_L_CXX=yes
18860 hardcode_libdir_flag_spec_CXX='-L$libdir'
18861 hardcode_libdir_separator_CXX=
18862 fi
18863 esac
18864 shared_flag='-shared'
18865 if test "$aix_use_runtimelinking" = yes; then
18866 shared_flag="$shared_flag "'${wl}-G'
18867 fi
18868 else
18869 # not using gcc
18870 if test "$host_cpu" = ia64; then
18871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18872 # chokes on -Wl,-G. The following line is correct:
18873 shared_flag='-G'
18874 else
18875 if test "$aix_use_runtimelinking" = yes; then
18876 shared_flag='${wl}-G'
18877 else
18878 shared_flag='${wl}-bM:SRE'
18879 fi
18880 fi
18881 fi
18882
18883 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18884 # It seems that -bexpall does not export symbols beginning with
18885 # underscore (_), so it is better to generate a list of symbols to
18886 # export.
18887 always_export_symbols_CXX=yes
18888 if test "$aix_use_runtimelinking" = yes; then
18889 # Warning - without using the other runtime loading flags (-brtl),
18890 # -berok will link without error, but may produce a broken library.
18891 allow_undefined_flag_CXX='-berok'
18892 # Determine the default libpath from the value encoded in an empty
18893 # executable.
cristyda16f162011-02-19 23:52:17 +000018894 if test "${lt_cv_aix_libpath+set}" = set; then
18895 aix_libpath=$lt_cv_aix_libpath
18896else
18897 if ${lt_cv_aix_libpath__CXX+:} false; then :
18898 $as_echo_n "(cached) " >&6
18899else
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018901/* end confdefs.h. */
18902
18903int
18904main ()
18905{
18906
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911if ac_fn_cxx_try_link "$LINENO"; then :
18912
cristyda16f162011-02-19 23:52:17 +000018913 lt_aix_libpath_sed='
18914 /Import File Strings/,/^$/ {
18915 /^0/ {
18916 s/^0 *\([^ ]*\) *$/\1/
18917 p
18918 }
18919 }'
18920 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18921 # Check for a 64-bit object if we didn't find anything.
18922 if test -z "$lt_cv_aix_libpath__CXX"; then
18923 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18924 fi
cristy73bd4a52010-10-05 11:24:23 +000018925fi
18926rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018928 if test -z "$lt_cv_aix_libpath__CXX"; then
18929 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18930 fi
18931
18932fi
18933
18934 aix_libpath=$lt_cv_aix_libpath__CXX
18935fi
cristy73bd4a52010-10-05 11:24:23 +000018936
18937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18938
cristy0c60a692010-11-04 01:09:47 +000018939 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 +000018940 else
18941 if test "$host_cpu" = ia64; then
18942 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18943 allow_undefined_flag_CXX="-z nodefs"
18944 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"
18945 else
18946 # Determine the default libpath from the value encoded in an
18947 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018948 if test "${lt_cv_aix_libpath+set}" = set; then
18949 aix_libpath=$lt_cv_aix_libpath
18950else
18951 if ${lt_cv_aix_libpath__CXX+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953else
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018955/* end confdefs.h. */
18956
18957int
18958main ()
18959{
18960
18961 ;
18962 return 0;
18963}
18964_ACEOF
18965if ac_fn_cxx_try_link "$LINENO"; then :
18966
cristyda16f162011-02-19 23:52:17 +000018967 lt_aix_libpath_sed='
18968 /Import File Strings/,/^$/ {
18969 /^0/ {
18970 s/^0 *\([^ ]*\) *$/\1/
18971 p
18972 }
18973 }'
18974 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18975 # Check for a 64-bit object if we didn't find anything.
18976 if test -z "$lt_cv_aix_libpath__CXX"; then
18977 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18978 fi
cristy73bd4a52010-10-05 11:24:23 +000018979fi
18980rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018982 if test -z "$lt_cv_aix_libpath__CXX"; then
18983 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18984 fi
18985
18986fi
18987
18988 aix_libpath=$lt_cv_aix_libpath__CXX
18989fi
cristy73bd4a52010-10-05 11:24:23 +000018990
18991 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18992 # Warning - without using the other run time loading flags,
18993 # -berok will link without error, but may produce a broken library.
18994 no_undefined_flag_CXX=' ${wl}-bernotok'
18995 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018996 if test "$with_gnu_ld" = yes; then
18997 # We only use this code for GNU lds that support --whole-archive.
18998 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18999 else
19000 # Exported symbols can be pulled into shared objects from archives
19001 whole_archive_flag_spec_CXX='$convenience'
19002 fi
cristy73bd4a52010-10-05 11:24:23 +000019003 archive_cmds_need_lc_CXX=yes
19004 # This is similar to how AIX traditionally builds its shared
19005 # libraries.
19006 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'
19007 fi
19008 fi
19009 ;;
19010
19011 beos*)
19012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19013 allow_undefined_flag_CXX=unsupported
19014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19015 # support --undefined. This deserves some investigation. FIXME
19016 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19017 else
19018 ld_shlibs_CXX=no
19019 fi
19020 ;;
19021
19022 chorus*)
19023 case $cc_basename in
19024 *)
19025 # FIXME: insert proper C++ library support
19026 ld_shlibs_CXX=no
19027 ;;
19028 esac
19029 ;;
19030
19031 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019032 case $GXX,$cc_basename in
19033 ,cl* | no,cl*)
19034 # Native MSVC
19035 # hardcode_libdir_flag_spec is actually meaningless, as there is
19036 # no search path for DLLs.
19037 hardcode_libdir_flag_spec_CXX=' '
19038 allow_undefined_flag_CXX=unsupported
19039 always_export_symbols_CXX=yes
19040 file_list_spec_CXX='@'
19041 # Tell ltmain to make .lib files, not .a files.
19042 libext=lib
19043 # Tell ltmain to make .dll files, not .so files.
19044 shrext_cmds=".dll"
19045 # FIXME: Setting linknames here is a bad hack.
19046 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19047 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19048 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19049 else
19050 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19051 fi~
19052 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19053 linknames='
19054 # The linker will not automatically build a static lib if we build a DLL.
19055 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19056 enable_shared_with_static_runtimes_CXX=yes
19057 # Don't use ranlib
19058 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19059 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19060 lt_tool_outputfile="@TOOL_OUTPUT@"~
19061 case $lt_outputfile in
19062 *.exe|*.EXE) ;;
19063 *)
19064 lt_outputfile="$lt_outputfile.exe"
19065 lt_tool_outputfile="$lt_tool_outputfile.exe"
19066 ;;
19067 esac~
19068 func_to_tool_file "$lt_outputfile"~
19069 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19070 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19071 $RM "$lt_outputfile.manifest";
19072 fi'
19073 ;;
19074 *)
19075 # g++
19076 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19077 # as there is no search path for DLLs.
19078 hardcode_libdir_flag_spec_CXX='-L$libdir'
19079 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19080 allow_undefined_flag_CXX=unsupported
19081 always_export_symbols_CXX=no
19082 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019083
cristyda16f162011-02-19 23:52:17 +000019084 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19085 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'
19086 # If the export-symbols file already is a .def file (1st line
19087 # is EXPORTS), use it as is; otherwise, prepend...
19088 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19089 cp $export_symbols $output_objdir/$soname.def;
19090 else
19091 echo EXPORTS > $output_objdir/$soname.def;
19092 cat $export_symbols >> $output_objdir/$soname.def;
19093 fi~
19094 $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'
19095 else
19096 ld_shlibs_CXX=no
19097 fi
19098 ;;
19099 esac
19100 ;;
cristy73bd4a52010-10-05 11:24:23 +000019101 darwin* | rhapsody*)
19102
19103
19104 archive_cmds_need_lc_CXX=no
19105 hardcode_direct_CXX=no
19106 hardcode_automatic_CXX=yes
19107 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019108 if test "$lt_cv_ld_force_load" = "yes"; then
19109 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 +000019110
cristy0c60a692010-11-04 01:09:47 +000019111 else
19112 whole_archive_flag_spec_CXX=''
19113 fi
cristy73bd4a52010-10-05 11:24:23 +000019114 link_all_deplibs_CXX=yes
19115 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19116 case $cc_basename in
19117 ifort*) _lt_dar_can_shared=yes ;;
19118 *) _lt_dar_can_shared=$GCC ;;
19119 esac
19120 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019121 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019122 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}"
19123 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19124 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}"
19125 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}"
19126 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19127 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}"
19128 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}"
19129 fi
19130
19131 else
19132 ld_shlibs_CXX=no
19133 fi
19134
19135 ;;
19136
19137 dgux*)
19138 case $cc_basename in
19139 ec++*)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
19143 ghcx*)
19144 # Green Hills C++ Compiler
19145 # FIXME: insert proper C++ library support
19146 ld_shlibs_CXX=no
19147 ;;
19148 *)
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 ;;
19152 esac
19153 ;;
19154
cristy99bd5232011-12-07 14:38:20 +000019155 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019156 # C++ shared libraries reported to be fairly broken before
19157 # switch to ELF
19158 ld_shlibs_CXX=no
19159 ;;
19160
19161 freebsd-elf*)
19162 archive_cmds_need_lc_CXX=no
19163 ;;
19164
19165 freebsd* | dragonfly*)
19166 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19167 # conventions
19168 ld_shlibs_CXX=yes
19169 ;;
19170
19171 gnu*)
19172 ;;
19173
cristy0c60a692010-11-04 01:09:47 +000019174 haiku*)
19175 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19176 link_all_deplibs_CXX=yes
19177 ;;
19178
cristy73bd4a52010-10-05 11:24:23 +000019179 hpux9*)
19180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19181 hardcode_libdir_separator_CXX=:
19182 export_dynamic_flag_spec_CXX='${wl}-E'
19183 hardcode_direct_CXX=yes
19184 hardcode_minus_L_CXX=yes # Not in the search PATH,
19185 # but as the default
19186 # location of the library.
19187
19188 case $cc_basename in
19189 CC*)
19190 # FIXME: insert proper C++ library support
19191 ld_shlibs_CXX=no
19192 ;;
19193 aCC*)
19194 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'
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19198 #
19199 # There doesn't appear to be a way to prevent this compiler from
19200 # explicitly linking system object files so we need to strip them
19201 # from the output so that they don't get included in the library
19202 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019203 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 +000019204 ;;
19205 *)
19206 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019207 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 +000019208 else
19209 # FIXME: insert proper C++ library support
19210 ld_shlibs_CXX=no
19211 fi
19212 ;;
19213 esac
19214 ;;
19215
19216 hpux10*|hpux11*)
19217 if test $with_gnu_ld = no; then
19218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19219 hardcode_libdir_separator_CXX=:
19220
19221 case $host_cpu in
19222 hppa*64*|ia64*)
19223 ;;
19224 *)
19225 export_dynamic_flag_spec_CXX='${wl}-E'
19226 ;;
19227 esac
19228 fi
19229 case $host_cpu in
19230 hppa*64*|ia64*)
19231 hardcode_direct_CXX=no
19232 hardcode_shlibpath_var_CXX=no
19233 ;;
19234 *)
19235 hardcode_direct_CXX=yes
19236 hardcode_direct_absolute_CXX=yes
19237 hardcode_minus_L_CXX=yes # Not in the search PATH,
19238 # but as the default
19239 # location of the library.
19240 ;;
19241 esac
19242
19243 case $cc_basename in
19244 CC*)
19245 # FIXME: insert proper C++ library support
19246 ld_shlibs_CXX=no
19247 ;;
19248 aCC*)
19249 case $host_cpu in
19250 hppa*64*)
19251 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 ;;
19253 ia64*)
19254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19255 ;;
19256 *)
19257 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19258 ;;
19259 esac
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
19263 #
19264 # There doesn't appear to be a way to prevent this compiler from
19265 # explicitly linking system object files so we need to strip them
19266 # from the output so that they don't get included in the library
19267 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019268 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 +000019269 ;;
19270 *)
19271 if test "$GXX" = yes; then
19272 if test $with_gnu_ld = no; then
19273 case $host_cpu in
19274 hppa*64*)
19275 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19276 ;;
19277 ia64*)
cristyda16f162011-02-19 23:52:17 +000019278 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 +000019279 ;;
19280 *)
cristyda16f162011-02-19 23:52:17 +000019281 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 +000019282 ;;
19283 esac
19284 fi
19285 else
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19288 fi
19289 ;;
19290 esac
19291 ;;
19292
19293 interix[3-9]*)
19294 hardcode_direct_CXX=no
19295 hardcode_shlibpath_var_CXX=no
19296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19297 export_dynamic_flag_spec_CXX='${wl}-E'
19298 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19299 # Instead, shared libraries are loaded at an image base (0x10000000 by
19300 # default) and relocated if they conflict, which is a slow very memory
19301 # consuming and fragmenting process. To avoid this, we pick a random,
19302 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19303 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19304 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'
19305 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'
19306 ;;
19307 irix5* | irix6*)
19308 case $cc_basename in
19309 CC*)
19310 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019311 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 +000019312
19313 # Archives containing C++ object files must be created using
19314 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19315 # necessary to make sure instantiated templates are included
19316 # in the archive.
19317 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19318 ;;
19319 *)
19320 if test "$GXX" = yes; then
19321 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019322 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 +000019323 else
cristyda16f162011-02-19 23:52:17 +000019324 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 +000019325 fi
19326 fi
19327 link_all_deplibs_CXX=yes
19328 ;;
19329 esac
19330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19331 hardcode_libdir_separator_CXX=:
19332 inherit_rpath_CXX=yes
19333 ;;
19334
cristy0c60a692010-11-04 01:09:47 +000019335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019336 case $cc_basename in
19337 KCC*)
19338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19339
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19344 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'
19345 # Commands to make compiler produce verbose output that lists
19346 # what "hidden" libraries, object files and flags are used when
19347 # linking a shared library.
19348 #
19349 # There doesn't appear to be a way to prevent this compiler from
19350 # explicitly linking system object files so we need to strip them
19351 # from the output so that they don't get included in the library
19352 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019353 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 +000019354
19355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19357
19358 # Archives containing C++ object files must be created using
19359 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19360 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19361 ;;
19362 icpc* | ecpc* )
19363 # Intel C++
19364 with_gnu_ld=yes
19365 # version 8.0 and above of icpc choke on multiply defined symbols
19366 # if we add $predep_objects and $postdep_objects, however 7.1 and
19367 # earlier do not add the objects themselves.
19368 case `$CC -V 2>&1` in
19369 *"Version 7."*)
19370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19371 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'
19372 ;;
19373 *) # Version 8.0 or newer
19374 tmp_idyn=
19375 case $host_cpu in
19376 ia64*) tmp_idyn=' -i_dynamic';;
19377 esac
19378 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379 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'
19380 ;;
19381 esac
19382 archive_cmds_need_lc_CXX=no
19383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19385 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19386 ;;
19387 pgCC* | pgcpp*)
19388 # Portland Group C++ compiler
19389 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019390 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019391 prelink_cmds_CXX='tpldir=Template.dir~
19392 rm -rf $tpldir~
19393 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019394 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019395 old_archive_cmds_CXX='tpldir=Template.dir~
19396 rm -rf $tpldir~
19397 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019398 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019399 $RANLIB $oldlib'
19400 archive_cmds_CXX='tpldir=Template.dir~
19401 rm -rf $tpldir~
19402 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019403 $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 +000019404 archive_expsym_cmds_CXX='tpldir=Template.dir~
19405 rm -rf $tpldir~
19406 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019407 $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 +000019408 ;;
cristy0c60a692010-11-04 01:09:47 +000019409 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019410 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19411 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'
19412 ;;
19413 esac
19414
19415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019417 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 +000019418 ;;
19419 cxx*)
19420 # Compaq C++
19421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19422 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'
19423
19424 runpath_var=LD_RUN_PATH
19425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19426 hardcode_libdir_separator_CXX=:
19427
19428 # Commands to make compiler produce verbose output that lists
19429 # what "hidden" libraries, object files and flags are used when
19430 # linking a shared library.
19431 #
19432 # There doesn't appear to be a way to prevent this compiler from
19433 # explicitly linking system object files so we need to strip them
19434 # from the output so that they don't get included in the library
19435 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019436 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 +000019437 ;;
cristy0c60a692010-11-04 01:09:47 +000019438 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019439 # IBM XL 8.0 on PPC, with GNU ld
19440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19441 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19442 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19443 if test "x$supports_anon_versioning" = xyes; then
19444 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19446 echo "local: *; };" >> $output_objdir/$libname.ver~
19447 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19448 fi
19449 ;;
19450 *)
19451 case `$CC -V 2>&1 | sed 5q` in
19452 *Sun\ C*)
19453 # Sun C++ 5.9
19454 no_undefined_flag_CXX=' -zdefs'
19455 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19456 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'
19457 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019458 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 +000019459 compiler_needs_object_CXX=yes
19460
19461 # Not sure whether something based on
19462 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19463 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019464 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019465
19466 # Archives containing C++ object files must be created using
19467 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19468 # necessary to make sure instantiated templates are included
19469 # in the archive.
19470 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19471 ;;
19472 esac
19473 ;;
19474 esac
19475 ;;
19476
19477 lynxos*)
19478 # FIXME: insert proper C++ library support
19479 ld_shlibs_CXX=no
19480 ;;
19481
19482 m88k*)
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19485 ;;
19486
19487 mvs*)
19488 case $cc_basename in
19489 cxx*)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493 *)
19494 # FIXME: insert proper C++ library support
19495 ld_shlibs_CXX=no
19496 ;;
19497 esac
19498 ;;
19499
19500 netbsd*)
19501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19502 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19503 wlarc=
19504 hardcode_libdir_flag_spec_CXX='-R$libdir'
19505 hardcode_direct_CXX=yes
19506 hardcode_shlibpath_var_CXX=no
19507 fi
19508 # Workaround some broken pre-1.5 toolchains
19509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19510 ;;
19511
19512 *nto* | *qnx*)
19513 ld_shlibs_CXX=yes
19514 ;;
19515
19516 openbsd2*)
19517 # C++ shared libraries are fairly broken
19518 ld_shlibs_CXX=no
19519 ;;
19520
19521 openbsd*)
19522 if test -f /usr/libexec/ld.so; then
19523 hardcode_direct_CXX=yes
19524 hardcode_shlibpath_var_CXX=no
19525 hardcode_direct_absolute_CXX=yes
19526 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19530 export_dynamic_flag_spec_CXX='${wl}-E'
19531 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19532 fi
cristy0c60a692010-11-04 01:09:47 +000019533 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019534 else
19535 ld_shlibs_CXX=no
19536 fi
19537 ;;
19538
19539 osf3* | osf4* | osf5*)
19540 case $cc_basename in
19541 KCC*)
19542 # Kuck and Associates, Inc. (KAI) C++ Compiler
19543
19544 # KCC will only create a shared library if the output file
19545 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19546 # to its proper name (with version) after linking.
19547 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'
19548
19549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19550 hardcode_libdir_separator_CXX=:
19551
19552 # Archives containing C++ object files must be created using
19553 # the KAI C++ compiler.
19554 case $host in
19555 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19556 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19557 esac
19558 ;;
19559 RCC*)
19560 # Rational C++ 2.4.1
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19563 ;;
19564 cxx*)
19565 case $host in
19566 osf3*)
19567 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019568 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 +000019569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19570 ;;
19571 *)
19572 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019573 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 +000019574 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19575 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019576 $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 +000019577 $RM $lib.exp'
19578 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19579 ;;
19580 esac
19581
19582 hardcode_libdir_separator_CXX=:
19583
19584 # Commands to make compiler produce verbose output that lists
19585 # what "hidden" libraries, object files and flags are used when
19586 # linking a shared library.
19587 #
19588 # There doesn't appear to be a way to prevent this compiler from
19589 # explicitly linking system object files so we need to strip them
19590 # from the output so that they don't get included in the library
19591 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019592 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 +000019593 ;;
19594 *)
19595 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19596 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19597 case $host in
19598 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019599 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 +000019600 ;;
19601 *)
cristyda16f162011-02-19 23:52:17 +000019602 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 +000019603 ;;
19604 esac
19605
19606 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19607 hardcode_libdir_separator_CXX=:
19608
19609 # Commands to make compiler produce verbose output that lists
19610 # what "hidden" libraries, object files and flags are used when
19611 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019613
19614 else
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 fi
19618 ;;
19619 esac
19620 ;;
19621
19622 psos*)
19623 # FIXME: insert proper C++ library support
19624 ld_shlibs_CXX=no
19625 ;;
19626
19627 sunos4*)
19628 case $cc_basename in
19629 CC*)
19630 # Sun C++ 4.x
19631 # FIXME: insert proper C++ library support
19632 ld_shlibs_CXX=no
19633 ;;
19634 lcc*)
19635 # Lucid
19636 # FIXME: insert proper C++ library support
19637 ld_shlibs_CXX=no
19638 ;;
19639 *)
19640 # FIXME: insert proper C++ library support
19641 ld_shlibs_CXX=no
19642 ;;
19643 esac
19644 ;;
19645
19646 solaris*)
19647 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019648 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019649 # Sun C++ 4.2, 5.x and Centerline C++
19650 archive_cmds_need_lc_CXX=yes
19651 no_undefined_flag_CXX=' -zdefs'
19652 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19653 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19654 $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'
19655
19656 hardcode_libdir_flag_spec_CXX='-R$libdir'
19657 hardcode_shlibpath_var_CXX=no
19658 case $host_os in
19659 solaris2.[0-5] | solaris2.[0-5].*) ;;
19660 *)
19661 # The compiler driver will combine and reorder linker options,
19662 # but understands `-z linker_flag'.
19663 # Supported since Solaris 2.6 (maybe 2.5.1?)
19664 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19665 ;;
19666 esac
19667 link_all_deplibs_CXX=yes
19668
cristy0c60a692010-11-04 01:09:47 +000019669 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019670
19671 # Archives containing C++ object files must be created using
19672 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19673 # necessary to make sure instantiated templates are included
19674 # in the archive.
19675 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19676 ;;
19677 gcx*)
19678 # Green Hills C++ Compiler
19679 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19680
19681 # The C++ compiler must be used to create the archive.
19682 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19683 ;;
19684 *)
19685 # GNU C++ compiler with Solaris linker
19686 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19687 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19688 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019689 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 +000019690 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 +000019691 $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 +000019692
19693 # Commands to make compiler produce verbose output that lists
19694 # what "hidden" libraries, object files and flags are used when
19695 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019696 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019697 else
19698 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19699 # platform.
19700 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19701 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19702 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19703
19704 # Commands to make compiler produce verbose output that lists
19705 # what "hidden" libraries, object files and flags are used when
19706 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019707 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019708 fi
19709
19710 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19711 case $host_os in
19712 solaris2.[0-5] | solaris2.[0-5].*) ;;
19713 *)
19714 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19715 ;;
19716 esac
19717 fi
19718 ;;
19719 esac
19720 ;;
19721
19722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19723 no_undefined_flag_CXX='${wl}-z,text'
19724 archive_cmds_need_lc_CXX=no
19725 hardcode_shlibpath_var_CXX=no
19726 runpath_var='LD_RUN_PATH'
19727
19728 case $cc_basename in
19729 CC*)
19730 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19731 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19732 ;;
19733 *)
19734 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19736 ;;
19737 esac
19738 ;;
19739
19740 sysv5* | sco3.2v5* | sco5v6*)
19741 # Note: We can NOT use -z defs as we might desire, because we do not
19742 # link with -lc, and that would cause any symbols used from libc to
19743 # always be unresolved, which means just about no library would
19744 # ever link correctly. If we're not using GNU ld we use -z text
19745 # though, which does catch some bad symbols but isn't as heavy-handed
19746 # as -z defs.
19747 no_undefined_flag_CXX='${wl}-z,text'
19748 allow_undefined_flag_CXX='${wl}-z,nodefs'
19749 archive_cmds_need_lc_CXX=no
19750 hardcode_shlibpath_var_CXX=no
19751 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19752 hardcode_libdir_separator_CXX=':'
19753 link_all_deplibs_CXX=yes
19754 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19755 runpath_var='LD_RUN_PATH'
19756
19757 case $cc_basename in
19758 CC*)
19759 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 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 +000019761 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19762 '"$old_archive_cmds_CXX"
19763 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19764 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019765 ;;
19766 *)
19767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 ;;
19770 esac
19771 ;;
19772
19773 tandem*)
19774 case $cc_basename in
19775 NCC*)
19776 # NonStop-UX NCC 3.20
19777 # FIXME: insert proper C++ library support
19778 ld_shlibs_CXX=no
19779 ;;
19780 *)
19781 # FIXME: insert proper C++ library support
19782 ld_shlibs_CXX=no
19783 ;;
19784 esac
19785 ;;
19786
19787 vxworks*)
19788 # FIXME: insert proper C++ library support
19789 ld_shlibs_CXX=no
19790 ;;
19791
19792 *)
19793 # FIXME: insert proper C++ library support
19794 ld_shlibs_CXX=no
19795 ;;
19796 esac
19797
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19799$as_echo "$ld_shlibs_CXX" >&6; }
19800 test "$ld_shlibs_CXX" = no && can_build_shared=no
19801
19802 GCC_CXX="$GXX"
19803 LD_CXX="$LD"
19804
19805 ## CAVEAT EMPTOR:
19806 ## There is no encapsulation within the following macros, do not change
19807 ## the running order or otherwise move them around unless you know exactly
19808 ## what you are doing...
19809 # Dependencies to place before and after the object being linked:
19810predep_objects_CXX=
19811postdep_objects_CXX=
19812predeps_CXX=
19813postdeps_CXX=
19814compiler_lib_search_path_CXX=
19815
19816cat > conftest.$ac_ext <<_LT_EOF
19817class Foo
19818{
19819public:
19820 Foo (void) { a = 0; }
19821private:
19822 int a;
19823};
19824_LT_EOF
19825
cristyda16f162011-02-19 23:52:17 +000019826
19827_lt_libdeps_save_CFLAGS=$CFLAGS
19828case "$CC $CFLAGS " in #(
19829*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19830*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019831*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019832esac
19833
cristy73bd4a52010-10-05 11:24:23 +000019834if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19835 (eval $ac_compile) 2>&5
19836 ac_status=$?
19837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19838 test $ac_status = 0; }; then
19839 # Parse the compiler output and extract the necessary
19840 # objects, libraries and library flags.
19841
19842 # Sentinel used to keep track of whether or not we are before
19843 # the conftest object file.
19844 pre_test_object_deps_done=no
19845
19846 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019847 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019848
19849 -L* | -R* | -l*)
19850 # Some compilers place space between "-{L,R}" and the path.
19851 # Remove the space.
19852 if test $p = "-L" ||
19853 test $p = "-R"; then
19854 prev=$p
19855 continue
cristy73bd4a52010-10-05 11:24:23 +000019856 fi
19857
cristyda16f162011-02-19 23:52:17 +000019858 # Expand the sysroot to ease extracting the directories later.
19859 if test -z "$prev"; then
19860 case $p in
19861 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19862 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19863 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19864 esac
19865 fi
19866 case $p in
19867 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19868 esac
cristy73bd4a52010-10-05 11:24:23 +000019869 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019870 case ${prev} in
19871 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019872 # Internal compiler library paths should come after those
19873 # provided the user. The postdeps already come after the
19874 # user supplied libs so there is no need to process them.
19875 if test -z "$compiler_lib_search_path_CXX"; then
19876 compiler_lib_search_path_CXX="${prev}${p}"
19877 else
19878 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19879 fi
19880 ;;
19881 # The "-l" case would never come before the object being
19882 # linked, so don't bother handling this case.
19883 esac
19884 else
19885 if test -z "$postdeps_CXX"; then
19886 postdeps_CXX="${prev}${p}"
19887 else
19888 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19889 fi
19890 fi
cristyda16f162011-02-19 23:52:17 +000019891 prev=
cristy73bd4a52010-10-05 11:24:23 +000019892 ;;
19893
cristyda16f162011-02-19 23:52:17 +000019894 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019895 *.$objext)
19896 # This assumes that the test object file only shows up
19897 # once in the compiler output.
19898 if test "$p" = "conftest.$objext"; then
19899 pre_test_object_deps_done=yes
19900 continue
19901 fi
19902
19903 if test "$pre_test_object_deps_done" = no; then
19904 if test -z "$predep_objects_CXX"; then
19905 predep_objects_CXX="$p"
19906 else
19907 predep_objects_CXX="$predep_objects_CXX $p"
19908 fi
19909 else
19910 if test -z "$postdep_objects_CXX"; then
19911 postdep_objects_CXX="$p"
19912 else
19913 postdep_objects_CXX="$postdep_objects_CXX $p"
19914 fi
19915 fi
19916 ;;
19917
19918 *) ;; # Ignore the rest.
19919
19920 esac
19921 done
19922
19923 # Clean up.
19924 rm -f a.out a.exe
19925else
19926 echo "libtool.m4: error: problem compiling CXX test program"
19927fi
19928
19929$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019930CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019931
19932# PORTME: override above test on systems where it is broken
19933case $host_os in
19934interix[3-9]*)
19935 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19936 # hack all around it, let's just trust "g++" to DTRT.
19937 predep_objects_CXX=
19938 postdep_objects_CXX=
19939 postdeps_CXX=
19940 ;;
19941
19942linux*)
19943 case `$CC -V 2>&1 | sed 5q` in
19944 *Sun\ C*)
19945 # Sun C++ 5.9
19946
19947 # The more standards-conforming stlport4 library is
19948 # incompatible with the Cstd library. Avoid specifying
19949 # it if it's in CXXFLAGS. Ignore libCrun as
19950 # -library=stlport4 depends on it.
19951 case " $CXX $CXXFLAGS " in
19952 *" -library=stlport4 "*)
19953 solaris_use_stlport4=yes
19954 ;;
19955 esac
19956
19957 if test "$solaris_use_stlport4" != yes; then
19958 postdeps_CXX='-library=Cstd -library=Crun'
19959 fi
19960 ;;
19961 esac
19962 ;;
19963
19964solaris*)
19965 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019966 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019967 # The more standards-conforming stlport4 library is
19968 # incompatible with the Cstd library. Avoid specifying
19969 # it if it's in CXXFLAGS. Ignore libCrun as
19970 # -library=stlport4 depends on it.
19971 case " $CXX $CXXFLAGS " in
19972 *" -library=stlport4 "*)
19973 solaris_use_stlport4=yes
19974 ;;
19975 esac
19976
19977 # Adding this requires a known-good setup of shared libraries for
19978 # Sun compiler versions before 5.6, else PIC objects from an old
19979 # archive will be linked into the output, leading to subtle bugs.
19980 if test "$solaris_use_stlport4" != yes; then
19981 postdeps_CXX='-library=Cstd -library=Crun'
19982 fi
19983 ;;
19984 esac
19985 ;;
19986esac
19987
19988
19989case " $postdeps_CXX " in
19990*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19991esac
19992 compiler_lib_search_dirs_CXX=
19993if test -n "${compiler_lib_search_path_CXX}"; then
19994 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19995fi
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027 lt_prog_compiler_wl_CXX=
20028lt_prog_compiler_pic_CXX=
20029lt_prog_compiler_static_CXX=
20030
cristy73bd4a52010-10-05 11:24:23 +000020031
20032 # C++ specific cases for pic, static, wl, etc.
20033 if test "$GXX" = yes; then
20034 lt_prog_compiler_wl_CXX='-Wl,'
20035 lt_prog_compiler_static_CXX='-static'
20036
20037 case $host_os in
20038 aix*)
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX='-Bstatic'
20043 fi
20044 ;;
20045
20046 amigaos*)
20047 case $host_cpu in
20048 powerpc)
20049 # see comment about AmigaOS4 .so support
20050 lt_prog_compiler_pic_CXX='-fPIC'
20051 ;;
20052 m68k)
20053 # FIXME: we need at least 68020 code to build shared libraries, but
20054 # adding the `-m68020' flag to GCC prevents building anything better,
20055 # like `-m68040'.
20056 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20057 ;;
20058 esac
20059 ;;
20060
20061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20062 # PIC is the default for these OSes.
20063 ;;
20064 mingw* | cygwin* | os2* | pw32* | cegcc*)
20065 # This hack is so that the source file can tell whether it is being
20066 # built for inclusion in a dll (and should export symbols for example).
20067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20068 # (--disable-auto-import) libraries
20069 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20070 ;;
20071 darwin* | rhapsody*)
20072 # PIC is the default on this platform
20073 # Common symbols not allowed in MH_DYLIB files
20074 lt_prog_compiler_pic_CXX='-fno-common'
20075 ;;
20076 *djgpp*)
20077 # DJGPP does not support shared libraries at all
20078 lt_prog_compiler_pic_CXX=
20079 ;;
cristy0c60a692010-11-04 01:09:47 +000020080 haiku*)
20081 # PIC is the default for Haiku.
20082 # The "-static" flag exists, but is broken.
20083 lt_prog_compiler_static_CXX=
20084 ;;
cristy73bd4a52010-10-05 11:24:23 +000020085 interix[3-9]*)
20086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20087 # Instead, we relocate shared libraries at runtime.
20088 ;;
20089 sysv4*MP*)
20090 if test -d /usr/nec; then
20091 lt_prog_compiler_pic_CXX=-Kconform_pic
20092 fi
20093 ;;
20094 hpux*)
20095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20097 # sets the default TLS model and affects inlining.
20098 case $host_cpu in
20099 hppa*64*)
20100 ;;
20101 *)
20102 lt_prog_compiler_pic_CXX='-fPIC'
20103 ;;
20104 esac
20105 ;;
20106 *qnx* | *nto*)
20107 # QNX uses GNU C++, but need to define -shared option too, otherwise
20108 # it will coredump.
20109 lt_prog_compiler_pic_CXX='-fPIC -shared'
20110 ;;
20111 *)
20112 lt_prog_compiler_pic_CXX='-fPIC'
20113 ;;
20114 esac
20115 else
20116 case $host_os in
20117 aix[4-9]*)
20118 # All AIX code is PIC.
20119 if test "$host_cpu" = ia64; then
20120 # AIX 5 now supports IA64 processor
20121 lt_prog_compiler_static_CXX='-Bstatic'
20122 else
20123 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20124 fi
20125 ;;
20126 chorus*)
20127 case $cc_basename in
20128 cxch68*)
20129 # Green Hills C++ Compiler
20130 # _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"
20131 ;;
20132 esac
20133 ;;
cristyda16f162011-02-19 23:52:17 +000020134 mingw* | cygwin* | os2* | pw32* | cegcc*)
20135 # This hack is so that the source file can tell whether it is being
20136 # built for inclusion in a dll (and should export symbols for example).
20137 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20138 ;;
cristy73bd4a52010-10-05 11:24:23 +000020139 dgux*)
20140 case $cc_basename in
20141 ec++*)
20142 lt_prog_compiler_pic_CXX='-KPIC'
20143 ;;
20144 ghcx*)
20145 # Green Hills C++ Compiler
20146 lt_prog_compiler_pic_CXX='-pic'
20147 ;;
20148 *)
20149 ;;
20150 esac
20151 ;;
20152 freebsd* | dragonfly*)
20153 # FreeBSD uses GNU C++
20154 ;;
20155 hpux9* | hpux10* | hpux11*)
20156 case $cc_basename in
20157 CC*)
20158 lt_prog_compiler_wl_CXX='-Wl,'
20159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20160 if test "$host_cpu" != ia64; then
20161 lt_prog_compiler_pic_CXX='+Z'
20162 fi
20163 ;;
20164 aCC*)
20165 lt_prog_compiler_wl_CXX='-Wl,'
20166 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20167 case $host_cpu in
20168 hppa*64*|ia64*)
20169 # +Z the default
20170 ;;
20171 *)
20172 lt_prog_compiler_pic_CXX='+Z'
20173 ;;
20174 esac
20175 ;;
20176 *)
20177 ;;
20178 esac
20179 ;;
20180 interix*)
20181 # This is c89, which is MS Visual C++ (no shared libs)
20182 # Anyone wants to do a port?
20183 ;;
20184 irix5* | irix6* | nonstopux*)
20185 case $cc_basename in
20186 CC*)
20187 lt_prog_compiler_wl_CXX='-Wl,'
20188 lt_prog_compiler_static_CXX='-non_shared'
20189 # CC pic flag -KPIC is the default.
20190 ;;
20191 *)
20192 ;;
20193 esac
20194 ;;
cristy0c60a692010-11-04 01:09:47 +000020195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020196 case $cc_basename in
20197 KCC*)
20198 # KAI C++ Compiler
20199 lt_prog_compiler_wl_CXX='--backend -Wl,'
20200 lt_prog_compiler_pic_CXX='-fPIC'
20201 ;;
20202 ecpc* )
20203 # old Intel C++ for x86_64 which still supported -KPIC.
20204 lt_prog_compiler_wl_CXX='-Wl,'
20205 lt_prog_compiler_pic_CXX='-KPIC'
20206 lt_prog_compiler_static_CXX='-static'
20207 ;;
20208 icpc* )
20209 # Intel C++, used to be incompatible with GCC.
20210 # ICC 10 doesn't accept -KPIC any more.
20211 lt_prog_compiler_wl_CXX='-Wl,'
20212 lt_prog_compiler_pic_CXX='-fPIC'
20213 lt_prog_compiler_static_CXX='-static'
20214 ;;
20215 pgCC* | pgcpp*)
20216 # Portland Group C++ compiler
20217 lt_prog_compiler_wl_CXX='-Wl,'
20218 lt_prog_compiler_pic_CXX='-fpic'
20219 lt_prog_compiler_static_CXX='-Bstatic'
20220 ;;
20221 cxx*)
20222 # Compaq C++
20223 # Make sure the PIC flag is empty. It appears that all Alpha
20224 # Linux and Compaq Tru64 Unix objects are PIC.
20225 lt_prog_compiler_pic_CXX=
20226 lt_prog_compiler_static_CXX='-non_shared'
20227 ;;
cristy0c60a692010-11-04 01:09:47 +000020228 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20229 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020230 lt_prog_compiler_wl_CXX='-Wl,'
20231 lt_prog_compiler_pic_CXX='-qpic'
20232 lt_prog_compiler_static_CXX='-qstaticlink'
20233 ;;
20234 *)
20235 case `$CC -V 2>&1 | sed 5q` in
20236 *Sun\ C*)
20237 # Sun C++ 5.9
20238 lt_prog_compiler_pic_CXX='-KPIC'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20240 lt_prog_compiler_wl_CXX='-Qoption ld '
20241 ;;
20242 esac
20243 ;;
20244 esac
20245 ;;
20246 lynxos*)
20247 ;;
20248 m88k*)
20249 ;;
20250 mvs*)
20251 case $cc_basename in
20252 cxx*)
20253 lt_prog_compiler_pic_CXX='-W c,exportall'
20254 ;;
20255 *)
20256 ;;
20257 esac
20258 ;;
20259 netbsd*)
20260 ;;
20261 *qnx* | *nto*)
20262 # QNX uses GNU C++, but need to define -shared option too, otherwise
20263 # it will coredump.
20264 lt_prog_compiler_pic_CXX='-fPIC -shared'
20265 ;;
20266 osf3* | osf4* | osf5*)
20267 case $cc_basename in
20268 KCC*)
20269 lt_prog_compiler_wl_CXX='--backend -Wl,'
20270 ;;
20271 RCC*)
20272 # Rational C++ 2.4.1
20273 lt_prog_compiler_pic_CXX='-pic'
20274 ;;
20275 cxx*)
20276 # Digital/Compaq C++
20277 lt_prog_compiler_wl_CXX='-Wl,'
20278 # Make sure the PIC flag is empty. It appears that all Alpha
20279 # Linux and Compaq Tru64 Unix objects are PIC.
20280 lt_prog_compiler_pic_CXX=
20281 lt_prog_compiler_static_CXX='-non_shared'
20282 ;;
20283 *)
20284 ;;
20285 esac
20286 ;;
20287 psos*)
20288 ;;
20289 solaris*)
20290 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020291 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020292 # Sun C++ 4.2, 5.x and Centerline C++
20293 lt_prog_compiler_pic_CXX='-KPIC'
20294 lt_prog_compiler_static_CXX='-Bstatic'
20295 lt_prog_compiler_wl_CXX='-Qoption ld '
20296 ;;
20297 gcx*)
20298 # Green Hills C++ Compiler
20299 lt_prog_compiler_pic_CXX='-PIC'
20300 ;;
20301 *)
20302 ;;
20303 esac
20304 ;;
20305 sunos4*)
20306 case $cc_basename in
20307 CC*)
20308 # Sun C++ 4.x
20309 lt_prog_compiler_pic_CXX='-pic'
20310 lt_prog_compiler_static_CXX='-Bstatic'
20311 ;;
20312 lcc*)
20313 # Lucid
20314 lt_prog_compiler_pic_CXX='-pic'
20315 ;;
20316 *)
20317 ;;
20318 esac
20319 ;;
20320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20321 case $cc_basename in
20322 CC*)
20323 lt_prog_compiler_wl_CXX='-Wl,'
20324 lt_prog_compiler_pic_CXX='-KPIC'
20325 lt_prog_compiler_static_CXX='-Bstatic'
20326 ;;
20327 esac
20328 ;;
20329 tandem*)
20330 case $cc_basename in
20331 NCC*)
20332 # NonStop-UX NCC 3.20
20333 lt_prog_compiler_pic_CXX='-KPIC'
20334 ;;
20335 *)
20336 ;;
20337 esac
20338 ;;
20339 vxworks*)
20340 ;;
20341 *)
20342 lt_prog_compiler_can_build_shared_CXX=no
20343 ;;
20344 esac
20345 fi
20346
20347case $host_os in
20348 # For platforms which do not support PIC, -DPIC is meaningless:
20349 *djgpp*)
20350 lt_prog_compiler_pic_CXX=
20351 ;;
20352 *)
20353 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20354 ;;
20355esac
cristy73bd4a52010-10-05 11:24:23 +000020356
cristyda16f162011-02-19 23:52:17 +000020357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20358$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20359if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20360 $as_echo_n "(cached) " >&6
20361else
20362 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20363fi
20364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20365$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20366lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020367
20368#
20369# Check to make sure the PIC flag actually works.
20370#
20371if test -n "$lt_prog_compiler_pic_CXX"; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20373$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020374if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020375 $as_echo_n "(cached) " >&6
20376else
20377 lt_cv_prog_compiler_pic_works_CXX=no
20378 ac_outfile=conftest.$ac_objext
20379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20380 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20381 # Insert the option either (1) after the last *FLAGS variable, or
20382 # (2) before a word containing "conftest.", or (3) at the end.
20383 # Note that $ac_compile itself does not contain backslashes and begins
20384 # with a dollar sign (not a hyphen), so the echo should work correctly.
20385 # The option is referenced via a variable to avoid confusing sed.
20386 lt_compile=`echo "$ac_compile" | $SED \
20387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20389 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020391 (eval "$lt_compile" 2>conftest.err)
20392 ac_status=$?
20393 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020395 if (exit $ac_status) && test -s "$ac_outfile"; then
20396 # The compiler can only warn and ignore the option if not recognized
20397 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20401 lt_cv_prog_compiler_pic_works_CXX=yes
20402 fi
20403 fi
20404 $RM conftest*
20405
20406fi
20407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20408$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20409
20410if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20411 case $lt_prog_compiler_pic_CXX in
20412 "" | " "*) ;;
20413 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20414 esac
20415else
20416 lt_prog_compiler_pic_CXX=
20417 lt_prog_compiler_can_build_shared_CXX=no
20418fi
20419
20420fi
20421
20422
20423
cristyda16f162011-02-19 23:52:17 +000020424
20425
cristy73bd4a52010-10-05 11:24:23 +000020426#
20427# Check to make sure the static flag actually works.
20428#
20429wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20431$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020432if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020433 $as_echo_n "(cached) " >&6
20434else
20435 lt_cv_prog_compiler_static_works_CXX=no
20436 save_LDFLAGS="$LDFLAGS"
20437 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20440 # The linker can only warn and ignore the option if not recognized
20441 # So say no if there are warnings
20442 if test -s conftest.err; then
20443 # Append any errors to the config.log.
20444 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20447 if diff conftest.exp conftest.er2 >/dev/null; then
20448 lt_cv_prog_compiler_static_works_CXX=yes
20449 fi
20450 else
20451 lt_cv_prog_compiler_static_works_CXX=yes
20452 fi
20453 fi
20454 $RM -r conftest*
20455 LDFLAGS="$save_LDFLAGS"
20456
20457fi
20458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20459$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20460
20461if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20462 :
20463else
20464 lt_prog_compiler_static_CXX=
20465fi
20466
20467
20468
20469
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020472if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020473 $as_echo_n "(cached) " >&6
20474else
20475 lt_cv_prog_compiler_c_o_CXX=no
20476 $RM -r conftest 2>/dev/null
20477 mkdir conftest
20478 cd conftest
20479 mkdir out
20480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20481
20482 lt_compiler_flag="-o out/conftest2.$ac_objext"
20483 # Insert the option either (1) after the last *FLAGS variable, or
20484 # (2) before a word containing "conftest.", or (3) at the end.
20485 # Note that $ac_compile itself does not contain backslashes and begins
20486 # with a dollar sign (not a hyphen), so the echo should work correctly.
20487 lt_compile=`echo "$ac_compile" | $SED \
20488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20490 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020492 (eval "$lt_compile" 2>out/conftest.err)
20493 ac_status=$?
20494 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020496 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20497 then
20498 # The compiler can only warn and ignore the option if not recognized
20499 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20503 lt_cv_prog_compiler_c_o_CXX=yes
20504 fi
20505 fi
20506 chmod u+w . 2>&5
20507 $RM conftest*
20508 # SGI C++ compiler will create directory out/ii_files/ for
20509 # template instantiation
20510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20511 $RM out/* && rmdir out
20512 cd ..
20513 $RM -r conftest
20514 $RM conftest*
20515
20516fi
20517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20518$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20519
20520
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20523$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020524if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020525 $as_echo_n "(cached) " >&6
20526else
20527 lt_cv_prog_compiler_c_o_CXX=no
20528 $RM -r conftest 2>/dev/null
20529 mkdir conftest
20530 cd conftest
20531 mkdir out
20532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20533
20534 lt_compiler_flag="-o out/conftest2.$ac_objext"
20535 # Insert the option either (1) after the last *FLAGS variable, or
20536 # (2) before a word containing "conftest.", or (3) at the end.
20537 # Note that $ac_compile itself does not contain backslashes and begins
20538 # with a dollar sign (not a hyphen), so the echo should work correctly.
20539 lt_compile=`echo "$ac_compile" | $SED \
20540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20542 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020544 (eval "$lt_compile" 2>out/conftest.err)
20545 ac_status=$?
20546 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20549 then
20550 # The compiler can only warn and ignore the option if not recognized
20551 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20555 lt_cv_prog_compiler_c_o_CXX=yes
20556 fi
20557 fi
20558 chmod u+w . 2>&5
20559 $RM conftest*
20560 # SGI C++ compiler will create directory out/ii_files/ for
20561 # template instantiation
20562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20563 $RM out/* && rmdir out
20564 cd ..
20565 $RM -r conftest
20566 $RM conftest*
20567
20568fi
20569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20570$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20571
20572
20573
20574
20575hard_links="nottested"
20576if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20577 # do not overwrite the value of need_locks provided by the user
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20579$as_echo_n "checking if we can lock with hard links... " >&6; }
20580 hard_links=yes
20581 $RM conftest*
20582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20583 touch conftest.a
20584 ln conftest.a conftest.b 2>&5 || hard_links=no
20585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20587$as_echo "$hard_links" >&6; }
20588 if test "$hard_links" = no; then
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20590$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20591 need_locks=warn
20592 fi
20593else
20594 need_locks=no
20595fi
20596
20597
20598
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20600$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20601
20602 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020603 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020604 case $host_os in
20605 aix[4-9]*)
20606 # If we're using GNU nm, then we don't want the "-C" option.
20607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020608 # Also, AIX nm treats weak defined symbols like other global defined
20609 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020610 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020611 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 +000020612 else
20613 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'
20614 fi
20615 ;;
20616 pw32*)
20617 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020618 ;;
cristy73bd4a52010-10-05 11:24:23 +000020619 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020620 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020621 cl*)
20622 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20623 ;;
cristyda16f162011-02-19 23:52:17 +000020624 *)
20625 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'
20626 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20627 ;;
20628 esac
20629 ;;
cristy73bd4a52010-10-05 11:24:23 +000020630 *)
20631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020632 ;;
cristy73bd4a52010-10-05 11:24:23 +000020633 esac
cristy73bd4a52010-10-05 11:24:23 +000020634
20635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20636$as_echo "$ld_shlibs_CXX" >&6; }
20637test "$ld_shlibs_CXX" = no && can_build_shared=no
20638
20639with_gnu_ld_CXX=$with_gnu_ld
20640
20641
20642
20643
20644
20645
20646#
20647# Do we need to explicitly link libc?
20648#
20649case "x$archive_cmds_need_lc_CXX" in
20650x|xyes)
20651 # Assume -lc should be added
20652 archive_cmds_need_lc_CXX=yes
20653
20654 if test "$enable_shared" = yes && test "$GCC" = yes; then
20655 case $archive_cmds_CXX in
20656 *'~'*)
20657 # FIXME: we may have to deal with multi-command sequences.
20658 ;;
20659 '$CC '*)
20660 # Test whether the compiler implicitly links with -lc since on some
20661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20662 # to ld, don't add -lc before -lgcc.
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20664$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020665if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020666 $as_echo_n "(cached) " >&6
20667else
20668 $RM conftest*
20669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020670
cristy0c60a692010-11-04 01:09:47 +000020671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020672 (eval $ac_compile) 2>&5
20673 ac_status=$?
20674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20675 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020676 soname=conftest
20677 lib=conftest
20678 libobjs=conftest.$ac_objext
20679 deplibs=
20680 wl=$lt_prog_compiler_wl_CXX
20681 pic_flag=$lt_prog_compiler_pic_CXX
20682 compiler_flags=-v
20683 linker_flags=-v
20684 verstring=
20685 output_objdir=.
20686 libname=conftest
20687 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20688 allow_undefined_flag_CXX=
20689 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 +000020690 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20691 ac_status=$?
20692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020694 then
20695 lt_cv_archive_cmds_need_lc_CXX=no
20696 else
20697 lt_cv_archive_cmds_need_lc_CXX=yes
20698 fi
20699 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20700 else
20701 cat conftest.err 1>&5
20702 fi
20703 $RM conftest*
20704
20705fi
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20707$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20708 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020709 ;;
20710 esac
20711 fi
20712 ;;
20713esac
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
cristy73bd4a52010-10-05 11:24:23 +000020776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20777$as_echo_n "checking dynamic linker characteristics... " >&6; }
20778
20779library_names_spec=
20780libname_spec='lib$name'
20781soname_spec=
20782shrext_cmds=".so"
20783postinstall_cmds=
20784postuninstall_cmds=
20785finish_cmds=
20786finish_eval=
20787shlibpath_var=
20788shlibpath_overrides_runpath=unknown
20789version_type=none
20790dynamic_linker="$host_os ld.so"
20791sys_lib_dlsearch_path_spec="/lib /usr/lib"
20792need_lib_prefix=unknown
20793hardcode_into_libs=no
20794
20795# when you set need_version to no, make sure it does not cause -set_version
20796# flags to be left without arguments
20797need_version=unknown
20798
20799case $host_os in
20800aix3*)
cristy99bd5232011-12-07 14:38:20 +000020801 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20803 shlibpath_var=LIBPATH
20804
20805 # AIX 3 has no versioning support, so we append a major version to the name.
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 ;;
20808
20809aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020810 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020811 need_lib_prefix=no
20812 need_version=no
20813 hardcode_into_libs=yes
20814 if test "$host_cpu" = ia64; then
20815 # AIX 5 supports IA64
20816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 else
20819 # With GCC up to 2.95.x, collect2 would create an import file
20820 # for dependence libraries. The import file would start with
20821 # the line `#! .'. This would cause the generated library to
20822 # depend on `.', always an invalid library. This was fixed in
20823 # development snapshots of GCC prior to 3.0.
20824 case $host_os in
20825 aix4 | aix4.[01] | aix4.[01].*)
20826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20827 echo ' yes '
20828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20829 :
20830 else
20831 can_build_shared=no
20832 fi
20833 ;;
20834 esac
20835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20836 # soname into executable. Probably we can add versioning support to
20837 # collect2, so additional links can be useful in future.
20838 if test "$aix_use_runtimelinking" = yes; then
20839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20840 # instead of lib<name>.a to let people know that these are not
20841 # typical AIX shared libraries.
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20843 else
20844 # We preserve .a as extension for shared libraries through AIX4.2
20845 # and later when we are not doing run time linking.
20846 library_names_spec='${libname}${release}.a $libname.a'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 fi
20849 shlibpath_var=LIBPATH
20850 fi
20851 ;;
20852
20853amigaos*)
20854 case $host_cpu in
20855 powerpc)
20856 # Since July 2007 AmigaOS4 officially supports .so libraries.
20857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20859 ;;
20860 m68k)
20861 library_names_spec='$libname.ixlibrary $libname.a'
20862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020863 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 +000020864 ;;
20865 esac
20866 ;;
20867
20868beos*)
20869 library_names_spec='${libname}${shared_ext}'
20870 dynamic_linker="$host_os ld.so"
20871 shlibpath_var=LIBRARY_PATH
20872 ;;
20873
20874bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020875 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020876 need_version=no
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20880 shlibpath_var=LD_LIBRARY_PATH
20881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20883 # the default ld.so.conf also contains /usr/contrib/lib and
20884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20885 # libtool to hard-code these into programs
20886 ;;
20887
20888cygwin* | mingw* | pw32* | cegcc*)
20889 version_type=windows
20890 shrext_cmds=".dll"
20891 need_version=no
20892 need_lib_prefix=no
20893
cristyda16f162011-02-19 23:52:17 +000020894 case $GCC,$cc_basename in
20895 yes,*)
20896 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020897 library_names_spec='$libname.dll.a'
20898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20899 postinstall_cmds='base_file=`basename \${file}`~
20900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20901 dldir=$destdir/`dirname \$dlpath`~
20902 test -d \$dldir || mkdir -p \$dldir~
20903 $install_prog $dir/$dlname \$dldir/$dlname~
20904 chmod a+x \$dldir/$dlname~
20905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20907 fi'
20908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20909 dlpath=$dir/\$dldll~
20910 $RM \$dlpath'
20911 shlibpath_overrides_runpath=yes
20912
20913 case $host_os in
20914 cygwin*)
20915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020917
cristy73bd4a52010-10-05 11:24:23 +000020918 ;;
20919 mingw* | cegcc*)
20920 # MinGW DLLs use traditional 'lib' prefix
20921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020922 ;;
20923 pw32*)
20924 # pw32 DLLs use 'pw' prefix rather than 'lib'
20925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20926 ;;
20927 esac
cristyda16f162011-02-19 23:52:17 +000020928 dynamic_linker='Win32 ld.exe'
20929 ;;
20930
20931 *,cl*)
20932 # Native MSVC
20933 libname_spec='$name'
20934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20935 library_names_spec='${libname}.dll.lib'
20936
20937 case $build_os in
20938 mingw*)
20939 sys_lib_search_path_spec=
20940 lt_save_ifs=$IFS
20941 IFS=';'
20942 for lt_path in $LIB
20943 do
20944 IFS=$lt_save_ifs
20945 # Let DOS variable expansion print the short 8.3 style file name.
20946 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20947 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20948 done
20949 IFS=$lt_save_ifs
20950 # Convert to MSYS style.
20951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20952 ;;
20953 cygwin*)
20954 # Convert to unix form, then to dos form, then back to unix form
20955 # but this time dos style (no spaces!) so that the unix form looks
20956 # like /cygdrive/c/PROGRA~1:/cygdr...
20957 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20958 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20959 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20960 ;;
20961 *)
20962 sys_lib_search_path_spec="$LIB"
20963 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20964 # It is most probably a Windows format PATH.
20965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20966 else
20967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20968 fi
20969 # FIXME: find the short name or the path components, as spaces are
20970 # common. (e.g. "Program Files" -> "PROGRA~1")
20971 ;;
20972 esac
20973
20974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20975 postinstall_cmds='base_file=`basename \${file}`~
20976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20977 dldir=$destdir/`dirname \$dlpath`~
20978 test -d \$dldir || mkdir -p \$dldir~
20979 $install_prog $dir/$dlname \$dldir/$dlname'
20980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20981 dlpath=$dir/\$dldll~
20982 $RM \$dlpath'
20983 shlibpath_overrides_runpath=yes
20984 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020985 ;;
20986
20987 *)
cristyda16f162011-02-19 23:52:17 +000020988 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020990 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020991 ;;
20992 esac
cristy73bd4a52010-10-05 11:24:23 +000020993 # FIXME: first we should search . and the directory the executable is in
20994 shlibpath_var=PATH
20995 ;;
20996
20997darwin* | rhapsody*)
20998 dynamic_linker="$host_os dyld"
20999 version_type=darwin
21000 need_lib_prefix=no
21001 need_version=no
21002 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21003 soname_spec='${libname}${release}${major}$shared_ext'
21004 shlibpath_overrides_runpath=yes
21005 shlibpath_var=DYLD_LIBRARY_PATH
21006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21007
21008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21009 ;;
21010
21011dgux*)
cristy99bd5232011-12-07 14:38:20 +000021012 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021013 need_lib_prefix=no
21014 need_version=no
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 shlibpath_var=LD_LIBRARY_PATH
21018 ;;
21019
cristy73bd4a52010-10-05 11:24:23 +000021020freebsd* | dragonfly*)
21021 # DragonFly does not have aout. When/if they implement a new
21022 # versioning mechanism, adjust this.
21023 if test -x /usr/bin/objformat; then
21024 objformat=`/usr/bin/objformat`
21025 else
21026 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021027 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021028 *) objformat=elf ;;
21029 esac
21030 fi
21031 version_type=freebsd-$objformat
21032 case $version_type in
21033 freebsd-elf*)
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21035 need_version=no
21036 need_lib_prefix=no
21037 ;;
21038 freebsd-*)
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21040 need_version=yes
21041 ;;
21042 esac
21043 shlibpath_var=LD_LIBRARY_PATH
21044 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021045 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021046 shlibpath_overrides_runpath=yes
21047 ;;
21048 freebsd3.[01]* | freebsdelf3.[01]*)
21049 shlibpath_overrides_runpath=yes
21050 hardcode_into_libs=yes
21051 ;;
21052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21054 shlibpath_overrides_runpath=no
21055 hardcode_into_libs=yes
21056 ;;
21057 *) # from 4.6 on, and DragonFly
21058 shlibpath_overrides_runpath=yes
21059 hardcode_into_libs=yes
21060 ;;
21061 esac
21062 ;;
21063
21064gnu*)
cristy99bd5232011-12-07 14:38:20 +000021065 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021066 need_lib_prefix=no
21067 need_version=no
21068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21069 soname_spec='${libname}${release}${shared_ext}$major'
21070 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021071 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021072 hardcode_into_libs=yes
21073 ;;
21074
cristy0c60a692010-11-04 01:09:47 +000021075haiku*)
cristy99bd5232011-12-07 14:38:20 +000021076 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021077 need_lib_prefix=no
21078 need_version=no
21079 dynamic_linker="$host_os runtime_loader"
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 shlibpath_var=LIBRARY_PATH
21083 shlibpath_overrides_runpath=yes
21084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21085 hardcode_into_libs=yes
21086 ;;
21087
cristy73bd4a52010-10-05 11:24:23 +000021088hpux9* | hpux10* | hpux11*)
21089 # Give a soname corresponding to the major version so that dld.sl refuses to
21090 # link against other versions.
21091 version_type=sunos
21092 need_lib_prefix=no
21093 need_version=no
21094 case $host_cpu in
21095 ia64*)
21096 shrext_cmds='.so'
21097 hardcode_into_libs=yes
21098 dynamic_linker="$host_os dld.so"
21099 shlibpath_var=LD_LIBRARY_PATH
21100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 if test "X$HPUX_IA64_MODE" = X32; then
21104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21105 else
21106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21107 fi
21108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21109 ;;
21110 hppa*64*)
21111 shrext_cmds='.sl'
21112 hardcode_into_libs=yes
21113 dynamic_linker="$host_os dld.sl"
21114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 soname_spec='${libname}${release}${shared_ext}$major'
21118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21120 ;;
21121 *)
21122 shrext_cmds='.sl'
21123 dynamic_linker="$host_os dld.sl"
21124 shlibpath_var=SHLIB_PATH
21125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 ;;
21129 esac
cristy0c60a692010-11-04 01:09:47 +000021130 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021131 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021132 # or fails outright, so override atomically:
21133 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021134 ;;
21135
21136interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021137 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021138 need_lib_prefix=no
21139 need_version=no
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21143 shlibpath_var=LD_LIBRARY_PATH
21144 shlibpath_overrides_runpath=no
21145 hardcode_into_libs=yes
21146 ;;
21147
21148irix5* | irix6* | nonstopux*)
21149 case $host_os in
21150 nonstopux*) version_type=nonstopux ;;
21151 *)
21152 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021153 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021154 else
21155 version_type=irix
21156 fi ;;
21157 esac
21158 need_lib_prefix=no
21159 need_version=no
21160 soname_spec='${libname}${release}${shared_ext}$major'
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21162 case $host_os in
21163 irix5* | nonstopux*)
21164 libsuff= shlibsuff=
21165 ;;
21166 *)
21167 case $LD in # libtool.m4 will add one of these switches to LD
21168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21169 libsuff= shlibsuff= libmagic=32-bit;;
21170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21171 libsuff=32 shlibsuff=N32 libmagic=N32;;
21172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21174 *) libsuff= shlibsuff= libmagic=never-match;;
21175 esac
21176 ;;
21177 esac
21178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21179 shlibpath_overrides_runpath=no
21180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21182 hardcode_into_libs=yes
21183 ;;
21184
21185# No shared lib support for Linux oldld, aout, or coff.
21186linux*oldld* | linux*aout* | linux*coff*)
21187 dynamic_linker=no
21188 ;;
21189
cristy99bd5232011-12-07 14:38:20 +000021190# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021191linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021192 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021193 need_lib_prefix=no
21194 need_version=no
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021200
cristy73bd4a52010-10-05 11:24:23 +000021201 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021202 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021203 $as_echo_n "(cached) " >&6
21204else
21205 lt_cv_shlibpath_overrides_runpath=no
21206 save_LDFLAGS=$LDFLAGS
21207 save_libdir=$libdir
21208 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21209 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021211/* end confdefs.h. */
21212
21213int
21214main ()
21215{
21216
21217 ;
21218 return 0;
21219}
21220_ACEOF
21221if ac_fn_cxx_try_link "$LINENO"; then :
21222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021223 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021224fi
21225fi
21226rm -f core conftest.err conftest.$ac_objext \
21227 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021228 LDFLAGS=$save_LDFLAGS
21229 libdir=$save_libdir
21230
21231fi
21232
21233 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021234
21235 # This implies no fast_install, which is unacceptable.
21236 # Some rework will be needed to allow for fast_install
21237 # before this can be enabled.
21238 hardcode_into_libs=yes
21239
21240 # Add ABI-specific directories to the system library path.
21241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21242
21243 # Append ld.so.conf contents to the search path
21244 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021245 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 +000021246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021247
cristy73bd4a52010-10-05 11:24:23 +000021248 fi
21249
21250 # We used to test for /lib/ld.so.1 and disable shared libraries on
21251 # powerpc, because MkLinux only supported shared libraries with the
21252 # GNU dynamic linker. Since this was broken with cross compilers,
21253 # most powerpc-linux boxes support dynamic linking these days and
21254 # people can always --disable-shared, the test was removed, and we
21255 # assume the GNU/Linux dynamic linker is in use.
21256 dynamic_linker='GNU/Linux ld.so'
21257 ;;
21258
21259netbsd*)
21260 version_type=sunos
21261 need_lib_prefix=no
21262 need_version=no
21263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21266 dynamic_linker='NetBSD (a.out) ld.so'
21267 else
21268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21269 soname_spec='${libname}${release}${shared_ext}$major'
21270 dynamic_linker='NetBSD ld.elf_so'
21271 fi
21272 shlibpath_var=LD_LIBRARY_PATH
21273 shlibpath_overrides_runpath=yes
21274 hardcode_into_libs=yes
21275 ;;
21276
21277newsos6)
cristy99bd5232011-12-07 14:38:20 +000021278 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21280 shlibpath_var=LD_LIBRARY_PATH
21281 shlibpath_overrides_runpath=yes
21282 ;;
21283
21284*nto* | *qnx*)
21285 version_type=qnx
21286 need_lib_prefix=no
21287 need_version=no
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 shlibpath_var=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath=no
21292 hardcode_into_libs=yes
21293 dynamic_linker='ldqnx.so'
21294 ;;
21295
21296openbsd*)
21297 version_type=sunos
21298 sys_lib_dlsearch_path_spec="/usr/lib"
21299 need_lib_prefix=no
21300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21301 case $host_os in
21302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21303 *) need_version=no ;;
21304 esac
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21309 case $host_os in
21310 openbsd2.[89] | openbsd2.[89].*)
21311 shlibpath_overrides_runpath=no
21312 ;;
21313 *)
21314 shlibpath_overrides_runpath=yes
21315 ;;
21316 esac
21317 else
21318 shlibpath_overrides_runpath=yes
21319 fi
21320 ;;
21321
21322os2*)
21323 libname_spec='$name'
21324 shrext_cmds=".dll"
21325 need_lib_prefix=no
21326 library_names_spec='$libname${shared_ext} $libname.a'
21327 dynamic_linker='OS/2 ld.exe'
21328 shlibpath_var=LIBPATH
21329 ;;
21330
21331osf3* | osf4* | osf5*)
21332 version_type=osf
21333 need_lib_prefix=no
21334 need_version=no
21335 soname_spec='${libname}${release}${shared_ext}$major'
21336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21337 shlibpath_var=LD_LIBRARY_PATH
21338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21340 ;;
21341
21342rdos*)
21343 dynamic_linker=no
21344 ;;
21345
21346solaris*)
cristy99bd5232011-12-07 14:38:20 +000021347 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021348 need_lib_prefix=no
21349 need_version=no
21350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21351 soname_spec='${libname}${release}${shared_ext}$major'
21352 shlibpath_var=LD_LIBRARY_PATH
21353 shlibpath_overrides_runpath=yes
21354 hardcode_into_libs=yes
21355 # ldd complains unless libraries are executable
21356 postinstall_cmds='chmod +x $lib'
21357 ;;
21358
21359sunos4*)
21360 version_type=sunos
21361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=yes
21365 if test "$with_gnu_ld" = yes; then
21366 need_lib_prefix=no
21367 fi
21368 need_version=yes
21369 ;;
21370
21371sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021372 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21374 soname_spec='${libname}${release}${shared_ext}$major'
21375 shlibpath_var=LD_LIBRARY_PATH
21376 case $host_vendor in
21377 sni)
21378 shlibpath_overrides_runpath=no
21379 need_lib_prefix=no
21380 runpath_var=LD_RUN_PATH
21381 ;;
21382 siemens)
21383 need_lib_prefix=no
21384 ;;
21385 motorola)
21386 need_lib_prefix=no
21387 need_version=no
21388 shlibpath_overrides_runpath=no
21389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21390 ;;
21391 esac
21392 ;;
21393
21394sysv4*MP*)
21395 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021396 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21398 soname_spec='$libname${shared_ext}.$major'
21399 shlibpath_var=LD_LIBRARY_PATH
21400 fi
21401 ;;
21402
21403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21404 version_type=freebsd-elf
21405 need_lib_prefix=no
21406 need_version=no
21407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21408 soname_spec='${libname}${release}${shared_ext}$major'
21409 shlibpath_var=LD_LIBRARY_PATH
21410 shlibpath_overrides_runpath=yes
21411 hardcode_into_libs=yes
21412 if test "$with_gnu_ld" = yes; then
21413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21414 else
21415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21416 case $host_os in
21417 sco3.2v5*)
21418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21419 ;;
21420 esac
21421 fi
21422 sys_lib_dlsearch_path_spec='/usr/lib'
21423 ;;
21424
21425tpf*)
21426 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021427 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021428 need_lib_prefix=no
21429 need_version=no
21430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21431 shlibpath_var=LD_LIBRARY_PATH
21432 shlibpath_overrides_runpath=no
21433 hardcode_into_libs=yes
21434 ;;
21435
21436uts4*)
cristy99bd5232011-12-07 14:38:20 +000021437 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec='${libname}${release}${shared_ext}$major'
21440 shlibpath_var=LD_LIBRARY_PATH
21441 ;;
21442
21443*)
21444 dynamic_linker=no
21445 ;;
21446esac
21447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21448$as_echo "$dynamic_linker" >&6; }
21449test "$dynamic_linker" = no && can_build_shared=no
21450
21451variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21452if test "$GCC" = yes; then
21453 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21454fi
21455
21456if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21457 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21458fi
21459if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21460 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21461fi
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
cristy0c60a692010-11-04 01:09:47 +000021498
21499
cristy73bd4a52010-10-05 11:24:23 +000021500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21501$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21502hardcode_action_CXX=
21503if test -n "$hardcode_libdir_flag_spec_CXX" ||
21504 test -n "$runpath_var_CXX" ||
21505 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21506
21507 # We can hardcode non-existent directories.
21508 if test "$hardcode_direct_CXX" != no &&
21509 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21510 # have to relink, otherwise we might link with an installed library
21511 # when we should be linking with a yet-to-be-installed one
21512 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21513 test "$hardcode_minus_L_CXX" != no; then
21514 # Linking always hardcodes the temporary library directory.
21515 hardcode_action_CXX=relink
21516 else
21517 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21518 hardcode_action_CXX=immediate
21519 fi
21520else
21521 # We cannot hardcode anything, or else we can only hardcode existing
21522 # directories.
21523 hardcode_action_CXX=unsupported
21524fi
21525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21526$as_echo "$hardcode_action_CXX" >&6; }
21527
21528if test "$hardcode_action_CXX" = relink ||
21529 test "$inherit_rpath_CXX" = yes; then
21530 # Fast installation is not supported
21531 enable_fast_install=no
21532elif test "$shlibpath_overrides_runpath" = yes ||
21533 test "$enable_shared" = no; then
21534 # Fast installation is not necessary
21535 enable_fast_install=needless
21536fi
21537
21538
21539
21540
21541
21542
21543
21544 fi # test -n "$compiler"
21545
21546 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021547 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021548 LDCXX=$LD
21549 LD=$lt_save_LD
21550 GCC=$lt_save_GCC
21551 with_gnu_ld=$lt_save_with_gnu_ld
21552 lt_cv_path_LDCXX=$lt_cv_path_LD
21553 lt_cv_path_LD=$lt_save_path_LD
21554 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21555 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21556fi # test "$_lt_caught_CXX_error" != yes
21557
21558ac_ext=c
21559ac_cpp='$CPP $CPPFLAGS'
21560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562ac_compiler_gnu=$ac_cv_c_compiler_gnu
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
cristy99bd5232011-12-07 14:38:20 +000021576
21577
cristy73bd4a52010-10-05 11:24:23 +000021578 ac_config_commands="$ac_config_commands libtool"
21579
21580
21581
21582
21583# Only expand once:
21584
21585
21586
cristy3ed852e2009-09-05 21:47:34 +000021587
21588
cristy3ed852e2009-09-05 21:47:34 +000021589# Check to see if building shared libraries
21590libtool_build_shared_libs='no'
21591if test "$enable_shared" = 'yes'; then
21592 libtool_build_shared_libs='yes'
21593fi
21594
21595# Check to see if building static libraries
21596libtool_build_static_libs='no'
21597if test "$enable_static" = 'yes'; then
21598 libtool_build_static_libs='yes'
21599fi
21600
cristy73bd4a52010-10-05 11:24:23 +000021601 if test "${libtool_build_shared_libs}" = 'yes'; then
21602 WITH_SHARED_LIBS_TRUE=
21603 WITH_SHARED_LIBS_FALSE='#'
21604else
21605 WITH_SHARED_LIBS_TRUE='#'
21606 WITH_SHARED_LIBS_FALSE=
21607fi
21608
cristy3ed852e2009-09-05 21:47:34 +000021609#
21610# Enable support for building loadable modules
21611#
cristyaf4cbf32012-10-16 23:47:41 +000021612build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021613
21614# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021615if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021616 withval=$with_modules; with_modules=$withval
21617else
cristy5a1cefd2010-01-06 20:42:35 +000021618 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021619fi
21620
21621
21622# Only allow building loadable modules if we are building shared libraries
21623if test "$with_modules" != 'no' ; then
21624 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021625 { $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 +000021626$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021627 build_modules='no'
21628 else
21629 build_modules='yes'
21630 fi
cristy3ed852e2009-09-05 21:47:34 +000021631fi
cristyc6722092012-10-14 00:19:31 +000021632if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021633
cristy8b350f62009-11-15 23:12:43 +000021634$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021635
cristyfa161182012-12-19 15:45:28 +000021636 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021637fi
cristyc6722092012-10-14 00:19:31 +000021638 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021639 WITH_MODULES_TRUE=
21640 WITH_MODULES_FALSE='#'
21641else
21642 WITH_MODULES_TRUE='#'
21643 WITH_MODULES_FALSE=
21644fi
21645
cristy3ed852e2009-09-05 21:47:34 +000021646
cristy3ed852e2009-09-05 21:47:34 +000021647# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021648# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021649# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021650if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021651 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21652else
21653 enable_delegate_build='no'
21654fi
21655
21656
21657# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021658if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 enableval=$enable_deprecated; enable_deprecated=$enableval
21660else
21661 enable_deprecated='no'
21662fi
21663
21664
21665if test "$enable_deprecated" = 'yes'; then
21666
cristy8b350f62009-11-15 23:12:43 +000021667$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021668
21669else
21670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21671fi
21672
21673# Build a version of ImageMagick which operates uninstalled.
21674# Used to build distributions located via MAGICK_HOME / executable path
21675# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021676if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 enableval=$enable_installed; enable_installed=$enableval
21678else
21679 enable_installed='yes'
21680fi
21681
21682
21683if test "$enable_installed" = 'yes'; then
21684
cristy8b350f62009-11-15 23:12:43 +000021685$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021686
21687else
21688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21689fi
21690
21691# Permit enciphering and deciphering image pixels.
21692# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021693if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021694 enableval=$enable_cipher; enable_cipher=$enableval
21695else
21696 enable_cipher='yes'
21697fi
21698
21699
21700if test "$enable_cipher" = 'yes'; then
21701
cristy8b350f62009-11-15 23:12:43 +000021702$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021703
cristy0f6fc2d2015-05-30 00:49:11 +000021704 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021705fi
21706
cristy6e3607c2011-09-13 13:59:17 +000021707# Build a zero-configuration version of ImageMagick.
21708# Check whether --enable-zero-configuration was given.
21709if test "${enable_zero_configuration+set}" = set; then :
21710 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021711else
cristy6e3607c2011-09-13 13:59:17 +000021712 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021713fi
21714
21715
cristy6e3607c2011-09-13 13:59:17 +000021716if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021717
cristy6e3607c2011-09-13 13:59:17 +000021718$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021719
cristy0f6fc2d2015-05-30 00:49:11 +000021720 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021721fi
21722
21723# Build a high dynamic range version of ImageMagick.
21724# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021725if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021726 enableval=$enable_hdri; enable_hdri=$enableval
21727else
cristy191c0b72012-08-12 16:29:52 +000021728 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021729fi
21730
21731
21732MAGICK_HDRI=""
21733if test "$enable_hdri" = 'yes'; then
21734 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021735 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021736 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021737else
21738 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021739fi
21740
cristye52f12f2012-12-31 15:32:36 +000021741cat >>confdefs.h <<_ACEOF
21742#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21743_ACEOF
21744
21745MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21746CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021747CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021748
cristy3ed852e2009-09-05 21:47:34 +000021749# Build a version of ImageMagick with assert statements.
21750# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021751if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 enableval=$enable_assert; enable_assert=$enableval
21753else
21754 enable_assert='yes'
21755fi
21756
21757
21758if test "$enable_assert" = 'no'; then
21759
cristy8b350f62009-11-15 23:12:43 +000021760$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021761
21762fi
21763
cristya448bd22011-10-14 12:38:13 +000021764# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021765
21766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21767$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21768 # Check whether --enable-maintainer-mode was given.
21769if test "${enable_maintainer_mode+set}" = set; then :
21770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21771else
21772 USE_MAINTAINER_MODE=no
21773fi
21774
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21776$as_echo "$USE_MAINTAINER_MODE" >&6; }
21777 if test $USE_MAINTAINER_MODE = yes; then
21778 MAINTAINER_MODE_TRUE=
21779 MAINTAINER_MODE_FALSE='#'
21780else
21781 MAINTAINER_MODE_TRUE='#'
21782 MAINTAINER_MODE_FALSE=
21783fi
21784
21785 MAINT=$MAINTAINER_MODE_TRUE
21786
21787
cristy3ed852e2009-09-05 21:47:34 +000021788
cristy944e51f2013-04-16 18:45:02 +000021789# Enable hugepages support
21790# Check whether --enable-hugepages was given.
21791if test "${enable_hugepages+set}" = set; then :
21792 enableval=$enable_hugepages; enable_hugepages=$enableval
21793else
21794 enable_hugepages='no'
21795fi
21796
21797
cristy3ed852e2009-09-05 21:47:34 +000021798# Enable ccmalloc memory debugging support
21799# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021800if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021801 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21802else
21803 enable_ccmalloc='no'
21804fi
21805
21806
21807# Enable Electric Fence memory debugging support
21808# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021809if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021810 enableval=$enable_efence; enable_efence=$enableval
21811else
21812 enable_efence='no'
21813fi
21814
21815
21816# Enable prof-based profiling support
21817# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021818if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 enableval=$enable_prof; enable_prof=$enableval
21820else
21821 enable_prof='no'
21822fi
21823
21824
21825# Enable gprof-based profiling support
21826# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021827if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021828 enableval=$enable_gprof; enable_gprof=$enableval
21829else
21830 enable_gprof='no'
21831fi
21832
21833
21834# Enable gcov-based profiling support
21835# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021836if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021837 enableval=$enable_gcov; enable_gcov=$enableval
21838else
21839 enable_gcov='no'
21840fi
21841
21842
21843enable_profiling='no'
21844if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21845 enable_profiling='yes'
21846 if test "$libtool_build_shared_libs" = 'yes'; then
21847 echo "Warning: Can not profile code using shared libraries"
21848 fi
21849fi
21850
21851# Magick API method prefix
21852
21853# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021854if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021855 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021856else
cristyfc3d0222012-02-07 15:05:57 +000021857 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021858fi
21859
21860
cristyfc3d0222012-02-07 15:05:57 +000021861if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021862
21863cat >>confdefs.h <<_ACEOF
21864#define NAMESPACE_PREFIX $with_method_prefix
21865_ACEOF
21866
cristyfc3d0222012-02-07 15:05:57 +000021867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021868fi
21869
cristy71d8c202012-03-20 17:05:01 +000021870# Enable legacy support (default no)
21871# Check whether --enable-legacy-support was given.
21872if test "${enable_legacy_support+set}" = set; then :
21873 enableval=$enable_legacy_support; with_legacy_support=$enableval
21874else
21875 with_legacy_support='no'
21876fi
21877
21878 if test "$with_legacy_support" != 'no'; then
21879 LEGACY_SUPPORT_TRUE=
21880 LEGACY_SUPPORT_FALSE='#'
21881else
21882 LEGACY_SUPPORT_TRUE='#'
21883 LEGACY_SUPPORT_FALSE=
21884fi
21885
21886
cristy3ed852e2009-09-05 21:47:34 +000021887# Number of bits in a Quantum
21888
21889# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021890if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021891 withval=$with_quantum_depth; with_quantum_depth=$withval
21892else
21893 with_quantum_depth=16
21894fi
21895
21896
21897if test "$with_quantum_depth" != '8'; then
21898 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21899fi
21900
21901case "${with_quantum_depth}" in
21902 8 ) ;;
21903 16 ) ;;
21904 32 ) ;;
21905 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021906 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021907esac
21908QUANTUM_DEPTH="$with_quantum_depth"
21909
21910cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021911#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021912_ACEOF
21913
cristya371edf2013-02-06 13:42:17 +000021914MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021915CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021916CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021917
cristy01ff9f32012-12-01 18:15:29 +000021918# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021919MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021920if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021921 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021922fi
cristy01ff9f32012-12-01 18:15:29 +000021923
21924
cristy3ed852e2009-09-05 21:47:34 +000021925# Set pixel cache threshold
21926
21927# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021928if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021929 withval=$with_cache; with_cache=$withval
21930else
21931 with_cache=''
21932fi
21933
21934
21935if test "$with_cache" != ''; then
21936
21937cat >>confdefs.h <<_ACEOF
21938#define PixelCacheThreshold $with_cache
21939_ACEOF
21940
21941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21942fi
21943
21944# Disable/Enable support for full delegate paths
21945
21946# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021947if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021948 withval=$with_frozenpaths; with_frozenpaths=$withval
21949else
21950 with_frozenpaths='no'
21951fi
21952
21953
21954# Enable build/install of Magick++
21955
21956# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021957if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021958 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21959else
21960 with_magick_plus_plus='yes'
21961fi
21962
21963
cristy3a75f062012-09-08 23:29:40 +000021964# Encode the this name into the shared library.
21965
21966# Check whether --with-package-release-name was given.
21967if test "${with_package_release_name+set}" = set; then :
21968 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21969fi
21970
21971
21972
cristy3ed852e2009-09-05 21:47:34 +000021973# Disable build/install of PerlMagick.
21974
21975# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021976if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021977 withval=$with_perl; with_perl=$withval
21978else
cristyb5f4e2f2010-04-25 00:49:11 +000021979 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021980fi
21981
21982
21983# Options to pass when configuring PerlMagick
21984
21985# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021986if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021987 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021988fi
21989
21990
cristy3ed852e2009-09-05 21:47:34 +000021991
cristy3b0097d2014-11-04 15:34:47 +000021992# Enable jemalloc, object-caching memory allocation library.
21993
21994# Check whether --with-jemalloc was given.
21995if test "${with_jemalloc+set}" = set; then :
21996 withval=$with_jemalloc; with_jemalloc=$withval
21997else
21998 with_jemalloc='no'
21999fi
22000
22001if test "$with_jemalloc" != 'yes' ; then
22002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
22003fi
22004
cristy3ed852e2009-09-05 21:47:34 +000022005# Enable umem, object-caching memory allocation library.
22006
22007# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022008if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022009 withval=$with_umem; with_umem=$withval
22010else
22011 with_umem='no'
22012fi
22013
22014if test "$with_umem" != 'yes' ; then
22015 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22016fi
22017
22018#
22019# Specify path to shared libstdc++ if not in normal location
22020#
22021
22022# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022023if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 withval=$with_libstdc; with_libstdc=$withval
22025else
22026 with_libstdc=''
22027fi
22028
22029
22030if test "$with_libstdc" != ''; then
22031 if test -d "$with_libstdc"; then
22032 LIBSTDCLDFLAGS="-L$with_libstdc"
22033 fi
22034fi
22035
22036
22037# Does gcc required -traditional?
22038if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022041if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 $as_echo_n "(cached) " >&6
22043else
22044 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022046/* end confdefs.h. */
22047#include <sgtty.h>
22048Autoconf TIOCGETP
22049_ACEOF
22050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022051 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022052 ac_cv_prog_gcc_traditional=yes
22053else
22054 ac_cv_prog_gcc_traditional=no
22055fi
22056rm -f conftest*
22057
22058
22059 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022061/* end confdefs.h. */
22062#include <termio.h>
22063Autoconf TCGETA
22064_ACEOF
22065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022066 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022067 ac_cv_prog_gcc_traditional=yes
22068fi
22069rm -f conftest*
22070
22071 fi
22072fi
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22075 if test $ac_cv_prog_gcc_traditional = yes; then
22076 CC="$CC -traditional"
22077 fi
22078fi
22079
22080
22081########
22082#
22083# Set defines required to build DLLs and modules using MinGW
22084#
22085########
22086# These options are set for multi-thread DLL module build
22087# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22088# module: _DLL
22089# executable/Magick++: _DLL _MAGICKMOD_
22090MODULE_EXTRA_CPPFLAGS=''
22091LIBRARY_EXTRA_CPPFLAGS=''
22092if test "${native_win32_build}" = 'yes'; then
22093 if test "${libtool_build_shared_libs}" = 'yes'; then
22094 CPPFLAGS="$CPPFLAGS -D_DLL"
22095 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22096 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22097 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022098 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022099 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22100 else
22101 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22102 fi
22103 else
22104 CPPFLAGS="$CPPFLAGS -D_LIB"
22105 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22106 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22107 fi
22108 if test "$with_threads" = 'yes'; then
22109 CPPFLAGS="$CPPFLAGS -D_MT"
22110 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22111 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22112 fi
22113fi
22114
22115
22116
22117# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022119$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022120if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022121 $as_echo_n "(cached) " >&6
22122else
cristy8b350f62009-11-15 23:12:43 +000022123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022124/* end confdefs.h. */
22125#include <stdlib.h>
22126#include <stdarg.h>
22127#include <string.h>
22128#include <float.h>
22129
22130int
22131main ()
22132{
22133
22134 ;
22135 return 0;
22136}
22137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022138if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022139 ac_cv_header_stdc=yes
22140else
cristy8b350f62009-11-15 23:12:43 +000022141 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022142fi
cristy3ed852e2009-09-05 21:47:34 +000022143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144
22145if test $ac_cv_header_stdc = yes; then
22146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022148/* end confdefs.h. */
22149#include <string.h>
22150
22151_ACEOF
22152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022153 $EGREP "memchr" >/dev/null 2>&1; then :
22154
cristy3ed852e2009-09-05 21:47:34 +000022155else
22156 ac_cv_header_stdc=no
22157fi
22158rm -f conftest*
22159
22160fi
22161
22162if test $ac_cv_header_stdc = yes; then
22163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022165/* end confdefs.h. */
22166#include <stdlib.h>
22167
22168_ACEOF
22169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022170 $EGREP "free" >/dev/null 2>&1; then :
22171
cristy3ed852e2009-09-05 21:47:34 +000022172else
22173 ac_cv_header_stdc=no
22174fi
22175rm -f conftest*
22176
22177fi
22178
22179if test $ac_cv_header_stdc = yes; then
22180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022181 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022182 :
22183else
cristy8b350f62009-11-15 23:12:43 +000022184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022185/* end confdefs.h. */
22186#include <ctype.h>
22187#include <stdlib.h>
22188#if ((' ' & 0x0FF) == 0x020)
22189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22191#else
22192# define ISLOWER(c) \
22193 (('a' <= (c) && (c) <= 'i') \
22194 || ('j' <= (c) && (c) <= 'r') \
22195 || ('s' <= (c) && (c) <= 'z'))
22196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22197#endif
22198
22199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22200int
22201main ()
22202{
22203 int i;
22204 for (i = 0; i < 256; i++)
22205 if (XOR (islower (i), ISLOWER (i))
22206 || toupper (i) != TOUPPER (i))
22207 return 2;
22208 return 0;
22209}
22210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022211if ac_fn_c_try_run "$LINENO"; then :
22212
cristy3ed852e2009-09-05 21:47:34 +000022213else
cristy8b350f62009-11-15 23:12:43 +000022214 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022215fi
cristy8b350f62009-11-15 23:12:43 +000022216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22217 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022218fi
22219
cristy3ed852e2009-09-05 21:47:34 +000022220fi
22221fi
cristy8b350f62009-11-15 23:12:43 +000022222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022223$as_echo "$ac_cv_header_stdc" >&6; }
22224if test $ac_cv_header_stdc = yes; then
22225
cristy8b350f62009-11-15 23:12:43 +000022226$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022227
22228fi
22229
22230if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022231 { $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 +000022232 header files. Compilation cannot proceed. Please install the ANSI C
22233 headers and rerun this script." >&5
22234$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22235 header files. Compilation cannot proceed. Please install the ANSI C
22236 headers and rerun this script." >&2;};
22237fi
cristya0b81c32010-01-22 02:54:33 +000022238
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22240$as_echo_n "checking whether to enable assertions... " >&6; }
22241 # Check whether --enable-assert was given.
22242if test "${enable_assert+set}" = set; then :
22243 enableval=$enable_assert; ac_enable_assert=$enableval
22244 if test "x$enableval" = xno; then :
22245
22246$as_echo "#define NDEBUG 1" >>confdefs.h
22247
22248elif test "x$enableval" != xyes; then :
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22250$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22251 ac_enable_assert=yes
22252fi
22253else
22254 ac_enable_assert=yes
22255fi
22256
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22258$as_echo "$ac_enable_assert" >&6; }
22259
cristy3ed852e2009-09-05 21:47:34 +000022260ac_header_dirent=no
22261for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22262 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022264$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022265if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022266 $as_echo_n "(cached) " >&6
22267else
cristy8b350f62009-11-15 23:12:43 +000022268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022269/* end confdefs.h. */
22270#include <sys/types.h>
22271#include <$ac_hdr>
22272
22273int
22274main ()
22275{
22276if ((DIR *) 0)
22277return 0;
22278 ;
22279 return 0;
22280}
22281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022283 eval "$as_ac_Header=yes"
22284else
cristy8b350f62009-11-15 23:12:43 +000022285 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022286fi
cristy3ed852e2009-09-05 21:47:34 +000022287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288fi
cristy8b350f62009-11-15 23:12:43 +000022289eval ac_res=\$$as_ac_Header
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022291$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 cat >>confdefs.h <<_ACEOF
22294#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22295_ACEOF
22296
22297ac_header_dirent=$ac_hdr; break
22298fi
22299
22300done
22301# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22302if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022305if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022306 $as_echo_n "(cached) " >&6
22307else
22308 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022310/* end confdefs.h. */
22311
22312/* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22315#ifdef __cplusplus
22316extern "C"
22317#endif
22318char opendir ();
22319int
22320main ()
22321{
22322return opendir ();
22323 ;
22324 return 0;
22325}
22326_ACEOF
22327for ac_lib in '' dir; do
22328 if test -z "$ac_lib"; then
22329 ac_res="none required"
22330 else
22331 ac_res=-l$ac_lib
22332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22333 fi
cristy8b350f62009-11-15 23:12:43 +000022334 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022335 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022336fi
cristy8b350f62009-11-15 23:12:43 +000022337rm -f core conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022339 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 break
22341fi
22342done
cristyda16f162011-02-19 23:52:17 +000022343if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022344
cristy3ed852e2009-09-05 21:47:34 +000022345else
22346 ac_cv_search_opendir=no
22347fi
22348rm conftest.$ac_ext
22349LIBS=$ac_func_search_save_LIBS
22350fi
cristy8b350f62009-11-15 23:12:43 +000022351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022352$as_echo "$ac_cv_search_opendir" >&6; }
22353ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022354if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22356
22357fi
22358
22359else
cristy8b350f62009-11-15 23:12:43 +000022360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022361$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022362if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 $as_echo_n "(cached) " >&6
22364else
22365 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022367/* end confdefs.h. */
22368
22369/* Override any GCC internal prototype to avoid an error.
22370 Use char because int might match the return type of a GCC
22371 builtin and then its argument prototype would still apply. */
22372#ifdef __cplusplus
22373extern "C"
22374#endif
22375char opendir ();
22376int
22377main ()
22378{
22379return opendir ();
22380 ;
22381 return 0;
22382}
22383_ACEOF
22384for ac_lib in '' x; do
22385 if test -z "$ac_lib"; then
22386 ac_res="none required"
22387 else
22388 ac_res=-l$ac_lib
22389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22390 fi
cristy8b350f62009-11-15 23:12:43 +000022391 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022393fi
cristy8b350f62009-11-15 23:12:43 +000022394rm -f core conftest.err conftest.$ac_objext \
22395 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022396 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022397 break
22398fi
22399done
cristyda16f162011-02-19 23:52:17 +000022400if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022401
cristy3ed852e2009-09-05 21:47:34 +000022402else
22403 ac_cv_search_opendir=no
22404fi
22405rm conftest.$ac_ext
22406LIBS=$ac_func_search_save_LIBS
22407fi
cristy8b350f62009-11-15 23:12:43 +000022408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022409$as_echo "$ac_cv_search_opendir" >&6; }
22410ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022411if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22413
22414fi
22415
22416fi
22417
22418
22419# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000022420for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022421do :
22422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 cat >>confdefs.h <<_ACEOF
22426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22427_ACEOF
22428
22429fi
22430
22431done
22432
22433
22434########
22435#
22436# Checks for typedefs, structures, and compiler characteristics.
22437#
22438########
22439
cristy8b350f62009-11-15 23:12:43 +000022440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022441$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022442if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022443 $as_echo_n "(cached) " >&6
22444else
cristy8b350f62009-11-15 23:12:43 +000022445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022446/* end confdefs.h. */
22447
cristy14fefe52012-05-21 00:59:18 +000022448 #include <stdbool.h>
22449 #ifndef bool
22450 "error: bool is not defined"
22451 #endif
22452 #ifndef false
22453 "error: false is not defined"
22454 #endif
22455 #if false
22456 "error: false is not 0"
22457 #endif
22458 #ifndef true
22459 "error: true is not defined"
22460 #endif
22461 #if true != 1
22462 "error: true is not 1"
22463 #endif
22464 #ifndef __bool_true_false_are_defined
22465 "error: __bool_true_false_are_defined is not defined"
22466 #endif
cristy3ed852e2009-09-05 21:47:34 +000022467
cristy14fefe52012-05-21 00:59:18 +000022468 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022469
cristy14fefe52012-05-21 00:59:18 +000022470 char a[true == 1 ? 1 : -1];
22471 char b[false == 0 ? 1 : -1];
22472 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22473 char d[(bool) 0.5 == true ? 1 : -1];
22474 /* See body of main program for 'e'. */
22475 char f[(_Bool) 0.0 == false ? 1 : -1];
22476 char g[true];
22477 char h[sizeof (_Bool)];
22478 char i[sizeof s.t];
22479 enum { j = false, k = true, l = false * true, m = true * 256 };
22480 /* The following fails for
22481 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22482 _Bool n[m];
22483 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22484 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22485 /* Catch a bug in an HP-UX C compiler. See
22486 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22487 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22488 */
22489 _Bool q = true;
22490 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022491
22492int
22493main ()
22494{
22495
cristy14fefe52012-05-21 00:59:18 +000022496 bool e = &s;
22497 *pq |= q;
22498 *pq |= ! q;
22499 /* Refer to every declared value, to avoid compiler optimizations. */
22500 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22501 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022502
22503 ;
22504 return 0;
22505}
22506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022507if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 ac_cv_header_stdbool_h=yes
22509else
cristy8b350f62009-11-15 23:12:43 +000022510 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy3ed852e2009-09-05 21:47:34 +000022512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513fi
cristy8b350f62009-11-15 23:12:43 +000022514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022515$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022516 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022517if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022518
22519cat >>confdefs.h <<_ACEOF
22520#define HAVE__BOOL 1
22521_ACEOF
22522
22523
22524fi
22525
cristy14fefe52012-05-21 00:59:18 +000022526
cristy3ed852e2009-09-05 21:47:34 +000022527if test $ac_cv_header_stdbool_h = yes; then
22528
cristy8b350f62009-11-15 23:12:43 +000022529$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022530
22531fi
22532
cristy8b350f62009-11-15 23:12:43 +000022533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022534$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022535if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 $as_echo_n "(cached) " >&6
22537else
cristy8b350f62009-11-15 23:12:43 +000022538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022539/* end confdefs.h. */
22540
22541int
22542main ()
22543{
22544
22545volatile int x;
22546int * volatile y = (int *) 0;
22547return !x && !y;
22548 ;
22549 return 0;
22550}
22551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022552if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022553 ac_cv_c_volatile=yes
22554else
cristy8b350f62009-11-15 23:12:43 +000022555 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022556fi
cristy3ed852e2009-09-05 21:47:34 +000022557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558fi
cristy8b350f62009-11-15 23:12:43 +000022559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022560$as_echo "$ac_cv_c_volatile" >&6; }
22561if test $ac_cv_c_volatile = no; then
22562
cristy8b350f62009-11-15 23:12:43 +000022563$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022564
22565fi
22566
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022569if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022570 $as_echo_n "(cached) " >&6
22571else
cristy8b350f62009-11-15 23:12:43 +000022572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573/* end confdefs.h. */
22574#define x(y) #y
22575
22576char *s = x(teststring);
22577_ACEOF
22578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022579 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 ac_cv_c_stringize=no
22581else
22582 ac_cv_c_stringize=yes
22583fi
22584rm -f conftest*
22585
22586fi
cristy8b350f62009-11-15 23:12:43 +000022587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022588$as_echo "$ac_cv_c_stringize" >&6; }
22589if test $ac_cv_c_stringize = yes; then
22590
cristy8b350f62009-11-15 23:12:43 +000022591$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022592
22593fi
22594
cristy8b350f62009-11-15 23:12:43 +000022595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022596$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022597if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022598 $as_echo_n "(cached) " >&6
22599else
cristy8b350f62009-11-15 23:12:43 +000022600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022601/* end confdefs.h. */
22602#include <sys/types.h>
22603#include <sys/stat.h>
22604
22605#if defined S_ISBLK && defined S_IFDIR
22606extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22607#endif
22608
22609#if defined S_ISBLK && defined S_IFCHR
22610extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22611#endif
22612
22613#if defined S_ISLNK && defined S_IFREG
22614extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22615#endif
22616
22617#if defined S_ISSOCK && defined S_IFREG
22618extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22619#endif
22620
22621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022622if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022623 ac_cv_header_stat_broken=no
22624else
cristy8b350f62009-11-15 23:12:43 +000022625 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022626fi
cristy3ed852e2009-09-05 21:47:34 +000022627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628fi
cristy8b350f62009-11-15 23:12:43 +000022629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022630$as_echo "$ac_cv_header_stat_broken" >&6; }
22631if test $ac_cv_header_stat_broken = yes; then
22632
cristy8b350f62009-11-15 23:12:43 +000022633$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022634
22635fi
22636
cristy8b350f62009-11-15 23:12:43 +000022637{ $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 +000022638$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022639if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022640 $as_echo_n "(cached) " >&6
22641else
cristy8b350f62009-11-15 23:12:43 +000022642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022643/* end confdefs.h. */
22644#include <sys/types.h>
22645#include <sys/time.h>
22646#include <time.h>
22647
22648int
22649main ()
22650{
22651if ((struct tm *) 0)
22652return 0;
22653 ;
22654 return 0;
22655}
22656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022657if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022658 ac_cv_header_time=yes
22659else
cristy8b350f62009-11-15 23:12:43 +000022660 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022661fi
cristy3ed852e2009-09-05 21:47:34 +000022662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663fi
cristy8b350f62009-11-15 23:12:43 +000022664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022665$as_echo "$ac_cv_header_time" >&6; }
22666if test $ac_cv_header_time = yes; then
22667
cristy8b350f62009-11-15 23:12:43 +000022668$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022669
22670fi
22671
cristy8b350f62009-11-15 23:12:43 +000022672{ $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 +000022673$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022674if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022675 $as_echo_n "(cached) " >&6
22676else
cristy8b350f62009-11-15 23:12:43 +000022677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022678/* end confdefs.h. */
22679#include <sys/types.h>
22680#include <time.h>
22681
22682int
22683main ()
22684{
22685struct tm tm;
22686 int *p = &tm.tm_sec;
22687 return !p;
22688 ;
22689 return 0;
22690}
22691_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022692if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022693 ac_cv_struct_tm=time.h
22694else
cristy8b350f62009-11-15 23:12:43 +000022695 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022696fi
cristy3ed852e2009-09-05 21:47:34 +000022697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698fi
cristy8b350f62009-11-15 23:12:43 +000022699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022700$as_echo "$ac_cv_struct_tm" >&6; }
22701if test $ac_cv_struct_tm = sys/time.h; then
22702
cristy8b350f62009-11-15 23:12:43 +000022703$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022704
22705fi
22706
cristy92703d82010-04-26 00:18:18 +000022707ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22708#include <$ac_cv_struct_tm>
22709
22710"
cristyda16f162011-02-19 23:52:17 +000022711if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022712
22713cat >>confdefs.h <<_ACEOF
22714#define HAVE_STRUCT_TM_TM_ZONE 1
22715_ACEOF
22716
22717
22718fi
22719
22720if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22721
22722$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22723
22724else
22725 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22726"
cristyda16f162011-02-19 23:52:17 +000022727if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022728 ac_have_decl=1
22729else
22730 ac_have_decl=0
22731fi
22732
22733cat >>confdefs.h <<_ACEOF
22734#define HAVE_DECL_TZNAME $ac_have_decl
22735_ACEOF
22736
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22738$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022739if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022740 $as_echo_n "(cached) " >&6
22741else
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743/* end confdefs.h. */
22744#include <time.h>
22745#if !HAVE_DECL_TZNAME
22746extern char *tzname[];
22747#endif
22748
22749int
22750main ()
22751{
22752return tzname[0][0];
22753 ;
22754 return 0;
22755}
22756_ACEOF
22757if ac_fn_c_try_link "$LINENO"; then :
22758 ac_cv_var_tzname=yes
22759else
22760 ac_cv_var_tzname=no
22761fi
22762rm -f core conftest.err conftest.$ac_objext \
22763 conftest$ac_exeext conftest.$ac_ext
22764fi
22765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22766$as_echo "$ac_cv_var_tzname" >&6; }
22767 if test $ac_cv_var_tzname = yes; then
22768
22769$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22770
22771 fi
22772fi
22773
cristy8b350f62009-11-15 23:12:43 +000022774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022775$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022776if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022777 $as_echo_n "(cached) " >&6
22778else
22779 echo '#! /bin/cat
22780exit 69
22781' >conftest
22782chmod u+x conftest
22783(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22784if test $? -ne 69; then
22785 ac_cv_sys_interpreter=yes
22786else
22787 ac_cv_sys_interpreter=no
22788fi
22789rm -f conftest
22790fi
cristy8b350f62009-11-15 23:12:43 +000022791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022792$as_echo "$ac_cv_sys_interpreter" >&6; }
22793interpval=$ac_cv_sys_interpreter
22794
22795
cristye80f9cb2013-01-09 01:09:31 +000022796#
22797# Checks for language qualifiers and semantics.
22798#
22799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22800$as_echo_n "checking whether char is unsigned... " >&6; }
22801if ${ac_cv_c_char_unsigned+:} false; then :
22802 $as_echo_n "(cached) " >&6
22803else
22804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805/* end confdefs.h. */
22806$ac_includes_default
22807int
22808main ()
22809{
22810static int test_array [1 - 2 * !(((char) -1) < 0)];
22811test_array [0] = 0;
22812return test_array [0];
22813
22814 ;
22815 return 0;
22816}
22817_ACEOF
22818if ac_fn_c_try_compile "$LINENO"; then :
22819 ac_cv_c_char_unsigned=no
22820else
22821 ac_cv_c_char_unsigned=yes
22822fi
22823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824fi
22825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22826$as_echo "$ac_cv_c_char_unsigned" >&6; }
22827if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22828 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22829
22830fi
22831
22832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22833$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22834if ${ac_cv_c_const+:} false; then :
22835 $as_echo_n "(cached) " >&6
22836else
22837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22838/* end confdefs.h. */
22839
22840int
22841main ()
22842{
22843
22844#ifndef __cplusplus
22845 /* Ultrix mips cc rejects this sort of thing. */
22846 typedef int charset[2];
22847 const charset cs = { 0, 0 };
22848 /* SunOS 4.1.1 cc rejects this. */
22849 char const *const *pcpcc;
22850 char **ppc;
22851 /* NEC SVR4.0.2 mips cc rejects this. */
22852 struct point {int x, y;};
22853 static struct point const zero = {0,0};
22854 /* AIX XL C 1.02.0.0 rejects this.
22855 It does not let you subtract one const X* pointer from another in
22856 an arm of an if-expression whose if-part is not a constant
22857 expression */
22858 const char *g = "string";
22859 pcpcc = &g + (g ? g-g : 0);
22860 /* HPUX 7.0 cc rejects these. */
22861 ++pcpcc;
22862 ppc = (char**) pcpcc;
22863 pcpcc = (char const *const *) ppc;
22864 { /* SCO 3.2v4 cc rejects this sort of thing. */
22865 char tx;
22866 char *t = &tx;
22867 char const *s = 0 ? (char *) 0 : (char const *) 0;
22868
22869 *t++ = 0;
22870 if (s) return 0;
22871 }
22872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22873 int x[] = {25, 17};
22874 const int *foo = &x[0];
22875 ++foo;
22876 }
22877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22878 typedef const int *iptr;
22879 iptr p = 0;
22880 ++p;
22881 }
22882 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22884 struct s { int j; const int *ap[3]; } bx;
22885 struct s *b = &bx; b->j = 5;
22886 }
22887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22888 const int foo = 10;
22889 if (!foo) return 0;
22890 }
22891 return !cs[0] && !zero.x;
22892#endif
22893
22894 ;
22895 return 0;
22896}
22897_ACEOF
22898if ac_fn_c_try_compile "$LINENO"; then :
22899 ac_cv_c_const=yes
22900else
22901 ac_cv_c_const=no
22902fi
22903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904fi
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22906$as_echo "$ac_cv_c_const" >&6; }
22907if test $ac_cv_c_const = no; then
22908
22909$as_echo "#define const /**/" >>confdefs.h
22910
22911fi
22912
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022915if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022916 $as_echo_n "(cached) " >&6
22917else
22918 ac_cv_c_inline=no
22919for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022921/* end confdefs.h. */
22922#ifndef __cplusplus
22923typedef int foo_t;
22924static $ac_kw foo_t static_foo () {return 0; }
22925$ac_kw foo_t foo () {return 0; }
22926#endif
22927
22928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022931fi
cristy3ed852e2009-09-05 21:47:34 +000022932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 test "$ac_cv_c_inline" != no && break
22934done
22935
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$ac_cv_c_inline" >&6; }
22939
cristy3ed852e2009-09-05 21:47:34 +000022940case $ac_cv_c_inline in
22941 inline | yes) ;;
22942 *)
22943 case $ac_cv_c_inline in
22944 no) ac_val=;;
22945 *) ac_val=$ac_cv_c_inline;;
22946 esac
22947 cat >>confdefs.h <<_ACEOF
22948#ifndef __cplusplus
22949#define inline $ac_val
22950#endif
22951_ACEOF
22952 ;;
22953esac
22954
cristy8b350f62009-11-15 23:12:43 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022957if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022958 $as_echo_n "(cached) " >&6
22959else
22960 ac_cv_c_restrict=no
22961 # The order here caters to the fact that C++ does not require restrict.
22962 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022964/* end confdefs.h. */
22965typedef int * int_ptr;
22966 int foo (int_ptr $ac_kw ip) {
22967 return ip[0];
22968 }
22969int
22970main ()
22971{
22972int s[1];
22973 int * $ac_kw t = s;
22974 t[0] = 0;
22975 return foo(t)
22976 ;
22977 return 0;
22978}
22979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022980if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022981 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022982fi
cristy3ed852e2009-09-05 21:47:34 +000022983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 test "$ac_cv_c_restrict" != no && break
22985 done
22986
22987fi
cristy8b350f62009-11-15 23:12:43 +000022988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022989$as_echo "$ac_cv_c_restrict" >&6; }
22990
cristy3ed852e2009-09-05 21:47:34 +000022991 case $ac_cv_c_restrict in
22992 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022993 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022994 ;;
22995 *) cat >>confdefs.h <<_ACEOF
22996#define restrict $ac_cv_c_restrict
22997_ACEOF
22998 ;;
22999 esac
23000
cristye80f9cb2013-01-09 01:09:31 +000023001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23002$as_echo_n "checking for working volatile... " >&6; }
23003if ${ac_cv_c_volatile+:} false; then :
23004 $as_echo_n "(cached) " >&6
23005else
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007/* end confdefs.h. */
23008
23009int
23010main ()
23011{
23012
23013volatile int x;
23014int * volatile y = (int *) 0;
23015return !x && !y;
23016 ;
23017 return 0;
23018}
23019_ACEOF
23020if ac_fn_c_try_compile "$LINENO"; then :
23021 ac_cv_c_volatile=yes
23022else
23023 ac_cv_c_volatile=no
23024fi
23025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026fi
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23028$as_echo "$ac_cv_c_volatile" >&6; }
23029if test $ac_cv_c_volatile = no; then
23030
23031$as_echo "#define volatile /**/" >>confdefs.h
23032
23033fi
23034
cristy3ed852e2009-09-05 21:47:34 +000023035
23036# If words are stored with the most significant byte first (like
23037# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023039$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023040if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023041 $as_echo_n "(cached) " >&6
23042else
23043 ac_cv_c_bigendian=unknown
23044 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023046/* end confdefs.h. */
23047#ifndef __APPLE_CC__
23048 not a universal capable compiler
23049 #endif
23050 typedef int dummy;
23051
23052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023053if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023054
23055 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023056 # there are at least two -arch flags with different values.
23057 ac_arch=
23058 ac_prev=
23059 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23060 if test -n "$ac_prev"; then
23061 case $ac_word in
23062 i?86 | x86_64 | ppc | ppc64)
23063 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23064 ac_arch=$ac_word
23065 else
23066 ac_cv_c_bigendian=universal
23067 break
23068 fi
23069 ;;
23070 esac
23071 ac_prev=
23072 elif test "x$ac_word" = "x-arch"; then
23073 ac_prev=arch
23074 fi
23075 done
cristy3ed852e2009-09-05 21:47:34 +000023076fi
cristy3ed852e2009-09-05 21:47:34 +000023077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 if test $ac_cv_c_bigendian = unknown; then
23079 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023081/* end confdefs.h. */
23082#include <sys/types.h>
23083 #include <sys/param.h>
23084
23085int
23086main ()
23087{
23088#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23089 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23090 && LITTLE_ENDIAN)
23091 bogus endian macros
23092 #endif
23093
23094 ;
23095 return 0;
23096}
23097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023099 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023101/* end confdefs.h. */
23102#include <sys/types.h>
23103 #include <sys/param.h>
23104
23105int
23106main ()
23107{
23108#if BYTE_ORDER != BIG_ENDIAN
23109 not big endian
23110 #endif
23111
23112 ;
23113 return 0;
23114}
23115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023117 ac_cv_c_bigendian=yes
23118else
cristy8b350f62009-11-15 23:12:43 +000023119 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023120fi
cristy3ed852e2009-09-05 21:47:34 +000023121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023122fi
cristy3ed852e2009-09-05 21:47:34 +000023123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 fi
23125 if test $ac_cv_c_bigendian = unknown; then
23126 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023128/* end confdefs.h. */
23129#include <limits.h>
23130
23131int
23132main ()
23133{
23134#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23135 bogus endian macros
23136 #endif
23137
23138 ;
23139 return 0;
23140}
23141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023143 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023145/* end confdefs.h. */
23146#include <limits.h>
23147
23148int
23149main ()
23150{
23151#ifndef _BIG_ENDIAN
23152 not big endian
23153 #endif
23154
23155 ;
23156 return 0;
23157}
23158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023159if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023160 ac_cv_c_bigendian=yes
23161else
cristy8b350f62009-11-15 23:12:43 +000023162 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023163fi
cristy3ed852e2009-09-05 21:47:34 +000023164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023165fi
cristy3ed852e2009-09-05 21:47:34 +000023166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 fi
23168 if test $ac_cv_c_bigendian = unknown; then
23169 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023170 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023171 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023173/* end confdefs.h. */
23174short int ascii_mm[] =
23175 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23176 short int ascii_ii[] =
23177 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23178 int use_ascii (int i) {
23179 return ascii_mm[i] + ascii_ii[i];
23180 }
23181 short int ebcdic_ii[] =
23182 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23183 short int ebcdic_mm[] =
23184 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23185 int use_ebcdic (int i) {
23186 return ebcdic_mm[i] + ebcdic_ii[i];
23187 }
23188 extern int foo;
23189
23190int
23191main ()
23192{
23193return use_ascii (foo) == use_ebcdic (foo);
23194 ;
23195 return 0;
23196}
23197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023199 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23200 ac_cv_c_bigendian=yes
23201 fi
23202 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23203 if test "$ac_cv_c_bigendian" = unknown; then
23204 ac_cv_c_bigendian=no
23205 else
23206 # finding both strings is unlikely to happen, but who knows?
23207 ac_cv_c_bigendian=unknown
23208 fi
23209 fi
cristy3ed852e2009-09-05 21:47:34 +000023210fi
cristy3ed852e2009-09-05 21:47:34 +000023211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23212else
cristy8b350f62009-11-15 23:12:43 +000023213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023214/* end confdefs.h. */
23215$ac_includes_default
23216int
23217main ()
23218{
23219
23220 /* Are we little or big endian? From Harbison&Steele. */
23221 union
23222 {
23223 long int l;
23224 char c[sizeof (long int)];
23225 } u;
23226 u.l = 1;
23227 return u.c[sizeof (long int) - 1] == 1;
23228
23229 ;
23230 return 0;
23231}
23232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023233if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023234 ac_cv_c_bigendian=no
23235else
cristy8b350f62009-11-15 23:12:43 +000023236 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023237fi
cristy8b350f62009-11-15 23:12:43 +000023238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23239 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023240fi
23241
cristy3ed852e2009-09-05 21:47:34 +000023242 fi
23243fi
cristy8b350f62009-11-15 23:12:43 +000023244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo "$ac_cv_c_bigendian" >&6; }
23246 case $ac_cv_c_bigendian in #(
23247 yes)
cristy8b350f62009-11-15 23:12:43 +000023248 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023249;; #(
23250 no)
23251 ;; #(
23252 universal)
23253
cristy8b350f62009-11-15 23:12:43 +000023254$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023255
23256 ;; #(
23257 *)
cristy98dddb52010-11-04 00:30:15 +000023258 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023259 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023260 esac
23261
23262
cristy501c8042011-05-26 17:46:28 +000023263# Define to a suitable type, if standard headers do not define it.
23264ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23265case $ac_cv_c_int8_t in #(
23266 no|yes) ;; #(
23267 *)
cristy3ed852e2009-09-05 21:47:34 +000023268
23269cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023270#define int8_t $ac_cv_c_int8_t
23271_ACEOF
23272;;
23273esac
23274
23275ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23276case $ac_cv_c_int16_t in #(
23277 no|yes) ;; #(
23278 *)
23279
23280cat >>confdefs.h <<_ACEOF
23281#define int16_t $ac_cv_c_int16_t
23282_ACEOF
23283;;
23284esac
23285
23286ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23287case $ac_cv_c_int32_t in #(
23288 no|yes) ;; #(
23289 *)
23290
23291cat >>confdefs.h <<_ACEOF
23292#define int32_t $ac_cv_c_int32_t
23293_ACEOF
23294;;
23295esac
23296
23297ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23298case $ac_cv_c_int64_t in #(
23299 no|yes) ;; #(
23300 *)
23301
23302cat >>confdefs.h <<_ACEOF
23303#define int64_t $ac_cv_c_int64_t
23304_ACEOF
23305;;
23306esac
23307
23308
cristy045228a2013-06-23 11:00:16 +000023309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23310$as_echo_n "checking for unsigned long long int... " >&6; }
23311if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023312 $as_echo_n "(cached) " >&6
23313else
cristy045228a2013-06-23 11:00:16 +000023314 ac_cv_type_unsigned_long_long_int=yes
23315 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023317/* end confdefs.h. */
23318
23319 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023320 implementations with broken preprocessors. Perhaps this can
23321 be revisited in 2012. In the meantime, code should not expect
23322 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023323 /* Test literals. */
23324 long long int ll = 9223372036854775807ll;
23325 long long int nll = -9223372036854775807LL;
23326 unsigned long long int ull = 18446744073709551615ULL;
23327 /* Test constant expressions. */
23328 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023329 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023330 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023331 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023332 int i = 63;
23333int
23334main ()
23335{
23336/* Test availability of runtime routines for shift and division. */
23337 long long int llmax = 9223372036854775807ll;
23338 unsigned long long int ullmax = 18446744073709551615ull;
23339 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023340 | (llmax / ll) | (llmax % ll)
23341 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23342 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023343 ;
23344 return 0;
23345}
23346
23347_ACEOF
23348if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023349
23350else
23351 ac_cv_type_unsigned_long_long_int=no
23352fi
23353rm -f core conftest.err conftest.$ac_objext \
23354 conftest$ac_exeext conftest.$ac_ext
23355 fi
23356fi
23357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23358$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23359 if test $ac_cv_type_unsigned_long_long_int = yes; then
23360
23361$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23362
23363 fi
23364
23365
23366
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23368$as_echo_n "checking for long long int... " >&6; }
23369if ${ac_cv_type_long_long_int+:} false; then :
23370 $as_echo_n "(cached) " >&6
23371else
cristy501c8042011-05-26 17:46:28 +000023372 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023373 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023374 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23375 if test $ac_cv_type_long_long_int = yes; then
23376 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023377 :
cristy501c8042011-05-26 17:46:28 +000023378else
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380/* end confdefs.h. */
23381#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023382 #ifndef LLONG_MAX
23383 # define HALF \
23384 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23385 # define LLONG_MAX (HALF - 1 + HALF)
23386 #endif
cristy501c8042011-05-26 17:46:28 +000023387int
23388main ()
23389{
23390long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023391 int i;
23392 for (i = 0; ; i++)
23393 {
23394 long long int m = n << i;
23395 if (m >> i != n)
23396 return 1;
23397 if (LLONG_MAX / 2 < m)
23398 break;
23399 }
23400 return 0;
cristy501c8042011-05-26 17:46:28 +000023401 ;
23402 return 0;
23403}
23404_ACEOF
23405if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023406
cristy501c8042011-05-26 17:46:28 +000023407else
23408 ac_cv_type_long_long_int=no
23409fi
23410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23411 conftest.$ac_objext conftest.beam conftest.$ac_ext
23412fi
23413
cristy5ed9c6e2013-07-14 21:20:31 +000023414 fi
cristy045228a2013-06-23 11:00:16 +000023415 fi
cristy501c8042011-05-26 17:46:28 +000023416fi
23417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23418$as_echo "$ac_cv_type_long_long_int" >&6; }
23419 if test $ac_cv_type_long_long_int = yes; then
23420
23421$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23422
23423 fi
23424
23425
23426
23427 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23428if test "x$ac_cv_type_intmax_t" = xyes; then :
23429
23430$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23431
23432else
23433 test $ac_cv_type_long_long_int = yes \
23434 && ac_type='long long int' \
23435 || ac_type='long int'
23436
23437cat >>confdefs.h <<_ACEOF
23438#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023439_ACEOF
23440
23441fi
23442
23443
cristy501c8042011-05-26 17:46:28 +000023444
23445 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23446if test "x$ac_cv_type_intptr_t" = xyes; then :
23447
23448$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023449
cristy3ed852e2009-09-05 21:47:34 +000023450else
cristy501c8042011-05-26 17:46:28 +000023451 for ac_type in 'int' 'long int' 'long long int'; do
23452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23453/* end confdefs.h. */
23454$ac_includes_default
23455int
23456main ()
23457{
23458static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023459test_array [0] = 0;
23460return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023461
23462 ;
23463 return 0;
23464}
23465_ACEOF
23466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023467
23468cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023469#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023470_ACEOF
23471
cristy501c8042011-05-26 17:46:28 +000023472 ac_type=
23473fi
23474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475 test -z "$ac_type" && break
23476 done
cristy3ed852e2009-09-05 21:47:34 +000023477fi
23478
23479
cristy3ed852e2009-09-05 21:47:34 +000023480
cristy501c8042011-05-26 17:46:28 +000023481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23482$as_echo_n "checking for long double... " >&6; }
23483if ${ac_cv_type_long_double+:} false; then :
23484 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023485else
cristy501c8042011-05-26 17:46:28 +000023486 if test "$GCC" = yes; then
23487 ac_cv_type_long_double=yes
23488 else
23489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490/* end confdefs.h. */
23491/* The Stardent Vistra knows sizeof (long double), but does
23492 not support it. */
23493 long double foo = 0.0L;
23494int
23495main ()
23496{
23497static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23498 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023499test_array [0] = 0;
23500return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023501
cristy501c8042011-05-26 17:46:28 +000023502 ;
23503 return 0;
23504}
cristy3ed852e2009-09-05 21:47:34 +000023505_ACEOF
cristy501c8042011-05-26 17:46:28 +000023506if ac_fn_c_try_compile "$LINENO"; then :
23507 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023508else
cristy501c8042011-05-26 17:46:28 +000023509 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023510fi
cristy501c8042011-05-26 17:46:28 +000023511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 fi
cristy3ed852e2009-09-05 21:47:34 +000023513fi
cristy501c8042011-05-26 17:46:28 +000023514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23515$as_echo "$ac_cv_type_long_double" >&6; }
23516 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023517
cristy501c8042011-05-26 17:46:28 +000023518$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023519
cristy501c8042011-05-26 17:46:28 +000023520 fi
23521
cristy3ed852e2009-09-05 21:47:34 +000023522
cristy8b350f62009-11-15 23:12:43 +000023523 { $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 +000023524$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023525if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023526 $as_echo_n "(cached) " >&6
23527else
cristy8b350f62009-11-15 23:12:43 +000023528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023529/* end confdefs.h. */
23530#include <float.h>
23531 long double const a[] =
23532 {
23533 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23534 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23535 };
23536 long double
23537 f (long double x)
23538 {
23539 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23540 + (x ? f (x) : 'c'));
23541 }
23542
23543int
23544main ()
23545{
23546static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23547 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23548 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23549 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23550 && (int) LDBL_EPSILON == 0
23551 )];
cristy14fefe52012-05-21 00:59:18 +000023552test_array [0] = 0;
23553return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023554
23555 ;
23556 return 0;
23557}
23558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023559if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023560 ac_cv_type_long_double_wider=yes
23561else
cristy8b350f62009-11-15 23:12:43 +000023562 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023563fi
cristy3ed852e2009-09-05 21:47:34 +000023564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23565fi
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo "$ac_cv_type_long_double_wider" >&6; }
23568 if test $ac_cv_type_long_double_wider = yes; then
23569
cristy8b350f62009-11-15 23:12:43 +000023570$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023571
23572 fi
23573
23574
cristy045228a2013-06-23 11:00:16 +000023575
cristy501c8042011-05-26 17:46:28 +000023576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23577$as_echo_n "checking for long long int... " >&6; }
23578if ${ac_cv_type_long_long_int+:} false; then :
23579 $as_echo_n "(cached) " >&6
23580else
cristy501c8042011-05-26 17:46:28 +000023581 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023582 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023583 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23584 if test $ac_cv_type_long_long_int = yes; then
23585 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023586 :
cristy501c8042011-05-26 17:46:28 +000023587else
23588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23589/* end confdefs.h. */
23590#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023591 #ifndef LLONG_MAX
23592 # define HALF \
23593 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23594 # define LLONG_MAX (HALF - 1 + HALF)
23595 #endif
cristy501c8042011-05-26 17:46:28 +000023596int
23597main ()
23598{
23599long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023600 int i;
23601 for (i = 0; ; i++)
23602 {
23603 long long int m = n << i;
23604 if (m >> i != n)
23605 return 1;
23606 if (LLONG_MAX / 2 < m)
23607 break;
23608 }
23609 return 0;
cristy501c8042011-05-26 17:46:28 +000023610 ;
23611 return 0;
23612}
23613_ACEOF
23614if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023615
cristy501c8042011-05-26 17:46:28 +000023616else
23617 ac_cv_type_long_long_int=no
23618fi
23619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23620 conftest.$ac_objext conftest.beam conftest.$ac_ext
23621fi
23622
cristy5ed9c6e2013-07-14 21:20:31 +000023623 fi
cristy045228a2013-06-23 11:00:16 +000023624 fi
cristy501c8042011-05-26 17:46:28 +000023625fi
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23627$as_echo "$ac_cv_type_long_long_int" >&6; }
23628 if test $ac_cv_type_long_long_int = yes; then
23629
23630$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23631
23632 fi
23633
23634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23635$as_echo_n "checking for mbstate_t... " >&6; }
23636if ${ac_cv_type_mbstate_t+:} false; then :
23637 $as_echo_n "(cached) " >&6
23638else
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640/* end confdefs.h. */
23641$ac_includes_default
23642# include <wchar.h>
23643int
23644main ()
23645{
23646mbstate_t x; return sizeof x;
23647 ;
23648 return 0;
23649}
23650_ACEOF
23651if ac_fn_c_try_compile "$LINENO"; then :
23652 ac_cv_type_mbstate_t=yes
23653else
23654 ac_cv_type_mbstate_t=no
23655fi
23656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657fi
23658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23659$as_echo "$ac_cv_type_mbstate_t" >&6; }
23660 if test $ac_cv_type_mbstate_t = yes; then
23661
23662$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23663
23664 else
23665
23666$as_echo "#define mbstate_t int" >>confdefs.h
23667
23668 fi
23669ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23670if test "x$ac_cv_type_mode_t" = xyes; then :
23671
23672else
23673
23674cat >>confdefs.h <<_ACEOF
23675#define mode_t int
23676_ACEOF
23677
23678fi
23679
23680ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23681if test "x$ac_cv_type_off_t" = xyes; then :
23682
23683else
23684
23685cat >>confdefs.h <<_ACEOF
23686#define off_t long int
23687_ACEOF
23688
23689fi
23690
23691ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23692if test "x$ac_cv_type_pid_t" = xyes; then :
23693
23694else
23695
23696cat >>confdefs.h <<_ACEOF
23697#define pid_t int
23698_ACEOF
23699
23700fi
23701
23702ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23703if test "x$ac_cv_type_size_t" = xyes; then :
23704
23705else
23706
23707cat >>confdefs.h <<_ACEOF
23708#define size_t unsigned int
23709_ACEOF
23710
23711fi
23712
23713ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23714if test "x$ac_cv_type_ssize_t" = xyes; then :
23715
23716else
23717
23718cat >>confdefs.h <<_ACEOF
23719#define ssize_t int
23720_ACEOF
23721
23722fi
23723
23724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23725$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23726if ${ac_cv_type_uid_t+:} false; then :
23727 $as_echo_n "(cached) " >&6
23728else
23729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23730/* end confdefs.h. */
23731#include <sys/types.h>
23732
23733_ACEOF
23734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23735 $EGREP "uid_t" >/dev/null 2>&1; then :
23736 ac_cv_type_uid_t=yes
23737else
23738 ac_cv_type_uid_t=no
23739fi
23740rm -f conftest*
23741
23742fi
23743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23744$as_echo "$ac_cv_type_uid_t" >&6; }
23745if test $ac_cv_type_uid_t = no; then
23746
23747$as_echo "#define uid_t int" >>confdefs.h
23748
23749
23750$as_echo "#define gid_t int" >>confdefs.h
23751
23752fi
23753
23754ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23755case $ac_cv_c_uint8_t in #(
23756 no|yes) ;; #(
23757 *)
23758
23759$as_echo "#define _UINT8_T 1" >>confdefs.h
23760
23761
23762cat >>confdefs.h <<_ACEOF
23763#define uint8_t $ac_cv_c_uint8_t
23764_ACEOF
23765;;
23766 esac
23767
23768ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23769case $ac_cv_c_uint16_t in #(
23770 no|yes) ;; #(
23771 *)
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define uint16_t $ac_cv_c_uint16_t
23776_ACEOF
23777;;
23778 esac
23779
23780ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23781case $ac_cv_c_uint32_t in #(
23782 no|yes) ;; #(
23783 *)
23784
23785$as_echo "#define _UINT32_T 1" >>confdefs.h
23786
23787
23788cat >>confdefs.h <<_ACEOF
23789#define uint32_t $ac_cv_c_uint32_t
23790_ACEOF
23791;;
23792 esac
23793
23794ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23795case $ac_cv_c_uint64_t in #(
23796 no|yes) ;; #(
23797 *)
23798
23799$as_echo "#define _UINT64_T 1" >>confdefs.h
23800
23801
23802cat >>confdefs.h <<_ACEOF
23803#define uint64_t $ac_cv_c_uint64_t
23804_ACEOF
23805;;
23806 esac
23807
23808
cristy501c8042011-05-26 17:46:28 +000023809
23810 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23811if test "x$ac_cv_type_uintmax_t" = xyes; then :
23812
23813$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23814
23815else
23816 test $ac_cv_type_unsigned_long_long_int = yes \
23817 && ac_type='unsigned long long int' \
23818 || ac_type='unsigned long int'
23819
23820cat >>confdefs.h <<_ACEOF
23821#define uintmax_t $ac_type
23822_ACEOF
23823
23824fi
23825
23826
23827
23828 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23829if test "x$ac_cv_type_uintptr_t" = xyes; then :
23830
23831$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23832
23833else
23834 for ac_type in 'unsigned int' 'unsigned long int' \
23835 'unsigned long long int'; do
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837/* end confdefs.h. */
23838$ac_includes_default
23839int
23840main ()
23841{
23842static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023843test_array [0] = 0;
23844return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023845
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850if ac_fn_c_try_compile "$LINENO"; then :
23851
23852cat >>confdefs.h <<_ACEOF
23853#define uintptr_t $ac_type
23854_ACEOF
23855
23856 ac_type=
23857fi
23858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 test -z "$ac_type" && break
23860 done
23861fi
23862
23863
23864
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23866$as_echo_n "checking for unsigned long long int... " >&6; }
23867if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23868 $as_echo_n "(cached) " >&6
23869else
cristy045228a2013-06-23 11:00:16 +000023870 ac_cv_type_unsigned_long_long_int=yes
23871 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023873/* end confdefs.h. */
23874
23875 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023876 implementations with broken preprocessors. Perhaps this can
23877 be revisited in 2012. In the meantime, code should not expect
23878 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023879 /* Test literals. */
23880 long long int ll = 9223372036854775807ll;
23881 long long int nll = -9223372036854775807LL;
23882 unsigned long long int ull = 18446744073709551615ULL;
23883 /* Test constant expressions. */
23884 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023885 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023886 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023887 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023888 int i = 63;
23889int
23890main ()
23891{
23892/* Test availability of runtime routines for shift and division. */
23893 long long int llmax = 9223372036854775807ll;
23894 unsigned long long int ullmax = 18446744073709551615ull;
23895 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023896 | (llmax / ll) | (llmax % ll)
23897 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23898 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023899 ;
23900 return 0;
23901}
23902
23903_ACEOF
23904if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023905
cristy501c8042011-05-26 17:46:28 +000023906else
23907 ac_cv_type_unsigned_long_long_int=no
23908fi
23909rm -f core conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023911 fi
cristy501c8042011-05-26 17:46:28 +000023912fi
23913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23914$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23915 if test $ac_cv_type_unsigned_long_long_int = yes; then
23916
23917$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23918
23919 fi
23920
23921
cristy708922a2015-05-17 02:33:56 +000023922ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23923"
cristy98beafc2015-05-14 19:55:55 +000023924if test "x$ac_cv_type_locale_t" = xyes; then :
23925
23926cat >>confdefs.h <<_ACEOF
23927#define HAVE_LOCALE_T 1
23928_ACEOF
23929
23930
23931fi
23932
23933
cristyfec31822013-05-23 12:32:12 +000023934# Float_t and double_t are intended to be the the most efficient type.
23935ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23936"
23937if test "x$ac_cv_type_float_t" = xyes; then :
23938
23939cat >>confdefs.h <<_ACEOF
23940#define HAVE_FLOAT_T 1
23941_ACEOF
23942
23943
23944fi
23945
23946ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23947"
23948if test "x$ac_cv_type_double_t" = xyes; then :
23949
23950cat >>confdefs.h <<_ACEOF
23951#define HAVE_DOUBLE_T 1
23952_ACEOF
23953
23954
23955fi
23956
23957# The cast to long int works around a bug in the HP C Compiler
23958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23960# This bug is HP SR number 8606223364.
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23962$as_echo_n "checking size of float_t... " >&6; }
23963if ${ac_cv_sizeof_float_t+:} false; then :
23964 $as_echo_n "(cached) " >&6
23965else
23966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23967"; then :
23968
23969else
23970 if test "$ac_cv_type_float_t" = yes; then
23971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23973as_fn_error 77 "cannot compute sizeof (float_t)
23974See \`config.log' for more details" "$LINENO" 5; }
23975 else
23976 ac_cv_sizeof_float_t=0
23977 fi
23978fi
23979
23980fi
23981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23982$as_echo "$ac_cv_sizeof_float_t" >&6; }
23983
23984
23985
23986cat >>confdefs.h <<_ACEOF
23987#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23988_ACEOF
23989
23990
23991# The cast to long int works around a bug in the HP C Compiler
23992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23994# This bug is HP SR number 8606223364.
23995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23996$as_echo_n "checking size of double_t... " >&6; }
23997if ${ac_cv_sizeof_double_t+:} false; then :
23998 $as_echo_n "(cached) " >&6
23999else
24000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
24001"; then :
24002
24003else
24004 if test "$ac_cv_type_double_t" = yes; then
24005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24007as_fn_error 77 "cannot compute sizeof (double_t)
24008See \`config.log' for more details" "$LINENO" 5; }
24009 else
24010 ac_cv_sizeof_double_t=0
24011 fi
24012fi
24013
24014fi
24015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24016$as_echo "$ac_cv_sizeof_double_t" >&6; }
24017
24018
24019
24020cat >>confdefs.h <<_ACEOF
24021#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24022_ACEOF
24023
24024
24025
cristy9b86f202012-11-28 21:55:35 +000024026# Get size of float, double and long double for comparaison.
24027# The cast to long int works around a bug in the HP C Compiler
24028# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24029# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24030# This bug is HP SR number 8606223364.
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24032$as_echo_n "checking size of float... " >&6; }
24033if ${ac_cv_sizeof_float+:} false; then :
24034 $as_echo_n "(cached) " >&6
24035else
24036 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24037
24038else
24039 if test "$ac_cv_type_float" = yes; then
24040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24042as_fn_error 77 "cannot compute sizeof (float)
24043See \`config.log' for more details" "$LINENO" 5; }
24044 else
24045 ac_cv_sizeof_float=0
24046 fi
24047fi
24048
24049fi
24050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24051$as_echo "$ac_cv_sizeof_float" >&6; }
24052
24053
24054
24055cat >>confdefs.h <<_ACEOF
24056#define SIZEOF_FLOAT $ac_cv_sizeof_float
24057_ACEOF
24058
24059
24060# The cast to long int works around a bug in the HP C Compiler
24061# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24062# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24063# This bug is HP SR number 8606223364.
24064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24065$as_echo_n "checking size of double... " >&6; }
24066if ${ac_cv_sizeof_double+:} false; then :
24067 $as_echo_n "(cached) " >&6
24068else
24069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24070
24071else
24072 if test "$ac_cv_type_double" = yes; then
24073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24075as_fn_error 77 "cannot compute sizeof (double)
24076See \`config.log' for more details" "$LINENO" 5; }
24077 else
24078 ac_cv_sizeof_double=0
24079 fi
24080fi
24081
24082fi
24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24084$as_echo "$ac_cv_sizeof_double" >&6; }
24085
24086
24087
24088cat >>confdefs.h <<_ACEOF
24089#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24090_ACEOF
24091
24092
cristy9e2b6242014-03-25 11:49:41 +000024093# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24096# This bug is HP SR number 8606223364.
24097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24098$as_echo_n "checking size of long double... " >&6; }
24099if ${ac_cv_sizeof_long_double+:} false; then :
24100 $as_echo_n "(cached) " >&6
24101else
24102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24103
24104else
24105 if test "$ac_cv_type_long_double" = yes; then
24106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24108as_fn_error 77 "cannot compute sizeof (long double)
24109See \`config.log' for more details" "$LINENO" 5; }
24110 else
24111 ac_cv_sizeof_long_double=0
24112 fi
24113fi
24114
24115fi
24116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24117$as_echo "$ac_cv_sizeof_long_double" >&6; }
24118
24119
24120
24121cat >>confdefs.h <<_ACEOF
24122#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24123_ACEOF
24124
24125
cristyf0cf9a22012-10-24 12:05:01 +000024126
cristy3ed852e2009-09-05 21:47:34 +000024127# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24128# The cast to long int works around a bug in the HP C Compiler
24129# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24130# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24131# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024133$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024134if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024135 $as_echo_n "(cached) " >&6
24136else
cristy8b350f62009-11-15 23:12:43 +000024137 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 +000024138
cristy3ed852e2009-09-05 21:47:34 +000024139else
cristy8b350f62009-11-15 23:12:43 +000024140 if test "$ac_cv_type_signed_short" = yes; then
24141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024143as_fn_error 77 "cannot compute sizeof (signed short)
24144See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024145 else
24146 ac_cv_sizeof_signed_short=0
24147 fi
24148fi
cristy8b350f62009-11-15 23:12:43 +000024149
cristy3ed852e2009-09-05 21:47:34 +000024150fi
cristy8b350f62009-11-15 23:12:43 +000024151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024152$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24153
24154
24155
24156cat >>confdefs.h <<_ACEOF
24157#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24158_ACEOF
24159
24160
24161
24162# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24163# The cast to long int works around a bug in the HP C Compiler
24164# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24165# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24166# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024168$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024169if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024170 $as_echo_n "(cached) " >&6
24171else
cristy8b350f62009-11-15 23:12:43 +000024172 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 +000024173
cristy3ed852e2009-09-05 21:47:34 +000024174else
cristy8b350f62009-11-15 23:12:43 +000024175 if test "$ac_cv_type_unsigned_short" = yes; then
24176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024178as_fn_error 77 "cannot compute sizeof (unsigned short)
24179See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024180 else
24181 ac_cv_sizeof_unsigned_short=0
24182 fi
24183fi
cristy8b350f62009-11-15 23:12:43 +000024184
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy8b350f62009-11-15 23:12:43 +000024186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024187$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24188
24189
24190
24191cat >>confdefs.h <<_ACEOF
24192#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24193_ACEOF
24194
24195
24196
24197# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24198# The cast to long int works around a bug in the HP C Compiler
24199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24201# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024203$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024204if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 $as_echo_n "(cached) " >&6
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 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 +000024208
cristy3ed852e2009-09-05 21:47:34 +000024209else
cristy8b350f62009-11-15 23:12:43 +000024210 if test "$ac_cv_type_signed_int" = yes; then
24211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024213as_fn_error 77 "cannot compute sizeof (signed int)
24214See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024215 else
24216 ac_cv_sizeof_signed_int=0
24217 fi
24218fi
cristy8b350f62009-11-15 23:12:43 +000024219
cristy3ed852e2009-09-05 21:47:34 +000024220fi
cristy8b350f62009-11-15 23:12:43 +000024221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24223
24224
24225
24226cat >>confdefs.h <<_ACEOF
24227#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24228_ACEOF
24229
24230
24231
24232# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24233# The cast to long int works around a bug in the HP C Compiler
24234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24236# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024238$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024239if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024240 $as_echo_n "(cached) " >&6
24241else
cristy8b350f62009-11-15 23:12:43 +000024242 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 +000024243
cristy3ed852e2009-09-05 21:47:34 +000024244else
cristy8b350f62009-11-15 23:12:43 +000024245 if test "$ac_cv_type_unsigned_int" = yes; then
24246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024248as_fn_error 77 "cannot compute sizeof (unsigned int)
24249See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024250 else
24251 ac_cv_sizeof_unsigned_int=0
24252 fi
24253fi
cristy8b350f62009-11-15 23:12:43 +000024254
cristy3ed852e2009-09-05 21:47:34 +000024255fi
cristy8b350f62009-11-15 23:12:43 +000024256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024257$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24258
24259
24260
24261cat >>confdefs.h <<_ACEOF
24262#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24263_ACEOF
24264
24265
24266
24267# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24268# The cast to long int works around a bug in the HP C Compiler
24269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24271# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024274if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 $as_echo_n "(cached) " >&6
24276else
cristy8b350f62009-11-15 23:12:43 +000024277 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 +000024278
cristy3ed852e2009-09-05 21:47:34 +000024279else
cristy8b350f62009-11-15 23:12:43 +000024280 if test "$ac_cv_type_signed_long" = yes; then
24281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024283as_fn_error 77 "cannot compute sizeof (signed long)
24284See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024285 else
24286 ac_cv_sizeof_signed_long=0
24287 fi
24288fi
cristy8b350f62009-11-15 23:12:43 +000024289
cristy3ed852e2009-09-05 21:47:34 +000024290fi
cristy8b350f62009-11-15 23:12:43 +000024291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024292$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24293
24294
24295
24296cat >>confdefs.h <<_ACEOF
24297#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24298_ACEOF
24299
24300
24301
24302# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24303# The cast to long int works around a bug in the HP C Compiler
24304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24306# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024309if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024310 $as_echo_n "(cached) " >&6
24311else
cristy8b350f62009-11-15 23:12:43 +000024312 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 +000024313
cristy3ed852e2009-09-05 21:47:34 +000024314else
cristy8b350f62009-11-15 23:12:43 +000024315 if test "$ac_cv_type_unsigned_long" = yes; then
24316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024318as_fn_error 77 "cannot compute sizeof (unsigned long)
24319See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024320 else
24321 ac_cv_sizeof_unsigned_long=0
24322 fi
24323fi
cristy8b350f62009-11-15 23:12:43 +000024324
cristy3ed852e2009-09-05 21:47:34 +000024325fi
cristy8b350f62009-11-15 23:12:43 +000024326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24328
24329
24330
24331cat >>confdefs.h <<_ACEOF
24332#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24333_ACEOF
24334
24335
24336
24337# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24338# 'signed long long' is not supported then the value defined is zero.
24339# The cast to long int works around a bug in the HP C Compiler
24340# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24341# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24342# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024344$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024345if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 $as_echo_n "(cached) " >&6
24347else
cristy8b350f62009-11-15 23:12:43 +000024348 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 +000024349
cristy3ed852e2009-09-05 21:47:34 +000024350else
cristy8b350f62009-11-15 23:12:43 +000024351 if test "$ac_cv_type_signed_long_long" = yes; then
24352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024354as_fn_error 77 "cannot compute sizeof (signed long long)
24355See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024356 else
24357 ac_cv_sizeof_signed_long_long=0
24358 fi
24359fi
cristy8b350f62009-11-15 23:12:43 +000024360
cristy3ed852e2009-09-05 21:47:34 +000024361fi
cristy8b350f62009-11-15 23:12:43 +000024362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024363$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24364
24365
24366
24367cat >>confdefs.h <<_ACEOF
24368#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24369_ACEOF
24370
24371
24372
24373# Obtain size of a 'unsigned long long' and define as
24374# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24375# supported then the value defined is zero.
24376# The cast to long int works around a bug in the HP C Compiler
24377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24379# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024381$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024382if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024383 $as_echo_n "(cached) " >&6
24384else
cristy8b350f62009-11-15 23:12:43 +000024385 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 +000024386
cristy3ed852e2009-09-05 21:47:34 +000024387else
cristy8b350f62009-11-15 23:12:43 +000024388 if test "$ac_cv_type_unsigned_long_long" = yes; then
24389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024391as_fn_error 77 "cannot compute sizeof (unsigned long long)
24392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024393 else
24394 ac_cv_sizeof_unsigned_long_long=0
24395 fi
24396fi
cristy8b350f62009-11-15 23:12:43 +000024397
cristy3ed852e2009-09-05 21:47:34 +000024398fi
cristy8b350f62009-11-15 23:12:43 +000024399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24401
24402
24403
24404cat >>confdefs.h <<_ACEOF
24405#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24406_ACEOF
24407
24408
24409
cristyfec31822013-05-23 12:32:12 +000024410# Obtain size of off_t and define as SIZEOF_OFF_T
24411# The cast to long int works around a bug in the HP C Compiler
24412# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24413# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24414# This bug is HP SR number 8606223364.
24415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24416$as_echo_n "checking size of off_t... " >&6; }
24417if ${ac_cv_sizeof_off_t+:} false; then :
24418 $as_echo_n "(cached) " >&6
24419else
24420 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24421
24422else
24423 if test "$ac_cv_type_off_t" = yes; then
24424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24426as_fn_error 77 "cannot compute sizeof (off_t)
24427See \`config.log' for more details" "$LINENO" 5; }
24428 else
24429 ac_cv_sizeof_off_t=0
24430 fi
24431fi
24432
24433fi
24434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24435$as_echo "$ac_cv_sizeof_off_t" >&6; }
24436
24437
24438
24439cat >>confdefs.h <<_ACEOF
24440#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24441_ACEOF
24442
24443
24444
24445# Obtain size of size_t and define as SIZEOF_SIZE_T
24446# The cast to long int works around a bug in the HP C Compiler
24447# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24448# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24449# This bug is HP SR number 8606223364.
24450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24451$as_echo_n "checking size of size_t... " >&6; }
24452if ${ac_cv_sizeof_size_t+:} false; then :
24453 $as_echo_n "(cached) " >&6
24454else
24455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24456
24457else
24458 if test "$ac_cv_type_size_t" = yes; then
24459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24461as_fn_error 77 "cannot compute sizeof (size_t)
24462See \`config.log' for more details" "$LINENO" 5; }
24463 else
24464 ac_cv_sizeof_size_t=0
24465 fi
24466fi
24467
24468fi
24469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24470$as_echo "$ac_cv_sizeof_size_t" >&6; }
24471
24472
24473
24474cat >>confdefs.h <<_ACEOF
24475#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24476_ACEOF
24477
24478
24479
24480# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24481# The cast to long int works around a bug in the HP C Compiler
24482# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24483# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24484# This bug is HP SR number 8606223364.
24485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24486$as_echo_n "checking size of ssize_t... " >&6; }
24487if ${ac_cv_sizeof_ssize_t+:} false; then :
24488 $as_echo_n "(cached) " >&6
24489else
24490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24491
24492else
24493 if test "$ac_cv_type_ssize_t" = yes; then
24494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24496as_fn_error 77 "cannot compute sizeof (ssize_t)
24497See \`config.log' for more details" "$LINENO" 5; }
24498 else
24499 ac_cv_sizeof_ssize_t=0
24500 fi
24501fi
24502
24503fi
24504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24505$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24506
24507
24508
24509cat >>confdefs.h <<_ACEOF
24510#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24511_ACEOF
24512
24513
24514
cristy3ed852e2009-09-05 21:47:34 +000024515# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24516# The cast to long int works around a bug in the HP C Compiler
24517# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24518# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24519# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024521$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024522if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024523 $as_echo_n "(cached) " >&6
24524else
cristy8b350f62009-11-15 23:12:43 +000024525 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 +000024526
cristy3ed852e2009-09-05 21:47:34 +000024527else
cristy8b350f62009-11-15 23:12:43 +000024528 if test "$ac_cv_type_unsigned_intp" = yes; then
24529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024531as_fn_error 77 "cannot compute sizeof (unsigned int*)
24532See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024533 else
24534 ac_cv_sizeof_unsigned_intp=0
24535 fi
24536fi
cristy8b350f62009-11-15 23:12:43 +000024537
cristy3ed852e2009-09-05 21:47:34 +000024538fi
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24541
24542
24543
24544cat >>confdefs.h <<_ACEOF
24545#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24546_ACEOF
24547
24548
24549
24550#
24551# Compute sized types for current CPU and compiler options.
24552#
24553
cristy8b350f62009-11-15 23:12:43 +000024554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024555$as_echo_n "checking for signed 8-bit type... " >&6; }
24556INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24558$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024559
24560
cristy8b350f62009-11-15 23:12:43 +000024561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24563UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24565$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024566
24567
cristy8b350f62009-11-15 23:12:43 +000024568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024569$as_echo_n "checking for signed 16-bit type... " >&6; }
24570INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24572$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024573
24574
cristy8b350f62009-11-15 23:12:43 +000024575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24577UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24579$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024580
24581
cristy8b350f62009-11-15 23:12:43 +000024582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024583$as_echo_n "checking for signed 32-bit type... " >&6; }
24584INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024585INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024586if test $ac_cv_sizeof_signed_int -eq 4; then
24587 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024588 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024589elif test $ac_cv_sizeof_signed_long -eq 4; then
24590 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024591 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024592fi
cristyad38abe2012-12-23 23:03:21 +000024593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24594$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024595
24596
cristy6d5e20f2011-04-25 13:48:54 +000024597
cristy8b350f62009-11-15 23:12:43 +000024598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24600UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024601UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024602if test $ac_cv_sizeof_unsigned_int -eq 4; then
24603 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024604 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024605elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24606 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024607 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024608fi
cristyad38abe2012-12-23 23:03:21 +000024609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24610$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024611
24612
cristy6d5e20f2011-04-25 13:48:54 +000024613
cristy8b350f62009-11-15 23:12:43 +000024614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024615$as_echo_n "checking for signed 64-bit type... " >&6; }
24616INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024617INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024618if test $ac_cv_sizeof_signed_long -eq 8; then
24619 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024620 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024621elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24622 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024623 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024624fi
cristy3a99dcf2011-12-17 01:29:40 +000024625case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024626 mingw* )
24627 INT64_F='"I64"'
24628 ;;
24629esac
cristyad38abe2012-12-23 23:03:21 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24631$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024632
24633
cristy6d5e20f2011-04-25 13:48:54 +000024634
cristy8b350f62009-11-15 23:12:43 +000024635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24637UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024638UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024639if test $ac_cv_sizeof_unsigned_long -eq 8; then
24640 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024641 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024642elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24643 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024644 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024645fi
cristy3a99dcf2011-12-17 01:29:40 +000024646case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024647 mingw* )
24648 UINT64_F='"I64"'
24649 ;;
24650esac
cristyad38abe2012-12-23 23:03:21 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24652$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024653
24654
cristy6d5e20f2011-04-25 13:48:54 +000024655
cristy8b350f62009-11-15 23:12:43 +000024656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024657$as_echo_n "checking for unsigned maximum type... " >&6; }
24658UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024659UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024660if test "$UINT64_T" != 'none'; then
24661 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024662 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024663elif test "$UINT32_T" != 'none'; then
24664 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024665 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024666fi
cristyad38abe2012-12-23 23:03:21 +000024667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24668$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024669
24670
cristy6d5e20f2011-04-25 13:48:54 +000024671
cristy8b350f62009-11-15 23:12:43 +000024672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024673$as_echo_n "checking for pointer difference type... " >&6; }
24674UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024675UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024676if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24677 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024678 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024679elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24680 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024681 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024682fi
cristyad38abe2012-12-23 23:03:21 +000024683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24684$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024685
24686
cristy6d5e20f2011-04-25 13:48:54 +000024687
cristy8b350f62009-11-15 23:12:43 +000024688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024691/* end confdefs.h. */
24692
24693int
24694main ()
24695{
24696{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24697 ;
24698 return 0;
24699}
24700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024701if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24703$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024704else
cristyad38abe2012-12-23 23:03:21 +000024705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24706$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024708$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710/* end confdefs.h. */
24711
24712int
24713main ()
24714{
24715{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24716 ;
24717 return 0;
24718}
24719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024720if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24722$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024723
cristy8b350f62009-11-15 23:12:43 +000024724$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024725
24726else
cristyad38abe2012-12-23 23:03:21 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24728$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024729
cristy8b350f62009-11-15 23:12:43 +000024730$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024731
24732fi
cristy3ed852e2009-09-05 21:47:34 +000024733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734fi
cristy3ed852e2009-09-05 21:47:34 +000024735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736
24737########
24738#
24739# Check for functions
24740#
24741########
cristy8b350f62009-11-15 23:12:43 +000024742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024744if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024745 $as_echo_n "(cached) " >&6
24746else
cristy8b350f62009-11-15 23:12:43 +000024747 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024748 ac_cv_func_closedir_void=yes
24749else
cristy8b350f62009-11-15 23:12:43 +000024750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024751/* end confdefs.h. */
24752$ac_includes_default
24753#include <$ac_header_dirent>
24754#ifndef __cplusplus
24755int closedir ();
24756#endif
24757
24758int
24759main ()
24760{
24761return closedir (opendir (".")) != 0;
24762 ;
24763 return 0;
24764}
24765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024767 ac_cv_func_closedir_void=no
24768else
cristy8b350f62009-11-15 23:12:43 +000024769 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024770fi
cristy8b350f62009-11-15 23:12:43 +000024771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24772 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024773fi
24774
cristy3ed852e2009-09-05 21:47:34 +000024775fi
cristy8b350f62009-11-15 23:12:43 +000024776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024777$as_echo "$ac_cv_func_closedir_void" >&6; }
24778if test $ac_cv_func_closedir_void = yes; then
24779
cristy8b350f62009-11-15 23:12:43 +000024780$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024781
24782fi
24783
cristycd4c5312009-11-22 01:19:08 +000024784
24785
24786
24787 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024788do :
24789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024790ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24791"
cristy98dddb52010-11-04 00:30:15 +000024792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024793 cat >>confdefs.h <<_ACEOF
24794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24795_ACEOF
24796
24797fi
24798
24799done
24800
cristycd4c5312009-11-22 01:19:08 +000024801
24802
24803
24804
24805
24806
24807
cristy3ed852e2009-09-05 21:47:34 +000024808for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024809do :
24810 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024811if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024813#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024814_ACEOF
24815
24816fi
24817done
24818
cristy8b350f62009-11-15 23:12:43 +000024819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024820$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024821if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024822 $as_echo_n "(cached) " >&6
24823else
cristy8b350f62009-11-15 23:12:43 +000024824 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 ac_cv_func_mmap_fixed_mapped=no
24826else
cristy8b350f62009-11-15 23:12:43 +000024827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024828/* end confdefs.h. */
24829$ac_includes_default
24830/* malloc might have been renamed as rpl_malloc. */
24831#undef malloc
24832
24833/* Thanks to Mike Haertel and Jim Avera for this test.
24834 Here is a matrix of mmap possibilities:
24835 mmap private not fixed
24836 mmap private fixed at somewhere currently unmapped
24837 mmap private fixed at somewhere already mapped
24838 mmap shared not fixed
24839 mmap shared fixed at somewhere currently unmapped
24840 mmap shared fixed at somewhere already mapped
24841 For private mappings, we should verify that changes cannot be read()
24842 back from the file, nor mmap's back from the file at a different
24843 address. (There have been systems where private was not correctly
24844 implemented like the infamous i386 svr4.0, and systems where the
24845 VM page cache was not coherent with the file system buffer cache
24846 like early versions of FreeBSD and possibly contemporary NetBSD.)
24847 For shared mappings, we should conversely verify that changes get
24848 propagated back to all the places they're supposed to be.
24849
24850 Grep wants private fixed already mapped.
24851 The main things grep needs to know about mmap are:
24852 * does it exist and is it safe to write into the mmap'd area
24853 * how to use it (BSD variants) */
24854
24855#include <fcntl.h>
24856#include <sys/mman.h>
24857
24858#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24859char *malloc ();
24860#endif
24861
24862/* This mess was copied from the GNU getpagesize.h. */
24863#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024864# ifdef _SC_PAGESIZE
24865# define getpagesize() sysconf(_SC_PAGESIZE)
24866# else /* no _SC_PAGESIZE */
24867# ifdef HAVE_SYS_PARAM_H
24868# include <sys/param.h>
24869# ifdef EXEC_PAGESIZE
24870# define getpagesize() EXEC_PAGESIZE
24871# else /* no EXEC_PAGESIZE */
24872# ifdef NBPG
24873# define getpagesize() NBPG * CLSIZE
24874# ifndef CLSIZE
24875# define CLSIZE 1
24876# endif /* no CLSIZE */
24877# else /* no NBPG */
24878# ifdef NBPC
24879# define getpagesize() NBPC
24880# else /* no NBPC */
24881# ifdef PAGESIZE
24882# define getpagesize() PAGESIZE
24883# endif /* PAGESIZE */
24884# endif /* no NBPC */
24885# endif /* no NBPG */
24886# endif /* no EXEC_PAGESIZE */
24887# else /* no HAVE_SYS_PARAM_H */
24888# define getpagesize() 8192 /* punt totally */
24889# endif /* no HAVE_SYS_PARAM_H */
24890# endif /* no _SC_PAGESIZE */
24891
24892#endif /* no HAVE_GETPAGESIZE */
24893
24894int
24895main ()
24896{
24897 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024898 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024899 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024900 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024901
24902 pagesize = getpagesize ();
24903
24904 /* First, make a file with some known garbage in it. */
24905 data = (char *) malloc (pagesize);
24906 if (!data)
24907 return 1;
24908 for (i = 0; i < pagesize; ++i)
24909 *(data + i) = rand ();
24910 umask (0);
24911 fd = creat ("conftest.mmap", 0600);
24912 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024913 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024914 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024915 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024916 close (fd);
24917
cristycd4c5312009-11-22 01:19:08 +000024918 /* Next, check that the tail of a page is zero-filled. File must have
24919 non-zero length, otherwise we risk SIGBUS for entire page. */
24920 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24921 if (fd2 < 0)
24922 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024923 cdata2 = "";
24924 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024925 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024926 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024927 if (data2 == MAP_FAILED)
24928 return 6;
24929 for (i = 0; i < pagesize; ++i)
24930 if (*(data2 + i))
24931 return 7;
24932 close (fd2);
24933 if (munmap (data2, pagesize))
24934 return 8;
24935
cristy3ed852e2009-09-05 21:47:34 +000024936 /* Next, try to mmap the file at a fixed address which already has
24937 something else allocated at it. If we can, also make sure that
24938 we see the same garbage. */
24939 fd = open ("conftest.mmap", O_RDWR);
24940 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024941 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024942 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24943 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024944 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024945 for (i = 0; i < pagesize; ++i)
24946 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024947 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024948
24949 /* Finally, make sure that changes to the mapped area do not
24950 percolate back to the file as seen by read(). (This is a bug on
24951 some variants of i386 svr4.0.) */
24952 for (i = 0; i < pagesize; ++i)
24953 *(data2 + i) = *(data2 + i) + 1;
24954 data3 = (char *) malloc (pagesize);
24955 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024956 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024957 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024958 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024959 for (i = 0; i < pagesize; ++i)
24960 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024961 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024962 close (fd);
24963 return 0;
24964}
24965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024966if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 ac_cv_func_mmap_fixed_mapped=yes
24968else
cristy8b350f62009-11-15 23:12:43 +000024969 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024970fi
cristy8b350f62009-11-15 23:12:43 +000024971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24972 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973fi
24974
cristy3ed852e2009-09-05 21:47:34 +000024975fi
cristy8b350f62009-11-15 23:12:43 +000024976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024977$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24978if test $ac_cv_func_mmap_fixed_mapped = yes; then
24979
cristy8b350f62009-11-15 23:12:43 +000024980$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024981
24982fi
cristycd4c5312009-11-22 01:19:08 +000024983rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024984
cristy3ed852e2009-09-05 21:47:34 +000024985for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024986do :
24987 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024988if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024989 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024990#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024991_ACEOF
24992
24993fi
24994
24995done
24996
cristy3ed852e2009-09-05 21:47:34 +000024997for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024998do :
24999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025001if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025002 cat >>confdefs.h <<_ACEOF
25003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25004_ACEOF
25005
25006fi
25007done
25008
25009if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025011$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025012if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025013 $as_echo_n "(cached) " >&6
25014else
cristy8b350f62009-11-15 23:12:43 +000025015 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025016 ac_cv_func_fork_works=cross
25017else
cristy8b350f62009-11-15 23:12:43 +000025018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025019/* end confdefs.h. */
25020$ac_includes_default
25021int
25022main ()
25023{
25024
25025 /* By Ruediger Kuhlmann. */
25026 return fork () < 0;
25027
25028 ;
25029 return 0;
25030}
25031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025032if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_func_fork_works=yes
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025036fi
cristy8b350f62009-11-15 23:12:43 +000025037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25038 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025039fi
25040
cristy3ed852e2009-09-05 21:47:34 +000025041fi
cristy8b350f62009-11-15 23:12:43 +000025042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025043$as_echo "$ac_cv_func_fork_works" >&6; }
25044
25045else
25046 ac_cv_func_fork_works=$ac_cv_func_fork
25047fi
25048if test "x$ac_cv_func_fork_works" = xcross; then
25049 case $host in
25050 *-*-amigaos* | *-*-msdosdjgpp*)
25051 # Override, as these systems have only a dummy fork() stub
25052 ac_cv_func_fork_works=no
25053 ;;
25054 *)
25055 ac_cv_func_fork_works=yes
25056 ;;
25057 esac
cristy8b350f62009-11-15 23:12:43 +000025058 { $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 +000025059$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25060fi
25061ac_cv_func_vfork_works=$ac_cv_func_vfork
25062if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025064$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025065if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025066 $as_echo_n "(cached) " >&6
25067else
cristy8b350f62009-11-15 23:12:43 +000025068 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025069 ac_cv_func_vfork_works=cross
25070else
cristy8b350f62009-11-15 23:12:43 +000025071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025072/* end confdefs.h. */
25073/* Thanks to Paul Eggert for this test. */
25074$ac_includes_default
25075#include <sys/wait.h>
25076#ifdef HAVE_VFORK_H
25077# include <vfork.h>
25078#endif
25079/* On some sparc systems, changes by the child to local and incoming
25080 argument registers are propagated back to the parent. The compiler
25081 is told about this with #include <vfork.h>, but some compilers
25082 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25083 static variable whose address is put into a register that is
25084 clobbered by the vfork. */
25085static void
25086#ifdef __cplusplus
25087sparc_address_test (int arg)
25088# else
25089sparc_address_test (arg) int arg;
25090#endif
25091{
25092 static pid_t child;
25093 if (!child) {
25094 child = vfork ();
25095 if (child < 0) {
25096 perror ("vfork");
25097 _exit(2);
25098 }
25099 if (!child) {
25100 arg = getpid();
25101 write(-1, "", 0);
25102 _exit (arg);
25103 }
25104 }
25105}
25106
25107int
25108main ()
25109{
25110 pid_t parent = getpid ();
25111 pid_t child;
25112
25113 sparc_address_test (0);
25114
25115 child = vfork ();
25116
25117 if (child == 0) {
25118 /* Here is another test for sparc vfork register problems. This
25119 test uses lots of local variables, at least as many local
25120 variables as main has allocated so far including compiler
25121 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25122 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25123 reuse the register of parent for one of the local variables,
25124 since it will think that parent can't possibly be used any more
25125 in this routine. Assigning to the local variable will thus
25126 munge parent in the parent process. */
25127 pid_t
25128 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25129 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25130 /* Convince the compiler that p..p7 are live; otherwise, it might
25131 use the same hardware register for all 8 local variables. */
25132 if (p != p1 || p != p2 || p != p3 || p != p4
25133 || p != p5 || p != p6 || p != p7)
25134 _exit(1);
25135
25136 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25137 from child file descriptors. If the child closes a descriptor
25138 before it execs or exits, this munges the parent's descriptor
25139 as well. Test for this by closing stdout in the child. */
25140 _exit(close(fileno(stdout)) != 0);
25141 } else {
25142 int status;
25143 struct stat st;
25144
25145 while (wait(&status) != child)
25146 ;
25147 return (
25148 /* Was there some problem with vforking? */
25149 child < 0
25150
25151 /* Did the child fail? (This shouldn't happen.) */
25152 || status
25153
25154 /* Did the vfork/compiler bug occur? */
25155 || parent != getpid()
25156
25157 /* Did the file descriptor bug occur? */
25158 || fstat(fileno(stdout), &st) != 0
25159 );
25160 }
25161}
25162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025163if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025164 ac_cv_func_vfork_works=yes
25165else
cristy8b350f62009-11-15 23:12:43 +000025166 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025167fi
cristy8b350f62009-11-15 23:12:43 +000025168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25169 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025170fi
25171
cristy3ed852e2009-09-05 21:47:34 +000025172fi
cristy8b350f62009-11-15 23:12:43 +000025173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025174$as_echo "$ac_cv_func_vfork_works" >&6; }
25175
25176fi;
25177if test "x$ac_cv_func_fork_works" = xcross; then
25178 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025179 { $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 +000025180$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25181fi
25182
25183if test "x$ac_cv_func_vfork_works" = xyes; then
25184
cristy8b350f62009-11-15 23:12:43 +000025185$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025186
25187else
25188
cristy8b350f62009-11-15 23:12:43 +000025189$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025190
25191fi
25192if test "x$ac_cv_func_fork_works" = xyes; then
25193
cristy8b350f62009-11-15 23:12:43 +000025194$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025195
25196fi
25197
cristy8b350f62009-11-15 23:12:43 +000025198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025199$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025200if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025201 $as_echo_n "(cached) " >&6
25202else
cristy8b350f62009-11-15 23:12:43 +000025203 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 ac_cv_func_memcmp_working=no
25205else
cristy8b350f62009-11-15 23:12:43 +000025206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025207/* end confdefs.h. */
25208$ac_includes_default
25209int
25210main ()
25211{
25212
25213 /* Some versions of memcmp are not 8-bit clean. */
25214 char c0 = '\100', c1 = '\200', c2 = '\201';
25215 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25216 return 1;
25217
25218 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25219 or more and with at least one buffer not starting on a 4-byte boundary.
25220 William Lewis provided this test program. */
25221 {
25222 char foo[21];
25223 char bar[21];
25224 int i;
25225 for (i = 0; i < 4; i++)
25226 {
25227 char *a = foo + i;
25228 char *b = bar + i;
25229 strcpy (a, "--------01111111");
25230 strcpy (b, "--------10000000");
25231 if (memcmp (a, b, 16) >= 0)
25232 return 1;
25233 }
25234 return 0;
25235 }
25236
25237 ;
25238 return 0;
25239}
25240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025241if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025242 ac_cv_func_memcmp_working=yes
25243else
cristy8b350f62009-11-15 23:12:43 +000025244 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025245fi
cristy8b350f62009-11-15 23:12:43 +000025246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25247 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025248fi
25249
cristy3ed852e2009-09-05 21:47:34 +000025250fi
cristy8b350f62009-11-15 23:12:43 +000025251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo "$ac_cv_func_memcmp_working" >&6; }
25253test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25254 *" memcmp.$ac_objext "* ) ;;
25255 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25256 ;;
25257esac
25258
25259
cristy3ed852e2009-09-05 21:47:34 +000025260for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025261do :
25262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25263ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025264if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025265 cat >>confdefs.h <<_ACEOF
25266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25267_ACEOF
25268
25269fi
25270
25271done
25272
cristy8b350f62009-11-15 23:12:43 +000025273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025275if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025276 $as_echo_n "(cached) " >&6
25277else
25278 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25279 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25280 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025282/* end confdefs.h. */
25283$ac_includes_default
25284#ifdef HAVE_SYS_SELECT_H
25285# include <sys/select.h>
25286#endif
25287#ifdef HAVE_SYS_SOCKET_H
25288# include <sys/socket.h>
25289#endif
25290
25291int
25292main ()
25293{
25294extern int select ($ac_arg1,
25295 $ac_arg234, $ac_arg234, $ac_arg234,
25296 $ac_arg5);
25297 ;
25298 return 0;
25299}
25300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025301if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025302 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025303fi
cristy3ed852e2009-09-05 21:47:34 +000025304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305 done
25306 done
25307done
25308# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025309: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025310
25311fi
cristy8b350f62009-11-15 23:12:43 +000025312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025313$as_echo "$ac_cv_func_select_args" >&6; }
25314ac_save_IFS=$IFS; IFS=','
25315set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25316IFS=$ac_save_IFS
25317shift
25318
25319cat >>confdefs.h <<_ACEOF
25320#define SELECT_TYPE_ARG1 $1
25321_ACEOF
25322
25323
25324cat >>confdefs.h <<_ACEOF
25325#define SELECT_TYPE_ARG234 ($2)
25326_ACEOF
25327
25328
25329cat >>confdefs.h <<_ACEOF
25330#define SELECT_TYPE_ARG5 ($3)
25331_ACEOF
25332
25333rm -f conftest*
25334
cristyda16f162011-02-19 23:52:17 +000025335if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025336 $as_echo_n "(cached) " >&6
25337else
25338 ac_cv_func_setvbuf_reversed=no
25339fi
25340
25341
cristy8b350f62009-11-15 23:12:43 +000025342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025343$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025344if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 $as_echo_n "(cached) " >&6
25346else
cristy8b350f62009-11-15 23:12:43 +000025347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025348/* end confdefs.h. */
25349#include <sys/types.h>
25350#include <signal.h>
25351
25352int
25353main ()
25354{
25355return *(signal (0, 0)) (0) == 1;
25356 ;
25357 return 0;
25358}
25359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025360if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 ac_cv_type_signal=int
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025364fi
cristy3ed852e2009-09-05 21:47:34 +000025365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25366fi
cristy8b350f62009-11-15 23:12:43 +000025367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo "$ac_cv_type_signal" >&6; }
25369
25370cat >>confdefs.h <<_ACEOF
25371#define RETSIGTYPE $ac_cv_type_signal
25372_ACEOF
25373
25374
cristy8b350f62009-11-15 23:12:43 +000025375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025377if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 $as_echo_n "(cached) " >&6
25379else
cristy8b350f62009-11-15 23:12:43 +000025380 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 ac_cv_func_strtod=no
25382else
cristy8b350f62009-11-15 23:12:43 +000025383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025384/* end confdefs.h. */
25385
25386$ac_includes_default
25387#ifndef strtod
25388double strtod ();
25389#endif
25390int
25391main()
25392{
25393 {
25394 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25395 char *string = " +69";
25396 char *term;
25397 double value;
25398 value = strtod (string, &term);
25399 if (value != 69 || term != (string + 4))
25400 return 1;
25401 }
25402
25403 {
25404 /* Under Solaris 2.4, strtod returns the wrong value for the
25405 terminating character under some conditions. */
25406 char *string = "NaN";
25407 char *term;
25408 strtod (string, &term);
25409 if (term != string && *(term - 1) == 0)
25410 return 1;
25411 }
25412 return 0;
25413}
25414
25415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025416if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 ac_cv_func_strtod=yes
25418else
cristy8b350f62009-11-15 23:12:43 +000025419 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025420fi
cristy8b350f62009-11-15 23:12:43 +000025421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25422 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025423fi
25424
cristy3ed852e2009-09-05 21:47:34 +000025425fi
cristy8b350f62009-11-15 23:12:43 +000025426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025427$as_echo "$ac_cv_func_strtod" >&6; }
25428if test $ac_cv_func_strtod = no; then
25429 case " $LIBOBJS " in
25430 *" strtod.$ac_objext "* ) ;;
25431 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25432 ;;
25433esac
25434
cristy8b350f62009-11-15 23:12:43 +000025435ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025436if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025437
cristy3ed852e2009-09-05 21:47:34 +000025438fi
25439
cristy3ed852e2009-09-05 21:47:34 +000025440if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025442$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025443if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025444 $as_echo_n "(cached) " >&6
25445else
25446 ac_check_lib_save_LIBS=$LIBS
25447LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025449/* end confdefs.h. */
25450
25451/* Override any GCC internal prototype to avoid an error.
25452 Use char because int might match the return type of a GCC
25453 builtin and then its argument prototype would still apply. */
25454#ifdef __cplusplus
25455extern "C"
25456#endif
25457char pow ();
25458int
25459main ()
25460{
25461return pow ();
25462 ;
25463 return 0;
25464}
25465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025466if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025467 ac_cv_lib_m_pow=yes
25468else
cristy8b350f62009-11-15 23:12:43 +000025469 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025470fi
cristy8b350f62009-11-15 23:12:43 +000025471rm -f core conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025473LIBS=$ac_check_lib_save_LIBS
25474fi
cristy8b350f62009-11-15 23:12:43 +000025475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025476$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025477if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025478 POW_LIB=-lm
25479else
cristy8b350f62009-11-15 23:12:43 +000025480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025481$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25482fi
25483
25484fi
25485
25486fi
25487
cristy7d4a1d62011-10-13 15:54:12 +000025488ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25489if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25490 ac_have_decl=1
25491else
25492 ac_have_decl=0
25493fi
25494
25495cat >>confdefs.h <<_ACEOF
25496#define HAVE_DECL_STRERROR_R $ac_have_decl
25497_ACEOF
25498
25499for ac_func in strerror_r
25500do :
25501 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25502if test "x$ac_cv_func_strerror_r" = xyes; then :
25503 cat >>confdefs.h <<_ACEOF
25504#define HAVE_STRERROR_R 1
25505_ACEOF
25506
25507fi
25508done
25509
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25511$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25512if ${ac_cv_func_strerror_r_char_p+:} false; then :
25513 $as_echo_n "(cached) " >&6
25514else
25515
25516 ac_cv_func_strerror_r_char_p=no
25517 if test $ac_cv_have_decl_strerror_r = yes; then
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519/* end confdefs.h. */
25520$ac_includes_default
25521int
25522main ()
25523{
25524
25525 char buf[100];
25526 char x = *strerror_r (0, buf, sizeof buf);
25527 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025528 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025529
25530 ;
25531 return 0;
25532}
25533_ACEOF
25534if ac_fn_c_try_compile "$LINENO"; then :
25535 ac_cv_func_strerror_r_char_p=yes
25536fi
25537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 else
25539 # strerror_r is not declared. Choose between
25540 # systems that have relatively inaccessible declarations for the
25541 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25542 # former has a strerror_r that returns char*, while the latter
25543 # has a strerror_r that returns `int'.
25544 # This test should segfault on the DEC system.
25545 if test "$cross_compiling" = yes; then :
25546 :
25547else
25548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549/* end confdefs.h. */
25550$ac_includes_default
25551 extern char *strerror_r ();
25552int
25553main ()
25554{
25555char buf[100];
25556 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025557 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025558 ;
25559 return 0;
25560}
25561_ACEOF
25562if ac_fn_c_try_run "$LINENO"; then :
25563 ac_cv_func_strerror_r_char_p=yes
25564fi
25565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25566 conftest.$ac_objext conftest.beam conftest.$ac_ext
25567fi
25568
25569 fi
25570
25571fi
25572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25573$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25574if test $ac_cv_func_strerror_r_char_p = yes; then
25575
25576$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25577
25578fi
25579
cristy3ed852e2009-09-05 21:47:34 +000025580for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025581do :
25582 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025583if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025584 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025585#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025586_ACEOF
25587
cristy8b350f62009-11-15 23:12:43 +000025588ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025589if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025590
cristy8b350f62009-11-15 23:12:43 +000025591$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025592
25593fi
25594
25595fi
25596done
25597
25598
25599
cristy161b9262010-03-20 19:34:32 +000025600#
25601# Find math library
25602#
25603MATH_LIBS=''
25604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25605$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025606if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025607 $as_echo_n "(cached) " >&6
25608else
25609 ac_check_lib_save_LIBS=$LIBS
25610LIBS="-lm $LIBS"
25611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612/* end confdefs.h. */
25613
25614/* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25617#ifdef __cplusplus
25618extern "C"
25619#endif
25620char sqrt ();
25621int
25622main ()
25623{
25624return sqrt ();
25625 ;
25626 return 0;
25627}
25628_ACEOF
25629if ac_fn_c_try_link "$LINENO"; then :
25630 ac_cv_lib_m_sqrt=yes
25631else
25632 ac_cv_lib_m_sqrt=no
25633fi
25634rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25636LIBS=$ac_check_lib_save_LIBS
25637fi
25638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25639$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025640if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025641 MATH_LIBS="-lm"
25642fi
25643
25644LIBS="$MATH_LIBS $LIBS"
25645
25646
cristy85572162013-01-04 19:19:32 +000025647#
25648# Find socket library
25649#
cristy8a5d7f42013-01-06 15:24:33 +000025650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25651$as_echo_n "checking for library containing gethostbyname... " >&6; }
25652if ${ac_cv_search_gethostbyname+:} false; then :
25653 $as_echo_n "(cached) " >&6
25654else
25655 ac_func_search_save_LIBS=$LIBS
25656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657/* end confdefs.h. */
25658
25659/* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25662#ifdef __cplusplus
25663extern "C"
25664#endif
25665char gethostbyname ();
25666int
25667main ()
25668{
25669return gethostbyname ();
25670 ;
25671 return 0;
25672}
25673_ACEOF
25674for ac_lib in '' resolv nsl; do
25675 if test -z "$ac_lib"; then
25676 ac_res="none required"
25677 else
25678 ac_res=-l$ac_lib
25679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25680 fi
25681 if ac_fn_c_try_link "$LINENO"; then :
25682 ac_cv_search_gethostbyname=$ac_res
25683fi
25684rm -f core conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext
25686 if ${ac_cv_search_gethostbyname+:} false; then :
25687 break
25688fi
25689done
25690if ${ac_cv_search_gethostbyname+:} false; then :
25691
25692else
25693 ac_cv_search_gethostbyname=no
25694fi
25695rm conftest.$ac_ext
25696LIBS=$ac_func_search_save_LIBS
25697fi
25698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25699$as_echo "$ac_cv_search_gethostbyname" >&6; }
25700ac_res=$ac_cv_search_gethostbyname
25701if test "$ac_res" != no; then :
25702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25703
25704fi
25705
cristy85572162013-01-04 19:19:32 +000025706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25707$as_echo_n "checking for library containing socket... " >&6; }
25708if ${ac_cv_search_socket+:} false; then :
25709 $as_echo_n "(cached) " >&6
25710else
25711 ac_func_search_save_LIBS=$LIBS
25712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713/* end confdefs.h. */
25714
25715/* Override any GCC internal prototype to avoid an error.
25716 Use char because int might match the return type of a GCC
25717 builtin and then its argument prototype would still apply. */
25718#ifdef __cplusplus
25719extern "C"
25720#endif
25721char socket ();
25722int
25723main ()
25724{
25725return socket ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730for ac_lib in '' socket; do
25731 if test -z "$ac_lib"; then
25732 ac_res="none required"
25733 else
25734 ac_res=-l$ac_lib
25735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25736 fi
25737 if ac_fn_c_try_link "$LINENO"; then :
25738 ac_cv_search_socket=$ac_res
25739fi
25740rm -f core conftest.err conftest.$ac_objext \
25741 conftest$ac_exeext
25742 if ${ac_cv_search_socket+:} false; then :
25743 break
25744fi
25745done
25746if ${ac_cv_search_socket+:} false; then :
25747
25748else
25749 ac_cv_search_socket=no
25750fi
25751rm conftest.$ac_ext
25752LIBS=$ac_func_search_save_LIBS
25753fi
25754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25755$as_echo "$ac_cv_search_socket" >&6; }
25756ac_res=$ac_cv_search_socket
25757if test "$ac_res" != no; then :
25758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25759
cristy85572162013-01-04 19:19:32 +000025760
cristy8a5d7f42013-01-06 15:24:33 +000025761$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025762
cristy03f187e2013-01-24 00:22:19 +000025763 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025764
25765fi
25766
25767
cristya29f2b82015-05-30 14:10:30 +000025768for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025769do :
25770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25771ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025772if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025773 cat >>confdefs.h <<_ACEOF
25774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25775_ACEOF
25776
25777fi
25778done
25779
25780
cristye43a45e2009-09-28 14:49:00 +000025781#
25782# Check for clock_gettime().
25783#
cristy8b350f62009-11-15 23:12:43 +000025784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025785$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025786if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025787 $as_echo_n "(cached) " >&6
25788else
25789 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025791/* end confdefs.h. */
25792
25793/* Override any GCC internal prototype to avoid an error.
25794 Use char because int might match the return type of a GCC
25795 builtin and then its argument prototype would still apply. */
25796#ifdef __cplusplus
25797extern "C"
25798#endif
25799char clock_gettime ();
25800int
25801main ()
25802{
25803return clock_gettime ();
25804 ;
25805 return 0;
25806}
25807_ACEOF
25808for ac_lib in '' rt; do
25809 if test -z "$ac_lib"; then
25810 ac_res="none required"
25811 else
25812 ac_res=-l$ac_lib
25813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25814 fi
cristy8b350f62009-11-15 23:12:43 +000025815 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025816 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025817fi
cristy8b350f62009-11-15 23:12:43 +000025818rm -f core conftest.err conftest.$ac_objext \
25819 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025820 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025821 break
25822fi
25823done
cristyda16f162011-02-19 23:52:17 +000025824if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025825
cristye43a45e2009-09-28 14:49:00 +000025826else
25827 ac_cv_search_clock_gettime=no
25828fi
25829rm conftest.$ac_ext
25830LIBS=$ac_func_search_save_LIBS
25831fi
cristy8b350f62009-11-15 23:12:43 +000025832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025833$as_echo "$ac_cv_search_clock_gettime" >&6; }
25834ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025835if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25837
25838
cristy8b350f62009-11-15 23:12:43 +000025839$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025840
cristy8b350f62009-11-15 23:12:43 +000025841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025842$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025844/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025845
25846 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025847int
25848main ()
25849{
25850clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025851 ;
25852 return 0;
25853}
25854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025855if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025856
cristyad38abe2012-12-23 23:03:21 +000025857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25858$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025859
cristy8b350f62009-11-15 23:12:43 +000025860$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025861
25862
25863else
cristyad38abe2012-12-23 23:03:21 +000025864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25865$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025866
25867fi
cristye43a45e2009-09-28 14:49:00 +000025868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25869
25870else
25871
cristy8b350f62009-11-15 23:12:43 +000025872 for ac_func in gettimeofday ftime
25873do :
25874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025877 cat >>confdefs.h <<_ACEOF
25878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25879_ACEOF
25880 break
25881fi
25882done
25883
25884
25885
25886fi
25887
25888
cristy3ed852e2009-09-05 21:47:34 +000025889########
25890#
25891# Check for function prototypes
25892#
25893########
25894
cristy8b350f62009-11-15 23:12:43 +000025895ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025896#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025897"
cristyda16f162011-02-19 23:52:17 +000025898if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025899 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025900else
cristy8b350f62009-11-15 23:12:43 +000025901 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025902fi
25903
cristy3ed852e2009-09-05 21:47:34 +000025904cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025905#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025907ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025908#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025909"
cristyda16f162011-02-19 23:52:17 +000025910if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025911 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025912else
cristy8b350f62009-11-15 23:12:43 +000025913 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025914fi
25915
cristy3ed852e2009-09-05 21:47:34 +000025916cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025917#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025918_ACEOF
25919
25920
cristy8b350f62009-11-15 23:12:43 +000025921ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025922#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025923"
cristyda16f162011-02-19 23:52:17 +000025924if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025925 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025926else
cristy8b350f62009-11-15 23:12:43 +000025927 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025928fi
25929
cristy3ed852e2009-09-05 21:47:34 +000025930cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025931#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025932_ACEOF
25933
25934
cristy8b350f62009-11-15 23:12:43 +000025935ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025936#include <stdio.h>
25937#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025938"
cristyda16f162011-02-19 23:52:17 +000025939if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025940 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025941else
cristy8b350f62009-11-15 23:12:43 +000025942 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025943fi
25944
cristy3ed852e2009-09-05 21:47:34 +000025945cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025946#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025947_ACEOF
25948
25949
cristy3ed852e2009-09-05 21:47:34 +000025950########
25951#
25952# C++ Support Tests (For Magick++)
25953#
25954########
25955have_magick_plus_plus='no'
25956if test "$with_magick_plus_plus" = 'yes'; then
25957 OLIBS="$LIBS"
25958 LIBS=''
25959 ac_ext=cpp
25960ac_cpp='$CXXCPP $CPPFLAGS'
25961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25964
25965
25966 # Full set of headers used...
25967 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25968 # functional iomanip iosfwd iostream iterator list string strstream utility
25969 ac_ext=cpp
25970ac_cpp='$CXXCPP $CPPFLAGS'
25971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25974
25975 ac_ext=cpp
25976ac_cpp='$CXXCPP $CPPFLAGS'
25977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25980if test -z "$CXX"; then
25981 if test -n "$CCC"; then
25982 CXX=$CCC
25983 else
25984 if test -n "$ac_tool_prefix"; then
25985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25986 do
25987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 $as_echo_n "(cached) " >&6
25993else
25994 if test -n "$CXX"; then
25995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25996else
25997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25998for as_dir in $PATH
25999do
26000 IFS=$as_save_IFS
26001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026004 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026006 break 2
26007 fi
26008done
cristy8b350f62009-11-15 23:12:43 +000026009 done
cristy3ed852e2009-09-05 21:47:34 +000026010IFS=$as_save_IFS
26011
26012fi
26013fi
26014CXX=$ac_cv_prog_CXX
26015if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026017$as_echo "$CXX" >&6; }
26018else
cristy8b350f62009-11-15 23:12:43 +000026019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026020$as_echo "no" >&6; }
26021fi
26022
26023
26024 test -n "$CXX" && break
26025 done
26026fi
26027if test -z "$CXX"; then
26028 ac_ct_CXX=$CXX
26029 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26030do
26031 # Extract the first word of "$ac_prog", so it can be a program name with args.
26032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026035if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026036 $as_echo_n "(cached) " >&6
26037else
26038 if test -n "$ac_ct_CXX"; then
26039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26040else
26041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26042for as_dir in $PATH
26043do
26044 IFS=$as_save_IFS
26045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026048 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050 break 2
26051 fi
26052done
cristy8b350f62009-11-15 23:12:43 +000026053 done
cristy3ed852e2009-09-05 21:47:34 +000026054IFS=$as_save_IFS
26055
26056fi
26057fi
26058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26059if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026061$as_echo "$ac_ct_CXX" >&6; }
26062else
cristy8b350f62009-11-15 23:12:43 +000026063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo "no" >&6; }
26065fi
26066
26067
26068 test -n "$ac_ct_CXX" && break
26069done
26070
26071 if test "x$ac_ct_CXX" = x; then
26072 CXX="g++"
26073 else
26074 case $cross_compiling:$ac_tool_warned in
26075yes:)
cristy8b350f62009-11-15 23:12:43 +000026076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26078ac_tool_warned=yes ;;
26079esac
26080 CXX=$ac_ct_CXX
26081 fi
26082fi
26083
26084 fi
26085fi
26086# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026088set X $ac_compile
26089ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026090for ac_option in --version -v -V -qversion; do
26091 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026092case "(($ac_try" in
26093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094 *) ac_try_echo=$ac_try;;
26095esac
cristy8b350f62009-11-15 23:12:43 +000026096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26097$as_echo "$ac_try_echo"; } >&5
26098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026099 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026100 if test -s conftest.err; then
26101 sed '10a\
26102... rest of stderr output deleted ...
26103 10q' conftest.err >conftest.er1
26104 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026105 fi
cristycd4c5312009-11-22 01:19:08 +000026106 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }
26109done
cristy3ed852e2009-09-05 21:47:34 +000026110
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026113if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 $as_echo_n "(cached) " >&6
26115else
cristy8b350f62009-11-15 23:12:43 +000026116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026117/* end confdefs.h. */
26118
26119int
26120main ()
26121{
26122#ifndef __GNUC__
26123 choke me
26124#endif
26125
26126 ;
26127 return 0;
26128}
26129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026130if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026131 ac_compiler_gnu=yes
26132else
cristy8b350f62009-11-15 23:12:43 +000026133 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026134fi
cristy3ed852e2009-09-05 21:47:34 +000026135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26137
26138fi
cristy8b350f62009-11-15 23:12:43 +000026139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26141if test $ac_compiler_gnu = yes; then
26142 GXX=yes
26143else
26144 GXX=
26145fi
26146ac_test_CXXFLAGS=${CXXFLAGS+set}
26147ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026150if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026151 $as_echo_n "(cached) " >&6
26152else
26153 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26154 ac_cxx_werror_flag=yes
26155 ac_cv_prog_cxx_g=no
26156 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026158/* end confdefs.h. */
26159
26160int
26161main ()
26162{
26163
26164 ;
26165 return 0;
26166}
26167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026168if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026169 ac_cv_prog_cxx_g=yes
26170else
cristy8b350f62009-11-15 23:12:43 +000026171 CXXFLAGS=""
26172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026173/* end confdefs.h. */
26174
26175int
26176main ()
26177{
26178
26179 ;
26180 return 0;
26181}
26182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026183if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026184
cristy8b350f62009-11-15 23:12:43 +000026185else
26186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026187 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026189/* end confdefs.h. */
26190
26191int
26192main ()
26193{
26194
26195 ;
26196 return 0;
26197}
26198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026199if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026200 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026201fi
cristy3ed852e2009-09-05 21:47:34 +000026202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203fi
cristy3ed852e2009-09-05 21:47:34 +000026204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205fi
cristy3ed852e2009-09-05 21:47:34 +000026206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26208fi
cristy8b350f62009-11-15 23:12:43 +000026209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo "$ac_cv_prog_cxx_g" >&6; }
26211if test "$ac_test_CXXFLAGS" = set; then
26212 CXXFLAGS=$ac_save_CXXFLAGS
26213elif test $ac_cv_prog_cxx_g = yes; then
26214 if test "$GXX" = yes; then
26215 CXXFLAGS="-g -O2"
26216 else
26217 CXXFLAGS="-g"
26218 fi
26219else
26220 if test "$GXX" = yes; then
26221 CXXFLAGS="-O2"
26222 else
26223 CXXFLAGS=
26224 fi
26225fi
26226ac_ext=cpp
26227ac_cpp='$CXXCPP $CPPFLAGS'
26228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26231
cristy73bd4a52010-10-05 11:24:23 +000026232depcc="$CXX" am_compiler_list=
26233
26234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26235$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026236if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026237 $as_echo_n "(cached) " >&6
26238else
26239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26240 # We make a subdir and do the tests there. Otherwise we can end up
26241 # making bogus files that we don't know about and never remove. For
26242 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026243 # making a dummy file named 'D' -- because '-MD' means "put the output
26244 # in D".
cristy7247bba2012-02-05 16:37:27 +000026245 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026246 mkdir conftest.dir
26247 # Copy depcomp to subdir because otherwise we won't find it if we're
26248 # using a relative directory.
26249 cp "$am_depcomp" conftest.dir
26250 cd conftest.dir
26251 # We will build objects and dependencies in a subdirectory because
26252 # it helps to detect inapplicable dependency modes. For instance
26253 # both Tru64's cc and ICC support -MD to output dependencies as a
26254 # side effect of compilation, but ICC will put the dependencies in
26255 # the current directory while Tru64 will put them in the object
26256 # directory.
26257 mkdir sub
26258
26259 am_cv_CXX_dependencies_compiler_type=none
26260 if test "$am_compiler_list" = ""; then
26261 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26262 fi
26263 am__universal=false
26264 case " $depcc " in #(
26265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26266 esac
26267
26268 for depmode in $am_compiler_list; do
26269 # Setup a source with many dependencies, because some compilers
26270 # like to wrap large dependency lists on column 80 (with \), and
26271 # we should not choose a depcomp mode which is confused by this.
26272 #
26273 # We need to recreate these files for each test, as the compiler may
26274 # overwrite some of them when testing with obscure command lines.
26275 # This happens at least with the AIX C compiler.
26276 : > sub/conftest.c
26277 for i in 1 2 3 4 5 6; do
26278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026279 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26280 # Solaris 10 /bin/sh.
26281 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026282 done
26283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26284
cristyc0890a62012-07-19 00:18:20 +000026285 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026286 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026287 # handle '-M -o', and we need to detect this. Also, some Intel
26288 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026289 am__obj=sub/conftest.${OBJEXT-o}
26290 am__minus_obj="-o $am__obj"
26291 case $depmode in
26292 gcc)
26293 # This depmode causes a compiler race in universal mode.
26294 test "$am__universal" = false || continue
26295 ;;
26296 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026297 # After this tag, mechanisms are not by side-effect, so they'll
26298 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026299 if test "x$enable_dependency_tracking" = xyes; then
26300 continue
26301 else
26302 break
26303 fi
26304 ;;
cristy7247bba2012-02-05 16:37:27 +000026305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026306 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026307 # not run yet. These depmodes are late enough in the game, and
26308 # so weak that their functioning should not be impacted.
26309 am__obj=conftest.${OBJEXT-o}
26310 am__minus_obj=
26311 ;;
26312 none) break ;;
26313 esac
26314 if depmode=$depmode \
26315 source=sub/conftest.c object=$am__obj \
26316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26318 >/dev/null 2>conftest.err &&
26319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26323 # icc doesn't choke on unknown options, it will just issue warnings
26324 # or remarks (even with -Werror). So we grep stderr for any message
26325 # that says an option was ignored or not supported.
26326 # When given -MP, icc 7.0 and 7.1 complain thusly:
26327 # icc: Command line warning: ignoring option '-M'; no argument required
26328 # The diagnosis changed in icc 8.0:
26329 # icc: Command line remark: option '-MP' not supported
26330 if (grep 'ignoring option' conftest.err ||
26331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26332 am_cv_CXX_dependencies_compiler_type=$depmode
26333 break
26334 fi
26335 fi
26336 done
26337
26338 cd ..
26339 rm -rf conftest.dir
26340else
26341 am_cv_CXX_dependencies_compiler_type=none
26342fi
26343
26344fi
26345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26346$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26347CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26348
26349 if
26350 test "x$enable_dependency_tracking" != xno \
26351 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26352 am__fastdepCXX_TRUE=
26353 am__fastdepCXX_FALSE='#'
26354else
26355 am__fastdepCXX_TRUE='#'
26356 am__fastdepCXX_FALSE=
26357fi
26358
26359
cristy146497a2015-05-17 22:46:16 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026361$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026363 $as_echo_n "(cached) " >&6
26364else
cristy146497a2015-05-17 22:46:16 +000026365 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026366ac_cpp='$CXXCPP $CPPFLAGS'
26367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26370
cristy146497a2015-05-17 22:46:16 +000026371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026372/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026373 int f(int x){return 1;}
26374 int f(char x){return 1;}
26375 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026376int
26377main ()
26378{
26379bool b = true; return f(b);
26380 ;
26381 return 0;
26382}
26383_ACEOF
26384if ac_fn_cxx_try_compile "$LINENO"; then :
26385 ax_cv_cxx_bool=yes
26386else
26387 ax_cv_cxx_bool=no
26388fi
26389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026390 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026391ac_cpp='$CXXCPP $CPPFLAGS'
26392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26395
26396
26397fi
26398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26399$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026400 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026401
26402$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26403
26404fi
26405
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26407$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026408if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026409 $as_echo_n "(cached) " >&6
26410else
cristy17491be2014-06-24 01:10:53 +000026411 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026412ac_cpp='$CXXCPP $CPPFLAGS'
26413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26416
26417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418/* end confdefs.h. */
26419namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026420 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026421_ACEOF
26422if ac_fn_cxx_try_compile "$LINENO"; then :
26423 ax_cv_cxx_namespaces=yes
26424else
26425 ax_cv_cxx_namespaces=no
26426fi
26427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 ac_ext=cpp
26429ac_cpp='$CXXCPP $CPPFLAGS'
26430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26433
26434
26435fi
26436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26437$as_echo "$ax_cv_cxx_namespaces" >&6; }
26438if test "$ax_cv_cxx_namespaces" = yes; then
26439
26440$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26441
26442fi
26443
26444
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26446$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026447if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026448 $as_echo_n "(cached) " >&6
26449else
26450
26451 ac_ext=cpp
26452ac_cpp='$CXXCPP $CPPFLAGS'
26453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26456
26457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26458/* end confdefs.h. */
26459#include <iostream>
26460 std::istream& is = std::cin;
26461int
26462main ()
26463{
26464
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469if ac_fn_cxx_try_compile "$LINENO"; then :
26470 ax_cv_cxx_have_std_namespace=yes
26471else
26472 ax_cv_cxx_have_std_namespace=no
26473fi
26474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26475 ac_ext=cpp
26476ac_cpp='$CXXCPP $CPPFLAGS'
26477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26480
26481
26482fi
26483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26484$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26485 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26486
26487$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26488
26489 fi
26490
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26492$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026493if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026494 $as_echo_n "(cached) " >&6
26495else
26496
26497
26498 ac_ext=cpp
26499ac_cpp='$CXXCPP $CPPFLAGS'
26500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26503
26504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26505/* end confdefs.h. */
26506#include <iostream>
26507#include <map>
26508#include <iomanip>
26509#include <cmath>
26510#ifdef HAVE_NAMESPACES
26511using namespace std;
26512#endif
26513int
26514main ()
26515{
26516return 0;
26517 ;
26518 return 0;
26519}
26520_ACEOF
26521if ac_fn_cxx_try_compile "$LINENO"; then :
26522 ac_cv_cxx_have_std_libs=yes
26523else
26524 ac_cv_cxx_have_std_libs=no
26525fi
26526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527 ac_ext=cpp
26528ac_cpp='$CXXCPP $CPPFLAGS'
26529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26532
26533
26534fi
26535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26536$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26537if test "$ac_cv_cxx_have_std_libs" = yes; then
26538
26539$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26540
26541fi
26542
cristy3ed852e2009-09-05 21:47:34 +000026543
26544 OPENMP_CXXFLAGS=
26545 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026546if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026547 enableval=$enable_openmp;
26548fi
26549
26550 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26552$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026553if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026554 $as_echo_n "(cached) " >&6
26555else
cristy8b350f62009-11-15 23:12:43 +000026556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26557/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026558
26559#ifndef _OPENMP
26560 choke me
26561#endif
26562#include <omp.h>
26563int main () { return omp_get_num_threads (); }
26564
26565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026566if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026567 ac_cv_prog_cxx_openmp='none needed'
26568else
cristy8b350f62009-11-15 23:12:43 +000026569 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026570 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26571 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026572 ac_save_CXXFLAGS=$CXXFLAGS
26573 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026576
26577#ifndef _OPENMP
26578 choke me
26579#endif
26580#include <omp.h>
26581int main () { return omp_get_num_threads (); }
26582
26583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026584if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026585 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026586fi
cristy8b350f62009-11-15 23:12:43 +000026587rm -f core conftest.err conftest.$ac_objext \
26588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026589 CXXFLAGS=$ac_save_CXXFLAGS
26590 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26591 break
26592 fi
26593 done
26594fi
cristy8b350f62009-11-15 23:12:43 +000026595rm -f core conftest.err conftest.$ac_objext \
26596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026597fi
cristy8b350f62009-11-15 23:12:43 +000026598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026599$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26600 case $ac_cv_prog_cxx_openmp in #(
26601 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026602 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026603 *)
cristy8b350f62009-11-15 23:12:43 +000026604 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026605 esac
26606 fi
26607
26608
26609 ac_ext=c
26610ac_cpp='$CPP $CPPFLAGS'
26611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26613ac_compiler_gnu=$ac_cv_c_compiler_gnu
26614
26615
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26618 if \
cristy964cb7f2010-04-25 23:18:00 +000026619 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026620 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026621 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026622 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026623 have_magick_plus_plus='yes'
26624 else
26625 have_magick_plus_plus='no (failed tests)'
26626 fi
cristyad38abe2012-12-23 23:03:21 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26628$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026629 LIBS="$OLIBS"
26630fi
cristy73bd4a52010-10-05 11:24:23 +000026631 if test "$have_magick_plus_plus" = 'yes'; then
26632 WITH_MAGICK_PLUS_PLUS_TRUE=
26633 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26634else
26635 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26636 WITH_MAGICK_PLUS_PLUS_FALSE=
26637fi
26638
cristy3ed852e2009-09-05 21:47:34 +000026639
26640# Only check for delegate libraries in subdirectories if requested.
26641if test "$enable_delegate_build" != 'no'; then
26642 # Check for delegate sub-directories and add -I & -L options as required.
26643 # This presumes that delegates are installed as detailed in the ImageMagick
26644 # README. If delegates are installed in a standard location where the
26645 # compiler will automatically find them then these options should not be
26646 # required.
26647
26648 #
26649 # Most delegates have includes in the same directory as the library, but not all...
26650 #
26651 # Includes
cristy834307f2015-01-25 00:43:41 +000026652 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026653 if test -d "$builddir/$dir"; then
26654 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26655 else
26656 if test -d "$srcdirfull/$dir"; then
26657 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26658 fi
26659 fi
26660 done
26661
26662 # Libraries
cristy834307f2015-01-25 00:43:41 +000026663 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026664 if test -d "$builddir/$dir/.libs"; then
26665 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26666 else
26667 if test -d "$srcdirfull/$dir/.libs"; then
26668 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26669 fi
26670 fi
26671 if test -d "$builddir/$dir"; then
26672 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26673 else
26674 if test -d "$srcdirfull/$dir"; then
26675 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26676 fi
26677 fi
26678 done
26679fi
26680
26681# Assume that delegate headers reside under same directory as ImageMagick
26682# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026683MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026684
26685#
26686# Find the X11 RGB database
26687#
cristy8b350f62009-11-15 23:12:43 +000026688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026690if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026691 $as_echo_n "(cached) " >&6
26692else
26693 # Look for the header file in a standard set of common directories.
26694# Check X11 before X11Rn because it is often a symlink to the current release.
26695 for ac_dir in \
26696 /lib/usr/lib/X11 \
26697 /usr/X11/lib \
26698 /usr/X11R4/lib \
26699 /usr/X11R5/lib \
26700 /usr/X11R6/lib \
26701 /usr/X11R7/lib \
26702 /usr/X386/lib \
26703 /usr/XFree86/lib/X11 \
26704 /usr/athena/lib \
26705 /usr/lib \
26706 /usr/lib/X11 \
26707 /usr/lib/X11R4 \
26708 /usr/lib/X11R5 \
26709 /usr/lib/X11R6 \
26710 /usr/lib/X11R7 \
26711 /usr/local/X11/lib \
26712 /usr/local/X11R4/lib \
26713 /usr/local/X11R5/lib \
26714 /usr/local/X11R6/lib \
26715 /usr/local/lib \
26716 /usr/local/lib/X11 \
26717 /usr/local/lib/X11R4 \
26718 /usr/local/lib/X11R5 \
26719 /usr/local/lib/X11R6 \
26720 /usr/local/lib/X11R7 \
26721 /usr/local/x11r5/lib \
26722 /usr/lpp/Xamples/lib \
26723 /usr/openwin/lib \
26724 /usr/openwin/share/lib \
26725 /usr/unsupported/lib \
26726 /usr/x386/lib \
26727 ; do
26728 if test -f "$ac_dir/X11/rgb.txt"; then
26729 im_cv_x_configure="$ac_dir/X11/"
26730 break
26731 elif test -f "$ac_dir/rgb.txt"; then
26732 im_cv_x_configure="$ac_dir/"
26733 break
26734 fi
26735
26736 done
26737fi
cristy8b350f62009-11-15 23:12:43 +000026738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026739$as_echo "$im_cv_x_configure" >&6; }
26740X11_CONFIGURE_PATH="$im_cv_x_configure"
26741case "${build_os}" in
26742 mingw* )
26743 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26744 ;;
26745esac
26746
26747cat >>confdefs.h <<_ACEOF
26748#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26749_ACEOF
26750
26751
26752#
26753# Find OpenMP library
26754#
26755GOMP_LIBS=''
26756if test "$enable_openmp" != 'no'; then
26757 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026758 # Open64 (passes for GCC but uses different OpenMP implementation)
26759 if test "x$GOMP_LIBS" = x ; then
26760 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26762$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26763if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26764 $as_echo_n "(cached) " >&6
26765else
26766 ac_check_lib_save_LIBS=$LIBS
26767LIBS="-lopenmp $LIBS"
26768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769/* end confdefs.h. */
26770
26771/* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
26774#ifdef __cplusplus
26775extern "C"
26776#endif
26777char omp_get_num_procs ();
26778int
26779main ()
26780{
26781return omp_get_num_procs ();
26782 ;
26783 return 0;
26784}
26785_ACEOF
26786if ac_fn_c_try_link "$LINENO"; then :
26787 ac_cv_lib_openmp_omp_get_num_procs=yes
26788else
26789 ac_cv_lib_openmp_omp_get_num_procs=no
26790fi
26791rm -f core conftest.err conftest.$ac_objext \
26792 conftest$ac_exeext conftest.$ac_ext
26793LIBS=$ac_check_lib_save_LIBS
26794fi
26795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26796$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26797if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26798 GOMP_LIBS="-lopenmp"
26799fi
26800
26801 fi
26802 fi
26803 # GCC
26804 if test "x$GOMP_LIBS" = x ; then
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026807if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 $as_echo_n "(cached) " >&6
26809else
26810 ac_check_lib_save_LIBS=$LIBS
26811LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026813/* end confdefs.h. */
26814
26815/* Override any GCC internal prototype to avoid an error.
26816 Use char because int might match the return type of a GCC
26817 builtin and then its argument prototype would still apply. */
26818#ifdef __cplusplus
26819extern "C"
26820#endif
26821char GOMP_parallel_start ();
26822int
26823main ()
26824{
26825return GOMP_parallel_start ();
26826 ;
26827 return 0;
26828}
26829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026831 ac_cv_lib_gomp_GOMP_parallel_start=yes
26832else
cristy8b350f62009-11-15 23:12:43 +000026833 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026834fi
cristy8b350f62009-11-15 23:12:43 +000026835rm -f core conftest.err conftest.$ac_objext \
26836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026837LIBS=$ac_check_lib_save_LIBS
26838fi
cristy8b350f62009-11-15 23:12:43 +000026839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026840$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026841if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 GOMP_LIBS="-lgomp"
26843fi
cristy18307f12011-12-30 01:20:16 +000026844
26845 fi
cristy3ed852e2009-09-05 21:47:34 +000026846 else
cristy18307f12011-12-30 01:20:16 +000026847 # Sun CC
26848 if test "x$GOMP_LIBS" = x ; then
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026850$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026851if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026852 $as_echo_n "(cached) " >&6
26853else
26854 ac_check_lib_save_LIBS=$LIBS
26855LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026857/* end confdefs.h. */
26858
26859/* Override any GCC internal prototype to avoid an error.
26860 Use char because int might match the return type of a GCC
26861 builtin and then its argument prototype would still apply. */
26862#ifdef __cplusplus
26863extern "C"
26864#endif
26865char sunw_mp_register_warn ();
26866int
26867main ()
26868{
26869return sunw_mp_register_warn ();
26870 ;
26871 return 0;
26872}
26873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026875 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26876else
cristy8b350f62009-11-15 23:12:43 +000026877 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026878fi
cristy8b350f62009-11-15 23:12:43 +000026879rm -f core conftest.err conftest.$ac_objext \
26880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026881LIBS=$ac_check_lib_save_LIBS
26882fi
cristy8b350f62009-11-15 23:12:43 +000026883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026885if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 GOMP_LIBS="-lmtsk"
26887fi
cristy18307f12011-12-30 01:20:16 +000026888
26889 fi
26890 # AIX xlc
26891 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026893$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026894if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026895 $as_echo_n "(cached) " >&6
26896else
26897 ac_check_lib_save_LIBS=$LIBS
26898LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026900/* end confdefs.h. */
26901
26902/* Override any GCC internal prototype to avoid an error.
26903 Use char because int might match the return type of a GCC
26904 builtin and then its argument prototype would still apply. */
26905#ifdef __cplusplus
26906extern "C"
26907#endif
26908char _xlsmpFlush ();
26909int
26910main ()
26911{
26912return _xlsmpFlush ();
26913 ;
26914 return 0;
26915}
26916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026918 ac_cv_lib_xlsmp__xlsmpFlush=yes
26919else
cristy8b350f62009-11-15 23:12:43 +000026920 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026921fi
cristy8b350f62009-11-15 23:12:43 +000026922rm -f core conftest.err conftest.$ac_objext \
26923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026924LIBS=$ac_check_lib_save_LIBS
26925fi
cristy8b350f62009-11-15 23:12:43 +000026926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026927$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026928if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026929 GOMP_LIBS="-lxlsmp"
26930fi
cristy18307f12011-12-30 01:20:16 +000026931
26932 fi
26933 # SGI IRIX 6.5 MIPSpro C/C++
26934 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026936$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026937if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 $as_echo_n "(cached) " >&6
26939else
26940 ac_check_lib_save_LIBS=$LIBS
26941LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943/* end confdefs.h. */
26944
26945/* Override any GCC internal prototype to avoid an error.
26946 Use char because int might match the return type of a GCC
26947 builtin and then its argument prototype would still apply. */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951char mp_destroy ();
26952int
26953main ()
26954{
26955return mp_destroy ();
26956 ;
26957 return 0;
26958}
26959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026960if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026961 ac_cv_lib_mp_mp_destroy=yes
26962else
cristy8b350f62009-11-15 23:12:43 +000026963 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026964fi
cristy8b350f62009-11-15 23:12:43 +000026965rm -f core conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026967LIBS=$ac_check_lib_save_LIBS
26968fi
cristy8b350f62009-11-15 23:12:43 +000026969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 GOMP_LIBS="-lmp"
26973fi
cristy18307f12011-12-30 01:20:16 +000026974
26975 fi
cristy3ed852e2009-09-05 21:47:34 +000026976 fi
26977 LIBS="$GOMP_LIBS $LIBS"
26978fi
26979
26980
cristy12ac8192014-11-04 13:59:13 +000026981#
cristy3b0097d2014-11-04 15:34:47 +000026982# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026983#
cristy3b0097d2014-11-04 15:34:47 +000026984have_jemalloc='no'
26985JEMALLOC_LIBS=''
26986if test "$with_jemalloc" != 'no'; then
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26988$as_echo_n "checking for JEMALLOC support ... " >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26990$as_echo "" >&6; }
26991 failed=0
26992 passed=0
26993 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26994if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026995 passed=`expr $passed + 1`
26996else
26997 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026998fi
26999
27000
cristy3b0097d2014-11-04 15:34:47 +000027001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
27002$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
27003if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000027004 $as_echo_n "(cached) " >&6
27005else
27006 ac_check_lib_save_LIBS=$LIBS
27007LIBS="-ljemalloc $LIBS"
27008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27009/* end confdefs.h. */
27010
27011/* Override any GCC internal prototype to avoid an error.
27012 Use char because int might match the return type of a GCC
27013 builtin and then its argument prototype would still apply. */
27014#ifdef __cplusplus
27015extern "C"
27016#endif
cristy3b0097d2014-11-04 15:34:47 +000027017char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027018int
27019main ()
27020{
cristy3b0097d2014-11-04 15:34:47 +000027021return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027022 ;
27023 return 0;
27024}
27025_ACEOF
27026if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027027 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027028else
cristy3b0097d2014-11-04 15:34:47 +000027029 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027030fi
27031rm -f core conftest.err conftest.$ac_objext \
27032 conftest$ac_exeext conftest.$ac_ext
27033LIBS=$ac_check_lib_save_LIBS
27034fi
cristy3b0097d2014-11-04 15:34:47 +000027035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27036$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27037if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027038 passed=`expr $passed + 1`
27039else
27040 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027041fi
27042
cristy3b0097d2014-11-04 15:34:47 +000027043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27044$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27045 if test $passed -gt 0; then
27046 if test $failed -gt 0; then
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27048$as_echo "no -- some components failed test" >&6; }
27049 have_jemalloc='no (failed tests)'
27050 else
27051 JEMALLOC_LIBS='-ljemalloc'
27052 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027053
cristy3b0097d2014-11-04 15:34:47 +000027054$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027055
cristy3b0097d2014-11-04 15:34:47 +000027056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27057$as_echo "yes" >&6; }
27058 have_jemalloc='yes'
27059 fi
cristy12ac8192014-11-04 13:59:13 +000027060 else
cristy3b0097d2014-11-04 15:34:47 +000027061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27062$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027063 fi
27064fi
cristy3b0097d2014-11-04 15:34:47 +000027065 if test "$have_jemalloc" = 'yes'; then
27066 HasJEMALLOC_TRUE=
27067 HasJEMALLOC_FALSE='#'
27068else
27069 HasJEMALLOC_TRUE='#'
27070 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027071fi
27072
cristy3b0097d2014-11-04 15:34:47 +000027073
27074
cristy3ed852e2009-09-05 21:47:34 +000027075#
27076# Check for umem.
27077#
27078have_umem='no'
27079UMEM_LIBS=''
27080if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27084$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027085 failed=0
27086 passed=0
cristy8b350f62009-11-15 23:12:43 +000027087 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027088if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027089 passed=`expr $passed + 1`
27090else
27091 failed=`expr $failed + 1`
27092fi
27093
27094
cristy8b350f62009-11-15 23:12:43 +000027095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027096$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027097if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 $as_echo_n "(cached) " >&6
27099else
27100 ac_check_lib_save_LIBS=$LIBS
27101LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027103/* end confdefs.h. */
27104
27105/* Override any GCC internal prototype to avoid an error.
27106 Use char because int might match the return type of a GCC
27107 builtin and then its argument prototype would still apply. */
27108#ifdef __cplusplus
27109extern "C"
27110#endif
27111char umem_alloc ();
27112int
27113main ()
27114{
27115return umem_alloc ();
27116 ;
27117 return 0;
27118}
27119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027121 ac_cv_lib_umem_umem_alloc=yes
27122else
cristy8b350f62009-11-15 23:12:43 +000027123 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027124fi
cristy8b350f62009-11-15 23:12:43 +000027125rm -f core conftest.err conftest.$ac_objext \
27126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027127LIBS=$ac_check_lib_save_LIBS
27128fi
cristy8b350f62009-11-15 23:12:43 +000027129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027130$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027131if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 passed=`expr $passed + 1`
27133else
27134 failed=`expr $failed + 1`
27135fi
27136
cristy8b350f62009-11-15 23:12:43 +000027137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027138$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027139if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027140 $as_echo_n "(cached) " >&6
27141else
27142 ac_check_lib_save_LIBS=$LIBS
27143LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027145/* end confdefs.h. */
27146
27147/* Override any GCC internal prototype to avoid an error.
27148 Use char because int might match the return type of a GCC
27149 builtin and then its argument prototype would still apply. */
27150#ifdef __cplusplus
27151extern "C"
27152#endif
27153char umem_free ();
27154int
27155main ()
27156{
27157return umem_free ();
27158 ;
27159 return 0;
27160}
27161_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027162if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027163 ac_cv_lib_umem_umem_free=yes
27164else
cristy8b350f62009-11-15 23:12:43 +000027165 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027166fi
cristy8b350f62009-11-15 23:12:43 +000027167rm -f core conftest.err conftest.$ac_objext \
27168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027169LIBS=$ac_check_lib_save_LIBS
27170fi
cristy8b350f62009-11-15 23:12:43 +000027171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027173if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027174 passed=`expr $passed + 1`
27175else
27176 failed=`expr $failed + 1`
27177fi
27178
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27181 if test $passed -gt 0; then
27182 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27184$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027185 have_umem='no (failed tests)'
27186 else
27187 UMEM_LIBS='-lumem'
27188 LIBS="$UMEM_LIBS $LIBS"
27189
cristy8b350f62009-11-15 23:12:43 +000027190$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027191
cristyad38abe2012-12-23 23:03:21 +000027192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27193$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027194 have_umem='yes'
27195 fi
27196 else
cristyad38abe2012-12-23 23:03:21 +000027197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027199 fi
27200fi
cristy73bd4a52010-10-05 11:24:23 +000027201 if test "$have_umem" = 'yes'; then
27202 HasUMEM_TRUE=
27203 HasUMEM_FALSE='#'
27204else
27205 HasUMEM_TRUE='#'
27206 HasUMEM_FALSE=
27207fi
27208
cristy3ed852e2009-09-05 21:47:34 +000027209
27210
27211#
27212# Add support for ccmalloc memory debugging library if requested
27213#
27214have_ccmalloc='no'
27215CCMALLOC_LIBS=''
27216if test "$enable_ccmalloc" = 'yes'; then
27217 # Extract the first word of "ccmalloc", so it can be a program name with args.
27218set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027221if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027222 $as_echo_n "(cached) " >&6
27223else
27224 case $CCMALLOCDelegate in
27225 [\\/]* | ?:[\\/]*)
27226 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27227 ;;
27228 *)
27229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27230for as_dir in $PATH
27231do
27232 IFS=$as_save_IFS
27233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027236 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027238 break 2
27239 fi
27240done
cristy8b350f62009-11-15 23:12:43 +000027241 done
cristy3ed852e2009-09-05 21:47:34 +000027242IFS=$as_save_IFS
27243
27244 ;;
27245esac
27246fi
27247CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27248if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo "$CCMALLOCDelegate" >&6; }
27251else
cristy8b350f62009-11-15 23:12:43 +000027252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "no" >&6; }
27254fi
27255
27256
27257 if test -n "$CCMALLOCDelegate"; then
27258 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27259 OLIBS="$LIBS"
27260 # Assume that gcc is used with ccmalloc.
27261 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027264if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 $as_echo_n "(cached) " >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270/* end confdefs.h. */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273 Use char because int might match the return type of a GCC
27274 builtin and then its argument prototype would still apply. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char ccmalloc_malloc ();
27279int
27280main ()
27281{
27282return ccmalloc_malloc ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27289else
cristy8b350f62009-11-15 23:12:43 +000027290 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294LIBS=$ac_check_lib_save_LIBS
27295fi
cristy8b350f62009-11-15 23:12:43 +000027296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027298if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27300fi
27301
27302 if test -n "$CCMALLOC_LIBS"; then
27303 LIBS="$OLIBS"
27304 LIBS="$LIBS $CCMALLOC_LIBS"
27305 have_ccmalloc='yes'
27306 else
27307 LIBS="$OLIBS"
27308 fi
27309 fi
27310fi
27311
27312#
cristy944e51f2013-04-16 18:45:02 +000027313# Add support for 'huge pages' if requested
27314#
27315if test "x$enable_hugepages" != "xno"; then :
27316
27317
27318$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27319
27320
27321fi
27322
27323#
cristy3ed852e2009-09-05 21:47:34 +000027324# Add support for efence memory debugging library if requested
27325#
27326if test "$enable_efence" = 'yes'; then
27327 EFENCE_LIBS='-lefence'
27328 LIBS="$EFENCE_LIBS $LIBS"
27329fi
27330
cristy3ed852e2009-09-05 21:47:34 +000027331
27332#
27333# Check for BZLIB
27334#
27335
27336
27337# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027338if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 withval=$with_bzlib; with_bzlib=$withval
27340else
27341 with_bzlib='yes'
27342fi
27343
27344
27345if test "$with_bzlib" != 'yes'; then
27346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27347fi
27348
27349have_bzlib='no'
27350if test "$with_bzlib" != 'no'; then
27351 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27353$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027355$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27357$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027358 failed=0
27359 passed=0
27360 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027361 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027362if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 passed=`expr $passed + 1`
27364else
27365 failed=`expr $failed + 1`
27366fi
27367
27368
cristy8b350f62009-11-15 23:12:43 +000027369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027370$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027371if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 $as_echo_n "(cached) " >&6
27373else
27374 ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027377/* end confdefs.h. */
27378
27379/* Override any GCC internal prototype to avoid an error.
27380 Use char because int might match the return type of a GCC
27381 builtin and then its argument prototype would still apply. */
27382#ifdef __cplusplus
27383extern "C"
27384#endif
27385char BZ2_bzDecompress ();
27386int
27387main ()
27388{
27389return BZ2_bzDecompress ();
27390 ;
27391 return 0;
27392}
27393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027395 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27396else
cristy8b350f62009-11-15 23:12:43 +000027397 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027398fi
cristy8b350f62009-11-15 23:12:43 +000027399rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027401LIBS=$ac_check_lib_save_LIBS
27402fi
cristy8b350f62009-11-15 23:12:43 +000027403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027404$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027405if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 found_libbz=`expr $found_libbz + 1`
27407fi
27408
27409 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027411$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027412if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027413 $as_echo_n "(cached) " >&6
27414else
27415 ac_check_lib_save_LIBS=$LIBS
27416LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027418/* end confdefs.h. */
27419
27420/* Override any GCC internal prototype to avoid an error.
27421 Use char because int might match the return type of a GCC
27422 builtin and then its argument prototype would still apply. */
27423#ifdef __cplusplus
27424extern "C"
27425#endif
27426char _imp__BZ2_decompress ();
27427int
27428main ()
27429{
27430return _imp__BZ2_decompress ();
27431 ;
27432 return 0;
27433}
27434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027435if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27437else
cristy8b350f62009-11-15 23:12:43 +000027438 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027439fi
cristy8b350f62009-11-15 23:12:43 +000027440rm -f core conftest.err conftest.$ac_objext \
27441 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027442LIBS=$ac_check_lib_save_LIBS
27443fi
cristy8b350f62009-11-15 23:12:43 +000027444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027445$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027446if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 found_libbz=`expr $found_libbz + 1`
27448fi
27449
27450 fi
27451 if test $found_libbz -gt 0; then
27452 passed=`expr $passed + 1`
27453 else
27454 failed=`expr $failed + 1`
27455 fi
cristy8b350f62009-11-15 23:12:43 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo_n "checking if BZLIB package is complete... " >&6; }
27458 if test $passed -gt 0; then
27459 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27461$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027462 have_bzlib='no (failed tests)'
27463 else
27464 BZLIB_LIBS='-lbz2'
27465 LIBS="$BZLIB_LIBS $LIBS"
27466
cristy8b350f62009-11-15 23:12:43 +000027467$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027468
cristyad38abe2012-12-23 23:03:21 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27470$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027471 have_bzlib='yes'
27472 fi
27473 else
cristyad38abe2012-12-23 23:03:21 +000027474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27475$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027476 fi
27477fi
cristy73bd4a52010-10-05 11:24:23 +000027478 if test "$have_bzlib" = 'yes'; then
27479 BZLIB_DELEGATE_TRUE=
27480 BZLIB_DELEGATE_FALSE='#'
27481else
27482 BZLIB_DELEGATE_TRUE='#'
27483 BZLIB_DELEGATE_FALSE=
27484fi
27485
cristy3ed852e2009-09-05 21:47:34 +000027486
27487
27488#
27489# Find the X11 include and library directories.
27490#
27491IPC_LIBS=''
27492X11_LIBS=''
27493XEXT_LIBS=''
27494XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027496$as_echo_n "checking for X... " >&6; }
27497
27498
27499# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027500if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027501 withval=$with_x;
27502fi
27503
27504# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27505if test "x$with_x" = xno; then
27506 # The user explicitly disabled X.
27507 have_x=disabled
27508else
27509 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027510 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027511 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027512 $as_echo_n "(cached) " >&6
27513else
27514 # One or both of the vars are not set, and there is no cached value.
27515ac_x_includes=no ac_x_libraries=no
27516rm -f -r conftest.dir
27517if mkdir conftest.dir; then
27518 cd conftest.dir
27519 cat >Imakefile <<'_ACEOF'
27520incroot:
27521 @echo incroot='${INCROOT}'
27522usrlibdir:
27523 @echo usrlibdir='${USRLIBDIR}'
27524libdir:
27525 @echo libdir='${LIBDIR}'
27526_ACEOF
27527 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027528 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027529 for ac_var in incroot usrlibdir libdir; do
27530 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27531 done
27532 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27533 for ac_extension in a so sl dylib la dll; do
27534 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27535 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27536 ac_im_usrlibdir=$ac_im_libdir; break
27537 fi
27538 done
27539 # Screen out bogus values from the imake configuration. They are
27540 # bogus both because they are the default anyway, and because
27541 # using them would break gcc on systems where it needs fixed includes.
27542 case $ac_im_incroot in
27543 /usr/include) ac_x_includes= ;;
27544 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27545 esac
27546 case $ac_im_usrlibdir in
27547 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27548 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27549 esac
27550 fi
27551 cd ..
27552 rm -f -r conftest.dir
27553fi
27554
27555# Standard set of common directories for X headers.
27556# Check X11 before X11Rn because it is often a symlink to the current release.
27557ac_x_header_dirs='
27558/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027559/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027560/usr/X11R6/include
27561/usr/X11R5/include
27562/usr/X11R4/include
27563
27564/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027565/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027566/usr/include/X11R6
27567/usr/include/X11R5
27568/usr/include/X11R4
27569
27570/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027571/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027572/usr/local/X11R6/include
27573/usr/local/X11R5/include
27574/usr/local/X11R4/include
27575
27576/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027577/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027578/usr/local/include/X11R6
27579/usr/local/include/X11R5
27580/usr/local/include/X11R4
27581
27582/usr/X386/include
27583/usr/x386/include
27584/usr/XFree86/include/X11
27585
27586/usr/include
27587/usr/local/include
27588/usr/unsupported/include
27589/usr/athena/include
27590/usr/local/x11r5/include
27591/usr/lpp/Xamples/include
27592
27593/usr/openwin/include
27594/usr/openwin/share/include'
27595
27596if test "$ac_x_includes" = no; then
27597 # Guess where to find include files, by looking for Xlib.h.
27598 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027600/* end confdefs.h. */
27601#include <X11/Xlib.h>
27602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027603if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027604 # We can compile using X headers with no special include directory.
27605ac_x_includes=
27606else
cristyc7083c12009-10-14 03:16:55 +000027607 for ac_dir in $ac_x_header_dirs; do
27608 if test -r "$ac_dir/X11/Xlib.h"; then
27609 ac_x_includes=$ac_dir
27610 break
27611 fi
27612done
27613fi
cristyda16f162011-02-19 23:52:17 +000027614rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027615fi # $ac_x_includes = no
27616
27617if test "$ac_x_libraries" = no; then
27618 # Check for the libraries.
27619 # See if we find them without any special options.
27620 # Don't add to $LIBS permanently.
27621 ac_save_LIBS=$LIBS
27622 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027624/* end confdefs.h. */
27625#include <X11/Xlib.h>
27626int
27627main ()
27628{
27629XrmInitialize ()
27630 ;
27631 return 0;
27632}
27633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027634if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027635 LIBS=$ac_save_LIBS
27636# We can link X programs with no special library path.
27637ac_x_libraries=
27638else
cristy8b350f62009-11-15 23:12:43 +000027639 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027640for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27641do
27642 # Don't even attempt the hair of trying to link an X program!
27643 for ac_extension in a so sl dylib la dll; do
27644 if test -r "$ac_dir/libX11.$ac_extension"; then
27645 ac_x_libraries=$ac_dir
27646 break 2
27647 fi
27648 done
27649done
27650fi
cristy8b350f62009-11-15 23:12:43 +000027651rm -f core conftest.err conftest.$ac_objext \
27652 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027653fi # $ac_x_libraries = no
27654
27655case $ac_x_includes,$ac_x_libraries in #(
27656 no,* | *,no | *\'*)
27657 # Didn't find X, or a directory has "'" in its name.
27658 ac_cv_have_x="have_x=no";; #(
27659 *)
27660 # Record where we found X for the cache.
27661 ac_cv_have_x="have_x=yes\
27662 ac_x_includes='$ac_x_includes'\
27663 ac_x_libraries='$ac_x_libraries'"
27664esac
27665fi
27666;; #(
27667 *) have_x=yes;;
27668 esac
27669 eval "$ac_cv_have_x"
27670fi # $with_x != no
27671
27672if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027674$as_echo "$have_x" >&6; }
27675 no_x=yes
27676else
27677 # If each of the values was on the command line, it overrides each guess.
27678 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27679 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27680 # Update the cache value to reflect the command line values.
27681 ac_cv_have_x="have_x=yes\
27682 ac_x_includes='$x_includes'\
27683 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027685$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27686fi
27687
cristy3ed852e2009-09-05 21:47:34 +000027688if test "$no_x" = yes; then
27689 # Not all programs may use this symbol, but it does not hurt to define it.
27690
cristy8b350f62009-11-15 23:12:43 +000027691$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027692
27693 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27694else
27695 if test -n "$x_includes"; then
27696 X_CFLAGS="$X_CFLAGS -I$x_includes"
27697 fi
27698
27699 # It would also be nice to do this for all -L options, not just this one.
27700 if test -n "$x_libraries"; then
27701 X_LIBS="$X_LIBS -L$x_libraries"
27702 # For Solaris; some versions of Sun CC require a space after -R and
27703 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027705$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27706 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27707 ac_xsave_c_werror_flag=$ac_c_werror_flag
27708 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027710/* end confdefs.h. */
27711
27712int
27713main ()
27714{
27715
27716 ;
27717 return 0;
27718}
27719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027720if ac_fn_c_try_link "$LINENO"; then :
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "no" >&6; }
27723 X_LIBS="$X_LIBS -R$x_libraries"
27724else
cristy8b350f62009-11-15 23:12:43 +000027725 LIBS="$ac_xsave_LIBS -R $x_libraries"
27726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027727/* end confdefs.h. */
27728
27729int
27730main ()
27731{
27732
27733 ;
27734 return 0;
27735}
27736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027737if ac_fn_c_try_link "$LINENO"; then :
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027739$as_echo "yes" >&6; }
27740 X_LIBS="$X_LIBS -R $x_libraries"
27741else
cristy8b350f62009-11-15 23:12:43 +000027742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027743$as_echo "neither works" >&6; }
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 +000027747fi
cristy8b350f62009-11-15 23:12:43 +000027748rm -f core conftest.err conftest.$ac_objext \
27749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027750 ac_c_werror_flag=$ac_xsave_c_werror_flag
27751 LIBS=$ac_xsave_LIBS
27752 fi
27753
27754 # Check for system-dependent libraries X programs must link with.
27755 # Do this before checking for the system-independent R6 libraries
27756 # (-lICE), since we may need -lsocket or whatever for X linking.
27757
27758 if test "$ISC" = yes; then
27759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27760 else
27761 # Martyn Johnson says this is needed for Ultrix, if the X
27762 # libraries were built with DECnet support. And Karl Berry says
27763 # the Alpha needs dnet_stub (dnet does not exist).
27764 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027766/* end confdefs.h. */
27767
27768/* Override any GCC internal prototype to avoid an error.
27769 Use char because int might match the return type of a GCC
27770 builtin and then its argument prototype would still apply. */
27771#ifdef __cplusplus
27772extern "C"
27773#endif
27774char XOpenDisplay ();
27775int
27776main ()
27777{
27778return XOpenDisplay ();
27779 ;
27780 return 0;
27781}
27782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027783if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027784
cristy8b350f62009-11-15 23:12:43 +000027785else
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027788if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 $as_echo_n "(cached) " >&6
27790else
27791 ac_check_lib_save_LIBS=$LIBS
27792LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027794/* end confdefs.h. */
27795
27796/* Override any GCC internal prototype to avoid an error.
27797 Use char because int might match the return type of a GCC
27798 builtin and then its argument prototype would still apply. */
27799#ifdef __cplusplus
27800extern "C"
27801#endif
27802char dnet_ntoa ();
27803int
27804main ()
27805{
27806return dnet_ntoa ();
27807 ;
27808 return 0;
27809}
27810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 ac_cv_lib_dnet_dnet_ntoa=yes
27813else
cristy8b350f62009-11-15 23:12:43 +000027814 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027815fi
cristy8b350f62009-11-15 23:12:43 +000027816rm -f core conftest.err conftest.$ac_objext \
27817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027818LIBS=$ac_check_lib_save_LIBS
27819fi
cristy8b350f62009-11-15 23:12:43 +000027820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027821$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027822if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27824fi
27825
27826 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027828$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027829if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 $as_echo_n "(cached) " >&6
27831else
27832 ac_check_lib_save_LIBS=$LIBS
27833LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027835/* end confdefs.h. */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char dnet_ntoa ();
27844int
27845main ()
27846{
27847return dnet_ntoa ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27854else
cristy8b350f62009-11-15 23:12:43 +000027855 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027856fi
cristy8b350f62009-11-15 23:12:43 +000027857rm -f core conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027859LIBS=$ac_check_lib_save_LIBS
27860fi
cristy8b350f62009-11-15 23:12:43 +000027861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27865fi
27866
27867 fi
27868fi
cristy8b350f62009-11-15 23:12:43 +000027869rm -f core conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027871 LIBS="$ac_xsave_LIBS"
27872
27873 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27874 # to get the SysV transport functions.
27875 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27876 # needs -lnsl.
27877 # The nsl library prevents programs from opening the X display
27878 # on Irix 5.2, according to T.E. Dickey.
27879 # The functions gethostbyname, getservbyname, and inet_addr are
27880 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027881 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027882if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027883
cristy3ed852e2009-09-05 21:47:34 +000027884fi
27885
cristy3ed852e2009-09-05 21:47:34 +000027886 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027888$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027889if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027890 $as_echo_n "(cached) " >&6
27891else
27892 ac_check_lib_save_LIBS=$LIBS
27893LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027895/* end confdefs.h. */
27896
27897/* Override any GCC internal prototype to avoid an error.
27898 Use char because int might match the return type of a GCC
27899 builtin and then its argument prototype would still apply. */
27900#ifdef __cplusplus
27901extern "C"
27902#endif
27903char gethostbyname ();
27904int
27905main ()
27906{
27907return gethostbyname ();
27908 ;
27909 return 0;
27910}
27911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027912if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027913 ac_cv_lib_nsl_gethostbyname=yes
27914else
cristy8b350f62009-11-15 23:12:43 +000027915 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027916fi
cristy8b350f62009-11-15 23:12:43 +000027917rm -f core conftest.err conftest.$ac_objext \
27918 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027919LIBS=$ac_check_lib_save_LIBS
27920fi
cristy8b350f62009-11-15 23:12:43 +000027921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027923if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027924 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27925fi
27926
27927 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027930if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 $as_echo_n "(cached) " >&6
27932else
27933 ac_check_lib_save_LIBS=$LIBS
27934LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027936/* end confdefs.h. */
27937
27938/* Override any GCC internal prototype to avoid an error.
27939 Use char because int might match the return type of a GCC
27940 builtin and then its argument prototype would still apply. */
27941#ifdef __cplusplus
27942extern "C"
27943#endif
27944char gethostbyname ();
27945int
27946main ()
27947{
27948return gethostbyname ();
27949 ;
27950 return 0;
27951}
27952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 ac_cv_lib_bsd_gethostbyname=yes
27955else
cristy8b350f62009-11-15 23:12:43 +000027956 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027957fi
cristy8b350f62009-11-15 23:12:43 +000027958rm -f core conftest.err conftest.$ac_objext \
27959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027960LIBS=$ac_check_lib_save_LIBS
27961fi
cristy8b350f62009-11-15 23:12:43 +000027962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027964if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27966fi
27967
27968 fi
27969 fi
27970
27971 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27972 # socket/setsockopt and other routines are undefined under SCO ODT
27973 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27974 # on later versions), says Simon Leinen: it contains gethostby*
27975 # variants that don't use the name server (or something). -lsocket
27976 # must be given before -lnsl if both are needed. We assume that
27977 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027978 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027979if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027980
cristy3ed852e2009-09-05 21:47:34 +000027981fi
27982
cristy3ed852e2009-09-05 21:47:34 +000027983 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027985$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027986if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027987 $as_echo_n "(cached) " >&6
27988else
27989 ac_check_lib_save_LIBS=$LIBS
27990LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027992/* end confdefs.h. */
27993
27994/* Override any GCC internal prototype to avoid an error.
27995 Use char because int might match the return type of a GCC
27996 builtin and then its argument prototype would still apply. */
27997#ifdef __cplusplus
27998extern "C"
27999#endif
28000char connect ();
28001int
28002main ()
28003{
28004return connect ();
28005 ;
28006 return 0;
28007}
28008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028010 ac_cv_lib_socket_connect=yes
28011else
cristy8b350f62009-11-15 23:12:43 +000028012 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028013fi
cristy8b350f62009-11-15 23:12:43 +000028014rm -f core conftest.err conftest.$ac_objext \
28015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028016LIBS=$ac_check_lib_save_LIBS
28017fi
cristy8b350f62009-11-15 23:12:43 +000028018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028020if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28022fi
28023
28024 fi
28025
28026 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028027 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028028if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028029
cristy3ed852e2009-09-05 21:47:34 +000028030fi
28031
cristy3ed852e2009-09-05 21:47:34 +000028032 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028034$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028035if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028036 $as_echo_n "(cached) " >&6
28037else
28038 ac_check_lib_save_LIBS=$LIBS
28039LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028041/* end confdefs.h. */
28042
28043/* Override any GCC internal prototype to avoid an error.
28044 Use char because int might match the return type of a GCC
28045 builtin and then its argument prototype would still apply. */
28046#ifdef __cplusplus
28047extern "C"
28048#endif
28049char remove ();
28050int
28051main ()
28052{
28053return remove ();
28054 ;
28055 return 0;
28056}
28057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028058if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 ac_cv_lib_posix_remove=yes
28060else
cristy8b350f62009-11-15 23:12:43 +000028061 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028062fi
cristy8b350f62009-11-15 23:12:43 +000028063rm -f core conftest.err conftest.$ac_objext \
28064 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028065LIBS=$ac_check_lib_save_LIBS
28066fi
cristy8b350f62009-11-15 23:12:43 +000028067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028069if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28071fi
28072
28073 fi
28074
28075 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028076 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028077if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028078
cristy3ed852e2009-09-05 21:47:34 +000028079fi
28080
cristy3ed852e2009-09-05 21:47:34 +000028081 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028084if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028085 $as_echo_n "(cached) " >&6
28086else
28087 ac_check_lib_save_LIBS=$LIBS
28088LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028090/* end confdefs.h. */
28091
28092/* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
28095#ifdef __cplusplus
28096extern "C"
28097#endif
28098char shmat ();
28099int
28100main ()
28101{
28102return shmat ();
28103 ;
28104 return 0;
28105}
28106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 ac_cv_lib_ipc_shmat=yes
28109else
cristy8b350f62009-11-15 23:12:43 +000028110 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028111fi
cristy8b350f62009-11-15 23:12:43 +000028112rm -f core conftest.err conftest.$ac_objext \
28113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028114LIBS=$ac_check_lib_save_LIBS
28115fi
cristy8b350f62009-11-15 23:12:43 +000028116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028118if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28120fi
28121
28122 fi
28123 fi
28124
28125 # Check for libraries that X11R6 Xt/Xaw programs need.
28126 ac_save_LDFLAGS=$LDFLAGS
28127 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28128 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28129 # check for ICE first), but we must link in the order -lSM -lICE or
28130 # we get undefined symbols. So assume we have SM if we have ICE.
28131 # These have to be linked with before -lX11, unlike the other
28132 # libraries we check for below, so use a different variable.
28133 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028135$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028136if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028137 $as_echo_n "(cached) " >&6
28138else
28139 ac_check_lib_save_LIBS=$LIBS
28140LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028142/* end confdefs.h. */
28143
28144/* Override any GCC internal prototype to avoid an error.
28145 Use char because int might match the return type of a GCC
28146 builtin and then its argument prototype would still apply. */
28147#ifdef __cplusplus
28148extern "C"
28149#endif
28150char IceConnectionNumber ();
28151int
28152main ()
28153{
28154return IceConnectionNumber ();
28155 ;
28156 return 0;
28157}
28158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028160 ac_cv_lib_ICE_IceConnectionNumber=yes
28161else
cristy8b350f62009-11-15 23:12:43 +000028162 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028163fi
cristy8b350f62009-11-15 23:12:43 +000028164rm -f core conftest.err conftest.$ac_objext \
28165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028166LIBS=$ac_check_lib_save_LIBS
28167fi
cristy8b350f62009-11-15 23:12:43 +000028168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028169$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028170if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028171 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28172fi
28173
28174 LDFLAGS=$ac_save_LDFLAGS
28175
28176fi
28177
28178if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28180$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28184$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028185 LDFLAGS="$LDFLAGS $X_LIBS"
28186 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28187 LIBS="$X11_LIBS $LIBS"
28188 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28189
28190
cristy8b350f62009-11-15 23:12:43 +000028191$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028192
28193 #
28194 # Check for X11 shared memory extension
28195 #
28196 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028197 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028198if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 have_shmctl='yes'
28200fi
28201
28202 if test "$have_shmctl" != 'yes'; then
28203 PERSIST_LIBS=$LIBS
28204 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028206/* end confdefs.h. */
28207
28208/* Override any GCC internal prototype to avoid an error.
28209 Use char because int might match the return type of a GCC
28210 builtin and then its argument prototype would still apply. */
28211#ifdef __cplusplus
28212extern "C"
28213#endif
28214char shmctl ();
28215int
28216main ()
28217{
28218return shmctl ();
28219 ;
28220 return 0;
28221}
28222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028225fi
cristy8b350f62009-11-15 23:12:43 +000028226rm -f core conftest.err conftest.$ac_objext \
28227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028228 LIBS=$PERSIST_LIBS
28229 fi
28230
28231 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028234if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028235 $as_echo_n "(cached) " >&6
28236else
28237 ac_check_lib_save_LIBS=$LIBS
28238LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028240/* end confdefs.h. */
28241
28242/* Override any GCC internal prototype to avoid an error.
28243 Use char because int might match the return type of a GCC
28244 builtin and then its argument prototype would still apply. */
28245#ifdef __cplusplus
28246extern "C"
28247#endif
28248char XShmAttach ();
28249int
28250main ()
28251{
28252return XShmAttach ();
28253 ;
28254 return 0;
28255}
28256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028258 ac_cv_lib_Xext_XShmAttach=yes
28259else
cristy8b350f62009-11-15 23:12:43 +000028260 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028261fi
cristy8b350f62009-11-15 23:12:43 +000028262rm -f core conftest.err conftest.$ac_objext \
28263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028264LIBS=$ac_check_lib_save_LIBS
28265fi
cristy8b350f62009-11-15 23:12:43 +000028266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028267$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028268if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028269 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028270$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028271
28272fi
28273
28274 fi
28275
28276 #
28277 # Check for X11 shape extension
28278 #
cristy8b350f62009-11-15 23:12:43 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028281if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 $as_echo_n "(cached) " >&6
28283else
28284 ac_check_lib_save_LIBS=$LIBS
28285LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028287/* end confdefs.h. */
28288
28289/* Override any GCC internal prototype to avoid an error.
28290 Use char because int might match the return type of a GCC
28291 builtin and then its argument prototype would still apply. */
28292#ifdef __cplusplus
28293extern "C"
28294#endif
28295char XShapeCombineMask ();
28296int
28297main ()
28298{
28299return XShapeCombineMask ();
28300 ;
28301 return 0;
28302}
28303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028305 ac_cv_lib_Xext_XShapeCombineMask=yes
28306else
cristy8b350f62009-11-15 23:12:43 +000028307 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028308fi
cristy8b350f62009-11-15 23:12:43 +000028309rm -f core conftest.err conftest.$ac_objext \
28310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028311LIBS=$ac_check_lib_save_LIBS
28312fi
cristy8b350f62009-11-15 23:12:43 +000028313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028315if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028317$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028318
28319fi
28320
cristy8b350f62009-11-15 23:12:43 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028323if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 $as_echo_n "(cached) " >&6
28325else
28326 ac_check_lib_save_LIBS=$LIBS
28327LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028329/* end confdefs.h. */
28330
28331/* Override any GCC internal prototype to avoid an error.
28332 Use char because int might match the return type of a GCC
28333 builtin and then its argument prototype would still apply. */
28334#ifdef __cplusplus
28335extern "C"
28336#endif
28337char XtSetEventDispatcher ();
28338int
28339main ()
28340{
28341return XtSetEventDispatcher ();
28342 ;
28343 return 0;
28344}
28345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028347 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28348else
cristy8b350f62009-11-15 23:12:43 +000028349 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028350fi
cristy8b350f62009-11-15 23:12:43 +000028351rm -f core conftest.err conftest.$ac_objext \
28352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028353LIBS=$ac_check_lib_save_LIBS
28354fi
cristy8b350f62009-11-15 23:12:43 +000028355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028357if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 XT_LIBS='-lXt'
28359fi
28360
28361 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28362fi
28363if test "$no_x" != 'yes'; then
28364 have_x='yes'
28365else
28366 have_x='no'
28367fi
cristy73bd4a52010-10-05 11:24:23 +000028368 if test "$have_x" = 'yes'; then
28369 X11_DELEGATE_TRUE=
28370 X11_DELEGATE_FALSE='#'
28371else
28372 X11_DELEGATE_TRUE='#'
28373 X11_DELEGATE_FALSE=
28374fi
28375
cristy3ed852e2009-09-05 21:47:34 +000028376
28377
28378
28379
28380#
28381# Check for ZLIB
28382#
28383
28384# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028385if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 withval=$with_zlib; with_zlib=$withval
28387else
28388 with_zlib='yes'
28389fi
28390
28391
28392if test "$with_zlib" != 'yes'; then
28393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28394fi
28395
28396have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028397ZLIB_CFLAGS=""
28398ZLIB_LIBS=""
28399ZLIB_PKG=""
28400if test "x$with_zlib" = "xyes"; then
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028402$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000028403
28404pkg_failed=no
28405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000028407
28408if test -n "$ZLIB_CFLAGS"; then
28409 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28410 elif test -n "$PKG_CONFIG"; then
28411 if test -n "$PKG_CONFIG" && \
28412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28413 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28414 ac_status=$?
28415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28416 test $ac_status = 0; }; then
28417 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28418 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000028419else
cristy32f75d42015-06-05 18:46:23 +000028420 pkg_failed=yes
28421fi
28422 else
28423 pkg_failed=untried
28424fi
28425if test -n "$ZLIB_LIBS"; then
28426 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28427 elif test -n "$PKG_CONFIG"; then
28428 if test -n "$PKG_CONFIG" && \
28429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28430 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28431 ac_status=$?
28432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28433 test $ac_status = 0; }; then
28434 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28435 test "x$?" != "x0" && pkg_failed=yes
28436else
28437 pkg_failed=yes
28438fi
28439 else
28440 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000028441fi
28442
28443
cristy3ed852e2009-09-05 21:47:34 +000028444
cristy32f75d42015-06-05 18:46:23 +000028445if test $pkg_failed = yes; then
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28447$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028448
cristy32f75d42015-06-05 18:46:23 +000028449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28450 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000028451else
cristy32f75d42015-06-05 18:46:23 +000028452 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000028453fi
cristy32f75d42015-06-05 18:46:23 +000028454 if test $_pkg_short_errors_supported = yes; then
28455 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000028456 else
cristy32f75d42015-06-05 18:46:23 +000028457 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28458 fi
28459 # Put the nasty error message in config.log where it belongs
28460 echo "$ZLIB_PKG_ERRORS" >&5
28461
28462 have_zlib=no
28463elif test $pkg_failed = untried; then
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28465$as_echo "no" >&6; }
28466 have_zlib=no
28467else
28468 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28469 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28471$as_echo "yes" >&6; }
28472 have_zlib=yes
28473fi
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28475$as_echo "" >&6; }
28476fi
28477
28478if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028479
cristy8b350f62009-11-15 23:12:43 +000028480$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028481
cristy32f75d42015-06-05 18:46:23 +000028482 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028483fi
cristy32f75d42015-06-05 18:46:23 +000028484
cristy73bd4a52010-10-05 11:24:23 +000028485 if test "$have_zlib" = 'yes'; then
28486 ZLIB_DELEGATE_TRUE=
28487 ZLIB_DELEGATE_FALSE='#'
28488else
28489 ZLIB_DELEGATE_TRUE='#'
28490 ZLIB_DELEGATE_FALSE=
28491fi
28492
cristy3ed852e2009-09-05 21:47:34 +000028493
28494
cristy32f75d42015-06-05 18:46:23 +000028495
28496
cristy5eef09f2012-10-16 12:08:28 +000028497# whether modules are built or not.
28498with_ltdl='yes'
28499have_ltdl='no'
28500LTDL_LIBS=''
28501if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28503$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28505$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28507$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028508 failed=0
28509 passed=0
28510 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28511if test "x$ac_cv_header_ltdl_h" = xyes; then :
28512 passed=`expr $passed + 1`
28513else
28514 failed=`expr $failed + 1`
28515fi
28516
28517
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28519$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28520if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28521 $as_echo_n "(cached) " >&6
28522else
28523 ac_check_lib_save_LIBS=$LIBS
28524LIBS="-lltdl $LIBS"
28525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28526/* end confdefs.h. */
28527
28528/* Override any GCC internal prototype to avoid an error.
28529 Use char because int might match the return type of a GCC
28530 builtin and then its argument prototype would still apply. */
28531#ifdef __cplusplus
28532extern "C"
28533#endif
28534char lt_dlinit ();
28535int
28536main ()
28537{
28538return lt_dlinit ();
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543if ac_fn_c_try_link "$LINENO"; then :
28544 ac_cv_lib_ltdl_lt_dlinit=yes
28545else
28546 ac_cv_lib_ltdl_lt_dlinit=no
28547fi
28548rm -f core conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28550LIBS=$ac_check_lib_save_LIBS
28551fi
28552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28553$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28554if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28555 passed=`expr $passed + 1`
28556else
28557 failed=`expr $failed + 1`
28558fi
28559
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28561$as_echo_n "checking if libltdl package is complete... " >&6; }
28562 if test $passed -gt 0 ; then
28563 if test $failed -gt 0 ; then
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28565$as_echo "no -- some components failed test" >&6; }
28566 have_ltdl='no (failed tests)'
28567 else
28568 LTDL_LIBS='-lltdl'
28569 LIBS="$LTDL_LIBS $LIBS"
28570
28571$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28572
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28574$as_echo "yes" >&6; }
28575 have_ltdl='yes'
28576 fi
28577 else
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28579$as_echo "no" >&6; }
28580 fi
cristyaf4cbf32012-10-16 23:47:41 +000028581 if test "$have_ltdl" != 'yes' ; then
28582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28584as_fn_error 1 "libltdl is required for modules build
28585See \`config.log' for more details" "$LINENO" 5; }
28586 fi
cristy5eef09f2012-10-16 12:08:28 +000028587fi
28588 if test "$have_ltdl" != 'no'; then
28589 WITH_LTDL_TRUE=
28590 WITH_LTDL_FALSE='#'
28591else
28592 WITH_LTDL_TRUE='#'
28593 WITH_LTDL_FALSE=
28594fi
28595
28596
cristy3ed852e2009-09-05 21:47:34 +000028597#
28598# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28599#
28600LIB_DL=''
28601if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028604if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 $as_echo_n "(cached) " >&6
28606else
28607 ac_check_lib_save_LIBS=$LIBS
28608LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028610/* end confdefs.h. */
28611
28612/* Override any GCC internal prototype to avoid an error.
28613 Use char because int might match the return type of a GCC
28614 builtin and then its argument prototype would still apply. */
28615#ifdef __cplusplus
28616extern "C"
28617#endif
28618char dlopen ();
28619int
28620main ()
28621{
28622return dlopen ();
28623 ;
28624 return 0;
28625}
28626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028628 ac_cv_lib_dl_dlopen=yes
28629else
cristy8b350f62009-11-15 23:12:43 +000028630 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028631fi
cristy8b350f62009-11-15 23:12:43 +000028632rm -f core conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028634LIBS=$ac_check_lib_save_LIBS
28635fi
cristy8b350f62009-11-15 23:12:43 +000028636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028638if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028639 LIB_DL='-ldl'
28640fi
28641
28642 LIBS="$LIB_DL $LIBS"
28643fi
28644
28645
28646
28647#
cristy5a3dc992014-12-05 19:50:04 +000028648# Set Apple font directory.
28649#
28650
28651# Check whether --with-apple-font-dir was given.
28652if test "${with_apple_font_dir+set}" = set; then :
28653 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28654else
28655 with_apple_font_dir='default'
28656fi
28657
28658
28659if test "$with_apple_font_dir" != 'default'; then
28660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28661fi
28662
28663
28664#
cristy3ed852e2009-09-05 21:47:34 +000028665# Check for Autotrace delegate library.
28666#
28667
28668# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028669if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028670 withval=$with_autotrace; with_autotrace=$withval
28671else
28672 with_autotrace='no'
28673fi
28674
28675
28676if test "$with_autotrace" != 'yes'; then
28677 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28678fi
28679
28680have_autotrace='no'
28681AUTOTRACE_CFLAGS=""
28682AUTOTRACE_LIBS=""
28683AUTOTRACE_PKG=""
28684if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000028686$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028687
28688pkg_failed=no
28689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28690$as_echo_n "checking for AUTOTRACE... " >&6; }
28691
28692if test -n "$AUTOTRACE_CFLAGS"; then
28693 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28694 elif test -n "$PKG_CONFIG"; then
28695 if test -n "$PKG_CONFIG" && \
28696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28697 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28698 ac_status=$?
28699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28700 test $ac_status = 0; }; then
28701 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028702 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028703else
28704 pkg_failed=yes
28705fi
28706 else
28707 pkg_failed=untried
28708fi
28709if test -n "$AUTOTRACE_LIBS"; then
28710 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28711 elif test -n "$PKG_CONFIG"; then
28712 if test -n "$PKG_CONFIG" && \
28713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28714 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28715 ac_status=$?
28716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28717 test $ac_status = 0; }; then
28718 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028719 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028720else
28721 pkg_failed=yes
28722fi
28723 else
28724 pkg_failed=untried
28725fi
28726
28727
28728
28729if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28731$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028732
28733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28734 _pkg_short_errors_supported=yes
28735else
28736 _pkg_short_errors_supported=no
28737fi
28738 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028739 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028740 else
cristy146497a2015-05-17 22:46:16 +000028741 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028742 fi
28743 # Put the nasty error message in config.log where it belongs
28744 echo "$AUTOTRACE_PKG_ERRORS" >&5
28745
cristy146497a2015-05-17 22:46:16 +000028746 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028747elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28749$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028750 have_autotrace=no
28751else
28752 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28753 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28755$as_echo "yes" >&6; }
28756 have_autotrace=yes
28757fi
cristy32f75d42015-06-05 18:46:23 +000028758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000028759$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028760fi
28761
28762if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028763
cristy8b350f62009-11-15 23:12:43 +000028764$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028765
cristy32f75d42015-06-05 18:46:23 +000028766 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028767fi
28768
cristy73bd4a52010-10-05 11:24:23 +000028769 if test "$have_autotrace" = 'yes'; then
28770 AUTOTRACE_DELEGATE_TRUE=
28771 AUTOTRACE_DELEGATE_FALSE='#'
28772else
28773 AUTOTRACE_DELEGATE_TRUE='#'
28774 AUTOTRACE_DELEGATE_FALSE=
28775fi
28776
cristy3ed852e2009-09-05 21:47:34 +000028777
28778
28779
28780
28781#
28782# Check for Display Postscript delegate library.
28783#
28784
28785# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028786if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028787 withval=$with_dps; with_dps=$withval
28788else
28789 with_dps='yes'
28790fi
28791
28792
28793if test "$with_dps" != 'yes'; then
28794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28795fi
28796
28797have_dps='no'
28798DPS_LIBS=''
28799if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28801$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028803$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28805$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028806 failed=0
28807 passed=0
28808 PERSIST_CPPFLAGS="$CPPFLAGS"
28809 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028810 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 +000028811if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028812 passed=`expr $passed + 1`
28813else
28814 failed=`expr $failed + 1`
28815fi
28816
28817
28818 # DPS issues:
28819 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28820 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28821 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28822 # ImageMagick itself doesn't use -lXt.
28823 have_libdps='no'
28824 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028826$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028827if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028828 $as_echo_n "(cached) " >&6
28829else
28830 ac_check_lib_save_LIBS=$LIBS
28831LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028833/* end confdefs.h. */
28834
28835/* Override any GCC internal prototype to avoid an error.
28836 Use char because int might match the return type of a GCC
28837 builtin and then its argument prototype would still apply. */
28838#ifdef __cplusplus
28839extern "C"
28840#endif
28841char DPSInitialize ();
28842int
28843main ()
28844{
28845return DPSInitialize ();
28846 ;
28847 return 0;
28848}
28849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028851 ac_cv_lib_dps_DPSInitialize=yes
28852else
cristy8b350f62009-11-15 23:12:43 +000028853 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028854fi
cristy8b350f62009-11-15 23:12:43 +000028855rm -f core conftest.err conftest.$ac_objext \
28856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028857LIBS=$ac_check_lib_save_LIBS
28858fi
cristy8b350f62009-11-15 23:12:43 +000028859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028861if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 have_libdps='yes'
28863else
28864 have_libdps='no'
28865fi
28866
28867 if test "$have_libdps" != 'yes'; then
28868 # Unset cache variable so we can try again.
28869 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028871$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028872if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028873 $as_echo_n "(cached) " >&6
28874else
28875 ac_check_lib_save_LIBS=$LIBS
28876LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028878/* end confdefs.h. */
28879
28880/* Override any GCC internal prototype to avoid an error.
28881 Use char because int might match the return type of a GCC
28882 builtin and then its argument prototype would still apply. */
28883#ifdef __cplusplus
28884extern "C"
28885#endif
28886char DPSInitialize ();
28887int
28888main ()
28889{
28890return DPSInitialize ();
28891 ;
28892 return 0;
28893}
28894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 ac_cv_lib_dps_DPSInitialize=yes
28897else
cristy8b350f62009-11-15 23:12:43 +000028898 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028899fi
cristy8b350f62009-11-15 23:12:43 +000028900rm -f core conftest.err conftest.$ac_objext \
28901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028902LIBS=$ac_check_lib_save_LIBS
28903fi
cristy8b350f62009-11-15 23:12:43 +000028904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028906if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028907 have_libdps='yes'
28908else
28909 have_libdps='no'
28910fi
28911
28912 if test "$have_libdps" = 'yes'; then
28913 LIBDPS_XT='-lXt'
28914 fi
28915 fi
28916 if test "$have_libdps" = 'yes'; then
28917 passed=`expr $passed + 1`
28918 else
28919 failed=`expr $failed + 1`
28920 fi
cristy8b350f62009-11-15 23:12:43 +000028921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028922$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028923if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028924 $as_echo_n "(cached) " >&6
28925else
28926 ac_check_lib_save_LIBS=$LIBS
28927LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028929/* end confdefs.h. */
28930
28931/* Override any GCC internal prototype to avoid an error.
28932 Use char because int might match the return type of a GCC
28933 builtin and then its argument prototype would still apply. */
28934#ifdef __cplusplus
28935extern "C"
28936#endif
28937char XDPSPixelsPerPoint ();
28938int
28939main ()
28940{
28941return XDPSPixelsPerPoint ();
28942 ;
28943 return 0;
28944}
28945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028947 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28948else
cristy8b350f62009-11-15 23:12:43 +000028949 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028950fi
cristy8b350f62009-11-15 23:12:43 +000028951rm -f core conftest.err conftest.$ac_objext \
28952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028953LIBS=$ac_check_lib_save_LIBS
28954fi
cristy8b350f62009-11-15 23:12:43 +000028955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028957if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028958 passed=`expr $passed + 1`
28959else
28960 failed=`expr $failed + 1`
28961fi
28962
cristy8b350f62009-11-15 23:12:43 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028964$as_echo_n "checking if DPS package is complete... " >&6; }
28965 if test $passed -gt 0; then
28966 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28968$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028969 have_dps='no (failed tests)'
28970 CPPFLAGS="$PERSIST_CPPFLAGS"
28971 else
28972 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28973 LIBS="$DPS_LIBS $LIBS"
28974
cristy8b350f62009-11-15 23:12:43 +000028975$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028976
cristyad38abe2012-12-23 23:03:21 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28978$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028979 have_dps='yes'
28980 fi
28981 else
cristyad38abe2012-12-23 23:03:21 +000028982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28983$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028984 CPPFLAGS=$PERSIST_CPPFLAGS
28985 fi
28986fi
cristy73bd4a52010-10-05 11:24:23 +000028987 if test "$have_dps" = 'yes'; then
28988 DPS_DELEGATE_TRUE=
28989 DPS_DELEGATE_FALSE='#'
28990else
28991 DPS_DELEGATE_TRUE='#'
28992 DPS_DELEGATE_FALSE=
28993fi
28994
cristy3ed852e2009-09-05 21:47:34 +000028995
28996
28997
28998#
cristy430a7312010-01-21 20:44:04 +000028999# Set DejaVu font directory.
29000#
29001
29002# Check whether --with-dejavu-font-dir was given.
29003if test "${with_dejavu_font_dir+set}" = set; then :
29004 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29005else
29006 with_dejavu_font_dir='default'
29007fi
29008
29009
29010if test "$with_dejavu_font_dir" != 'default'; then
29011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29012fi
29013
29014
29015#
cristy3ed852e2009-09-05 21:47:34 +000029016# Check for FFTW delegate library.
29017#
29018
29019# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029020if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 withval=$with_fftw; with_fftw=$withval
29022else
29023 with_fftw='yes'
29024fi
29025
29026
29027if test "$with_fftw" != 'yes'; then
29028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29029fi
29030
cristy81beccd2011-10-03 18:17:24 +000029031have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029032FFTW_CFLAGS=""
29033FFTW_LIBS=""
29034FFTW_PKG=""
29035if test "x$with_fftw" = "xyes"; then
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029037$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029038
29039pkg_failed=no
29040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29041$as_echo_n "checking for fftw3... " >&6; }
29042
29043if test -n "$fftw3_CFLAGS"; then
29044 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29045 elif test -n "$PKG_CONFIG"; then
29046 if test -n "$PKG_CONFIG" && \
29047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29048 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29049 ac_status=$?
29050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29051 test $ac_status = 0; }; then
29052 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29053 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029054else
cristy32f75d42015-06-05 18:46:23 +000029055 pkg_failed=yes
29056fi
29057 else
29058 pkg_failed=untried
29059fi
29060if test -n "$fftw3_LIBS"; then
29061 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29062 elif test -n "$PKG_CONFIG"; then
29063 if test -n "$PKG_CONFIG" && \
29064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29065 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29066 ac_status=$?
29067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29068 test $ac_status = 0; }; then
29069 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29070 test "x$?" != "x0" && pkg_failed=yes
29071else
29072 pkg_failed=yes
29073fi
29074 else
29075 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029076fi
29077
cristy81beccd2011-10-03 18:17:24 +000029078
cristy81beccd2011-10-03 18:17:24 +000029079
cristy32f75d42015-06-05 18:46:23 +000029080if test $pkg_failed = yes; then
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29082$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029083
cristy32f75d42015-06-05 18:46:23 +000029084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29085 _pkg_short_errors_supported=yes
29086else
29087 _pkg_short_errors_supported=no
29088fi
29089 if test $_pkg_short_errors_supported = yes; then
29090 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029091 else
cristy32f75d42015-06-05 18:46:23 +000029092 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29093 fi
29094 # Put the nasty error message in config.log where it belongs
29095 echo "$fftw3_PKG_ERRORS" >&5
29096
29097 have_fftw=no
29098elif test $pkg_failed = untried; then
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29100$as_echo "no" >&6; }
29101 have_fftw=no
29102else
29103 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29104 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29106$as_echo "yes" >&6; }
29107 have_fftw=yes
29108fi
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29110$as_echo "" >&6; }
29111fi
29112
29113if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029114
cristy8b350f62009-11-15 23:12:43 +000029115$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029116
cristyb74ab6e2015-06-06 12:39:54 +000029117 FFTW_CFLAGS="$fftw3_CFLAGS"
29118 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029119 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029120fi
cristy32f75d42015-06-05 18:46:23 +000029121
cristy73bd4a52010-10-05 11:24:23 +000029122 if test "$have_fftw" = 'yes'; then
29123 FFTW_DELEGATE_TRUE=
29124 FFTW_DELEGATE_FALSE='#'
29125else
29126 FFTW_DELEGATE_TRUE='#'
29127 FFTW_DELEGATE_FALSE=
29128fi
29129
cristy3ed852e2009-09-05 21:47:34 +000029130
29131
29132
cristy32f75d42015-06-05 18:46:23 +000029133
cristy3ed852e2009-09-05 21:47:34 +000029134#
29135# Check for FlashPIX delegate library.
29136#
29137
29138# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029139if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029140 withval=$with_fpx; with_fpx=$withval
29141else
29142 with_fpx='yes'
29143fi
29144
29145
29146if test "$with_fpx" != 'yes'; then
29147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29148fi
29149
29150have_fpx='no'
29151FPX_LIBS=''
29152if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29154$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029156$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29158$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029159 failed=0
29160 passed=0
29161 ac_ext=cpp
29162ac_cpp='$CXXCPP $CPPFLAGS'
29163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29166
29167
cristy8b350f62009-11-15 23:12:43 +000029168ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029169if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 passed=`expr $passed + 1`
29171else
29172 failed=`expr $failed + 1`
29173fi
29174
29175
cristy8b350f62009-11-15 23:12:43 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029177$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029178if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029179 $as_echo_n "(cached) " >&6
29180else
29181 ac_check_lib_save_LIBS=$LIBS
29182LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029184/* end confdefs.h. */
29185
29186/* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
29189#ifdef __cplusplus
29190extern "C"
29191#endif
29192char FPX_OpenImageByFilename ();
29193int
29194main ()
29195{
29196return FPX_OpenImageByFilename ();
29197 ;
29198 return 0;
29199}
29200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029201if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029202 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29203else
cristy8b350f62009-11-15 23:12:43 +000029204 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029205fi
cristy8b350f62009-11-15 23:12:43 +000029206rm -f core conftest.err conftest.$ac_objext \
29207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029208LIBS=$ac_check_lib_save_LIBS
29209fi
cristy8b350f62009-11-15 23:12:43 +000029210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029211$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029212if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029213 passed=`expr $passed + 1`
29214else
29215 failed=`expr $failed + 1`
29216fi
29217
29218 ac_ext=c
29219ac_cpp='$CPP $CPPFLAGS'
29220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29222ac_compiler_gnu=$ac_cv_c_compiler_gnu
29223
cristy8b350f62009-11-15 23:12:43 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29226 if test $passed -gt 0; then
29227 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29229$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029230 have_fpx='no (failed tests)'
29231 else
29232 FPX_LIBS='-lfpx'
29233
cristy8b350f62009-11-15 23:12:43 +000029234$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029235
cristyad38abe2012-12-23 23:03:21 +000029236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29237$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029238 have_fpx='yes'
29239 PERLMAINCC="$CXX"
29240 fi
29241 else
cristyad38abe2012-12-23 23:03:21 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029244 fi
29245fi
cristy73bd4a52010-10-05 11:24:23 +000029246 if test "$have_fpx" = 'yes'; then
29247 FPX_DELEGATE_TRUE=
29248 FPX_DELEGATE_FALSE='#'
29249else
29250 FPX_DELEGATE_TRUE='#'
29251 FPX_DELEGATE_FALSE=
29252fi
29253
cristy3ed852e2009-09-05 21:47:34 +000029254
cristy853d9902014-08-21 18:50:43 +000029255
29256
29257#
29258# Check for DJVU delegate library.
29259#
29260
29261# Check whether --with-djvu was given.
29262if test "${with_djvu+set}" = set; then :
29263 withval=$with_djvu; with_djvu=$withval
29264else
29265 with_djvu='yes'
29266fi
29267
29268
29269if test "$with_djvu" != 'yes'; then
29270 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29271fi
29272
29273have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029274DJVU_CFLAGS=""
29275DJVU_LIBS=""
29276DJVU_PKG=""
29277if test "x$with_djvu" = "xyes"; then
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029279$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029280
29281pkg_failed=no
29282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29283$as_echo_n "checking for ddjvuapi... " >&6; }
29284
29285if test -n "$ddjvuapi_CFLAGS"; then
29286 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29287 elif test -n "$PKG_CONFIG"; then
29288 if test -n "$PKG_CONFIG" && \
29289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29290 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29291 ac_status=$?
29292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29293 test $ac_status = 0; }; then
29294 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29295 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029296else
cristy32f75d42015-06-05 18:46:23 +000029297 pkg_failed=yes
29298fi
29299 else
29300 pkg_failed=untried
29301fi
29302if test -n "$ddjvuapi_LIBS"; then
29303 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29304 elif test -n "$PKG_CONFIG"; then
29305 if test -n "$PKG_CONFIG" && \
29306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29307 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29308 ac_status=$?
29309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29310 test $ac_status = 0; }; then
29311 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29312 test "x$?" != "x0" && pkg_failed=yes
29313else
29314 pkg_failed=yes
29315fi
29316 else
29317 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029318fi
29319
29320
cristy853d9902014-08-21 18:50:43 +000029321
cristy32f75d42015-06-05 18:46:23 +000029322if test $pkg_failed = yes; then
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29324$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029325
cristy32f75d42015-06-05 18:46:23 +000029326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29327 _pkg_short_errors_supported=yes
29328else
29329 _pkg_short_errors_supported=no
29330fi
29331 if test $_pkg_short_errors_supported = yes; then
29332 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029333 else
cristy32f75d42015-06-05 18:46:23 +000029334 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29335 fi
29336 # Put the nasty error message in config.log where it belongs
29337 echo "$ddjvuapi_PKG_ERRORS" >&5
29338
29339 have_djvu=no
29340elif test $pkg_failed = untried; then
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29342$as_echo "no" >&6; }
29343 have_djvu=no
29344else
29345 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29346 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29348$as_echo "yes" >&6; }
29349 have_djvu=yes
29350fi
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29352$as_echo "" >&6; }
29353fi
29354
29355if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029356
29357$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29358
cristy32f75d42015-06-05 18:46:23 +000029359 CFLAGS="$DDJVUAPI_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029360fi
cristy32f75d42015-06-05 18:46:23 +000029361
cristy853d9902014-08-21 18:50:43 +000029362 if test "$have_djvu" = 'yes'; then
29363 DJVU_DELEGATE_TRUE=
29364 DJVU_DELEGATE_FALSE='#'
29365else
29366 DJVU_DELEGATE_TRUE='#'
29367 DJVU_DELEGATE_FALSE=
29368fi
29369
29370
cristy3ed852e2009-09-05 21:47:34 +000029371
29372
cristy32f75d42015-06-05 18:46:23 +000029373
cristy3ed852e2009-09-05 21:47:34 +000029374#
29375# Check for fontconfig delegate library.
29376#
29377
29378# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029379if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 withval=$with_fontconfig; with_fontconfig=$withval
29381else
cristyfc3d0222012-02-07 15:05:57 +000029382 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029383fi
29384
29385
29386if test "$with_fontconfig" != 'yes'; then
29387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29388fi
29389
29390have_fontconfig='no'
29391FONTCONFIG_CFLAGS=""
29392FONTCONFIG_LIBS=""
29393FONTCONFIG_PKG=""
29394if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029396$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029397
29398pkg_failed=no
29399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29400$as_echo_n "checking for FONTCONFIG... " >&6; }
29401
29402if test -n "$FONTCONFIG_CFLAGS"; then
29403 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29404 elif test -n "$PKG_CONFIG"; then
29405 if test -n "$PKG_CONFIG" && \
29406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29407 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29408 ac_status=$?
29409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29410 test $ac_status = 0; }; then
29411 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029412 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029413else
29414 pkg_failed=yes
29415fi
29416 else
29417 pkg_failed=untried
29418fi
29419if test -n "$FONTCONFIG_LIBS"; then
29420 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29421 elif test -n "$PKG_CONFIG"; then
29422 if test -n "$PKG_CONFIG" && \
29423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29424 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29425 ac_status=$?
29426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29427 test $ac_status = 0; }; then
29428 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029429 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029430else
29431 pkg_failed=yes
29432fi
29433 else
29434 pkg_failed=untried
29435fi
29436
29437
29438
29439if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29441$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029442
29443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29444 _pkg_short_errors_supported=yes
29445else
29446 _pkg_short_errors_supported=no
29447fi
29448 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029449 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029450 else
cristy146497a2015-05-17 22:46:16 +000029451 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029452 fi
29453 # Put the nasty error message in config.log where it belongs
29454 echo "$FONTCONFIG_PKG_ERRORS" >&5
29455
cristy146497a2015-05-17 22:46:16 +000029456 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029457elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29459$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029460 have_fontconfig=no
29461else
29462 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29463 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29465$as_echo "yes" >&6; }
29466 have_fontconfig=yes
29467fi
cristy32f75d42015-06-05 18:46:23 +000029468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029469$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029470fi
29471
29472if test "$have_fontconfig" = 'yes'; then
29473
cristy8b350f62009-11-15 23:12:43 +000029474$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029475
cristy32f75d42015-06-05 18:46:23 +000029476 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029477fi
29478
cristy73bd4a52010-10-05 11:24:23 +000029479 if test "$have_fontconfig" = 'yes'; then
29480 FONTCONFIG_DELEGATE_TRUE=
29481 FONTCONFIG_DELEGATE_FALSE='#'
29482else
29483 FONTCONFIG_DELEGATE_TRUE='#'
29484 FONTCONFIG_DELEGATE_FALSE=
29485fi
29486
cristy3ed852e2009-09-05 21:47:34 +000029487
29488
29489
29490
29491#
cristy03f187e2013-01-24 00:22:19 +000029492# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029493#
29494
29495# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029496if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029497 withval=$with_freetype; with_freetype=$withval
29498else
29499 with_freetype='yes'
29500fi
29501
29502
cristy3ed852e2009-09-05 21:47:34 +000029503if test "$with_freetype" != 'yes'; then
29504 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29505fi
29506
cristy81beccd2011-10-03 18:17:24 +000029507have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029508FREETYPE_CFLAGS=""
29509FREETYPE_LIBS=""
29510FREETYPE_PKG=""
29511if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029513$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029514
29515pkg_failed=no
29516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29517$as_echo_n "checking for FREETYPE... " >&6; }
29518
29519if test -n "$FREETYPE_CFLAGS"; then
29520 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29521 elif test -n "$PKG_CONFIG"; then
29522 if test -n "$PKG_CONFIG" && \
29523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29524 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29525 ac_status=$?
29526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29527 test $ac_status = 0; }; then
29528 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029529 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029530else
29531 pkg_failed=yes
29532fi
29533 else
29534 pkg_failed=untried
29535fi
29536if test -n "$FREETYPE_LIBS"; then
29537 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29538 elif test -n "$PKG_CONFIG"; then
29539 if test -n "$PKG_CONFIG" && \
29540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29541 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29542 ac_status=$?
29543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29544 test $ac_status = 0; }; then
29545 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029546 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029547else
29548 pkg_failed=yes
29549fi
29550 else
29551 pkg_failed=untried
29552fi
29553
29554
29555
29556if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29558$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029559
29560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29561 _pkg_short_errors_supported=yes
29562else
29563 _pkg_short_errors_supported=no
29564fi
29565 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029566 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029567 else
cristy146497a2015-05-17 22:46:16 +000029568 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029569 fi
29570 # Put the nasty error message in config.log where it belongs
29571 echo "$FREETYPE_PKG_ERRORS" >&5
29572
cristy146497a2015-05-17 22:46:16 +000029573 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029574elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029577 have_freetype=no
29578else
29579 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29580 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29582$as_echo "yes" >&6; }
29583 have_freetype=yes
29584fi
cristy32f75d42015-06-05 18:46:23 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029586$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029587fi
29588
cristy03f187e2013-01-24 00:22:19 +000029589if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029590
cristy8b350f62009-11-15 23:12:43 +000029591$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029592
cristy32f75d42015-06-05 18:46:23 +000029593 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029594fi
cristy03f187e2013-01-24 00:22:19 +000029595
cristy73bd4a52010-10-05 11:24:23 +000029596 if test "$have_freetype" = 'yes'; then
29597 FREETYPE_DELEGATE_TRUE=
29598 FREETYPE_DELEGATE_FALSE='#'
29599else
29600 FREETYPE_DELEGATE_TRUE='#'
29601 FREETYPE_DELEGATE_FALSE=
29602fi
29603
cristy3ed852e2009-09-05 21:47:34 +000029604
29605
29606
cristy03f187e2013-01-24 00:22:19 +000029607
cristy3ed852e2009-09-05 21:47:34 +000029608#
29609# Check for Ghostscript library or framework.
29610#
29611# Test for iapi.h & test for gsapi_new_instance in -lgs
29612# or -framework Ghostscript
29613
29614
29615# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029616if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029617 withval=$with_gslib; with_gslib=$withval
29618else
29619 with_gslib='no'
29620fi
29621
29622
cristyb7931f12009-09-25 10:22:21 +000029623gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029624if test "$with_gslib" != 'yes'; then
29625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29626fi
29627
29628have_gslib='no'
29629GS_LIBS=''
29630if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29632$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029634$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29636$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029637 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029638 failed=0
29639 passed=0
cristy8b350f62009-11-15 23:12:43 +000029640 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 +000029641if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029642 passed=`expr $passed + 1`
29643else
29644 failed=`expr $failed + 1`
29645fi
29646
29647
cristy8b350f62009-11-15 23:12:43 +000029648 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 +000029649if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 passed=`expr $passed + 1`
29651else
29652 failed=`expr $failed + 1`
29653fi
29654
29655
cristy73bd4a52010-10-05 11:24:23 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29657$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029658if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029659 $as_echo_n "(cached) " >&6
29660else
29661 ac_check_framework_save_LIBS=$LIBS
29662LIBS="-framework Ghostscript $LIBS"
29663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29664/* end confdefs.h. */
29665
29666/* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29669#ifdef __cplusplus
29670extern "C"
29671#endif
29672char gsapi_new_instance ();
29673int
29674main ()
29675{
29676return gsapi_new_instance ();
29677 ;
29678 return 0;
29679}
29680_ACEOF
29681if ac_fn_c_try_link "$LINENO"; then :
29682 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29683else
29684 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29685fi
29686rm -f core conftest.err conftest.$ac_objext \
29687 conftest$ac_exeext conftest.$ac_ext
29688LIBS=$ac_check_framework_save_LIBS
29689fi
29690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29691$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29692if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29693 framework=`expr $framework + 1`
29694else
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029696$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029697if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029698 $as_echo_n "(cached) " >&6
29699else
29700 ac_check_lib_save_LIBS=$LIBS
29701LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029703/* end confdefs.h. */
29704
29705/* Override any GCC internal prototype to avoid an error.
29706 Use char because int might match the return type of a GCC
29707 builtin and then its argument prototype would still apply. */
29708#ifdef __cplusplus
29709extern "C"
29710#endif
29711char gsapi_new_instance ();
29712int
29713main ()
29714{
29715return gsapi_new_instance ();
29716 ;
29717 return 0;
29718}
29719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029721 ac_cv_lib_gs_gsapi_new_instance=yes
29722else
cristy8b350f62009-11-15 23:12:43 +000029723 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029724fi
cristy8b350f62009-11-15 23:12:43 +000029725rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029727LIBS=$ac_check_lib_save_LIBS
29728fi
cristy8b350f62009-11-15 23:12:43 +000029729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029731if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029732 passed=`expr $passed + 1`
29733else
29734 failed=`expr $failed + 1`
29735fi
cristy73bd4a52010-10-05 11:24:23 +000029736
29737fi
cristy8b350f62009-11-15 23:12:43 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029739$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29740 if test $passed -gt 0; then
29741 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29743$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029744 have_gslib='no (failed tests)'
29745 else
29746 if test $framework -gt 0; then
29747 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029748 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29750$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029751 else
cristyad38abe2012-12-23 23:03:21 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29753$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029754 GS_LIBS='-lgs'
29755 fi
29756 LIBS="$GS_LIBS $LIBS"
29757
cristy8b350f62009-11-15 23:12:43 +000029758$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029759
29760 have_gslib='yes'
29761 fi
29762 else
cristyad38abe2012-12-23 23:03:21 +000029763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029765 fi
29766fi
cristy73bd4a52010-10-05 11:24:23 +000029767 if test "$have_gslib" = 'yes'; then
29768 GS_DELEGATE_TRUE=
29769 GS_DELEGATE_FALSE='#'
29770else
29771 GS_DELEGATE_TRUE='#'
29772 GS_DELEGATE_FALSE=
29773fi
29774
cristy3ed852e2009-09-05 21:47:34 +000029775
29776
29777# Set default font search path
29778
29779# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029780if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029781 withval=$with_fontpath; with_fontpath=$withval
29782else
29783 with_fontpath=''
29784fi
29785
29786
29787if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29788 with_fontpath=''
29789else
29790
29791cat >>confdefs.h <<_ACEOF
29792#define MAGICK_FONT_PATH "$with_fontpath"
29793_ACEOF
29794
29795fi
29796if test "$with_fontpath=" != ''; then
29797 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29798fi
29799
29800# Set Ghostscript font directory
29801
29802# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029803if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029804 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29805else
29806 with_gs_font_dir='default'
29807fi
29808
29809
29810if test "$with_gs_font_dir" != 'default'; then
29811 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29812fi
29813
29814
29815#
29816# Check for GVC delegate library.
29817#
29818
29819# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029820if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029821 withval=$with_gvc; with_gvc=$withval
29822else
cristy1b70dc82012-07-01 23:15:05 +000029823 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029824fi
29825
29826
29827if test "$with_gvc" != 'yes'; then
29828 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29829fi
29830
29831GVC_PKG=""
29832if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029834$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029835
29836pkg_failed=no
29837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29838$as_echo_n "checking for GVC... " >&6; }
29839
29840if test -n "$GVC_CFLAGS"; then
29841 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29842 elif test -n "$PKG_CONFIG"; then
29843 if test -n "$PKG_CONFIG" && \
29844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29845 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29846 ac_status=$?
29847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29848 test $ac_status = 0; }; then
29849 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029850 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029851else
29852 pkg_failed=yes
29853fi
29854 else
29855 pkg_failed=untried
29856fi
29857if test -n "$GVC_LIBS"; then
29858 pkg_cv_GVC_LIBS="$GVC_LIBS"
29859 elif test -n "$PKG_CONFIG"; then
29860 if test -n "$PKG_CONFIG" && \
29861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29862 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29863 ac_status=$?
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; then
29866 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029867 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029868else
29869 pkg_failed=yes
29870fi
29871 else
29872 pkg_failed=untried
29873fi
29874
29875
29876
29877if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29879$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029880
29881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29882 _pkg_short_errors_supported=yes
29883else
29884 _pkg_short_errors_supported=no
29885fi
29886 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029887 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029888 else
cristy146497a2015-05-17 22:46:16 +000029889 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029890 fi
29891 # Put the nasty error message in config.log where it belongs
29892 echo "$GVC_PKG_ERRORS" >&5
29893
cristy146497a2015-05-17 22:46:16 +000029894 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000029895elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29897$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029898 have_gvc=no
29899else
29900 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29901 GVC_LIBS=$pkg_cv_GVC_LIBS
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29903$as_echo "yes" >&6; }
29904 have_gvc=yes
29905fi
cristy32f75d42015-06-05 18:46:23 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029907$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029908fi
29909
29910if test "$have_gvc" = 'yes'; then
29911
cristy8b350f62009-11-15 23:12:43 +000029912$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029913
cristy32f75d42015-06-05 18:46:23 +000029914 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029915fi
29916
cristy73bd4a52010-10-05 11:24:23 +000029917 if test "$have_gvc" = 'yes'; then
29918 GVC_DELEGATE_TRUE=
29919 GVC_DELEGATE_FALSE='#'
29920else
29921 GVC_DELEGATE_TRUE='#'
29922 GVC_DELEGATE_FALSE=
29923fi
29924
cristy3ed852e2009-09-05 21:47:34 +000029925
29926
29927
29928
29929#
29930# Check for JBIG delegate library.
29931#
29932
29933
29934# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029935if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029936 withval=$with_jbig; with_jbig=$withval
29937else
29938 with_jbig='yes'
29939fi
29940
29941
29942have_jbig='no'
29943JBIG_LIBS=''
29944if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29946$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29950$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029951 failed=0
29952 passed=0
cristy8b350f62009-11-15 23:12:43 +000029953 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029954if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029955 passed=`expr $passed + 1`
29956else
29957 failed=`expr $failed + 1`
29958fi
29959
29960
cristy8b350f62009-11-15 23:12:43 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029963if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029964 $as_echo_n "(cached) " >&6
29965else
29966 ac_check_lib_save_LIBS=$LIBS
29967LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029969/* end confdefs.h. */
29970
29971/* Override any GCC internal prototype to avoid an error.
29972 Use char because int might match the return type of a GCC
29973 builtin and then its argument prototype would still apply. */
29974#ifdef __cplusplus
29975extern "C"
29976#endif
29977char jbg_dec_init ();
29978int
29979main ()
29980{
29981return jbg_dec_init ();
29982 ;
29983 return 0;
29984}
29985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029986if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029987 ac_cv_lib_jbig_jbg_dec_init=yes
29988else
cristy8b350f62009-11-15 23:12:43 +000029989 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029990fi
cristy8b350f62009-11-15 23:12:43 +000029991rm -f core conftest.err conftest.$ac_objext \
29992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029993LIBS=$ac_check_lib_save_LIBS
29994fi
cristy8b350f62009-11-15 23:12:43 +000029995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029996$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029997if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029998 passed=`expr $passed + 1`
29999else
30000 failed=`expr $failed + 1`
30001fi
30002
cristy8b350f62009-11-15 23:12:43 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004$as_echo_n "checking if JBIG package is complete... " >&6; }
30005 if test $passed -gt 0; then
30006 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30008$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030009 have_jbig='no (failed tests)'
30010 else
30011 JBIG_LIBS='-ljbig'
30012 LIBS="$JBIG_LIBS $LIBS"
30013
cristy8b350f62009-11-15 23:12:43 +000030014$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030015
cristyad38abe2012-12-23 23:03:21 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30017$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030018 have_jbig='yes'
30019 fi
30020 else
cristyad38abe2012-12-23 23:03:21 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30022$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030023 fi
30024fi
cristy73bd4a52010-10-05 11:24:23 +000030025 if test "$have_jbig" = 'yes'; then
30026 JBIG_DELEGATE_TRUE=
30027 JBIG_DELEGATE_FALSE='#'
30028else
30029 JBIG_DELEGATE_TRUE='#'
30030 JBIG_DELEGATE_FALSE=
30031fi
30032
cristy3ed852e2009-09-05 21:47:34 +000030033
30034
30035
30036#
30037# Check for JPEG delegate library.
30038#
30039
30040# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030041if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030042 withval=$with_jpeg; with_jpeg=$withval
30043else
30044 with_jpeg='yes'
30045fi
30046
30047
30048if test "$with_jpeg" != 'yes'; then
30049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30050fi
30051
30052have_jpeg='no'
30053JPEG_LIBS=''
30054if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30056$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30060$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030061 failed=0
30062 passed=0
cristy8b350f62009-11-15 23:12:43 +000030063 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030064if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030065 passed=`expr $passed + 1`
30066else
30067 failed=`expr $failed + 1`
30068fi
30069
30070
cristy8b350f62009-11-15 23:12:43 +000030071 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030072if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030073 passed=`expr $passed + 1`
30074else
30075 failed=`expr $failed + 1`
30076fi
30077
30078
cristy8b350f62009-11-15 23:12:43 +000030079 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030080if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030081 passed=`expr $passed + 1`
30082else
30083 failed=`expr $failed + 1`
30084fi
30085
30086
cristy8b350f62009-11-15 23:12:43 +000030087 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030088if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030089 passed=`expr $passed + 1`
30090else
30091 failed=`expr $failed + 1`
30092fi
30093
30094
cristy8b350f62009-11-15 23:12:43 +000030095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030096$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030097if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 $as_echo_n "(cached) " >&6
30099else
30100 ac_check_lib_save_LIBS=$LIBS
30101LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030103/* end confdefs.h. */
30104
30105/* Override any GCC internal prototype to avoid an error.
30106 Use char because int might match the return type of a GCC
30107 builtin and then its argument prototype would still apply. */
30108#ifdef __cplusplus
30109extern "C"
30110#endif
30111char jpeg_read_header ();
30112int
30113main ()
30114{
30115return jpeg_read_header ();
30116 ;
30117 return 0;
30118}
30119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030121 ac_cv_lib_jpeg_jpeg_read_header=yes
30122else
cristy8b350f62009-11-15 23:12:43 +000030123 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030124fi
cristy8b350f62009-11-15 23:12:43 +000030125rm -f core conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030127LIBS=$ac_check_lib_save_LIBS
30128fi
cristy8b350f62009-11-15 23:12:43 +000030129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030130$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030131if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030132 passed=`expr $passed + 1`
30133else
30134 failed=`expr $failed + 1`
30135fi
30136
30137
30138# Test for compatible JPEG library
30139if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030142if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030143 $as_echo_n "(cached) " >&6
30144else
cristy8b350f62009-11-15 23:12:43 +000030145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030146/* end confdefs.h. */
30147#include <stdio.h>
30148#include <stdlib.h>
30149#include <jpeglib.h>
30150
30151int
30152main ()
30153{
30154
30155#if JPEG_LIB_VERSION < 62
30156#error IJG JPEG library must be version 6b or newer!
30157#endif
30158return 0;
30159
30160 ;
30161 return 0;
30162}
30163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030164if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030165 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30166else
cristy8b350f62009-11-15 23:12:43 +000030167 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030168fi
cristy3ed852e2009-09-05 21:47:34 +000030169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30170fi
cristy8b350f62009-11-15 23:12:43 +000030171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30173fi
cristy8b350f62009-11-15 23:12:43 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030175$as_echo_n "checking if JPEG package is complete... " >&6; }
30176 if test $passed -gt 0; then
30177 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30179$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030180 have_jpeg='no (failed tests)'
30181 else
30182 JPEG_LIBS='-ljpeg'
30183 LIBS="$JPEG_LIBS $LIBS"
30184
cristy8b350f62009-11-15 23:12:43 +000030185$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030186
cristyad38abe2012-12-23 23:03:21 +000030187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30188$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030189 have_jpeg='yes'
30190 fi
30191 else
cristyad38abe2012-12-23 23:03:21 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30193$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030194 fi
30195fi
cristy73bd4a52010-10-05 11:24:23 +000030196 if test "$have_jpeg" = 'yes'; then
30197 JPEG_DELEGATE_TRUE=
30198 JPEG_DELEGATE_FALSE='#'
30199else
30200 JPEG_DELEGATE_TRUE='#'
30201 JPEG_DELEGATE_FALSE=
30202fi
30203
cristy3ed852e2009-09-05 21:47:34 +000030204
30205
30206
30207#
cristy3ed852e2009-09-05 21:47:34 +000030208# Check for LCMS delegate library.
30209#
30210
30211# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030212if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030213 withval=$with_lcms; with_lcms=$withval
30214else
30215 with_lcms='yes'
30216fi
30217
cristy71203402010-06-18 13:12:03 +000030218if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30220fi
30221
cristy71203402010-06-18 13:12:03 +000030222have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030223LCMS_CFLAGS=""
30224LCMS_LIBS=""
30225LCMS_PKG=""
30226if test "x$with_lcms" = "xyes"; then
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030228$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030229
cristy32f75d42015-06-05 18:46:23 +000030230pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30232$as_echo_n "checking for LCMS2... " >&6; }
30233
30234if test -n "$LCMS2_CFLAGS"; then
30235 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30236 elif test -n "$PKG_CONFIG"; then
30237 if test -n "$PKG_CONFIG" && \
30238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30239 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30240 ac_status=$?
30241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30242 test $ac_status = 0; }; then
30243 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30244 test "x$?" != "x0" && pkg_failed=yes
30245else
30246 pkg_failed=yes
30247fi
30248 else
30249 pkg_failed=untried
30250fi
30251if test -n "$LCMS2_LIBS"; then
30252 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30253 elif test -n "$PKG_CONFIG"; then
30254 if test -n "$PKG_CONFIG" && \
30255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30256 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30257 ac_status=$?
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; then
30260 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30261 test "x$?" != "x0" && pkg_failed=yes
30262else
30263 pkg_failed=yes
30264fi
30265 else
30266 pkg_failed=untried
30267fi
30268
30269
30270
30271if test $pkg_failed = yes; then
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30273$as_echo "no" >&6; }
30274
30275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30276 _pkg_short_errors_supported=yes
30277else
30278 _pkg_short_errors_supported=no
30279fi
30280 if test $_pkg_short_errors_supported = yes; then
30281 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30282 else
30283 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30284 fi
30285 # Put the nasty error message in config.log where it belongs
30286 echo "$LCMS2_PKG_ERRORS" >&5
30287
30288 have_lcms=no
30289elif test $pkg_failed = untried; then
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30291$as_echo "no" >&6; }
30292 have_lcms=no
30293else
30294 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
30295 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30297$as_echo "yes" >&6; }
30298 have_lcms=yes
30299fi
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30301$as_echo "" >&6; }
30302fi
30303
30304if test "$have_lcms" = 'yes'; then
30305
30306$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30307
cristyb74ab6e2015-06-06 12:39:54 +000030308 LCMS_CFLAGS="$LCMS2_CFLAGS"
30309 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000030310 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030311 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30312if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30313 have_lcms_header='yes'
30314fi
30315
30316
30317 if test "$have_lcms_header" = 'yes'; then
30318
30319$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30320
cristybc8ef1c2015-06-06 14:32:21 +000030321 else
30322
30323$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30324
cristyd6ac47f2015-06-06 13:46:55 +000030325 fi
cristyb054e072015-06-05 20:35:43 +000030326else
30327
30328pkg_failed=no
cristy32f75d42015-06-05 18:46:23 +000030329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
30330$as_echo_n "checking for LCMS... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030331
cristy32f75d42015-06-05 18:46:23 +000030332if test -n "$LCMS_CFLAGS"; then
30333 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
30334 elif test -n "$PKG_CONFIG"; then
30335 if test -n "$PKG_CONFIG" && \
30336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30337 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30338 ac_status=$?
30339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30340 test $ac_status = 0; }; then
30341 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms >= 1.0.0" 2>/dev/null`
30342 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030343else
cristy32f75d42015-06-05 18:46:23 +000030344 pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030345fi
cristy32f75d42015-06-05 18:46:23 +000030346 else
30347 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030348fi
cristy32f75d42015-06-05 18:46:23 +000030349if test -n "$LCMS_LIBS"; then
30350 pkg_cv_LCMS_LIBS="$LCMS_LIBS"
30351 elif test -n "$PKG_CONFIG"; then
30352 if test -n "$PKG_CONFIG" && \
30353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.0.0\""; } >&5
30354 ($PKG_CONFIG --exists --print-errors "lcms >= 1.0.0") 2>&5
30355 ac_status=$?
30356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30357 test $ac_status = 0; }; then
30358 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms >= 1.0.0" 2>/dev/null`
30359 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030360else
cristy32f75d42015-06-05 18:46:23 +000030361 pkg_failed=yes
30362fi
30363 else
30364 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030365fi
30366
cristy32f75d42015-06-05 18:46:23 +000030367
30368
30369if test $pkg_failed = yes; then
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30371$as_echo "no" >&6; }
30372
30373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30374 _pkg_short_errors_supported=yes
30375else
30376 _pkg_short_errors_supported=no
30377fi
30378 if test $_pkg_short_errors_supported = yes; then
30379 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30380 else
30381 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms >= 1.0.0" 2>&1`
30382 fi
30383 # Put the nasty error message in config.log where it belongs
30384 echo "$LCMS_PKG_ERRORS" >&5
30385
30386 have_lcms=no
30387elif test $pkg_failed = untried; then
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30389$as_echo "no" >&6; }
30390 have_lcms=no
30391else
30392 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
30393 LCMS_LIBS=$pkg_cv_LCMS_LIBS
cristyad38abe2012-12-23 23:03:21 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30395$as_echo "yes" >&6; }
cristy32f75d42015-06-05 18:46:23 +000030396 have_lcms=yes
30397fi
cristyb054e072015-06-05 20:35:43 +000030398 if test "$have_lcms" = 'yes'; then
cristy32f75d42015-06-05 18:46:23 +000030399
30400$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30401
cristyb74ab6e2015-06-06 12:39:54 +000030402
30403$as_echo "#define LCMS_VERSION_1 1" >>confdefs.h
30404
cristyb054e072015-06-05 20:35:43 +000030405 CFLAGS="$LCMS_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030406 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
30407if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
30408 have_lcms_header='yes'
30409fi
30410
30411
30412 if test "$have_lcms_header" = 'yes'; then
30413
30414$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
30415
cristybc8ef1c2015-06-06 14:32:21 +000030416 else
30417
30418$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
30419
cristyd6ac47f2015-06-06 13:46:55 +000030420 fi
cristy32f75d42015-06-05 18:46:23 +000030421fi
30422
30423 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030424 LCMS_DELEGATE_TRUE=
30425 LCMS_DELEGATE_FALSE='#'
30426else
30427 LCMS_DELEGATE_TRUE='#'
30428 LCMS_DELEGATE_FALSE=
30429fi
30430
cristy71203402010-06-18 13:12:03 +000030431
cristy3ed852e2009-09-05 21:47:34 +000030432
30433
30434
30435#
cristy99db3872014-01-01 15:11:34 +000030436# Check for the OpenJP2 delegate library.
30437#
30438
30439# Check whether --with-openjp2 was given.
30440if test "${with_openjp2+set}" = set; then :
30441 withval=$with_openjp2; with_openjp2=$withval
30442else
30443 with_openjp2='yes'
30444fi
30445
30446
30447if test "$with_openjp2" != 'yes'; then
30448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30449fi
30450
30451have_openjp2='no'
30452LIBOPENJP2_CFLAGS=""
30453LIBOPENJP2_LIBS=""
30454LIBOPENJP2_PKG=""
30455if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030457$as_echo "-------------------------------------------------------------" >&6; }
30458
30459pkg_failed=no
30460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30461$as_echo_n "checking for LIBOPENJP2... " >&6; }
30462
30463if test -n "$LIBOPENJP2_CFLAGS"; then
30464 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30465 elif test -n "$PKG_CONFIG"; then
30466 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30468 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030469 ac_status=$?
30470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30471 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030472 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030473 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030474else
30475 pkg_failed=yes
30476fi
30477 else
30478 pkg_failed=untried
30479fi
30480if test -n "$LIBOPENJP2_LIBS"; then
30481 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30482 elif test -n "$PKG_CONFIG"; then
30483 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30485 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030486 ac_status=$?
30487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30488 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030489 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030490 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030491else
30492 pkg_failed=yes
30493fi
30494 else
30495 pkg_failed=untried
30496fi
30497
30498
30499
30500if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30502$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030503
30504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30505 _pkg_short_errors_supported=yes
30506else
30507 _pkg_short_errors_supported=no
30508fi
30509 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030510 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030511 else
cristy146497a2015-05-17 22:46:16 +000030512 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030513 fi
30514 # Put the nasty error message in config.log where it belongs
30515 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30516
cristy146497a2015-05-17 22:46:16 +000030517 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030518elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030521 have_openjp2=no
30522else
30523 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30524 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30526$as_echo "yes" >&6; }
30527 have_openjp2=yes
30528fi
cristy32f75d42015-06-05 18:46:23 +000030529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000030530$as_echo "" >&6; }
30531fi
30532
30533if test "$have_openjp2" = 'yes'; then
30534
30535$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30536
cristy32f75d42015-06-05 18:46:23 +000030537 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000030538fi
30539
30540 if test "$have_openjp2" = 'yes'; then
30541 LIBOPENJP2_DELEGATE_TRUE=
30542 LIBOPENJP2_DELEGATE_FALSE='#'
30543else
30544 LIBOPENJP2_DELEGATE_TRUE='#'
30545 LIBOPENJP2_DELEGATE_FALSE=
30546fi
30547
30548
30549
30550
30551
30552
30553#
cristy3ed852e2009-09-05 21:47:34 +000030554# Check for the LQR (Liquid Rescale) delegate library.
30555#
30556
30557# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030558if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030559 withval=$with_lqr; with_lqr=$withval
30560else
30561 with_lqr='yes'
30562fi
30563
30564
30565if test "$with_lqr" != 'yes'; then
30566 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30567fi
30568
30569have_lqr='no'
30570LQR_CFLAGS=""
30571LQR_LIBS=""
30572LQR_PKG=""
30573if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030575$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030576
30577pkg_failed=no
30578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30579$as_echo_n "checking for LQR... " >&6; }
30580
30581if test -n "$LQR_CFLAGS"; then
30582 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30583 elif test -n "$PKG_CONFIG"; then
30584 if test -n "$PKG_CONFIG" && \
30585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30586 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30587 ac_status=$?
30588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30589 test $ac_status = 0; }; then
30590 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030591 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030592else
30593 pkg_failed=yes
30594fi
30595 else
30596 pkg_failed=untried
30597fi
30598if test -n "$LQR_LIBS"; then
30599 pkg_cv_LQR_LIBS="$LQR_LIBS"
30600 elif test -n "$PKG_CONFIG"; then
30601 if test -n "$PKG_CONFIG" && \
30602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30603 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30604 ac_status=$?
30605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30606 test $ac_status = 0; }; then
30607 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030608 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030609else
30610 pkg_failed=yes
30611fi
30612 else
30613 pkg_failed=untried
30614fi
30615
30616
30617
30618if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30620$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030621
30622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30623 _pkg_short_errors_supported=yes
30624else
30625 _pkg_short_errors_supported=no
30626fi
30627 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030628 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030629 else
cristy146497a2015-05-17 22:46:16 +000030630 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030631 fi
30632 # Put the nasty error message in config.log where it belongs
30633 echo "$LQR_PKG_ERRORS" >&5
30634
cristy146497a2015-05-17 22:46:16 +000030635 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030636elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30638$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030639 have_lqr=no
30640else
30641 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30642 LQR_LIBS=$pkg_cv_LQR_LIBS
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30644$as_echo "yes" >&6; }
30645 have_lqr=yes
30646fi
cristy32f75d42015-06-05 18:46:23 +000030647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030648$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030649fi
30650
30651if test "$have_lqr" = 'yes'; then
30652
cristy8b350f62009-11-15 23:12:43 +000030653$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030654
cristy32f75d42015-06-05 18:46:23 +000030655 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030656fi
30657
cristy73bd4a52010-10-05 11:24:23 +000030658 if test "$have_lqr" = 'yes'; then
30659 LQR_DELEGATE_TRUE=
30660 LQR_DELEGATE_FALSE='#'
30661else
30662 LQR_DELEGATE_TRUE='#'
30663 LQR_DELEGATE_FALSE=
30664fi
30665
cristy3ed852e2009-09-05 21:47:34 +000030666
30667
30668
30669
cristy81beccd2011-10-03 18:17:24 +000030670# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030671
30672# Check whether --with-lzma was given.
30673if test "${with_lzma+set}" = set; then :
30674 withval=$with_lzma; with_lzma=$withval
30675else
30676 with_lzma='yes'
30677fi
30678
cristy81beccd2011-10-03 18:17:24 +000030679if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30681fi
30682
cristyb94e5002011-11-14 13:20:10 +000030683LZMA_PKG=""
30684if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030686$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030687
30688pkg_failed=no
30689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030690$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030691
30692if test -n "$LZMA_CFLAGS"; then
30693 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30694 elif test -n "$PKG_CONFIG"; then
30695 if test -n "$PKG_CONFIG" && \
30696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30697 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30698 ac_status=$?
30699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30700 test $ac_status = 0; }; then
30701 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030702 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030703else
30704 pkg_failed=yes
30705fi
30706 else
30707 pkg_failed=untried
30708fi
30709if test -n "$LZMA_LIBS"; then
30710 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30711 elif test -n "$PKG_CONFIG"; then
30712 if test -n "$PKG_CONFIG" && \
30713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30714 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30715 ac_status=$?
30716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30717 test $ac_status = 0; }; then
30718 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030719 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030720else
30721 pkg_failed=yes
30722fi
30723 else
30724 pkg_failed=untried
30725fi
30726
30727
30728
30729if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30731$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030732
30733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30734 _pkg_short_errors_supported=yes
30735else
30736 _pkg_short_errors_supported=no
30737fi
30738 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030739 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030740 else
cristy146497a2015-05-17 22:46:16 +000030741 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030742 fi
30743 # Put the nasty error message in config.log where it belongs
30744 echo "$LZMA_PKG_ERRORS" >&5
30745
cristy146497a2015-05-17 22:46:16 +000030746 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030747elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30749$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030750 have_lzma=no
30751else
30752 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30753 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30755$as_echo "yes" >&6; }
30756 have_lzma=yes
30757fi
cristy32f75d42015-06-05 18:46:23 +000030758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030759$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030760fi
30761
cristyb94e5002011-11-14 13:20:10 +000030762if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030763
30764$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30765
cristy32f75d42015-06-05 18:46:23 +000030766 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030767fi
cristyb94e5002011-11-14 13:20:10 +000030768
cristyfbb0ef02010-12-19 02:32:11 +000030769 if test "$have_lzma" = 'yes'; then
30770 LZMA_DELEGATE_TRUE=
30771 LZMA_DELEGATE_FALSE='#'
30772else
30773 LZMA_DELEGATE_TRUE='#'
30774 LZMA_DELEGATE_FALSE=
30775fi
30776
30777
30778
30779
cristyb94e5002011-11-14 13:20:10 +000030780
cristy3ed852e2009-09-05 21:47:34 +000030781#
30782# Check for the OpenEXR delegate library.
30783#
30784
30785# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030786if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030787 withval=$with_openexr; with_openexr=$withval
30788else
30789 with_openexr='yes'
30790fi
30791
30792
30793if test "$with_openexr" != 'yes'; then
30794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30795fi
30796
30797have_openexr='no'
30798OPENEXR_CFLAGS=""
30799OPENEXR_LIBS=""
30800OPENEXR_PKG=""
30801if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030803$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030804
30805pkg_failed=no
30806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30807$as_echo_n "checking for OPENEXR... " >&6; }
30808
30809if test -n "$OPENEXR_CFLAGS"; then
30810 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30811 elif test -n "$PKG_CONFIG"; then
30812 if test -n "$PKG_CONFIG" && \
30813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30814 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30815 ac_status=$?
30816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30817 test $ac_status = 0; }; then
30818 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030819 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030820else
30821 pkg_failed=yes
30822fi
30823 else
30824 pkg_failed=untried
30825fi
30826if test -n "$OPENEXR_LIBS"; then
30827 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30828 elif test -n "$PKG_CONFIG"; then
30829 if test -n "$PKG_CONFIG" && \
30830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30831 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30832 ac_status=$?
30833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30834 test $ac_status = 0; }; then
30835 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030836 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030837else
30838 pkg_failed=yes
30839fi
30840 else
30841 pkg_failed=untried
30842fi
30843
30844
30845
30846if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30848$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030849
30850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30851 _pkg_short_errors_supported=yes
30852else
30853 _pkg_short_errors_supported=no
30854fi
30855 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030856 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030857 else
cristy146497a2015-05-17 22:46:16 +000030858 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030859 fi
30860 # Put the nasty error message in config.log where it belongs
30861 echo "$OPENEXR_PKG_ERRORS" >&5
30862
cristy146497a2015-05-17 22:46:16 +000030863 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000030864elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30866$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030867 have_openexr=no
30868else
30869 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30870 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30872$as_echo "yes" >&6; }
30873 have_openexr=yes
30874fi
cristy32f75d42015-06-05 18:46:23 +000030875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030876$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030877fi
30878
30879if test "$have_openexr" = 'yes'; then
30880
cristy8b350f62009-11-15 23:12:43 +000030881$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030882
cristy32f75d42015-06-05 18:46:23 +000030883 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030884fi
30885
cristy73bd4a52010-10-05 11:24:23 +000030886 if test "$have_openexr" = 'yes'; then
30887 OPENEXR_DELEGATE_TRUE=
30888 OPENEXR_DELEGATE_FALSE='#'
30889else
30890 OPENEXR_DELEGATE_TRUE='#'
30891 OPENEXR_DELEGATE_FALSE=
30892fi
30893
cristy3ed852e2009-09-05 21:47:34 +000030894
30895
30896
30897
30898#
cristy41cbe8a2011-10-27 01:35:18 +000030899# Check for PANGO delegate library.
30900#
30901
30902# Check whether --with-pango was given.
30903if test "${with_pango+set}" = set; then :
30904 withval=$with_pango; with_pango=$withval
30905else
cristyfc3d0222012-02-07 15:05:57 +000030906 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030907fi
30908
30909
30910if test "$with_pango" != 'yes'; then
30911 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30912fi
30913
30914have_pango='no'
cristya054b762012-03-26 23:16:00 +000030915have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030916PANGO_CFLAGS=""
30917PANGO_LIBS=""
30918PANGO_PKG=""
30919if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000030921$as_echo "-------------------------------------------------------------" >&6; }
30922
30923pkg_failed=no
30924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30925$as_echo_n "checking for PANGO... " >&6; }
30926
30927if test -n "$PANGO_CFLAGS"; then
30928 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30929 elif test -n "$PKG_CONFIG"; then
30930 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30932 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030933 ac_status=$?
30934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30935 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030936 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030937 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030938else
30939 pkg_failed=yes
30940fi
30941 else
30942 pkg_failed=untried
30943fi
30944if test -n "$PANGO_LIBS"; then
30945 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30946 elif test -n "$PKG_CONFIG"; then
30947 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30949 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030950 ac_status=$?
30951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30952 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030953 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030954 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000030955else
30956 pkg_failed=yes
30957fi
30958 else
30959 pkg_failed=untried
30960fi
30961
30962
30963
30964if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30966$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030967
30968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30969 _pkg_short_errors_supported=yes
30970else
30971 _pkg_short_errors_supported=no
30972fi
30973 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030974 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030975 else
cristy146497a2015-05-17 22:46:16 +000030976 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030977 fi
30978 # Put the nasty error message in config.log where it belongs
30979 echo "$PANGO_PKG_ERRORS" >&5
30980
cristy146497a2015-05-17 22:46:16 +000030981 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030982elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30984$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030985 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030986else
30987 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30988 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30990$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030991 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030992fi
cristy32f75d42015-06-05 18:46:23 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000030994$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030995
30996pkg_failed=no
30997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30998$as_echo_n "checking for PANGO... " >&6; }
30999
31000if test -n "$PANGO_CFLAGS"; then
31001 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31002 elif test -n "$PKG_CONFIG"; then
31003 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31005 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031006 ac_status=$?
31007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31008 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031009 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031010 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031011else
31012 pkg_failed=yes
31013fi
31014 else
31015 pkg_failed=untried
31016fi
31017if test -n "$PANGO_LIBS"; then
31018 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31019 elif test -n "$PKG_CONFIG"; then
31020 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31022 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031023 ac_status=$?
31024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31025 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031026 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031027 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031028else
31029 pkg_failed=yes
31030fi
31031 else
31032 pkg_failed=untried
31033fi
31034
31035
31036
31037if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31039$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031040
31041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31042 _pkg_short_errors_supported=yes
31043else
31044 _pkg_short_errors_supported=no
31045fi
31046 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031047 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031048 else
cristy146497a2015-05-17 22:46:16 +000031049 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031050 fi
31051 # Put the nasty error message in config.log where it belongs
31052 echo "$PANGO_PKG_ERRORS" >&5
31053
cristy146497a2015-05-17 22:46:16 +000031054 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031055elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031058 have_pango=no
31059else
31060 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31061 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31063$as_echo "yes" >&6; }
31064 have_pango=yes
31065fi
cristy32f75d42015-06-05 18:46:23 +000031066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000031067$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031068fi
31069
31070if test "$have_pango" = 'yes'; then
31071
31072$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31073
cristy32f75d42015-06-05 18:46:23 +000031074 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031075fi
31076
cristya054b762012-03-26 23:16:00 +000031077if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031078
cristya054b762012-03-26 23:16:00 +000031079$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031080
cristy32f75d42015-06-05 18:46:23 +000031081 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031082fi
31083
31084 if test "$have_pango" = 'yes'; then
31085 PANGO_DELEGATE_TRUE=
31086 PANGO_DELEGATE_FALSE='#'
31087else
31088 PANGO_DELEGATE_TRUE='#'
31089 PANGO_DELEGATE_FALSE=
31090fi
31091
cristya054b762012-03-26 23:16:00 +000031092 if test "$have_pangocairo" = 'yes'; then
31093 PANGOCAIRO_DELEGATE_TRUE=
31094 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031095else
cristya054b762012-03-26 23:16:00 +000031096 PANGOCAIRO_DELEGATE_TRUE='#'
31097 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031098fi
31099
31100
31101
31102
31103
31104#
cristy3ed852e2009-09-05 21:47:34 +000031105# Check for PNG delegate library.
31106#
31107
31108# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031109if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031110 withval=$with_png; with_png=$withval
31111else
31112 with_png='yes'
31113fi
31114
31115
31116if test "$with_png" != 'yes'; then
31117 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31118fi
31119
cristy81beccd2011-10-03 18:17:24 +000031120have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031121PNG_CFLAGS=""
31122PNG_LIBS=""
31123PNG_PKG=""
31124if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31126$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031127
31128pkg_failed=no
31129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31130$as_echo_n "checking for PNG... " >&6; }
31131
31132if test -n "$PNG_CFLAGS"; then
31133 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31134 elif test -n "$PKG_CONFIG"; then
31135 if test -n "$PKG_CONFIG" && \
31136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31137 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31138 ac_status=$?
31139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31140 test $ac_status = 0; }; then
31141 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31142 test "x$?" != "x0" && pkg_failed=yes
31143else
31144 pkg_failed=yes
31145fi
31146 else
31147 pkg_failed=untried
31148fi
31149if test -n "$PNG_LIBS"; then
31150 pkg_cv_PNG_LIBS="$PNG_LIBS"
31151 elif test -n "$PKG_CONFIG"; then
31152 if test -n "$PKG_CONFIG" && \
31153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31154 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31155 ac_status=$?
31156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31157 test $ac_status = 0; }; then
31158 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31159 test "x$?" != "x0" && pkg_failed=yes
31160else
31161 pkg_failed=yes
31162fi
31163 else
31164 pkg_failed=untried
31165fi
31166
31167
31168
31169if test $pkg_failed = yes; then
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31171$as_echo "no" >&6; }
31172
31173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31174 _pkg_short_errors_supported=yes
31175else
31176 _pkg_short_errors_supported=no
31177fi
31178 if test $_pkg_short_errors_supported = yes; then
31179 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31180 else
31181 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31182 fi
31183 # Put the nasty error message in config.log where it belongs
31184 echo "$PNG_PKG_ERRORS" >&5
31185
31186 have_png=no
31187elif test $pkg_failed = untried; then
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31189$as_echo "no" >&6; }
31190 have_png=no
31191else
31192 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31193 PNG_LIBS=$pkg_cv_PNG_LIBS
31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31195$as_echo "yes" >&6; }
31196 have_png=yes
31197fi
cristyad38abe2012-12-23 23:03:21 +000031198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31199$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031200fi
31201
cristy32f75d42015-06-05 18:46:23 +000031202if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031203
cristy8b350f62009-11-15 23:12:43 +000031204$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031205
cristy32f75d42015-06-05 18:46:23 +000031206 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031207fi
cristy64877302011-08-23 19:10:31 +000031208
cristy73bd4a52010-10-05 11:24:23 +000031209 if test "$have_png" = 'yes'; then
31210 PNG_DELEGATE_TRUE=
31211 PNG_DELEGATE_FALSE='#'
31212else
31213 PNG_DELEGATE_TRUE='#'
31214 PNG_DELEGATE_FALSE=
31215fi
31216
cristy3ed852e2009-09-05 21:47:34 +000031217
cristy50d3f5c2011-09-10 20:09:06 +000031218
cristy3ed852e2009-09-05 21:47:34 +000031219
31220
31221#
31222# Check for RSVG delegate library.
31223#
31224
31225# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031226if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031227 withval=$with_rsvg; with_rsvg=$withval
31228else
cristy1164d5f2012-08-15 00:58:25 +000031229 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031230fi
31231
31232
31233if test "$with_rsvg" != 'yes'; then
31234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31235fi
31236
31237have_rsvg='no'
31238have_cairo='no'
31239RSVG_CFLAGS=""
31240RSVG_LIBS=""
31241RSVG_PKG=""
31242if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031244$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031245
31246pkg_failed=no
31247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31248$as_echo_n "checking for RSVG... " >&6; }
31249
31250if test -n "$RSVG_CFLAGS"; then
31251 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31252 elif test -n "$PKG_CONFIG"; then
31253 if test -n "$PKG_CONFIG" && \
31254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31255 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31256 ac_status=$?
31257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31258 test $ac_status = 0; }; then
31259 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031260 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031261else
31262 pkg_failed=yes
31263fi
31264 else
31265 pkg_failed=untried
31266fi
31267if test -n "$RSVG_LIBS"; then
31268 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31269 elif test -n "$PKG_CONFIG"; then
31270 if test -n "$PKG_CONFIG" && \
31271 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31272 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31273 ac_status=$?
31274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31275 test $ac_status = 0; }; then
31276 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031277 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031278else
31279 pkg_failed=yes
31280fi
31281 else
31282 pkg_failed=untried
31283fi
31284
31285
31286
31287if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31289$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031290
31291if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31292 _pkg_short_errors_supported=yes
31293else
31294 _pkg_short_errors_supported=no
31295fi
31296 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031297 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031298 else
cristy146497a2015-05-17 22:46:16 +000031299 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031300 fi
31301 # Put the nasty error message in config.log where it belongs
31302 echo "$RSVG_PKG_ERRORS" >&5
31303
cristy146497a2015-05-17 22:46:16 +000031304 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031305elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31307$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031308 have_rsvg=no
31309else
31310 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31311 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31313$as_echo "yes" >&6; }
31314 have_rsvg=yes
31315fi
cristy32f75d42015-06-05 18:46:23 +000031316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031317$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031318
31319pkg_failed=no
31320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31321$as_echo_n "checking for CAIRO_SVG... " >&6; }
31322
31323if test -n "$CAIRO_SVG_CFLAGS"; then
31324 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31325 elif test -n "$PKG_CONFIG"; then
31326 if test -n "$PKG_CONFIG" && \
31327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31328 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31329 ac_status=$?
31330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31331 test $ac_status = 0; }; then
31332 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031333 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031334else
31335 pkg_failed=yes
31336fi
31337 else
31338 pkg_failed=untried
31339fi
31340if test -n "$CAIRO_SVG_LIBS"; then
31341 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31342 elif test -n "$PKG_CONFIG"; then
31343 if test -n "$PKG_CONFIG" && \
31344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31345 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31346 ac_status=$?
31347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31348 test $ac_status = 0; }; then
31349 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031350 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031351else
31352 pkg_failed=yes
31353fi
31354 else
31355 pkg_failed=untried
31356fi
31357
31358
31359
31360if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31362$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031363
31364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31365 _pkg_short_errors_supported=yes
31366else
31367 _pkg_short_errors_supported=no
31368fi
31369 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031370 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031371 else
cristy146497a2015-05-17 22:46:16 +000031372 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031373 fi
31374 # Put the nasty error message in config.log where it belongs
31375 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31376
cristy146497a2015-05-17 22:46:16 +000031377 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031378elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31380$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031381 have_cairo=no
31382else
31383 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31384 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31386$as_echo "yes" >&6; }
31387 have_cairo=yes
31388fi
cristy32f75d42015-06-05 18:46:23 +000031389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031390$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031391fi
31392
31393if test "$have_rsvg" = 'yes'; then
31394
cristy8b350f62009-11-15 23:12:43 +000031395$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031396
cristy32f75d42015-06-05 18:46:23 +000031397 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031398fi
31399
31400if test "$have_cairo" = 'yes'; then
31401
cristy8b350f62009-11-15 23:12:43 +000031402$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031403
cristy32f75d42015-06-05 18:46:23 +000031404 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031405fi
31406
cristy73bd4a52010-10-05 11:24:23 +000031407 if test "$have_rsvg" = 'yes'; then
31408 RSVG_DELEGATE_TRUE=
31409 RSVG_DELEGATE_FALSE='#'
31410else
31411 RSVG_DELEGATE_TRUE='#'
31412 RSVG_DELEGATE_FALSE=
31413fi
31414
31415 if test "$have_cairo" = 'yes'; then
31416 CAIRO_DELEGATE_TRUE=
31417 CAIRO_DELEGATE_FALSE='#'
31418else
31419 CAIRO_DELEGATE_TRUE='#'
31420 CAIRO_DELEGATE_FALSE=
31421fi
31422
cristy3ed852e2009-09-05 21:47:34 +000031423
31424
31425
31426
31427#
31428# Check for TIFF delegate library.
31429#
31430
31431# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031432if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031433 withval=$with_tiff; with_tiff=$withval
31434else
31435 with_tiff='yes'
31436fi
31437
31438
31439if test "$with_tiff" != 'yes'; then
31440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31441fi
31442
31443have_tiff='no'
31444TIFF_LIBS=''
31445if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31447$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031449$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31451$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031452 failed=0
31453 passed=0
cristy8b350f62009-11-15 23:12:43 +000031454 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031455if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031456 passed=`expr $passed + 1`
31457else
31458 failed=`expr $failed + 1`
31459fi
31460
31461
cristy8b350f62009-11-15 23:12:43 +000031462 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031463if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031464 passed=`expr $passed + 1`
31465else
31466 failed=`expr $failed + 1`
31467fi
31468
31469
cristy8b350f62009-11-15 23:12:43 +000031470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031471$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031472if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031473 $as_echo_n "(cached) " >&6
31474else
31475 ac_check_lib_save_LIBS=$LIBS
31476LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031478/* end confdefs.h. */
31479
31480/* Override any GCC internal prototype to avoid an error.
31481 Use char because int might match the return type of a GCC
31482 builtin and then its argument prototype would still apply. */
31483#ifdef __cplusplus
31484extern "C"
31485#endif
31486char TIFFOpen ();
31487int
31488main ()
31489{
31490return TIFFOpen ();
31491 ;
31492 return 0;
31493}
31494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031496 ac_cv_lib_tiff_TIFFOpen=yes
31497else
cristy8b350f62009-11-15 23:12:43 +000031498 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031499fi
cristy8b350f62009-11-15 23:12:43 +000031500rm -f core conftest.err conftest.$ac_objext \
31501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031502LIBS=$ac_check_lib_save_LIBS
31503fi
cristy8b350f62009-11-15 23:12:43 +000031504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031506if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031507 passed=`expr $passed + 1`
31508else
31509 failed=`expr $failed + 1`
31510fi
31511
cristy8b350f62009-11-15 23:12:43 +000031512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031513$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031514if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031515 $as_echo_n "(cached) " >&6
31516else
31517 ac_check_lib_save_LIBS=$LIBS
31518LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031520/* end confdefs.h. */
31521
31522/* Override any GCC internal prototype to avoid an error.
31523 Use char because int might match the return type of a GCC
31524 builtin and then its argument prototype would still apply. */
31525#ifdef __cplusplus
31526extern "C"
31527#endif
31528char TIFFClientOpen ();
31529int
31530main ()
31531{
31532return TIFFClientOpen ();
31533 ;
31534 return 0;
31535}
31536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031538 ac_cv_lib_tiff_TIFFClientOpen=yes
31539else
cristy8b350f62009-11-15 23:12:43 +000031540 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031541fi
cristy8b350f62009-11-15 23:12:43 +000031542rm -f core conftest.err conftest.$ac_objext \
31543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031544LIBS=$ac_check_lib_save_LIBS
31545fi
cristy8b350f62009-11-15 23:12:43 +000031546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031548if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031549 passed=`expr $passed + 1`
31550else
31551 failed=`expr $failed + 1`
31552fi
31553
cristy8b350f62009-11-15 23:12:43 +000031554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031555$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031556if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031557 $as_echo_n "(cached) " >&6
31558else
31559 ac_check_lib_save_LIBS=$LIBS
31560LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031562/* end confdefs.h. */
31563
31564/* Override any GCC internal prototype to avoid an error.
31565 Use char because int might match the return type of a GCC
31566 builtin and then its argument prototype would still apply. */
31567#ifdef __cplusplus
31568extern "C"
31569#endif
31570char TIFFIsByteSwapped ();
31571int
31572main ()
31573{
31574return TIFFIsByteSwapped ();
31575 ;
31576 return 0;
31577}
31578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031580 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31581else
cristy8b350f62009-11-15 23:12:43 +000031582 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031583fi
cristy8b350f62009-11-15 23:12:43 +000031584rm -f core conftest.err conftest.$ac_objext \
31585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031586LIBS=$ac_check_lib_save_LIBS
31587fi
cristy8b350f62009-11-15 23:12:43 +000031588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031589$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031590if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031591 passed=`expr $passed + 1`
31592else
31593 failed=`expr $failed + 1`
31594fi
31595
cristy8b350f62009-11-15 23:12:43 +000031596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031597$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031598if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 $as_echo_n "(cached) " >&6
31600else
31601 ac_check_lib_save_LIBS=$LIBS
31602LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031604/* end confdefs.h. */
31605
31606/* Override any GCC internal prototype to avoid an error.
31607 Use char because int might match the return type of a GCC
31608 builtin and then its argument prototype would still apply. */
31609#ifdef __cplusplus
31610extern "C"
31611#endif
31612char TIFFReadRGBATile ();
31613int
31614main ()
31615{
31616return TIFFReadRGBATile ();
31617 ;
31618 return 0;
31619}
31620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031622 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31623else
cristy8b350f62009-11-15 23:12:43 +000031624 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031625fi
cristy8b350f62009-11-15 23:12:43 +000031626rm -f core conftest.err conftest.$ac_objext \
31627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031628LIBS=$ac_check_lib_save_LIBS
31629fi
cristy8b350f62009-11-15 23:12:43 +000031630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031632if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031633 passed=`expr $passed + 1`
31634else
31635 failed=`expr $failed + 1`
31636fi
31637
cristy8b350f62009-11-15 23:12:43 +000031638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031639$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031640if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031641 $as_echo_n "(cached) " >&6
31642else
31643 ac_check_lib_save_LIBS=$LIBS
31644LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031646/* end confdefs.h. */
31647
31648/* Override any GCC internal prototype to avoid an error.
31649 Use char because int might match the return type of a GCC
31650 builtin and then its argument prototype would still apply. */
31651#ifdef __cplusplus
31652extern "C"
31653#endif
31654char TIFFReadRGBAStrip ();
31655int
31656main ()
31657{
31658return TIFFReadRGBAStrip ();
31659 ;
31660 return 0;
31661}
31662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031664 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31665else
cristy8b350f62009-11-15 23:12:43 +000031666 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031667fi
cristy8b350f62009-11-15 23:12:43 +000031668rm -f core conftest.err conftest.$ac_objext \
31669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031670LIBS=$ac_check_lib_save_LIBS
31671fi
cristy8b350f62009-11-15 23:12:43 +000031672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031674if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031675 passed=`expr $passed + 1`
31676else
31677 failed=`expr $failed + 1`
31678fi
31679
cristy8b350f62009-11-15 23:12:43 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031681$as_echo_n "checking if TIFF package is complete... " >&6; }
31682 if test $passed -gt 0; then
31683 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31685$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031686 have_tiff='no (failed tests)'
31687 else
31688 TIFF_LIBS='-ltiff'
31689 LIBS="$TIFF_LIBS $LIBS"
31690
cristy8b350f62009-11-15 23:12:43 +000031691$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031692
cristyad38abe2012-12-23 23:03:21 +000031693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31694$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031695 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031696 for ac_header in tiffconf.h
31697do :
31698 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031699if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031700 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031701#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031702_ACEOF
31703
31704fi
31705
31706done
31707
cristy8b350f62009-11-15 23:12:43 +000031708 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031709 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31710 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31711 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031712do :
31713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31714ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031715if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031716 cat >>confdefs.h <<_ACEOF
31717#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31718_ACEOF
31719
31720fi
31721done
31722
31723 fi
31724 else
cristyad38abe2012-12-23 23:03:21 +000031725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31726$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031727 fi
31728fi
cristy73bd4a52010-10-05 11:24:23 +000031729 if test "$have_tiff" = 'yes'; then
31730 TIFF_DELEGATE_TRUE=
31731 TIFF_DELEGATE_FALSE='#'
31732else
31733 TIFF_DELEGATE_TRUE='#'
31734 TIFF_DELEGATE_FALSE=
31735fi
31736
cristy3ed852e2009-09-05 21:47:34 +000031737
31738
31739
31740#
cristyb1860752011-03-14 00:27:46 +000031741# Check for WEBP delegate library.
31742#
31743
31744# Check whether --with-webp was given.
31745if test "${with_webp+set}" = set; then :
31746 withval=$with_webp; with_webp=$withval
31747else
31748 with_webp='yes'
31749fi
31750
31751
31752if test "$with_webp" != 'yes'; then
31753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31754fi
31755
31756have_webp='no'
31757WEBP_LIBS=''
31758if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31760$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31762$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31764$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031765 failed=0
31766 passed=0
31767 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31768if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31769 passed=`expr $passed + 1`
31770else
31771 failed=`expr $failed + 1`
31772fi
31773
31774
cristy6d670312013-03-22 23:23:01 +000031775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31776$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31777if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031778 $as_echo_n "(cached) " >&6
31779else
31780 ac_check_lib_save_LIBS=$LIBS
31781LIBS="-lwebp $LIBS"
31782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31783/* end confdefs.h. */
31784
31785/* Override any GCC internal prototype to avoid an error.
31786 Use char because int might match the return type of a GCC
31787 builtin and then its argument prototype would still apply. */
31788#ifdef __cplusplus
31789extern "C"
31790#endif
cristy6d670312013-03-22 23:23:01 +000031791char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031792int
31793main ()
31794{
cristy6d670312013-03-22 23:23:01 +000031795return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031796 ;
31797 return 0;
31798}
31799_ACEOF
31800if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031801 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031802else
cristy6d670312013-03-22 23:23:01 +000031803 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031804fi
31805rm -f core conftest.err conftest.$ac_objext \
31806 conftest$ac_exeext conftest.$ac_ext
31807LIBS=$ac_check_lib_save_LIBS
31808fi
cristy6d670312013-03-22 23:23:01 +000031809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31810$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31811if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031812 passed=`expr $passed + 1`
31813else
31814 failed=`expr $failed + 1`
31815fi
31816
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31818$as_echo_n "checking if WEBP package is complete... " >&6; }
31819 if test $passed -gt 0; then
31820 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31822$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031823 have_webp='no (failed tests)'
31824 else
31825 WEBP_LIBS='-lwebp'
31826 LIBS="$WEBP_LIBS $LIBS"
31827
31828$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31829
cristyad38abe2012-12-23 23:03:21 +000031830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31831$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031832 have_webp='yes'
31833 fi
31834 else
cristyad38abe2012-12-23 23:03:21 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031837 fi
31838fi
31839 if test "$have_webp" = 'yes'; then
31840 WEBP_DELEGATE_TRUE=
31841 WEBP_DELEGATE_FALSE='#'
31842else
31843 WEBP_DELEGATE_TRUE='#'
31844 WEBP_DELEGATE_FALSE=
31845fi
31846
31847
31848
31849
31850#
cristy3ed852e2009-09-05 21:47:34 +000031851# Set Windows font directory.
31852#
31853
31854# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031855if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031856 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31857else
cristy5a3dc992014-12-05 19:50:04 +000031858 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000031859fi
31860
cristy5a3dc992014-12-05 19:50:04 +000031861
31862if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000031863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31864fi
31865
31866
31867#
31868# Check for WMF delegate library.
31869#
31870
31871# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031872if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031873 withval=$with_wmf; with_wmf=$withval
31874else
cristy32f75d42015-06-05 18:46:23 +000031875 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031876fi
31877
31878
31879if test "$with_wmf" != 'yes'; then
31880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31881fi
31882
31883have_wmf='no'
cristy32f75d42015-06-05 18:46:23 +000031884WMF_CFLAGS=""
31885WMF_LIBS=""
31886WMF_PKG=""
31887if test "x$with_wmf" = "xyes"; then
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy03f7cf92011-12-15 01:40:41 +000031889$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031890
31891pkg_failed=no
31892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031893$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031894
cristy32f75d42015-06-05 18:46:23 +000031895if test -n "$WMF_CFLAGS"; then
31896 pkg_cv_WMF_CFLAGS="$WMF_CFLAGS"
31897 elif test -n "$PKG_CONFIG"; then
31898 if test -n "$PKG_CONFIG" && \
31899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wmf >= 0.2.8\""; } >&5
31900 ($PKG_CONFIG --exists --print-errors "wmf >= 0.2.8") 2>&5
31901 ac_status=$?
31902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31903 test $ac_status = 0; }; then
31904 pkg_cv_WMF_CFLAGS=`$PKG_CONFIG --cflags "wmf >= 0.2.8" 2>/dev/null`
31905 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031906else
cristy32f75d42015-06-05 18:46:23 +000031907 pkg_failed=yes
31908fi
31909 else
31910 pkg_failed=untried
31911fi
31912if test -n "$WMF_LIBS"; then
31913 pkg_cv_WMF_LIBS="$WMF_LIBS"
31914 elif test -n "$PKG_CONFIG"; then
31915 if test -n "$PKG_CONFIG" && \
31916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wmf >= 0.2.8\""; } >&5
31917 ($PKG_CONFIG --exists --print-errors "wmf >= 0.2.8") 2>&5
31918 ac_status=$?
31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31920 test $ac_status = 0; }; then
31921 pkg_cv_WMF_LIBS=`$PKG_CONFIG --libs "wmf >= 0.2.8" 2>/dev/null`
31922 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031923else
cristy32f75d42015-06-05 18:46:23 +000031924 pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000031925fi
cristy32f75d42015-06-05 18:46:23 +000031926 else
31927 pkg_failed=untried
cristy9243a2d2011-08-22 17:32:32 +000031928fi
31929
cristy03f7cf92011-12-15 01:40:41 +000031930
cristy03f7cf92011-12-15 01:40:41 +000031931
cristy32f75d42015-06-05 18:46:23 +000031932if test $pkg_failed = yes; then
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31934$as_echo "no" >&6; }
31935
31936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31937 _pkg_short_errors_supported=yes
31938else
31939 _pkg_short_errors_supported=no
31940fi
31941 if test $_pkg_short_errors_supported = yes; then
31942 WMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wmf >= 0.2.8" 2>&1`
cristy03f7cf92011-12-15 01:40:41 +000031943 else
cristy32f75d42015-06-05 18:46:23 +000031944 WMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wmf >= 0.2.8" 2>&1`
31945 fi
31946 # Put the nasty error message in config.log where it belongs
31947 echo "$WMF_PKG_ERRORS" >&5
cristy03f7cf92011-12-15 01:40:41 +000031948
cristy32f75d42015-06-05 18:46:23 +000031949 have_wmf=no
31950elif test $pkg_failed = untried; then
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31952$as_echo "no" >&6; }
31953 have_wmf=no
cristy03f7cf92011-12-15 01:40:41 +000031954else
cristy32f75d42015-06-05 18:46:23 +000031955 WMF_CFLAGS=$pkg_cv_WMF_CFLAGS
31956 WMF_LIBS=$pkg_cv_WMF_LIBS
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31958$as_echo "yes" >&6; }
31959 have_wmf=yes
cristy03f7cf92011-12-15 01:40:41 +000031960fi
cristy32f75d42015-06-05 18:46:23 +000031961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31962$as_echo "" >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031963fi
31964
cristy32f75d42015-06-05 18:46:23 +000031965if test "$have_wmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031966
cristy8b350f62009-11-15 23:12:43 +000031967$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031968
cristy32f75d42015-06-05 18:46:23 +000031969 CFLAGS="$WMF_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031970fi
cristy32f75d42015-06-05 18:46:23 +000031971
cristy73bd4a52010-10-05 11:24:23 +000031972 if test "$have_wmf" = 'yes'; then
31973 WMF_DELEGATE_TRUE=
31974 WMF_DELEGATE_FALSE='#'
31975else
31976 WMF_DELEGATE_TRUE='#'
31977 WMF_DELEGATE_FALSE=
31978fi
31979
cristy3ed852e2009-09-05 21:47:34 +000031980
31981
31982
cristy81beccd2011-10-03 18:17:24 +000031983
cristy3ed852e2009-09-05 21:47:34 +000031984#
31985# Check for XML delegate library.
31986#
31987
31988# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031989if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031990 withval=$with_xml; with_xml=$withval
31991else
cristyfc3d0222012-02-07 15:05:57 +000031992 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031993fi
31994
31995
cristy81beccd2011-10-03 18:17:24 +000031996if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31998fi
31999
cristy81beccd2011-10-03 18:17:24 +000032000have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000032001XML_CFLAGS=""
32002XML_LIBS=""
32003XML_PKG=""
32004if test "x$with_xml" = "xyes"; then
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032006$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000032007
32008pkg_failed=no
32009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000032010$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000032011
cristy32f75d42015-06-05 18:46:23 +000032012if test -n "$XML_CFLAGS"; then
32013 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
32014 elif test -n "$PKG_CONFIG"; then
32015 if test -n "$PKG_CONFIG" && \
32016 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32017 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32018 ac_status=$?
32019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32020 test $ac_status = 0; }; then
32021 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
32022 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000032023else
cristy32f75d42015-06-05 18:46:23 +000032024 pkg_failed=yes
32025fi
32026 else
32027 pkg_failed=untried
32028fi
32029if test -n "$XML_LIBS"; then
32030 pkg_cv_XML_LIBS="$XML_LIBS"
32031 elif test -n "$PKG_CONFIG"; then
32032 if test -n "$PKG_CONFIG" && \
32033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32034 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32035 ac_status=$?
32036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32037 test $ac_status = 0; }; then
32038 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
32039 test "x$?" != "x0" && pkg_failed=yes
32040else
32041 pkg_failed=yes
32042fi
32043 else
32044 pkg_failed=untried
32045fi
32046
32047
32048
32049if test $pkg_failed = yes; then
32050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000032051$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032052
cristy32f75d42015-06-05 18:46:23 +000032053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32054 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000032055else
cristy32f75d42015-06-05 18:46:23 +000032056 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000032057fi
cristy32f75d42015-06-05 18:46:23 +000032058 if test $_pkg_short_errors_supported = yes; then
32059 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000032060 else
cristy32f75d42015-06-05 18:46:23 +000032061 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32062 fi
32063 # Put the nasty error message in config.log where it belongs
32064 echo "$XML_PKG_ERRORS" >&5
32065
32066 have_xml=no
32067elif test $pkg_failed = untried; then
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32069$as_echo "no" >&6; }
32070 have_xml=no
32071else
32072 XML_CFLAGS=$pkg_cv_XML_CFLAGS
32073 XML_LIBS=$pkg_cv_XML_LIBS
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32075$as_echo "yes" >&6; }
32076 have_xml=yes
32077fi
32078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32079$as_echo "" >&6; }
32080fi
32081
32082if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032083
cristy8b350f62009-11-15 23:12:43 +000032084$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032085
cristy32f75d42015-06-05 18:46:23 +000032086 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032087fi
cristy32f75d42015-06-05 18:46:23 +000032088
cristy73bd4a52010-10-05 11:24:23 +000032089 if test "$have_xml" = 'yes'; then
32090 XML_DELEGATE_TRUE=
32091 XML_DELEGATE_FALSE='#'
32092else
32093 XML_DELEGATE_TRUE='#'
32094 XML_DELEGATE_FALSE=
32095fi
32096
cristy3ed852e2009-09-05 21:47:34 +000032097
32098
32099
cristy32f75d42015-06-05 18:46:23 +000032100
cristy3ed852e2009-09-05 21:47:34 +000032101# Substitute compiler name to build/link PerlMagick
32102#
32103
32104
32105#
32106# Configure install Paths
32107#
cristy7def36a2011-10-28 19:04:41 +000032108
cristy2a11bef2011-10-28 18:33:11 +000032109# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032110INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032111INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32112DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032113case "${build_os}" in
32114 mingw* )
32115 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32116 ;;
32117esac
32118
32119cat >>confdefs.h <<_ACEOF
32120#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32121_ACEOF
32122
32123
cristy3ed852e2009-09-05 21:47:34 +000032124
cristye52f12f2012-12-31 15:32:36 +000032125# Path to ImageMagick header files (arch part)
32126INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32127DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32128case "${build_os}" in
32129 mingw* )
32130 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32131 ;;
32132esac
32133
32134cat >>confdefs.h <<_ACEOF
32135#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32136_ACEOF
32137
32138
32139
cristy3ed852e2009-09-05 21:47:34 +000032140# Subdirectory under lib to place ImageMagick lib files
32141LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32142
32143cat >>confdefs.h <<_ACEOF
32144#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32145_ACEOF
32146
32147
32148# Path to ImageMagick bin directory
32149EXECUTABLE_PATH="${BIN_DIR}"
32150DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32151case "${build_os}" in
32152 mingw* )
32153 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32154 ;;
32155esac
32156
32157cat >>confdefs.h <<_ACEOF
32158#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32159_ACEOF
32160
32161
32162
32163# Path to ImageMagick lib
32164LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32165DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32166case "${build_os}" in
32167 mingw* )
32168 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32169 ;;
32170esac
32171
32172cat >>confdefs.h <<_ACEOF
32173#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32174_ACEOF
32175
32176
32177
cristy3ed852e2009-09-05 21:47:34 +000032178#
cristy8d0ff762013-03-10 20:33:28 +000032179# path to local binaries
32180if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32181 LIB_BIN_BASEDIRNAME="bin"
32182fi
32183
32184cat >>confdefs.h <<_ACEOF
32185#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32186_ACEOF
32187
32188
32189
32190if test "x$LIB_BIN_DIR" = "x"; then
32191 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32192fi
32193
32194
32195LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32196
32197LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32198
32199
32200#
cristy01ff9f32012-12-01 18:15:29 +000032201# path to modules lib
32202if test "x$MODULES_BASEDIRNAME" = "x"; then
32203 MODULES_BASEDIRNAME="modules"
32204fi
cristy3ed852e2009-09-05 21:47:34 +000032205
32206cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032207#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032208_ACEOF
32209
cristy01ff9f32012-12-01 18:15:29 +000032210
32211
32212if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032213 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32214else
cristy3ed852e2009-09-05 21:47:34 +000032215
32216cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032217#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032218_ACEOF
32219
cristycf4a3c22012-12-02 21:47:25 +000032220fi
cristy01ff9f32012-12-01 18:15:29 +000032221
32222
cristy371d4812012-12-01 19:48:10 +000032223MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032224
32225MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32226
32227
32228#
32229# path to coders lib
32230if test "x$CODER_DIRNAME" = "x"; then
32231 CODER_DIRNAME="coders"
32232fi
32233
32234cat >>confdefs.h <<_ACEOF
32235#define CODER_DIRNAME "$CODER_DIRNAME"
32236_ACEOF
32237
32238
32239
cristy371d4812012-12-01 19:48:10 +000032240CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032241CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032242
32243
32244#
32245# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032246#
32247# path to coders lib
32248if test "x$FILTER_DIRNAME" = "x"; then
32249 FILTER_DIRNAME="filters"
32250fi
cristy3ed852e2009-09-05 21:47:34 +000032251
32252cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032253#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032254_ACEOF
32255
cristy3ed852e2009-09-05 21:47:34 +000032256
cristy3ed852e2009-09-05 21:47:34 +000032257
cristy371d4812012-12-01 19:48:10 +000032258FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032259FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032260
32261
32262#
32263# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032264DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032265DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32266DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032267case "${build_os}" in
32268 mingw* )
32269 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32270 ;;
32271esac
32272
32273cat >>confdefs.h <<_ACEOF
32274#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32275_ACEOF
32276
32277
32278
cristydd17feb2014-03-05 02:06:32 +000032279#
32280# Enable/Disable documentation
32281# Check whether --enable-docs was given.
32282if test "${enable_docs+set}" = set; then :
32283 enableval=$enable_docs; wantdocs=$enableval
32284else
cristy02272312014-03-07 00:55:25 +000032285 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032286fi
32287
cristy02272312014-03-07 00:55:25 +000032288 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032289 INSTALL_DOC_TRUE=
32290 INSTALL_DOC_FALSE='#'
32291else
32292 INSTALL_DOC_TRUE='#'
32293 INSTALL_DOC_FALSE=
32294fi
32295
32296
cristy2a11bef2011-10-28 18:33:11 +000032297# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032298CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032299
32300cat >>confdefs.h <<_ACEOF
32301#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32302_ACEOF
32303
cristy7def36a2011-10-28 19:04:41 +000032304CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032305DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32306case "${build_os}" in
32307 mingw* )
32308 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32309 ;;
32310esac
32311
32312cat >>confdefs.h <<_ACEOF
32313#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32314_ACEOF
32315
32316
32317
cristy2a11bef2011-10-28 18:33:11 +000032318# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032319SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032320
32321cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032322#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032323_ACEOF
32324
cristy670aa3c2011-11-03 00:54:00 +000032325SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032326DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032327case "${build_os}" in
32328 mingw* )
cristy4f820712011-04-01 12:35:43 +000032329 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032330 ;;
32331esac
32332
32333cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032334#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032335_ACEOF
32336
32337
32338
cristy54378032012-12-04 15:52:20 +000032339#
32340# Subdirectory to place architecture-dependent configuration files.
32341if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32342 SHAREARCH_BASEDIRNAME="config"
32343fi
cristy670aa3c2011-11-03 00:54:00 +000032344
32345cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032346#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032347_ACEOF
32348
cristy54378032012-12-04 15:52:20 +000032349
32350
32351if test "x$SHAREARCH_DIRNAME" = "x"; then
32352 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32353else
cristy670aa3c2011-11-03 00:54:00 +000032354
32355cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032356#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032357_ACEOF
32358
cristy54378032012-12-04 15:52:20 +000032359fi
32360
32361
32362SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32363
32364SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032365
32366
cristy3ed852e2009-09-05 21:47:34 +000032367#
32368# program_transform_name is formed for use in a Makefile, so create a
32369# modified version for use in a shell script.
32370configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32371
32372# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32374$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032376$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32378$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032379AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032380BPGDecodeDelegateDefault='bpgdec'
32381BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032382BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032383BZIPDelegateDefault='bzip2'
32384BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032385CatDelegateDefault='cat'
32386DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032387DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032388GVCDecodeDelegateDefault='dot'
32389DVIDecodeDelegateDefault='dvips'
32390EchoDelegateDefault='echo'
32391EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032392ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32393DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32394MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32395GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032396HPGLDecodeDelegateDefault='hp2xx'
32397HTMLDecodeDelegateDefault='html2ps'
32398ILBMDecodeDelegateDefault='ilbmtoppm'
32399ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032400JXRDecodeDelegateDefault='JxrDecApp'
32401JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032402LPDelegateDefault='lp'
32403LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032404LaunchDelegateDefault='gimp'
32405MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032406MPEGDecodeDelegateDefault='avconv'
32407MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032408MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032409MVDelegateDefault='mv'
32410PCLDelegateDefault='pcl6'
32411PGPDecodeDelegateDefault='pgpv'
32412POVDelegateDefault='povray'
32413if test "$native_win32_build" = 'yes'; then
32414 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032415elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032416 PSDelegateDefault='gsc'
32417else
32418 PSDelegateDefault='gs'
32419fi
32420RLEEncodeDelegateDefault='rawtorle'
32421RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032422RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032423SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032424SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032425TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032426UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032427WebPDecodeDelegateDefault='dwebp'
32428WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032429WMFDecodeDelegateDefault='wmf2eps'
32430WWWDecodeDelegateDefault='curl'
32431XPSDelegateDefault='gxps'
32432ZipDelegateDefault='gzip'
32433
32434# Search for delegates
32435# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32436set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032439if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032440 $as_echo_n "(cached) " >&6
32441else
32442 case $AutotraceDecodeDelegate in
32443 [\\/]* | ?:[\\/]*)
32444 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32445 ;;
32446 *)
32447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32448for as_dir in $PATH
32449do
32450 IFS=$as_save_IFS
32451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032454 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456 break 2
32457 fi
32458done
cristy8b350f62009-11-15 23:12:43 +000032459 done
cristy3ed852e2009-09-05 21:47:34 +000032460IFS=$as_save_IFS
32461
32462 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32463 ;;
32464esac
32465fi
32466AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32467if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032469$as_echo "$AutotraceDecodeDelegate" >&6; }
32470else
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "no" >&6; }
32473fi
32474
32475
cristy16b412d2014-12-15 11:09:48 +000032476# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32477set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32479$as_echo_n "checking for $ac_word... " >&6; }
32480if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32481 $as_echo_n "(cached) " >&6
32482else
32483 case $BGPDecodeDelegate in
32484 [\\/]* | ?:[\\/]*)
32485 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32486 ;;
32487 *)
32488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32489for as_dir in $PATH
32490do
32491 IFS=$as_save_IFS
32492 test -z "$as_dir" && as_dir=.
32493 for ac_exec_ext in '' $ac_executable_extensions; do
32494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32495 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32497 break 2
32498 fi
32499done
32500 done
32501IFS=$as_save_IFS
32502
32503 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
32504 ;;
32505esac
32506fi
32507BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
32508if test -n "$BGPDecodeDelegate"; then
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
32510$as_echo "$BGPDecodeDelegate" >&6; }
32511else
32512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32513$as_echo "no" >&6; }
32514fi
32515
32516
32517# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
32518set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
32519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32520$as_echo_n "checking for $ac_word... " >&6; }
32521if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
32522 $as_echo_n "(cached) " >&6
32523else
32524 case $BGPEncodeDelegate in
32525 [\\/]* | ?:[\\/]*)
32526 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
32527 ;;
32528 *)
32529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32530for as_dir in $PATH
32531do
32532 IFS=$as_save_IFS
32533 test -z "$as_dir" && as_dir=.
32534 for ac_exec_ext in '' $ac_executable_extensions; do
32535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32536 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32538 break 2
32539 fi
32540done
32541 done
32542IFS=$as_save_IFS
32543
32544 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
32545 ;;
32546esac
32547fi
32548BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
32549if test -n "$BGPEncodeDelegate"; then
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
32551$as_echo "$BGPEncodeDelegate" >&6; }
32552else
32553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32554$as_echo "no" >&6; }
32555fi
32556
32557
cristy3ed852e2009-09-05 21:47:34 +000032558# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32559set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032562if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032563 $as_echo_n "(cached) " >&6
32564else
32565 case $BlenderDecodeDelegate in
32566 [\\/]* | ?:[\\/]*)
32567 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32568 ;;
32569 *)
32570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32571for as_dir in $PATH
32572do
32573 IFS=$as_save_IFS
32574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032577 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579 break 2
32580 fi
32581done
cristy8b350f62009-11-15 23:12:43 +000032582 done
cristy3ed852e2009-09-05 21:47:34 +000032583IFS=$as_save_IFS
32584
32585 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32586 ;;
32587esac
32588fi
32589BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32590if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "$BlenderDecodeDelegate" >&6; }
32593else
cristy8b350f62009-11-15 23:12:43 +000032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "no" >&6; }
32596fi
32597
32598
32599# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32600set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032603if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032604 $as_echo_n "(cached) " >&6
32605else
32606 case $BZIPDelegate in
32607 [\\/]* | ?:[\\/]*)
32608 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32609 ;;
32610 *)
32611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32612for as_dir in $PATH
32613do
32614 IFS=$as_save_IFS
32615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032618 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620 break 2
32621 fi
32622done
cristy8b350f62009-11-15 23:12:43 +000032623 done
cristy3ed852e2009-09-05 21:47:34 +000032624IFS=$as_save_IFS
32625
32626 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32627 ;;
32628esac
32629fi
32630BZIPDelegate=$ac_cv_path_BZIPDelegate
32631if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo "$BZIPDelegate" >&6; }
32634else
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "no" >&6; }
32637fi
32638
32639
cristyc59f0e72012-08-27 12:59:33 +000032640for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32641do
32642 # Extract the first word of "$ac_prog", so it can be a program name with args.
32643set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032646if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032647 $as_echo_n "(cached) " >&6
32648else
32649 case $BrowseDelegate in
32650 [\\/]* | ?:[\\/]*)
32651 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32652 ;;
32653 *)
32654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32655for as_dir in $PATH
32656do
32657 IFS=$as_save_IFS
32658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032661 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032663 break 2
32664 fi
32665done
cristy8b350f62009-11-15 23:12:43 +000032666 done
cristy3ed852e2009-09-05 21:47:34 +000032667IFS=$as_save_IFS
32668
cristy3ed852e2009-09-05 21:47:34 +000032669 ;;
32670esac
32671fi
32672BrowseDelegate=$ac_cv_path_BrowseDelegate
32673if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo "$BrowseDelegate" >&6; }
32676else
cristy8b350f62009-11-15 23:12:43 +000032677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo "no" >&6; }
32679fi
32680
32681
cristyc59f0e72012-08-27 12:59:33 +000032682 test -n "$BrowseDelegate" && break
32683done
32684test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32685
cristy3ed852e2009-09-05 21:47:34 +000032686# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32687set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032690if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032691 $as_echo_n "(cached) " >&6
32692else
32693 case $CatDelegate in
32694 [\\/]* | ?:[\\/]*)
32695 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32696 ;;
32697 *)
32698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32699for as_dir in $PATH
32700do
32701 IFS=$as_save_IFS
32702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032705 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032707 break 2
32708 fi
32709done
cristy8b350f62009-11-15 23:12:43 +000032710 done
cristy3ed852e2009-09-05 21:47:34 +000032711IFS=$as_save_IFS
32712
32713 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32714 ;;
32715esac
32716fi
32717CatDelegate=$ac_cv_path_CatDelegate
32718if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032720$as_echo "$CatDelegate" >&6; }
32721else
cristy8b350f62009-11-15 23:12:43 +000032722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032723$as_echo "no" >&6; }
32724fi
32725
32726
32727# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32728set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032731if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032732 $as_echo_n "(cached) " >&6
32733else
32734 case $DNGDecodeDelegate in
32735 [\\/]* | ?:[\\/]*)
32736 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32737 ;;
32738 *)
32739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32740for as_dir in $PATH
32741do
32742 IFS=$as_save_IFS
32743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032746 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032748 break 2
32749 fi
32750done
cristy8b350f62009-11-15 23:12:43 +000032751 done
cristy3ed852e2009-09-05 21:47:34 +000032752IFS=$as_save_IFS
32753
32754 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32755 ;;
32756esac
32757fi
32758DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32759if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032761$as_echo "$DNGDecodeDelegate" >&6; }
32762else
cristy8b350f62009-11-15 23:12:43 +000032763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032764$as_echo "no" >&6; }
32765fi
32766
32767
cristy66f238e2014-05-16 12:21:48 +000032768# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
32769set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032772if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032773 $as_echo_n "(cached) " >&6
32774else
cristy66f238e2014-05-16 12:21:48 +000032775 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032776 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032777 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032778 ;;
32779 *)
32780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32781for as_dir in $PATH
32782do
32783 IFS=$as_save_IFS
32784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032787 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032789 break 2
32790 fi
32791done
cristy8b350f62009-11-15 23:12:43 +000032792 done
cristy3ed852e2009-09-05 21:47:34 +000032793IFS=$as_save_IFS
32794
cristy66f238e2014-05-16 12:21:48 +000032795 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032796 ;;
32797esac
32798fi
cristy66f238e2014-05-16 12:21:48 +000032799DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
32800if test -n "$DOCDecodeDelegate"; then
32801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
32802$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032803else
cristy8b350f62009-11-15 23:12:43 +000032804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032805$as_echo "no" >&6; }
32806fi
32807
32808
32809# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32810set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032813if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032814 $as_echo_n "(cached) " >&6
32815else
32816 case $DVIDecodeDelegate in
32817 [\\/]* | ?:[\\/]*)
32818 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32819 ;;
32820 *)
32821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822for as_dir in $PATH
32823do
32824 IFS=$as_save_IFS
32825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032828 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830 break 2
32831 fi
32832done
cristy8b350f62009-11-15 23:12:43 +000032833 done
cristy3ed852e2009-09-05 21:47:34 +000032834IFS=$as_save_IFS
32835
32836 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32837 ;;
32838esac
32839fi
32840DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32841if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032843$as_echo "$DVIDecodeDelegate" >&6; }
32844else
cristy8b350f62009-11-15 23:12:43 +000032845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo "no" >&6; }
32847fi
32848
32849
cristy3ed852e2009-09-05 21:47:34 +000032850# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32851set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032854if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032855 $as_echo_n "(cached) " >&6
32856else
32857 case $ConvertDelegate in
32858 [\\/]* | ?:[\\/]*)
32859 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32860 ;;
32861 *)
32862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32863for as_dir in $PATH
32864do
32865 IFS=$as_save_IFS
32866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032869 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871 break 2
32872 fi
32873done
cristy8b350f62009-11-15 23:12:43 +000032874 done
cristy3ed852e2009-09-05 21:47:34 +000032875IFS=$as_save_IFS
32876
32877 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32878 ;;
32879esac
32880fi
32881ConvertDelegate=$ac_cv_path_ConvertDelegate
32882if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032884$as_echo "$ConvertDelegate" >&6; }
32885else
cristy8b350f62009-11-15 23:12:43 +000032886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo "no" >&6; }
32888fi
32889
32890
32891# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32892set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032895if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032896 $as_echo_n "(cached) " >&6
32897else
32898 case $DisplayDelegate in
32899 [\\/]* | ?:[\\/]*)
32900 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32901 ;;
32902 *)
32903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32904for as_dir in $PATH
32905do
32906 IFS=$as_save_IFS
32907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032910 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912 break 2
32913 fi
32914done
cristy8b350f62009-11-15 23:12:43 +000032915 done
cristy3ed852e2009-09-05 21:47:34 +000032916IFS=$as_save_IFS
32917
32918 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32919 ;;
32920esac
32921fi
32922DisplayDelegate=$ac_cv_path_DisplayDelegate
32923if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032925$as_echo "$DisplayDelegate" >&6; }
32926else
cristy8b350f62009-11-15 23:12:43 +000032927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928$as_echo "no" >&6; }
32929fi
32930
32931
cristy66f238e2014-05-16 12:21:48 +000032932# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32933set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000032936if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032937 $as_echo_n "(cached) " >&6
32938else
cristy66f238e2014-05-16 12:21:48 +000032939 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000032940 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000032941 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000032942 ;;
32943 *)
32944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32945for as_dir in $PATH
32946do
32947 IFS=$as_save_IFS
32948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000032951 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953 break 2
32954 fi
32955done
cristy8b350f62009-11-15 23:12:43 +000032956 done
cristy3ed852e2009-09-05 21:47:34 +000032957IFS=$as_save_IFS
32958
cristy66f238e2014-05-16 12:21:48 +000032959 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000032960 ;;
32961esac
32962fi
cristy66f238e2014-05-16 12:21:48 +000032963EchoDelegate=$ac_cv_path_EchoDelegate
32964if test -n "$EchoDelegate"; then
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32966$as_echo "$EchoDelegate" >&6; }
32967else
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32969$as_echo "no" >&6; }
32970fi
32971
32972
32973# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32974set dummy "$EditorDelegateDefault"; ac_word=$2
32975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32976$as_echo_n "checking for $ac_word... " >&6; }
32977if ${ac_cv_path_EditorDelegate+:} false; then :
32978 $as_echo_n "(cached) " >&6
32979else
32980 case $EditorDelegate in
32981 [\\/]* | ?:[\\/]*)
32982 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32983 ;;
32984 *)
32985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32986for as_dir in $PATH
32987do
32988 IFS=$as_save_IFS
32989 test -z "$as_dir" && as_dir=.
32990 for ac_exec_ext in '' $ac_executable_extensions; do
32991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32992 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32994 break 2
32995 fi
32996done
32997 done
32998IFS=$as_save_IFS
32999
33000 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33001 ;;
33002esac
33003fi
33004EditorDelegate=$ac_cv_path_EditorDelegate
33005if test -n "$EditorDelegate"; then
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33007$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033008else
cristy8b350f62009-11-15 23:12:43 +000033009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo "no" >&6; }
33011fi
33012
33013
33014# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33015set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033018if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033019 $as_echo_n "(cached) " >&6
33020else
33021 case $GnuplotDecodeDelegate in
33022 [\\/]* | ?:[\\/]*)
33023 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33024 ;;
33025 *)
33026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33027for as_dir in $PATH
33028do
33029 IFS=$as_save_IFS
33030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033033 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035 break 2
33036 fi
33037done
cristy8b350f62009-11-15 23:12:43 +000033038 done
cristy3ed852e2009-09-05 21:47:34 +000033039IFS=$as_save_IFS
33040
33041 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33042 ;;
33043esac
33044fi
33045GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33046if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "$GnuplotDecodeDelegate" >&6; }
33049else
cristy8b350f62009-11-15 23:12:43 +000033050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo "no" >&6; }
33052fi
33053
33054
cristy66f238e2014-05-16 12:21:48 +000033055# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33056set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33058$as_echo_n "checking for $ac_word... " >&6; }
33059if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33060 $as_echo_n "(cached) " >&6
33061else
33062 case $GVCDecodeDelegate in
33063 [\\/]* | ?:[\\/]*)
33064 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33065 ;;
33066 *)
33067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33068for as_dir in $PATH
33069do
33070 IFS=$as_save_IFS
33071 test -z "$as_dir" && as_dir=.
33072 for ac_exec_ext in '' $ac_executable_extensions; do
33073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33074 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33076 break 2
33077 fi
33078done
33079 done
33080IFS=$as_save_IFS
33081
33082 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33083 ;;
33084esac
33085fi
33086GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33087if test -n "$GVCDecodeDelegate"; then
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33089$as_echo "$GVCDecodeDelegate" >&6; }
33090else
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33092$as_echo "no" >&6; }
33093fi
33094
33095
cristy3ed852e2009-09-05 21:47:34 +000033096# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33097set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033100if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033101 $as_echo_n "(cached) " >&6
33102else
33103 case $HPGLDecodeDelegate in
33104 [\\/]* | ?:[\\/]*)
33105 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33106 ;;
33107 *)
33108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33109for as_dir in $PATH
33110do
33111 IFS=$as_save_IFS
33112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033115 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117 break 2
33118 fi
33119done
cristy8b350f62009-11-15 23:12:43 +000033120 done
cristy3ed852e2009-09-05 21:47:34 +000033121IFS=$as_save_IFS
33122
33123 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33124 ;;
33125esac
33126fi
33127HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33128if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033130$as_echo "$HPGLDecodeDelegate" >&6; }
33131else
cristy8b350f62009-11-15 23:12:43 +000033132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo "no" >&6; }
33134fi
33135
33136
33137# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33138set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033141if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033142 $as_echo_n "(cached) " >&6
33143else
33144 case $HTMLDecodeDelegate in
33145 [\\/]* | ?:[\\/]*)
33146 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33147 ;;
33148 *)
33149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33150for as_dir in $PATH
33151do
33152 IFS=$as_save_IFS
33153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033156 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033158 break 2
33159 fi
33160done
cristy8b350f62009-11-15 23:12:43 +000033161 done
cristy3ed852e2009-09-05 21:47:34 +000033162IFS=$as_save_IFS
33163
33164 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33165 ;;
33166esac
33167fi
33168HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33169if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033171$as_echo "$HTMLDecodeDelegate" >&6; }
33172else
cristy8b350f62009-11-15 23:12:43 +000033173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo "no" >&6; }
33175fi
33176
33177
33178# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33179set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033182if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033183 $as_echo_n "(cached) " >&6
33184else
33185 case $ILBMDecodeDelegate in
33186 [\\/]* | ?:[\\/]*)
33187 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33188 ;;
33189 *)
33190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33191for as_dir in $PATH
33192do
33193 IFS=$as_save_IFS
33194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033197 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033199 break 2
33200 fi
33201done
cristy8b350f62009-11-15 23:12:43 +000033202 done
cristy3ed852e2009-09-05 21:47:34 +000033203IFS=$as_save_IFS
33204
33205 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33206 ;;
33207esac
33208fi
33209ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33210if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "$ILBMDecodeDelegate" >&6; }
33213else
cristy8b350f62009-11-15 23:12:43 +000033214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo "no" >&6; }
33216fi
33217
33218
33219# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33220set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033223if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033224 $as_echo_n "(cached) " >&6
33225else
33226 case $ILBMEncodeDelegate in
33227 [\\/]* | ?:[\\/]*)
33228 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33229 ;;
33230 *)
33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33232for as_dir in $PATH
33233do
33234 IFS=$as_save_IFS
33235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033238 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240 break 2
33241 fi
33242done
cristy8b350f62009-11-15 23:12:43 +000033243 done
cristy3ed852e2009-09-05 21:47:34 +000033244IFS=$as_save_IFS
33245
33246 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33247 ;;
33248esac
33249fi
33250ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33251if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "$ILBMEncodeDelegate" >&6; }
33254else
cristy8b350f62009-11-15 23:12:43 +000033255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo "no" >&6; }
33257fi
33258
33259
cristy71f53d52013-04-27 13:33:59 +000033260# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33261set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33263$as_echo_n "checking for $ac_word... " >&6; }
33264if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33265 $as_echo_n "(cached) " >&6
33266else
33267 case $JXRDecodeDelegate in
33268 [\\/]* | ?:[\\/]*)
33269 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33270 ;;
33271 *)
33272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33273for as_dir in $PATH
33274do
33275 IFS=$as_save_IFS
33276 test -z "$as_dir" && as_dir=.
33277 for ac_exec_ext in '' $ac_executable_extensions; do
33278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33279 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33281 break 2
33282 fi
33283done
33284 done
33285IFS=$as_save_IFS
33286
33287 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33288 ;;
33289esac
33290fi
33291JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33292if test -n "$JXRDecodeDelegate"; then
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33294$as_echo "$JXRDecodeDelegate" >&6; }
33295else
33296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33297$as_echo "no" >&6; }
33298fi
33299
33300
33301# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33302set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33304$as_echo_n "checking for $ac_word... " >&6; }
33305if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33306 $as_echo_n "(cached) " >&6
33307else
33308 case $JXREncodeDelegate in
33309 [\\/]* | ?:[\\/]*)
33310 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33311 ;;
33312 *)
33313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33314for as_dir in $PATH
33315do
33316 IFS=$as_save_IFS
33317 test -z "$as_dir" && as_dir=.
33318 for ac_exec_ext in '' $ac_executable_extensions; do
33319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33320 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33322 break 2
33323 fi
33324done
33325 done
33326IFS=$as_save_IFS
33327
33328 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33329 ;;
33330esac
33331fi
33332JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33333if test -n "$JXREncodeDelegate"; then
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33335$as_echo "$JXREncodeDelegate" >&6; }
33336else
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33338$as_echo "no" >&6; }
33339fi
33340
33341
cristy3ed852e2009-09-05 21:47:34 +000033342# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33343set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033346if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033347 $as_echo_n "(cached) " >&6
33348else
33349 case $LPDelegate in
33350 [\\/]* | ?:[\\/]*)
33351 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33352 ;;
33353 *)
33354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33355for as_dir in $PATH
33356do
33357 IFS=$as_save_IFS
33358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033361 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363 break 2
33364 fi
33365done
cristy8b350f62009-11-15 23:12:43 +000033366 done
cristy3ed852e2009-09-05 21:47:34 +000033367IFS=$as_save_IFS
33368
33369 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33370 ;;
33371esac
33372fi
33373LPDelegate=$ac_cv_path_LPDelegate
33374if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "$LPDelegate" >&6; }
33377else
cristy8b350f62009-11-15 23:12:43 +000033378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo "no" >&6; }
33380fi
33381
33382
33383# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33384set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033387if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033388 $as_echo_n "(cached) " >&6
33389else
33390 case $LPRDelegate in
33391 [\\/]* | ?:[\\/]*)
33392 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33393 ;;
33394 *)
33395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396for as_dir in $PATH
33397do
33398 IFS=$as_save_IFS
33399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033402 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404 break 2
33405 fi
33406done
cristy8b350f62009-11-15 23:12:43 +000033407 done
cristy3ed852e2009-09-05 21:47:34 +000033408IFS=$as_save_IFS
33409
33410 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33411 ;;
33412esac
33413fi
33414LPRDelegate=$ac_cv_path_LPRDelegate
33415if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033417$as_echo "$LPRDelegate" >&6; }
33418else
cristy8b350f62009-11-15 23:12:43 +000033419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo "no" >&6; }
33421fi
33422
33423
cristy3ed852e2009-09-05 21:47:34 +000033424# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33425set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033428if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033429 $as_echo_n "(cached) " >&6
33430else
33431 case $LaunchDelegate in
33432 [\\/]* | ?:[\\/]*)
33433 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33434 ;;
33435 *)
33436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33437for as_dir in $PATH
33438do
33439 IFS=$as_save_IFS
33440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033443 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445 break 2
33446 fi
33447done
cristy8b350f62009-11-15 23:12:43 +000033448 done
cristy3ed852e2009-09-05 21:47:34 +000033449IFS=$as_save_IFS
33450
33451 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33452 ;;
33453esac
33454fi
33455LaunchDelegate=$ac_cv_path_LaunchDelegate
33456if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "$LaunchDelegate" >&6; }
33459else
cristy8b350f62009-11-15 23:12:43 +000033460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo "no" >&6; }
33462fi
33463
33464
33465# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33466set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033469if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033470 $as_echo_n "(cached) " >&6
33471else
33472 case $MANDelegate in
33473 [\\/]* | ?:[\\/]*)
33474 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33475 ;;
33476 *)
33477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33478for as_dir in $PATH
33479do
33480 IFS=$as_save_IFS
33481 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033484 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486 break 2
33487 fi
33488done
cristy8b350f62009-11-15 23:12:43 +000033489 done
cristy3ed852e2009-09-05 21:47:34 +000033490IFS=$as_save_IFS
33491
33492 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33493 ;;
33494esac
33495fi
33496MANDelegate=$ac_cv_path_MANDelegate
33497if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033499$as_echo "$MANDelegate" >&6; }
33500else
cristy8b350f62009-11-15 23:12:43 +000033501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo "no" >&6; }
33503fi
33504
33505
cristy66f238e2014-05-16 12:21:48 +000033506# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33507set dummy "$MogrifyDelegateDefault"; ac_word=$2
33508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33509$as_echo_n "checking for $ac_word... " >&6; }
33510if ${ac_cv_path_MogrifyDelegate+:} false; then :
33511 $as_echo_n "(cached) " >&6
33512else
33513 case $MogrifyDelegate in
33514 [\\/]* | ?:[\\/]*)
33515 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33516 ;;
33517 *)
33518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33519for as_dir in $PATH
33520do
33521 IFS=$as_save_IFS
33522 test -z "$as_dir" && as_dir=.
33523 for ac_exec_ext in '' $ac_executable_extensions; do
33524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33525 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
33526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33527 break 2
33528 fi
33529done
33530 done
33531IFS=$as_save_IFS
33532
33533 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33534 ;;
33535esac
33536fi
33537MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33538if test -n "$MogrifyDelegate"; then
33539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
33540$as_echo "$MogrifyDelegate" >&6; }
33541else
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33543$as_echo "no" >&6; }
33544fi
33545
33546
cristy3ed852e2009-09-05 21:47:34 +000033547# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33548set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033551if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033552 $as_echo_n "(cached) " >&6
33553else
33554 case $MPEGDecodeDelegate in
33555 [\\/]* | ?:[\\/]*)
33556 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33557 ;;
33558 *)
33559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33560for as_dir in $PATH
33561do
33562 IFS=$as_save_IFS
33563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033566 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568 break 2
33569 fi
33570done
cristy8b350f62009-11-15 23:12:43 +000033571 done
cristy3ed852e2009-09-05 21:47:34 +000033572IFS=$as_save_IFS
33573
33574 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33575 ;;
33576esac
33577fi
33578MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33579if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "$MPEGDecodeDelegate" >&6; }
33582else
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "no" >&6; }
33585fi
33586
33587
cristy058d15f2014-08-21 18:53:03 +000033588if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033589 MPEGDecodeDelegateDefault='ffmpeg'
33590 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33591set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33593$as_echo_n "checking for $ac_word... " >&6; }
33594if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33595 $as_echo_n "(cached) " >&6
33596else
33597 case $MPEGDecodeDelegate in
33598 [\\/]* | ?:[\\/]*)
33599 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33600 ;;
33601 *)
33602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33603for as_dir in $PATH
33604do
33605 IFS=$as_save_IFS
33606 test -z "$as_dir" && as_dir=.
33607 for ac_exec_ext in '' $ac_executable_extensions; do
33608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33609 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33611 break 2
33612 fi
33613done
33614 done
33615IFS=$as_save_IFS
33616
33617 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33618 ;;
33619esac
33620fi
33621MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33622if test -n "$MPEGDecodeDelegate"; then
33623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33624$as_echo "$MPEGDecodeDelegate" >&6; }
33625else
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33627$as_echo "no" >&6; }
33628fi
33629
33630
33631fi;
cristy3ed852e2009-09-05 21:47:34 +000033632# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33633set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033635$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033636if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033637 $as_echo_n "(cached) " >&6
33638else
33639 case $MPEGEncodeDelegate in
33640 [\\/]* | ?:[\\/]*)
33641 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33642 ;;
33643 *)
33644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33645for as_dir in $PATH
33646do
33647 IFS=$as_save_IFS
33648 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033649 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033651 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033653 break 2
33654 fi
33655done
cristy8b350f62009-11-15 23:12:43 +000033656 done
cristy3ed852e2009-09-05 21:47:34 +000033657IFS=$as_save_IFS
33658
33659 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33660 ;;
33661esac
33662fi
33663MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33664if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo "$MPEGEncodeDelegate" >&6; }
33667else
cristy8b350f62009-11-15 23:12:43 +000033668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669$as_echo "no" >&6; }
33670fi
33671
33672
cristy058d15f2014-08-21 18:53:03 +000033673if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000033674 MPEGEncodeDelegateDefault='ffmpeg'
33675 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33676set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33678$as_echo_n "checking for $ac_word... " >&6; }
33679if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33680 $as_echo_n "(cached) " >&6
33681else
33682 case $MPEGEncodeDelegate in
33683 [\\/]* | ?:[\\/]*)
33684 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33685 ;;
33686 *)
33687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33688for as_dir in $PATH
33689do
33690 IFS=$as_save_IFS
33691 test -z "$as_dir" && as_dir=.
33692 for ac_exec_ext in '' $ac_executable_extensions; do
33693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33694 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33696 break 2
33697 fi
33698done
33699 done
33700IFS=$as_save_IFS
33701
33702 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33703 ;;
33704esac
33705fi
33706MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33707if test -n "$MPEGEncodeDelegate"; then
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33709$as_echo "$MPEGEncodeDelegate" >&6; }
33710else
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712$as_echo "no" >&6; }
33713fi
33714
33715
33716fi;
cristy935c86e2010-06-05 23:50:07 +000033717# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33718set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033721if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033722 $as_echo_n "(cached) " >&6
33723else
33724 case $MrSIDDecodeDelegate in
33725 [\\/]* | ?:[\\/]*)
33726 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33727 ;;
33728 *)
33729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33730for as_dir in $PATH
33731do
33732 IFS=$as_save_IFS
33733 test -z "$as_dir" && as_dir=.
33734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033736 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33738 break 2
33739 fi
33740done
33741 done
33742IFS=$as_save_IFS
33743
33744 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33745 ;;
33746esac
33747fi
33748MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33749if test -n "$MrSIDDecodeDelegate"; then
33750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33751$as_echo "$MrSIDDecodeDelegate" >&6; }
33752else
33753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33754$as_echo "no" >&6; }
33755fi
33756
33757
cristy3ed852e2009-09-05 21:47:34 +000033758# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33759set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033762if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033763 $as_echo_n "(cached) " >&6
33764else
33765 case $MVDelegate in
33766 [\\/]* | ?:[\\/]*)
33767 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33768 ;;
33769 *)
33770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33771for as_dir in $PATH
33772do
33773 IFS=$as_save_IFS
33774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033777 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779 break 2
33780 fi
33781done
cristy8b350f62009-11-15 23:12:43 +000033782 done
cristy3ed852e2009-09-05 21:47:34 +000033783IFS=$as_save_IFS
33784
33785 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33786 ;;
33787esac
33788fi
33789MVDelegate=$ac_cv_path_MVDelegate
33790if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "$MVDelegate" >&6; }
33793else
cristy8b350f62009-11-15 23:12:43 +000033794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795$as_echo "no" >&6; }
33796fi
33797
33798
33799# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33800set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033803if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033804 $as_echo_n "(cached) " >&6
33805else
33806 case $PCLDelegate in
33807 [\\/]* | ?:[\\/]*)
33808 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33809 ;;
33810 *)
33811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33812for as_dir in $PATH
33813do
33814 IFS=$as_save_IFS
33815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033818 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820 break 2
33821 fi
33822done
cristy8b350f62009-11-15 23:12:43 +000033823 done
cristy3ed852e2009-09-05 21:47:34 +000033824IFS=$as_save_IFS
33825
33826 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33827 ;;
33828esac
33829fi
33830PCLDelegate=$ac_cv_path_PCLDelegate
33831if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "$PCLDelegate" >&6; }
33834else
cristy8b350f62009-11-15 23:12:43 +000033835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "no" >&6; }
33837fi
33838
33839
33840# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33841set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033844if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033845 $as_echo_n "(cached) " >&6
33846else
33847 case $PGPDecodeDelegate in
33848 [\\/]* | ?:[\\/]*)
33849 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33850 ;;
33851 *)
33852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33853for as_dir in $PATH
33854do
33855 IFS=$as_save_IFS
33856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033859 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861 break 2
33862 fi
33863done
cristy8b350f62009-11-15 23:12:43 +000033864 done
cristy3ed852e2009-09-05 21:47:34 +000033865IFS=$as_save_IFS
33866
33867 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33868 ;;
33869esac
33870fi
33871PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33872if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874$as_echo "$PGPDecodeDelegate" >&6; }
33875else
cristy8b350f62009-11-15 23:12:43 +000033876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877$as_echo "no" >&6; }
33878fi
33879
33880
33881# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33882set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033885if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033886 $as_echo_n "(cached) " >&6
33887else
33888 case $POVDelegate in
33889 [\\/]* | ?:[\\/]*)
33890 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33891 ;;
33892 *)
33893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33894for as_dir in $PATH
33895do
33896 IFS=$as_save_IFS
33897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033900 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902 break 2
33903 fi
33904done
cristy8b350f62009-11-15 23:12:43 +000033905 done
cristy3ed852e2009-09-05 21:47:34 +000033906IFS=$as_save_IFS
33907
33908 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33909 ;;
33910esac
33911fi
33912POVDelegate=$ac_cv_path_POVDelegate
33913if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "$POVDelegate" >&6; }
33916else
cristy8b350f62009-11-15 23:12:43 +000033917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918$as_echo "no" >&6; }
33919fi
33920
33921
33922for ac_prog in gsx gsc "$PSDelegateDefault"
33923do
33924 # Extract the first word of "$ac_prog", so it can be a program name with args.
33925set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033928if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033929 $as_echo_n "(cached) " >&6
33930else
33931 case $PSDelegate in
33932 [\\/]* | ?:[\\/]*)
33933 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33934 ;;
33935 *)
33936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33937for as_dir in $PATH
33938do
33939 IFS=$as_save_IFS
33940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033943 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033945 break 2
33946 fi
33947done
cristy8b350f62009-11-15 23:12:43 +000033948 done
cristy3ed852e2009-09-05 21:47:34 +000033949IFS=$as_save_IFS
33950
33951 ;;
33952esac
33953fi
33954PSDelegate=$ac_cv_path_PSDelegate
33955if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "$PSDelegate" >&6; }
33958else
cristy8b350f62009-11-15 23:12:43 +000033959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960$as_echo "no" >&6; }
33961fi
33962
33963
33964 test -n "$PSDelegate" && break
33965done
33966test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33967
33968# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33969set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033972if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033973 $as_echo_n "(cached) " >&6
33974else
33975 case $RLEEncodeDelegate in
33976 [\\/]* | ?:[\\/]*)
33977 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33978 ;;
33979 *)
33980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33981for as_dir in $PATH
33982do
33983 IFS=$as_save_IFS
33984 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033987 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033989 break 2
33990 fi
33991done
cristy8b350f62009-11-15 23:12:43 +000033992 done
cristy3ed852e2009-09-05 21:47:34 +000033993IFS=$as_save_IFS
33994
33995 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33996 ;;
33997esac
33998fi
33999RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34000if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo "$RLEEncodeDelegate" >&6; }
34003else
cristy8b350f62009-11-15 23:12:43 +000034004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034005$as_echo "no" >&6; }
34006fi
34007
34008
34009# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34010set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034013if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034014 $as_echo_n "(cached) " >&6
34015else
34016 case $RMDelegate in
34017 [\\/]* | ?:[\\/]*)
34018 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34019 ;;
34020 *)
34021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34022for as_dir in $PATH
34023do
34024 IFS=$as_save_IFS
34025 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034028 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034030 break 2
34031 fi
34032done
cristy8b350f62009-11-15 23:12:43 +000034033 done
cristy3ed852e2009-09-05 21:47:34 +000034034IFS=$as_save_IFS
34035
34036 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34037 ;;
34038esac
34039fi
34040RMDelegate=$ac_cv_path_RMDelegate
34041if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo "$RMDelegate" >&6; }
34044else
cristy8b350f62009-11-15 23:12:43 +000034045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046$as_echo "no" >&6; }
34047fi
34048
34049
cristy4689cf02010-02-17 21:15:45 +000034050# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34051set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034054if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034055 $as_echo_n "(cached) " >&6
34056else
34057 case $RSVGDecodeDelegate in
34058 [\\/]* | ?:[\\/]*)
34059 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34060 ;;
34061 *)
34062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34063for as_dir in $PATH
34064do
34065 IFS=$as_save_IFS
34066 test -z "$as_dir" && as_dir=.
34067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034069 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34071 break 2
34072 fi
34073done
34074 done
34075IFS=$as_save_IFS
34076
34077 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34078 ;;
34079esac
34080fi
34081RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34082if test -n "$RSVGDecodeDelegate"; then
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34084$as_echo "$RSVGDecodeDelegate" >&6; }
34085else
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34087$as_echo "no" >&6; }
34088fi
34089
34090
cristy3ed852e2009-09-05 21:47:34 +000034091# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34092set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034095if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034096 $as_echo_n "(cached) " >&6
34097else
34098 case $SCANDecodeDelegate in
34099 [\\/]* | ?:[\\/]*)
34100 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34101 ;;
34102 *)
34103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34104for as_dir in $PATH
34105do
34106 IFS=$as_save_IFS
34107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034110 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034112 break 2
34113 fi
34114done
cristy8b350f62009-11-15 23:12:43 +000034115 done
cristy3ed852e2009-09-05 21:47:34 +000034116IFS=$as_save_IFS
34117
34118 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34119 ;;
34120esac
34121fi
34122SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34123if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo "$SCANDecodeDelegate" >&6; }
34126else
cristy8b350f62009-11-15 23:12:43 +000034127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo "no" >&6; }
34129fi
34130
34131
cristyec6934f2012-08-14 18:38:40 +000034132# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34133set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34135$as_echo_n "checking for $ac_word... " >&6; }
34136if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34137 $as_echo_n "(cached) " >&6
34138else
34139 case $SVGDecodeDelegate in
34140 [\\/]* | ?:[\\/]*)
34141 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34142 ;;
34143 *)
34144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34145for as_dir in $PATH
34146do
34147 IFS=$as_save_IFS
34148 test -z "$as_dir" && as_dir=.
34149 for ac_exec_ext in '' $ac_executable_extensions; do
34150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34151 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34153 break 2
34154 fi
34155done
34156 done
34157IFS=$as_save_IFS
34158
34159 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34160 ;;
34161esac
34162fi
34163SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34164if test -n "$SVGDecodeDelegate"; then
34165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34166$as_echo "$SVGDecodeDelegate" >&6; }
34167else
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34169$as_echo "no" >&6; }
34170fi
34171
34172
cristy3ed852e2009-09-05 21:47:34 +000034173# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34174set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034177if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034178 $as_echo_n "(cached) " >&6
34179else
34180 case $TXTDelegate in
34181 [\\/]* | ?:[\\/]*)
34182 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34183 ;;
34184 *)
34185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34186for as_dir in $PATH
34187do
34188 IFS=$as_save_IFS
34189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034192 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034194 break 2
34195 fi
34196done
cristy8b350f62009-11-15 23:12:43 +000034197 done
cristy3ed852e2009-09-05 21:47:34 +000034198IFS=$as_save_IFS
34199
34200 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34201 ;;
34202esac
34203fi
34204TXTDelegate=$ac_cv_path_TXTDelegate
34205if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207$as_echo "$TXTDelegate" >&6; }
34208else
cristy8b350f62009-11-15 23:12:43 +000034209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034210$as_echo "no" >&6; }
34211fi
34212
34213
cristy5ac9ac82010-07-29 13:24:24 +000034214# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34215set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34217$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034218if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034219 $as_echo_n "(cached) " >&6
34220else
34221 case $UniconvertorDelegate in
34222 [\\/]* | ?:[\\/]*)
34223 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34224 ;;
34225 *)
34226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34227for as_dir in $PATH
34228do
34229 IFS=$as_save_IFS
34230 test -z "$as_dir" && as_dir=.
34231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034233 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34235 break 2
34236 fi
34237done
34238 done
34239IFS=$as_save_IFS
34240
34241 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34242 ;;
34243esac
34244fi
34245UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34246if test -n "$UniconvertorDelegate"; then
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34248$as_echo "$UniconvertorDelegate" >&6; }
34249else
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34251$as_echo "no" >&6; }
34252fi
34253
34254
cristy86e86092013-08-04 17:43:57 +000034255# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34256set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34258$as_echo_n "checking for $ac_word... " >&6; }
34259if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34260 $as_echo_n "(cached) " >&6
34261else
34262 case $WebPDecodeDelegate in
34263 [\\/]* | ?:[\\/]*)
34264 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34265 ;;
34266 *)
34267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34268for as_dir in $PATH
34269do
34270 IFS=$as_save_IFS
34271 test -z "$as_dir" && as_dir=.
34272 for ac_exec_ext in '' $ac_executable_extensions; do
34273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34274 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34276 break 2
34277 fi
34278done
34279 done
34280IFS=$as_save_IFS
34281
34282 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34283 ;;
34284esac
34285fi
34286WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34287if test -n "$WebPDecodeDelegate"; then
34288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34289$as_echo "$WebPDecodeDelegate" >&6; }
34290else
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34292$as_echo "no" >&6; }
34293fi
34294
34295
34296# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34297set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34299$as_echo_n "checking for $ac_word... " >&6; }
34300if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34301 $as_echo_n "(cached) " >&6
34302else
34303 case $WebPEncodeDelegate in
34304 [\\/]* | ?:[\\/]*)
34305 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34306 ;;
34307 *)
34308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34309for as_dir in $PATH
34310do
34311 IFS=$as_save_IFS
34312 test -z "$as_dir" && as_dir=.
34313 for ac_exec_ext in '' $ac_executable_extensions; do
34314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34315 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34317 break 2
34318 fi
34319done
34320 done
34321IFS=$as_save_IFS
34322
34323 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34324 ;;
34325esac
34326fi
34327WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34328if test -n "$WebPEncodeDelegate"; then
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34330$as_echo "$WebPEncodeDelegate" >&6; }
34331else
34332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34333$as_echo "no" >&6; }
34334fi
34335
34336
cristy3ed852e2009-09-05 21:47:34 +000034337# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34338set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034341if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034342 $as_echo_n "(cached) " >&6
34343else
34344 case $WMFDecodeDelegate in
34345 [\\/]* | ?:[\\/]*)
34346 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34347 ;;
34348 *)
34349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34350for as_dir in $PATH
34351do
34352 IFS=$as_save_IFS
34353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034356 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034358 break 2
34359 fi
34360done
cristy8b350f62009-11-15 23:12:43 +000034361 done
cristy3ed852e2009-09-05 21:47:34 +000034362IFS=$as_save_IFS
34363
34364 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34365 ;;
34366esac
34367fi
34368WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34369if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034371$as_echo "$WMFDecodeDelegate" >&6; }
34372else
cristy8b350f62009-11-15 23:12:43 +000034373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034374$as_echo "no" >&6; }
34375fi
34376
34377
34378# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34379set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034382if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034383 $as_echo_n "(cached) " >&6
34384else
34385 case $WWWDecodeDelegate in
34386 [\\/]* | ?:[\\/]*)
34387 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34388 ;;
34389 *)
34390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34391for as_dir in $PATH
34392do
34393 IFS=$as_save_IFS
34394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034397 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399 break 2
34400 fi
34401done
cristy8b350f62009-11-15 23:12:43 +000034402 done
cristy3ed852e2009-09-05 21:47:34 +000034403IFS=$as_save_IFS
34404
34405 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34406 ;;
34407esac
34408fi
34409WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34410if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo "$WWWDecodeDelegate" >&6; }
34413else
cristy8b350f62009-11-15 23:12:43 +000034414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034415$as_echo "no" >&6; }
34416fi
34417
34418
34419# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34420set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034423if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034424 $as_echo_n "(cached) " >&6
34425else
34426 case $XPSDelegate in
34427 [\\/]* | ?:[\\/]*)
34428 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34429 ;;
34430 *)
34431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432for as_dir in $PATH
34433do
34434 IFS=$as_save_IFS
34435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034438 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440 break 2
34441 fi
34442done
cristy8b350f62009-11-15 23:12:43 +000034443 done
cristy3ed852e2009-09-05 21:47:34 +000034444IFS=$as_save_IFS
34445
34446 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34447 ;;
34448esac
34449fi
34450XPSDelegate=$ac_cv_path_XPSDelegate
34451if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "$XPSDelegate" >&6; }
34454else
cristy8b350f62009-11-15 23:12:43 +000034455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo "no" >&6; }
34457fi
34458
34459
34460# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34461set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034464if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034465 $as_echo_n "(cached) " >&6
34466else
34467 case $ZipDelegate in
34468 [\\/]* | ?:[\\/]*)
34469 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34470 ;;
34471 *)
34472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34473for as_dir in $PATH
34474do
34475 IFS=$as_save_IFS
34476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034479 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481 break 2
34482 fi
34483done
cristy8b350f62009-11-15 23:12:43 +000034484 done
cristy3ed852e2009-09-05 21:47:34 +000034485IFS=$as_save_IFS
34486
34487 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34488 ;;
34489esac
34490fi
34491ZipDelegate=$ac_cv_path_ZipDelegate
34492if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494$as_echo "$ZipDelegate" >&6; }
34495else
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo "no" >&6; }
34498fi
34499
34500
34501
34502# Prefer lpr to lp; lp needs options tacked on.
34503if test "$LPRDelegate" != no; then
34504 PrintDelegate="$LPRDelegate"
34505else
34506 PrintDelegate="$LPDelegate -c -s"
34507fi
34508
34509
34510# Installed ImageMagick utiltity paths
34511ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34512DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34513MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34514
34515# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034516have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034517have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34518have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34519have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034520have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034521have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34522have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034523have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34524
34525#
34526# Test for font directories
34527#
34528type_include_files=''
34529
cristy5a3dc992014-12-05 19:50:04 +000034530 Apple fonts.
34531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34532$as_echo_n "checking for Apple fonts directory... " >&6; }
34533apple_font_dir=''
34534if test "${with_apple_font_dir}" != 'default'; then
34535 apple_font_dir="${with_apple_font_dir}/"
34536else
34537 for font_dir in '/Library/Fonts/'; do
34538 if test -f "${font_dir}Arial.ttf"; then
34539 apple_font_dir="${font_dir}"
34540 break 1
34541 fi
34542 done
34543fi
34544if test "${apple_font_dir}x" != 'x'; then
34545 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34547$as_echo "$apple_font_dir" >&6; }
34548else
34549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34550$as_echo "not found!" >&6; };
34551fi
34552
34553
cristy430a7312010-01-21 20:44:04 +000034554# Dejavu fonts.
34555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34556$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34557dejavu_font_dir=''
34558if test "${with_dejavu_font_dir}" != 'default'; then
34559 dejavu_font_dir="${with_dejavu_font_dir}/"
34560else
34561 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34562 if test -f "${font_dir}DejaVuSerif.ttf"; then
34563 dejavu_font_dir="${font_dir}"
34564 break 1
34565 fi
34566 done
34567fi
34568if test "${dejavu_font_dir}x" != 'x'; then
34569 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34571$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034572else
cristyad38abe2012-12-23 23:03:21 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34574$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034575fi
34576
34577
cristy3ed852e2009-09-05 21:47:34 +000034578# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034580$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34581ghostscript_font_dir=''
34582if test "${with_gs_font_dir}" != 'default'; then
34583 ghostscript_font_dir="${with_gs_font_dir}/"
34584else
34585 if test "${native_win32_build}" = 'yes'; then
34586 # Native Windows Build
34587 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34588 if test -f "${font_dir}a010013l.pfb"; then
34589 ghostscript_font_dir="$font_dir"
34590 break 1
34591 fi
34592 done
34593 if test "${PSDelegate}" != 'gswin32c'; then
34594 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34595 fi
34596 else
34597 # Linux / Mac OS X / Unix Build
34598 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
34599 if test -f "${font_dir}a010013l.pfb"; then
34600 ghostscript_font_dir="${font_dir}"
34601 break 1
34602 fi
34603 done
34604 if test "${ghostscript_font_dir}x" = 'x'; then
34605 if test "$PSDelegate" != 'gs'; then
34606 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34607 fi
34608 fi
34609 fi
34610fi
34611if test "${ghostscript_font_dir}x" != 'x'; then
34612 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34614$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034615else
cristyad38abe2012-12-23 23:03:21 +000034616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34617$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034618fi
34619
34620case "${build_os}" in
34621 mingw* )
34622 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34623 ;;
34624esac
34625
cristy5a3dc992014-12-05 19:50:04 +000034626# Windows fonts.
34627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
34628$as_echo_n "checking for Windows fonts directory... " >&6; }
34629windows_font_dir=''
34630if test "${with_windows_font_dir}" != 'default'; then
34631 windows_font_dir="${with_windows_font_dir}/"
34632else
34633 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
34634 if test -f "${font_dir}arial.ttf"; then
34635 windows_font_dir="${font_dir}"
34636 break 1
34637 fi
34638 done
34639fi
34640if test "${windows_font_dir}x" != 'x'; then
34641 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
34642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
34643$as_echo "$windows_font_dir" >&6; }
34644else
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34646$as_echo "not found!" >&6; };
34647fi
34648
34649
cristy3ed852e2009-09-05 21:47:34 +000034650
34651
34652#
34653# Handle case where user doesn't want frozen paths
34654#
34655if test "$with_frozenpaths" != 'yes'; then
34656 # Re-set delegate definitions to default (no paths)
34657 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000034658 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
34659 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034660 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34661 BZIPDelegate="$BZIPDelegateDefault"
34662 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034663 CatDelegate="$CatDelegateDefault"
34664 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034665 DisplayDelegate="$DisplayDelegateDefault"
34666 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000034667 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034668 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34669 EchoDelegate="$EchoDelegateDefault"
34670 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034671 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034672 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034673 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34674 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34675 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34676 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034677 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34678 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034679 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034680 LaunchDelegate="$LaunchDelegateDefault"
34681 MANDelegate="$MANDelegateDefault"
34682 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34683 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034684 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034685 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34686 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034687 PCLDelegate="$PCLDelegateDefault"
34688 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34689 POVDelegate="$POVDelegateDefault"
34690 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034691 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34692 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034693 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034694 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034695 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034696 ShowImageDelegate="$ShowImageDelegateDefault"
34697 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034698 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034699 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34700 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034701 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34702 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34703 XPSDelegate="$XPSDelegateDefault"
34704 ZipDelegate="$ZipDelegateDefault"
34705fi
34706
34707# Delegate substitutions
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
cristy71f53d52013-04-27 13:33:59 +000034748
34749
cristy16b412d2014-12-15 11:09:48 +000034750
34751
cristy3ed852e2009-09-05 21:47:34 +000034752#
34753# RPM support.
34754#
34755RPM=''
34756for ac_prog in gnutar gtar tar
34757do
34758 # Extract the first word of "$ac_prog", so it can be a program name with args.
34759set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034762if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034763 $as_echo_n "(cached) " >&6
34764else
34765 if test -n "$TAR"; then
34766 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34767else
34768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34769for as_dir in $PATH
34770do
34771 IFS=$as_save_IFS
34772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034775 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034777 break 2
34778 fi
34779done
cristy8b350f62009-11-15 23:12:43 +000034780 done
cristy3ed852e2009-09-05 21:47:34 +000034781IFS=$as_save_IFS
34782
34783fi
34784fi
34785TAR=$ac_cv_prog_TAR
34786if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034788$as_echo "$TAR" >&6; }
34789else
cristy8b350f62009-11-15 23:12:43 +000034790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034791$as_echo "no" >&6; }
34792fi
34793
34794
34795 test -n "$TAR" && break
34796done
34797
34798for ac_prog in perl
34799do
34800 # Extract the first word of "$ac_prog", so it can be a program name with args.
34801set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034803$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034804if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034805 $as_echo_n "(cached) " >&6
34806else
34807 if test -n "$PERL"; then
34808 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34809else
34810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34811for as_dir in $PATH
34812do
34813 IFS=$as_save_IFS
34814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034817 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034819 break 2
34820 fi
34821done
cristy8b350f62009-11-15 23:12:43 +000034822 done
cristy3ed852e2009-09-05 21:47:34 +000034823IFS=$as_save_IFS
34824
34825fi
34826fi
34827PERL=$ac_cv_prog_PERL
34828if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo "$PERL" >&6; }
34831else
cristy8b350f62009-11-15 23:12:43 +000034832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034833$as_echo "no" >&6; }
34834fi
34835
34836
34837 test -n "$PERL" && break
34838done
34839
34840for ac_prog in rpmbuild rpm
34841do
34842 # Extract the first word of "$ac_prog", so it can be a program name with args.
34843set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034846if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034847 $as_echo_n "(cached) " >&6
34848else
34849 if test -n "$RPM"; then
34850 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34851else
34852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34853for as_dir in $PATH
34854do
34855 IFS=$as_save_IFS
34856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034859 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034861 break 2
34862 fi
34863done
cristy8b350f62009-11-15 23:12:43 +000034864 done
cristy3ed852e2009-09-05 21:47:34 +000034865IFS=$as_save_IFS
34866
34867fi
34868fi
34869RPM=$ac_cv_prog_RPM
34870if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034872$as_echo "$RPM" >&6; }
34873else
cristy8b350f62009-11-15 23:12:43 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo "no" >&6; }
34876fi
34877
34878
34879 test -n "$RPM" && break
34880done
34881
34882
cristy73bd4a52010-10-05 11:24:23 +000034883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34884
34885
34886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34887
34888
34889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34890
34891
34892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34893
34894
34895 if test "x$RPM" != "x" ; then
34896 RPM_DELEGATE_TRUE=
34897 RPM_DELEGATE_FALSE='#'
34898else
34899 RPM_DELEGATE_TRUE='#'
34900 RPM_DELEGATE_FALSE=
34901fi
34902
cristy3ed852e2009-09-05 21:47:34 +000034903
34904#
34905# 7ZIP support (http://p7zip.sourceforge.net/)
34906#
34907P7ZIP=''
34908for ac_prog in 7za
34909do
34910 # Extract the first word of "$ac_prog", so it can be a program name with args.
34911set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034914if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034915 $as_echo_n "(cached) " >&6
34916else
34917 if test -n "$P7ZIP"; then
34918 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34919else
34920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34921for as_dir in $PATH
34922do
34923 IFS=$as_save_IFS
34924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034927 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929 break 2
34930 fi
34931done
cristy8b350f62009-11-15 23:12:43 +000034932 done
cristy3ed852e2009-09-05 21:47:34 +000034933IFS=$as_save_IFS
34934
34935fi
34936fi
34937P7ZIP=$ac_cv_prog_P7ZIP
34938if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034940$as_echo "$P7ZIP" >&6; }
34941else
cristy8b350f62009-11-15 23:12:43 +000034942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034943$as_echo "no" >&6; }
34944fi
34945
34946
34947 test -n "$P7ZIP" && break
34948done
34949
34950
cristy73bd4a52010-10-05 11:24:23 +000034951 if test "x$P7ZIP" != "x" ; then
34952 P7ZIP_DELEGATE_TRUE=
34953 P7ZIP_DELEGATE_FALSE='#'
34954else
34955 P7ZIP_DELEGATE_TRUE='#'
34956 P7ZIP_DELEGATE_FALSE=
34957fi
34958
cristy3ed852e2009-09-05 21:47:34 +000034959
34960#
34961# ZIP support (http://www.info-zip.org/Zip.html)
34962#
34963ZIP=''
34964for ac_prog in zip
34965do
34966 # Extract the first word of "$ac_prog", so it can be a program name with args.
34967set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034970if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034971 $as_echo_n "(cached) " >&6
34972else
34973 if test -n "$ZIP"; then
34974 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34975else
34976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34977for as_dir in $PATH
34978do
34979 IFS=$as_save_IFS
34980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034983 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034985 break 2
34986 fi
34987done
cristy8b350f62009-11-15 23:12:43 +000034988 done
cristy3ed852e2009-09-05 21:47:34 +000034989IFS=$as_save_IFS
34990
34991fi
34992fi
34993ZIP=$ac_cv_prog_ZIP
34994if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034996$as_echo "$ZIP" >&6; }
34997else
cristy8b350f62009-11-15 23:12:43 +000034998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034999$as_echo "no" >&6; }
35000fi
35001
35002
35003 test -n "$ZIP" && break
35004done
35005
35006
cristy73bd4a52010-10-05 11:24:23 +000035007 if test "x$ZIP" != "x" ; then
35008 ZIP_DELEGATE_TRUE=
35009 ZIP_DELEGATE_FALSE='#'
35010else
35011 ZIP_DELEGATE_TRUE='#'
35012 ZIP_DELEGATE_FALSE=
35013fi
35014
cristy3ed852e2009-09-05 21:47:34 +000035015
35016#
35017# GhostPCL related configuration.
35018#
35019PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035020PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035021PCLMonoDevice=pbmraw
35022if test -z "$PCLVersion"; then
35023 PCLVersion='unknown'
35024fi
35025if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35027$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035029$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35031$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035032 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034$as_echo_n "checking for pcl color device... " >&6; }
35035 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35036 :
35037 else
35038 PCLColorDevice=ppmraw
35039 fi
cristyad38abe2012-12-23 23:03:21 +000035040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35041$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035042
35043 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035045$as_echo_n "checking for pcl CMYK device... " >&6; }
35046 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35047 :
35048 else
35049 PCLCMYKDevice=$PCLColorDevice
35050 fi
cristyad38abe2012-12-23 23:03:21 +000035051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35052$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035053
35054 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035056$as_echo_n "checking for pcl mono device... " >&6; }
35057 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35058 :
35059 else
35060 PCLMonoDevice=$PCLColorDevice
35061 fi
cristyad38abe2012-12-23 23:03:21 +000035062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35063$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035064fi
35065
35066
35067
35068
35069
35070
35071#
35072# GhostXPS related configuration.
35073#
35074XPSColorDevice=ppmraw
35075XPSCMYKDevice=bmpsep8
35076XPSMonoDevice=pbmraw
35077if test -z "$XPSVersion"; then
35078 XPSVersion='unknown'
35079fi
35080if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35082$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35086$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035087 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035089$as_echo_n "checking for xps color device... " >&6; }
35090 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35091 :
35092 else
35093 XPSColorDevice=ppmraw
35094 fi
cristyad38abe2012-12-23 23:03:21 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35096$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035097
35098 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035100$as_echo_n "checking for xps CMYK device... " >&6; }
35101 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35102 :
35103 else
35104 XPSCMYKDevice=$XPSColorDevice
35105 fi
cristyad38abe2012-12-23 23:03:21 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35107$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035108
35109 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111$as_echo_n "checking for xps mono device... " >&6; }
35112 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35113 :
35114 else
35115 XPSMonoDevice=$XPSColorDevice
35116 fi
cristyad38abe2012-12-23 23:03:21 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35118$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035119fi
35120
35121
35122
35123
35124
35125
35126#
35127# Ghostscript related configuration.
35128#
cristya97426c2011-02-04 01:41:27 +000035129GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035130GSColorDevice=pnmraw
35131GSCMYKDevice=pam
35132GSMonoDevice=pbmraw
35133GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035134GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035135GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035136GSVersion='unknown'
35137if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35139$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035141$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35143$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo_n "checking for Ghostscript version... " >&6; }
35146 if GSVersion=`$PSDelegate --version`; then
35147 :
35148 else
35149 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35150 fi
cristyad38abe2012-12-23 23:03:21 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35152$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035153
35154 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo_n "checking for gs alpha device... " >&6; }
35157 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35158 :
35159 else
35160 GSAlphaDevice=pnmraw
35161 fi
cristyad38abe2012-12-23 23:03:21 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35163$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035164
35165 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035167$as_echo_n "checking for gs color device... " >&6; }
35168 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35169 :
35170 else
35171 GSColorDevice=pnmraw
35172 fi
cristyad38abe2012-12-23 23:03:21 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35174$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035175
35176 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo_n "checking for gs CMYK device... " >&6; }
35179 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35180 :
35181 else
35182 GSCMYKDevice=bmpsep8
35183 fi
cristyad38abe2012-12-23 23:03:21 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35185$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035186
35187 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035189$as_echo_n "checking for gs mono device... " >&6; }
35190 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35191 :
35192 else
35193 GSMonoDevice=$GSColorDevice
35194 fi
cristyad38abe2012-12-23 23:03:21 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35196$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035197
35198 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for gs PDF writing device... " >&6; }
35201 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35202 :
35203 else
35204 GSPDFDevice=nodevice
35205 fi
cristyad38abe2012-12-23 23:03:21 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35207$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035208
35209 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211$as_echo_n "checking for gs PS writing device... " >&6; }
35212 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35213 :
35214 else
cristy15308162015-01-09 23:43:12 +000035215 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035216 fi
cristyad38abe2012-12-23 23:03:21 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35218$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035219
35220 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222$as_echo_n "checking for gs EPS writing device... " >&6; }
35223 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35224 :
35225 else
cristy15308162015-01-09 23:43:12 +000035226 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035227 fi
cristyad38abe2012-12-23 23:03:21 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35229$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035230fi
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241#
35242# PerlMagick-related configuration
35243#
35244
35245# Look for PERL if PerlMagick requested
35246# If name/path of desired PERL interpreter is specified, look for that one first
35247have_perl='no'
35248if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35250$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035252$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35254$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035255 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035257$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035258if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035259 $as_echo_n "(cached) " >&6
35260else
35261 ac_cv_path_PERL="$with_perl"
35262fi
cristy8b350f62009-11-15 23:12:43 +000035263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264$as_echo "$ac_cv_path_PERL" >&6; };
35265 PERL=$ac_cv_path_PERL
35266 have_perl="$ac_cv_path_PERL"
35267 else
35268 for ac_prog in perl perl5
35269do
35270 # Extract the first word of "$ac_prog", so it can be a program name with args.
35271set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035273$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035274if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035275 $as_echo_n "(cached) " >&6
35276else
35277 case $PERL in
35278 [\\/]* | ?:[\\/]*)
35279 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35280 ;;
35281 *)
35282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35283for as_dir in $PATH
35284do
35285 IFS=$as_save_IFS
35286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035289 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035291 break 2
35292 fi
35293done
cristy8b350f62009-11-15 23:12:43 +000035294 done
cristy3ed852e2009-09-05 21:47:34 +000035295IFS=$as_save_IFS
35296
35297 ;;
35298esac
35299fi
35300PERL=$ac_cv_path_PERL
35301if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035303$as_echo "$PERL" >&6; }
35304else
cristy8b350f62009-11-15 23:12:43 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035306$as_echo "no" >&6; }
35307fi
35308
35309
35310 test -n "$PERL" && break
35311done
35312 if test "$ac_cv_path_PERL"; then
35313 have_perl="$ac_cv_path_PERL"
35314 fi
35315 fi
35316fi
35317
cristy949301e2010-01-06 01:38:40 +000035318if test "$with_perl" != 'yes' ; then
35319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35320fi
35321
35322PERL_SUPPORTS_DESTDIR='no'
35323
cristy3ed852e2009-09-05 21:47:34 +000035324with_perl_static='no'
35325with_perl_dynamic='no'
35326if test "$have_perl" != 'no'; then
35327 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35328 with_perl_static='yes'
35329 fi
35330 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35331 with_perl_dynamic='yes'
35332 fi
35333 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035334
35335
35336
35337
35338 if test -n "$PERL"; then :
35339
35340 ax_perl_version="5.8.1"
35341
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35343$as_echo_n "checking for perl version... " >&6; }
35344
cristy17491be2014-06-24 01:10:53 +000035345 perl_version=`$PERL --version 2>&1 \
35346 | $SED -n -e '/This is perl/b inspect
35347b
35348: inspect
35349s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035350
35351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35352$as_echo "$perl_version" >&6; }
35353
35354 PERL_VERSION=$perl_version
35355
35356
35357
35358
35359
35360 # Used to indicate true or false condition
35361 ax_compare_version=false
35362
35363 # Convert the two version strings to be compared into a format that
35364 # allows a simple string comparison. The end result is that a version
35365 # string of the form 1.12.5-r617 will be converted to the form
35366 # 0001001200050617. In other words, each number is zero padded to four
35367 # digits, and non digits are removed.
35368
35369 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35370 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35371 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35372 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35373 -e 's/[^0-9]//g'`
35374
35375
35376 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35377 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35378 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35379 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35380 -e 's/[^0-9]//g'`
35381
35382
35383 ax_compare_version=`echo "x$ax_compare_version_A
35384x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35385
35386
35387
35388 if test "$ax_compare_version" = "true" ; then
35389
35390 :
35391 PERL_SUPPORTS_DESTDIR='yes'
35392
35393 else
35394 :
35395 PERL_SUPPORTS_DESTDIR='no'
35396
35397 fi
35398
35399
35400else
35401
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35403$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35404 PERL_SUPPORTS_DESTDIR='no'
35405
cristy3ed852e2009-09-05 21:47:34 +000035406fi
cristy73bd4a52010-10-05 11:24:23 +000035407
35408fi
35409 if test "$have_perl" != 'no'; then
35410 WITH_PERL_TRUE=
35411 WITH_PERL_FALSE='#'
35412else
35413 WITH_PERL_TRUE='#'
35414 WITH_PERL_FALSE=
35415fi
35416
35417 if test $with_perl_static = 'yes'; then
35418 WITH_PERL_STATIC_TRUE=
35419 WITH_PERL_STATIC_FALSE='#'
35420else
35421 WITH_PERL_STATIC_TRUE='#'
35422 WITH_PERL_STATIC_FALSE=
35423fi
35424
35425 if test $with_perl_dynamic = 'yes'; then
35426 WITH_PERL_DYNAMIC_TRUE=
35427 WITH_PERL_DYNAMIC_FALSE='#'
35428else
35429 WITH_PERL_DYNAMIC_TRUE='#'
35430 WITH_PERL_DYNAMIC_FALSE=
35431fi
35432
cristy3ed852e2009-09-05 21:47:34 +000035433
35434
35435# Determine path to pick up MagickCore library from for use with building PerlMagick
35436MAGICKCORE_PATH="${LIB_DIR}"
35437if test $with_perl_static = 'yes'; then
35438 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35439 libtool_objdir=$objdir
35440
35441 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035442 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035443fi
35444
35445
cristy2a3eb392012-12-17 13:39:20 +000035446# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035447MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035448if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035449 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035450fi
cristy2a3eb392012-12-17 13:39:20 +000035451if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035452 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035453fi
35454if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035455 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035456fi
35457if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035458 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035459fi
cristy81ab5af2013-10-06 18:28:39 +000035460if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035461 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035462fi
35463if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035464 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035465fi
cristy2a3eb392012-12-17 13:39:20 +000035466if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035467 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035468fi
35469if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035470 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035471fi
35472if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035473 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035474fi
35475if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035476 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035477fi
35478if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035479 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035480fi
35481if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035482 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035483fi
35484if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035485 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035486fi
35487if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035488 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035489fi
35490if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035491 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035492fi
35493if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035494 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035495fi
35496if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035497 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035498fi
35499if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035500 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035501fi
cristy99db3872014-01-01 15:11:34 +000035502if test "$have_openjp2" = 'yes' ; then
35503 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035504fi
cristy2a3eb392012-12-17 13:39:20 +000035505if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035506 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035507fi
35508if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035509 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035510fi
35511have_ps='no'
35512if test "$have_dps" = 'yes' || \
35513 test "$have_gs" = 'yes' || \
35514 test "${native_win32_build}" = 'yes' ; then
35515 have_ps='yes'
35516fi
35517if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035518 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035519fi
cristy2a3eb392012-12-17 13:39:20 +000035520if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035521 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035522fi
35523if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035524 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035525fi
35526if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035527 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035528fi
35529if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035530 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035531fi
cristy3b640ed2013-07-29 00:27:59 +000035532if test "$have_webp" = 'yes' ; then
35533 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35534fi
cristy2a3eb392012-12-17 13:39:20 +000035535if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035536 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035537fi
35538if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035539 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035540fi
35541if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035542 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035543fi
35544if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035545 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035546fi
cristyead532a2015-06-05 00:49:30 +000035547
cristy2a3eb392012-12-17 13:39:20 +000035548# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035549MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035550MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035551
35552
cristyfa161182012-12-19 15:45:28 +000035553
cristy3ed852e2009-09-05 21:47:34 +000035554#
35555# Handle special compiler flags
35556#
35557
35558# Add '-p' if prof source profiling support enabled
35559if test "$enable_prof" = 'yes'; then
35560 CFLAGS="-p $CFLAGS"
35561 CXXFLAGS="-p $CXXFLAGS"
35562 LDFLAGS="-p $LDFLAGS"
35563fi
35564
35565# Add '-pg' if gprof source profiling support enabled
35566if test "$enable_gprof" = 'yes'; then
35567 CFLAGS="-pg $CFLAGS"
35568 CXXFLAGS="-pg $CXXFLAGS"
35569 LDFLAGS="-pg $LDFLAGS"
35570fi
35571
35572# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35573# This is a gcc-specific feature
35574if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035576$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035577if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035578 $as_echo_n "(cached) " >&6
35579else
35580 ac_check_lib_save_LIBS=$LIBS
35581LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035583/* end confdefs.h. */
35584
35585/* Override any GCC internal prototype to avoid an error.
35586 Use char because int might match the return type of a GCC
35587 builtin and then its argument prototype would still apply. */
35588#ifdef __cplusplus
35589extern "C"
35590#endif
35591char _gcov_init ();
35592int
35593main ()
35594{
35595return _gcov_init ();
35596 ;
35597 return 0;
35598}
35599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035601 ac_cv_lib_gcov__gcov_init=yes
35602else
cristy8b350f62009-11-15 23:12:43 +000035603 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035604fi
cristy8b350f62009-11-15 23:12:43 +000035605rm -f core conftest.err conftest.$ac_objext \
35606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035607LIBS=$ac_check_lib_save_LIBS
35608fi
cristy8b350f62009-11-15 23:12:43 +000035609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035610$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035611if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035612 cat >>confdefs.h <<_ACEOF
35613#define HAVE_LIBGCOV 1
35614_ACEOF
35615
35616 LIBS="-lgcov $LIBS"
35617
35618fi
35619
cristy8b350f62009-11-15 23:12:43 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035621$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035622if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035623 $as_echo_n "(cached) " >&6
35624else
35625 ac_check_lib_save_LIBS=$LIBS
35626LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035628/* end confdefs.h. */
35629
35630/* Override any GCC internal prototype to avoid an error.
35631 Use char because int might match the return type of a GCC
35632 builtin and then its argument prototype would still apply. */
35633#ifdef __cplusplus
35634extern "C"
35635#endif
35636char __gcov_init ();
35637int
35638main ()
35639{
35640return __gcov_init ();
35641 ;
35642 return 0;
35643}
35644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035646 ac_cv_lib_gcov___gcov_init=yes
35647else
cristy8b350f62009-11-15 23:12:43 +000035648 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035649fi
cristy8b350f62009-11-15 23:12:43 +000035650rm -f core conftest.err conftest.$ac_objext \
35651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035652LIBS=$ac_check_lib_save_LIBS
35653fi
cristy8b350f62009-11-15 23:12:43 +000035654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035655$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035656if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035657 cat >>confdefs.h <<_ACEOF
35658#define HAVE_LIBGCOV 1
35659_ACEOF
35660
35661 LIBS="-lgcov $LIBS"
35662
35663fi
35664
35665 case "$target_os" in
35666 darwin*)
35667 OSX_GCOV_LDFLAG="-Wl,-single_module"
35668 ;;
35669 *)
35670 OSX_GCOV_LDFLAG=""
35671 ;;
35672 esac
35673
35674 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35675 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35676 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35677fi
35678
35679#
35680# Build library dependency list for libMagickCore
35681#
35682
cristyc6722092012-10-14 00:19:31 +000035683if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000035684 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 +000035685else
cristybc8ef1c2015-06-06 14:32:21 +000035686 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DDJVUAP_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035687fi
35688
35689
35690#
cristyead532a2015-06-05 00:49:30 +000035691# Sanitize output variables (asthetic).
cristy3ed852e2009-09-05 21:47:34 +000035692#
cristy32f75d42015-06-05 18:46:23 +000035693for variable in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS PCFLAGS X_CFLAGS; do
cristyead532a2015-06-05 00:49:30 +000035694 sanitize=''
35695 eval value=$`echo $variable`
35696 for component in $value
35697 do
35698 unique=yes
35699 for test_component in $sanitize
35700 do
35701 if test $component = $test_component; then
35702 unique=no
35703 break
35704 fi
35705 done
35706 if test $unique = yes; then
35707 sanitize="$sanitize $component"
35708 fi
35709 done
35710 sanitize=`echo $sanitize | sed -e 's/^ *//g'`
35711 eval ${variable}=\${sanitize}
35712done
cristy3ed852e2009-09-05 21:47:34 +000035713
35714# Pass only user-provided LIBS as "global" libraries
35715LIBS=$USER_LIBS
35716
35717#AC_SUBST(CPPFLAGS)
35718
35719#AC_SUBST(LDFLAGS)
35720#AC_SUBST(X_PRE_LIBS)
35721#AC_SUBST(X_LIBS)
35722#AC_SUBST(X_EXTRA_LIBS)
35723
35724MAGICK_CFLAGS=$CFLAGS
35725MAGICK_CXXFLAGS="$CXXFLAGS"
35726MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35727MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35728MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000035729MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035730
35731
35732
35733
35734
35735
35736
35737
35738# Set configured scripts to executable.
35739ac_config_commands="$ac_config_commands default"
35740
cristy2bd4b6e2012-07-22 15:29:11 +000035741ac_config_commands="$ac_config_commands magick.sh.in"
35742
cristy3ed852e2009-09-05 21:47:34 +000035743ac_config_commands="$ac_config_commands MagickCore-config.in"
35744
cristy3ed852e2009-09-05 21:47:34 +000035745ac_config_commands="$ac_config_commands MagickWand-config.in"
35746
cristy3ed852e2009-09-05 21:47:34 +000035747ac_config_commands="$ac_config_commands Magick++-config.in"
35748
35749ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35750
35751
cristyad38abe2012-12-23 23:03:21 +000035752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35753$as_echo "-------------------------------------------------------------" >&6; }
35754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35755$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000035756
35757rm -f magick-version
35758
35759result_dejavu_font_dir='none'
35760if test "${dejavu_font_dir}x" != 'x'; then
35761 result_dejavu_font_dir=$dejavu_font_dir
35762fi
35763
35764result_ghostscript_font_dir='none'
35765if test "${ghostscript_font_dir}x" != 'x'; then
35766 result_ghostscript_font_dir=$ghostscript_font_dir
35767fi
35768
35769result_windows_font_dir='none'
35770if test "${windows_font_dir}x" != 'x'; then
35771 result_windows_font_dir=${windows_font_dir}
35772fi
35773
35774# ==============================================================================
35775# Generate build environment
35776# ==============================================================================
35777ac_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"
35778
cristy3ed852e2009-09-05 21:47:34 +000035779cat >confcache <<\_ACEOF
35780# This file is a shell script that caches the results of configure
35781# tests run on this system so they can be shared between configure
35782# scripts and configure runs, see configure's option --config-cache.
35783# It is not useful on other systems. If it contains results you don't
35784# want to keep, you may remove or edit it.
35785#
35786# config.status only pays attention to the cache file if you give it
35787# the --recheck option to rerun configure.
35788#
35789# `ac_cv_env_foo' variables (set or unset) will be overridden when
35790# loading this file, other *unset* `ac_cv_foo' will be assigned the
35791# following values.
35792
35793_ACEOF
35794
35795# The following way of writing the cache mishandles newlines in values,
35796# but we know of no workaround that is simple, portable, and efficient.
35797# So, we kill variables containing newlines.
35798# Ultrix sh set writes to stderr and can't be redirected directly,
35799# and sets the high bit in the cache file unless we assign to the vars.
35800(
35801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35802 eval ac_val=\$$ac_var
35803 case $ac_val in #(
35804 *${as_nl}*)
35805 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035806 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035807$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35808 esac
35809 case $ac_var in #(
35810 _ | IFS | as_nl) ;; #(
35811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035812 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035813 esac ;;
35814 esac
35815 done
35816
35817 (set) 2>&1 |
35818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35819 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035820 # `set' does not quote correctly, so add quotes: double-quote
35821 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035822 sed -n \
35823 "s/'/'\\\\''/g;
35824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35825 ;; #(
35826 *)
35827 # `set' quotes correctly as required by POSIX, so do not add quotes.
35828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35829 ;;
35830 esac |
35831 sort
35832) |
35833 sed '
35834 /^ac_cv_env_/b end
35835 t clear
35836 :clear
35837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35838 t end
35839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35840 :end' >>confcache
35841if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35842 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035843 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035844 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035845$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035846 if test ! -f "$cache_file" || test -h "$cache_file"; then
35847 cat confcache >"$cache_file"
35848 else
35849 case $cache_file in #(
35850 */* | ?:*)
35851 mv -f confcache "$cache_file"$$ &&
35852 mv -f "$cache_file"$$ "$cache_file" ;; #(
35853 *)
35854 mv -f confcache "$cache_file" ;;
35855 esac
35856 fi
35857 fi
cristy3ed852e2009-09-05 21:47:34 +000035858 else
cristy8b350f62009-11-15 23:12:43 +000035859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035860$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35861 fi
35862fi
35863rm -f confcache
35864
35865test "x$prefix" = xNONE && prefix=$ac_default_prefix
35866# Let make expand exec_prefix.
35867test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35868
35869DEFS=-DHAVE_CONFIG_H
35870
35871ac_libobjs=
35872ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035873U=
cristy3ed852e2009-09-05 21:47:34 +000035874for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35875 # 1. Remove the extension, and $U if already installed.
35876 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35877 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35879 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035880 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35881 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035882done
35883LIBOBJS=$ac_libobjs
35884
35885LTLIBOBJS=$ac_ltlibobjs
35886
35887
cristyc0890a62012-07-19 00:18:20 +000035888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35889$as_echo_n "checking that generated files are newer than configure... " >&6; }
35890 if test -n "$am_sleep_pid"; then
35891 # Hide warnings about reused PIDs.
35892 wait $am_sleep_pid 2>/dev/null
35893 fi
35894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35895$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035896 if test -n "$EXEEXT"; then
35897 am__EXEEXT_TRUE=
35898 am__EXEEXT_FALSE='#'
35899else
35900 am__EXEEXT_TRUE='#'
35901 am__EXEEXT_FALSE=
35902fi
cristy3ed852e2009-09-05 21:47:34 +000035903
cristy9af1cbf2014-12-28 22:03:09 +000035904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35905$as_echo_n "checking that generated files are newer than configure... " >&6; }
35906 if test -n "$am_sleep_pid"; then
35907 # Hide warnings about reused PIDs.
35908 wait $am_sleep_pid 2>/dev/null
35909 fi
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35911$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035912if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035913 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035914Usually this means the macro was only invoked conditionally." "$LINENO" 5
35915fi
35916if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035917 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035918Usually this means the macro was only invoked conditionally." "$LINENO" 5
35919fi
35920if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
35924if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035925 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035926Usually this means the macro was only invoked conditionally." "$LINENO" 5
35927fi
cristy9b86f202012-11-28 21:55:35 +000035928if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35929 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35930Usually this means the macro was only invoked conditionally." "$LINENO" 5
35931fi
cristy73bd4a52010-10-05 11:24:23 +000035932if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035933 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035934Usually this means the macro was only invoked conditionally." "$LINENO" 5
35935fi
35936if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035937 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035938Usually this means the macro was only invoked conditionally." "$LINENO" 5
35939fi
35940if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035941 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
35944if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
cristy73bd4a52010-10-05 11:24:23 +000035948if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
cristy73bd4a52010-10-05 11:24:23 +000035956if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
cristy71d8c202012-03-20 17:05:01 +000035960if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35961 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
cristy73bd4a52010-10-05 11:24:23 +000035964
35965if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
cristy3b0097d2014-11-04 15:34:47 +000035973if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
35974 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
35975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
cristy73bd4a52010-10-05 11:24:23 +000035977if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035978 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
35981if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035982 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
35989if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
cristy5eef09f2012-10-16 12:08:28 +000035993if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35994 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
cristy73bd4a52010-10-05 11:24:23 +000035997if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
36001if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
cristy73bd4a52010-10-05 11:24:23 +000036005if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
cristy853d9902014-08-21 18:50:43 +000036013if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36014 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
cristy73bd4a52010-10-05 11:24:23 +000036017if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036018 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
36021if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
36033if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036034 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
36037if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
cristy73bd4a52010-10-05 11:24:23 +000036041if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
cristy99db3872014-01-01 15:11:34 +000036045if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36046 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
cristy73bd4a52010-10-05 11:24:23 +000036049if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036050 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036051Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052fi
cristyfbb0ef02010-12-19 02:32:11 +000036053if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36054 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36055Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056fi
cristy73bd4a52010-10-05 11:24:23 +000036057if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036058 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
cristy41cbe8a2011-10-27 01:35:18 +000036061if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36062 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
cristya054b762012-03-26 23:16:00 +000036065if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36066 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
cristy73bd4a52010-10-05 11:24:23 +000036069if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036070 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
36073if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036074 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
36077if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
cristyb1860752011-03-14 00:27:46 +000036085if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36086 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
cristy73bd4a52010-10-05 11:24:23 +000036089if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
36093if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036094 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
cristydd17feb2014-03-05 02:06:32 +000036097if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36098 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
cristy73bd4a52010-10-05 11:24:23 +000036101if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036102 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036110 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
cristy3ed852e2009-09-05 21:47:34 +000036125
cristyda16f162011-02-19 23:52:17 +000036126: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036127ac_write_fail=0
36128ac_clean_files_save=$ac_clean_files
36129ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036130{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036131$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036132as_write_fail=0
36133cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036134#! $SHELL
36135# Generated by $as_me.
36136# Run this file to recreate the current configuration.
36137# Compiler output produced by configure, useful for debugging
36138# configure, is in config.log if it exists.
36139
36140debug=false
36141ac_cs_recheck=false
36142ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036143
cristy8b350f62009-11-15 23:12:43 +000036144SHELL=\${CONFIG_SHELL-$SHELL}
36145export SHELL
36146_ASEOF
36147cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36148## -------------------- ##
36149## M4sh Initialization. ##
36150## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036151
36152# Be more Bourne compatible
36153DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036154if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036155 emulate sh
36156 NULLCMD=:
36157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36158 # is contrary to our usage. Disable this feature.
36159 alias -g '${1+"$@"}'='"$@"'
36160 setopt NO_GLOB_SUBST
36161else
cristy8b350f62009-11-15 23:12:43 +000036162 case `(set -o) 2>/dev/null` in #(
36163 *posix*) :
36164 set -o posix ;; #(
36165 *) :
36166 ;;
cristy3ed852e2009-09-05 21:47:34 +000036167esac
cristy3ed852e2009-09-05 21:47:34 +000036168fi
36169
36170
cristy3ed852e2009-09-05 21:47:34 +000036171as_nl='
36172'
36173export as_nl
36174# Printing a long string crashes Solaris 7 /usr/bin/printf.
36175as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36176as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036178# Prefer a ksh shell builtin over an external printf program on Solaris,
36179# but without wasting forks for bash or zsh.
36180if test -z "$BASH_VERSION$ZSH_VERSION" \
36181 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36182 as_echo='print -r --'
36183 as_echo_n='print -rn --'
36184elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036185 as_echo='printf %s\n'
36186 as_echo_n='printf %s'
36187else
36188 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36189 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36190 as_echo_n='/usr/ucb/echo -n'
36191 else
36192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36193 as_echo_n_body='eval
36194 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036195 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036196 *"$as_nl"*)
36197 expr "X$arg" : "X\\(.*\\)$as_nl";
36198 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36199 esac;
36200 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36201 '
36202 export as_echo_n_body
36203 as_echo_n='sh -c $as_echo_n_body as_echo'
36204 fi
36205 export as_echo_body
36206 as_echo='sh -c $as_echo_body as_echo'
36207fi
36208
36209# The user is always right.
36210if test "${PATH_SEPARATOR+set}" != set; then
36211 PATH_SEPARATOR=:
36212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36214 PATH_SEPARATOR=';'
36215 }
36216fi
36217
cristy3ed852e2009-09-05 21:47:34 +000036218
36219# IFS
36220# We need space, tab and new line, in precisely that order. Quoting is
36221# there to prevent editors from complaining about space-tab.
36222# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36223# splitting by setting IFS to empty value.)
36224IFS=" "" $as_nl"
36225
36226# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036227as_myself=
cristy8b350f62009-11-15 23:12:43 +000036228case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036229 *[\\/]* ) as_myself=$0 ;;
36230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36231for as_dir in $PATH
36232do
36233 IFS=$as_save_IFS
36234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36236 done
cristy3ed852e2009-09-05 21:47:34 +000036237IFS=$as_save_IFS
36238
36239 ;;
36240esac
36241# We did not find ourselves, most probably we were run as `sh COMMAND'
36242# in which case we are not to be found in the path.
36243if test "x$as_myself" = x; then
36244 as_myself=$0
36245fi
36246if test ! -f "$as_myself"; then
36247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036248 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036249fi
36250
cristy8b350f62009-11-15 23:12:43 +000036251# Unset variables that we do not need and which cause bugs (e.g. in
36252# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36253# suppresses any "Segmentation fault" message there. '((' could
36254# trigger a bug in pdksh 5.2.14.
36255for as_var in BASH_ENV ENV MAIL MAILPATH
36256do eval test x\${$as_var+set} = xset \
36257 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036258done
36259PS1='$ '
36260PS2='> '
36261PS4='+ '
36262
36263# NLS nuisances.
36264LC_ALL=C
36265export LC_ALL
36266LANGUAGE=C
36267export LANGUAGE
36268
cristy8b350f62009-11-15 23:12:43 +000036269# CDPATH.
36270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36271
36272
cristy98dddb52010-11-04 00:30:15 +000036273# as_fn_error STATUS ERROR [LINENO LOG_FD]
36274# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036275# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36276# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036277# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036278as_fn_error ()
36279{
cristy98dddb52010-11-04 00:30:15 +000036280 as_status=$1; test $as_status -eq 0 && as_status=1
36281 if test "$4"; then
36282 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036284 fi
cristy98dddb52010-11-04 00:30:15 +000036285 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036286 as_fn_exit $as_status
36287} # as_fn_error
36288
36289
36290# as_fn_set_status STATUS
36291# -----------------------
36292# Set $? to STATUS, without forking.
36293as_fn_set_status ()
36294{
36295 return $1
36296} # as_fn_set_status
36297
36298# as_fn_exit STATUS
36299# -----------------
36300# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36301as_fn_exit ()
36302{
36303 set +e
36304 as_fn_set_status $1
36305 exit $1
36306} # as_fn_exit
36307
36308# as_fn_unset VAR
36309# ---------------
36310# Portably unset VAR.
36311as_fn_unset ()
36312{
36313 { eval $1=; unset $1;}
36314}
36315as_unset=as_fn_unset
36316# as_fn_append VAR VALUE
36317# ----------------------
36318# Append the text in VALUE to the end of the definition contained in VAR. Take
36319# advantage of any shell optimizations that allow amortized linear growth over
36320# repeated appends, instead of the typical quadratic growth present in naive
36321# implementations.
36322if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36323 eval 'as_fn_append ()
36324 {
36325 eval $1+=\$2
36326 }'
36327else
36328 as_fn_append ()
36329 {
36330 eval $1=\$$1\$2
36331 }
36332fi # as_fn_append
36333
36334# as_fn_arith ARG...
36335# ------------------
36336# Perform arithmetic evaluation on the ARGs, and store the result in the
36337# global $as_val. Take advantage of shells that can avoid forks. The arguments
36338# must be portable across $(()) and expr.
36339if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36340 eval 'as_fn_arith ()
36341 {
36342 as_val=$(( $* ))
36343 }'
36344else
36345 as_fn_arith ()
36346 {
36347 as_val=`expr "$@" || test $? -eq 1`
36348 }
36349fi # as_fn_arith
36350
36351
cristy3ed852e2009-09-05 21:47:34 +000036352if expr a : '\(a\)' >/dev/null 2>&1 &&
36353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36354 as_expr=expr
36355else
36356 as_expr=false
36357fi
36358
36359if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36360 as_basename=basename
36361else
36362 as_basename=false
36363fi
36364
cristy8b350f62009-11-15 23:12:43 +000036365if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36366 as_dirname=dirname
36367else
36368 as_dirname=false
36369fi
cristy3ed852e2009-09-05 21:47:34 +000036370
cristy3ed852e2009-09-05 21:47:34 +000036371as_me=`$as_basename -- "$0" ||
36372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36373 X"$0" : 'X\(//\)$' \| \
36374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36375$as_echo X/"$0" |
36376 sed '/^.*\/\([^/][^/]*\)\/*$/{
36377 s//\1/
36378 q
36379 }
36380 /^X\/\(\/\/\)$/{
36381 s//\1/
36382 q
36383 }
36384 /^X\/\(\/\).*/{
36385 s//\1/
36386 q
36387 }
36388 s/.*/./; q'`
36389
cristy8b350f62009-11-15 23:12:43 +000036390# Avoid depending upon Character Ranges.
36391as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36393as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36394as_cr_digits='0123456789'
36395as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036396
36397ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036398case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036399-n*)
cristy8b350f62009-11-15 23:12:43 +000036400 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036401 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036402 xy) ECHO_C='\c';;
36403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36404 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036405 esac;;
36406*)
36407 ECHO_N='-n';;
36408esac
cristy3ed852e2009-09-05 21:47:34 +000036409
36410rm -f conf$$ conf$$.exe conf$$.file
36411if test -d conf$$.dir; then
36412 rm -f conf$$.dir/conf$$.file
36413else
36414 rm -f conf$$.dir
36415 mkdir conf$$.dir 2>/dev/null
36416fi
36417if (echo >conf$$.file) 2>/dev/null; then
36418 if ln -s conf$$.file conf$$ 2>/dev/null; then
36419 as_ln_s='ln -s'
36420 # ... but there are two gotchas:
36421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036423 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036425 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036426 elif ln conf$$.file conf$$ 2>/dev/null; then
36427 as_ln_s=ln
36428 else
cristy14fefe52012-05-21 00:59:18 +000036429 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036430 fi
36431else
cristy14fefe52012-05-21 00:59:18 +000036432 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036433fi
36434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36435rmdir conf$$.dir 2>/dev/null
36436
cristy8b350f62009-11-15 23:12:43 +000036437
36438# as_fn_mkdir_p
36439# -------------
36440# Create "$as_dir" as a directory, including parents if necessary.
36441as_fn_mkdir_p ()
36442{
36443
36444 case $as_dir in #(
36445 -*) as_dir=./$as_dir;;
36446 esac
36447 test -d "$as_dir" || eval $as_mkdir_p || {
36448 as_dirs=
36449 while :; do
36450 case $as_dir in #(
36451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36452 *) as_qdir=$as_dir;;
36453 esac
36454 as_dirs="'$as_qdir' $as_dirs"
36455 as_dir=`$as_dirname -- "$as_dir" ||
36456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36457 X"$as_dir" : 'X\(//\)[^/]' \| \
36458 X"$as_dir" : 'X\(//\)$' \| \
36459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36460$as_echo X"$as_dir" |
36461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36462 s//\1/
36463 q
36464 }
36465 /^X\(\/\/\)[^/].*/{
36466 s//\1/
36467 q
36468 }
36469 /^X\(\/\/\)$/{
36470 s//\1/
36471 q
36472 }
36473 /^X\(\/\).*/{
36474 s//\1/
36475 q
36476 }
36477 s/.*/./; q'`
36478 test -d "$as_dir" && break
36479 done
36480 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036481 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036482
36483
36484} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036485if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036486 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036487else
36488 test -d ./-p && rmdir ./-p
36489 as_mkdir_p=false
36490fi
36491
cristy14fefe52012-05-21 00:59:18 +000036492
36493# as_fn_executable_p FILE
36494# -----------------------
36495# Test if FILE is an executable regular file.
36496as_fn_executable_p ()
36497{
36498 test -f "$1" && test -x "$1"
36499} # as_fn_executable_p
36500as_test_x='test -x'
36501as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036502
36503# Sed expression to map a string onto a valid CPP name.
36504as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36505
36506# Sed expression to map a string onto a valid variable name.
36507as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36508
36509
36510exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036511## ----------------------------------- ##
36512## Main body of $CONFIG_STATUS script. ##
36513## ----------------------------------- ##
36514_ASEOF
36515test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036516
cristy8b350f62009-11-15 23:12:43 +000036517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36518# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036519# report actual input values of CONFIG_FILES etc. instead of their
36520# values after options handling.
36521ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036522This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036523generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036524
36525 CONFIG_FILES = $CONFIG_FILES
36526 CONFIG_HEADERS = $CONFIG_HEADERS
36527 CONFIG_LINKS = $CONFIG_LINKS
36528 CONFIG_COMMANDS = $CONFIG_COMMANDS
36529 $ $0 $@
36530
36531on `(hostname || uname -n) 2>/dev/null | sed 1q`
36532"
36533
36534_ACEOF
36535
36536case $ac_config_files in *"
36537"*) set x $ac_config_files; shift; ac_config_files=$*;;
36538esac
36539
36540case $ac_config_headers in *"
36541"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36542esac
36543
36544
36545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36546# Files that config.status was made for.
36547config_files="$ac_config_files"
36548config_headers="$ac_config_headers"
36549config_commands="$ac_config_commands"
36550
36551_ACEOF
36552
36553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36554ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036555\`$as_me' instantiates files and other configuration actions
36556from templates according to the current configuration. Unless the files
36557and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036558
cristy8b350f62009-11-15 23:12:43 +000036559Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036560
36561 -h, --help print this help, then exit
36562 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036563 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036564 -q, --quiet, --silent
36565 do not print progress messages
36566 -d, --debug don't remove temporary files
36567 --recheck update $as_me by reconfiguring in the same conditions
36568 --file=FILE[:TEMPLATE]
36569 instantiate the configuration file FILE
36570 --header=FILE[:TEMPLATE]
36571 instantiate the configuration header FILE
36572
36573Configuration files:
36574$config_files
36575
36576Configuration headers:
36577$config_headers
36578
36579Configuration commands:
36580$config_commands
36581
cristy8b350f62009-11-15 23:12:43 +000036582Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036583
36584_ACEOF
36585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036586ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036587ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036588ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036589configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036590 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036591
cristy14fefe52012-05-21 00:59:18 +000036592Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036593This config.status script is free software; the Free Software Foundation
36594gives unlimited permission to copy, distribute and modify it."
36595
36596ac_pwd='$ac_pwd'
36597srcdir='$srcdir'
36598INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036599MKDIR_P='$MKDIR_P'
36600AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036601test -n "\$AWK" || AWK=awk
36602_ACEOF
36603
36604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36605# The default lists apply if the user does not specify any file.
36606ac_need_defaults=:
36607while test $# != 0
36608do
36609 case $1 in
cristyda16f162011-02-19 23:52:17 +000036610 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36613 ac_shift=:
36614 ;;
cristyda16f162011-02-19 23:52:17 +000036615 --*=)
36616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36617 ac_optarg=
36618 ac_shift=:
36619 ;;
cristy3ed852e2009-09-05 21:47:34 +000036620 *)
36621 ac_option=$1
36622 ac_optarg=$2
36623 ac_shift=shift
36624 ;;
36625 esac
36626
36627 case $ac_option in
36628 # Handling of the options.
36629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36630 ac_cs_recheck=: ;;
36631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36632 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036633 --config | --confi | --conf | --con | --co | --c )
36634 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036635 --debug | --debu | --deb | --de | --d | -d )
36636 debug=: ;;
36637 --file | --fil | --fi | --f )
36638 $ac_shift
36639 case $ac_optarg in
36640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036641 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036642 esac
cristy8b350f62009-11-15 23:12:43 +000036643 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036644 ac_need_defaults=false;;
36645 --header | --heade | --head | --hea )
36646 $ac_shift
36647 case $ac_optarg in
36648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36649 esac
cristy8b350f62009-11-15 23:12:43 +000036650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036651 ac_need_defaults=false;;
36652 --he | --h)
36653 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036654 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036655Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036656 --help | --hel | -h )
36657 $as_echo "$ac_cs_usage"; exit ;;
36658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36660 ac_cs_silent=: ;;
36661
36662 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036663 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036664Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036665
cristy8b350f62009-11-15 23:12:43 +000036666 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036667 ac_need_defaults=false ;;
36668
36669 esac
36670 shift
36671done
36672
36673ac_configure_extra_args=
36674
36675if $ac_cs_silent; then
36676 exec 6>/dev/null
36677 ac_configure_extra_args="$ac_configure_extra_args --silent"
36678fi
36679
36680_ACEOF
36681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36682if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036684 shift
36685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36686 CONFIG_SHELL='$SHELL'
36687 export CONFIG_SHELL
36688 exec "\$@"
36689fi
36690
36691_ACEOF
36692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36693exec 5>>config.log
36694{
36695 echo
36696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36697## Running $as_me. ##
36698_ASBOX
36699 $as_echo "$ac_log"
36700} >&5
36701
36702_ACEOF
36703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036704#
36705# INIT-COMMANDS
36706#
36707PACKAGE="$PACKAGE"
36708AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36709
36710
36711# The HP-UX ksh and POSIX shell print the target directory to stdout
36712# if CDPATH is set.
36713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36714
36715sed_quote_subst='$sed_quote_subst'
36716double_quote_subst='$double_quote_subst'
36717delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036718SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36719Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36720GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36721EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36722FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36723SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36724ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36725LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36726macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36727macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36728AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36729DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36730OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36731enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36732enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36733pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36734enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036735PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036736host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36737host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36738host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36739build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36740build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36741build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36742NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36743LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36744max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36745ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36746exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36747lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36748lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36749lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036750lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36751lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036752reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36753reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36754deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36755file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036756file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36757want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36758sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036759AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36760AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036761archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036762STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36763RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36764old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36765old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36766old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36767lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36768CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36769CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36770compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36771GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36772lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36773lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36774lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36775lt_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 +000036776nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36777lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036778objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36779MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36780lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036781lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036782lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036783lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36784lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36785need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036786MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036787DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36788NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36789LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36790OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36791OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36792libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36793shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36794extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36795archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36796enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36797export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36798whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36799compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36800old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36801old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36802archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36803archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36804module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36805module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36806with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36807allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36808no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36809hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036810hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36811hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36812hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36813hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36814hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36815hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36816inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36817link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036818always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36819export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36820exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36821include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36822prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036823postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036824file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36825variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36826need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36827need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36828version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36829runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36830shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36831shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36832libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36833library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36834soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36835install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36836postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36837postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36838finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36839finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36840hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36841sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36842sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36843hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36844enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36845enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36846enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36847old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36848striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36849compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36850predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36851postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36852predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36853postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36854compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36855LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36856reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36857reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36858old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36859compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36860GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36861lt_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 +000036862lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036863lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036864lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36865lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36866archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36867enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36868export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36869whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36870compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36871old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36872old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36873archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36874archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36875module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36876module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36877with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36878allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36879no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36880hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036881hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36882hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36883hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36884hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36885hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36886hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36887inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36888link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036889always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36890export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36891exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36892include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36893prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036894postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036895file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36896hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36897compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36898predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36899postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36900predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36901postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36902compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036903
36904LTCC='$LTCC'
36905LTCFLAGS='$LTCFLAGS'
36906compiler='$compiler_DEFAULT'
36907
cristy0c60a692010-11-04 01:09:47 +000036908# A function that is used when there is no print builtin or printf.
36909func_fallback_echo ()
36910{
36911 eval 'cat <<_LTECHO_EOF
36912\$1
36913_LTECHO_EOF'
36914}
36915
cristy73bd4a52010-10-05 11:24:23 +000036916# Quote evaled strings.
36917for var in SED \
36918GREP \
36919EGREP \
36920FGREP \
cristy0c60a692010-11-04 01:09:47 +000036921SHELL \
36922ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036923LD \
cristy0c60a692010-11-04 01:09:47 +000036924AS \
36925DLLTOOL \
36926OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036927PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036928NM \
36929LN_S \
36930lt_SP2NL \
36931lt_NL2SP \
36932reload_flag \
36933deplibs_check_method \
36934file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036935file_magic_glob \
36936want_nocaseglob \
36937sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036938AR \
36939AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036940archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036941STRIP \
36942RANLIB \
36943CC \
36944CFLAGS \
36945compiler \
36946lt_cv_sys_global_symbol_pipe \
36947lt_cv_sys_global_symbol_to_cdecl \
36948lt_cv_sys_global_symbol_to_c_name_address \
36949lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036950nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036951lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036952lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036953lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036954lt_prog_compiler_static \
36955lt_cv_prog_compiler_c_o \
36956need_locks \
cristyda16f162011-02-19 23:52:17 +000036957MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036958DSYMUTIL \
36959NMEDIT \
36960LIPO \
36961OTOOL \
36962OTOOL64 \
36963shrext_cmds \
36964export_dynamic_flag_spec \
36965whole_archive_flag_spec \
36966compiler_needs_object \
36967with_gnu_ld \
36968allow_undefined_flag \
36969no_undefined_flag \
36970hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036971hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036972exclude_expsyms \
36973include_expsyms \
36974file_list_spec \
36975variables_saved_for_relink \
36976libname_spec \
36977library_names_spec \
36978soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036979install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036980finish_eval \
36981old_striplib \
36982striplib \
36983compiler_lib_search_dirs \
36984predep_objects \
36985postdep_objects \
36986predeps \
36987postdeps \
36988compiler_lib_search_path \
36989LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036990reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036991compiler_CXX \
36992lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036993lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036994lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036995lt_prog_compiler_static_CXX \
36996lt_cv_prog_compiler_c_o_CXX \
36997export_dynamic_flag_spec_CXX \
36998whole_archive_flag_spec_CXX \
36999compiler_needs_object_CXX \
37000with_gnu_ld_CXX \
37001allow_undefined_flag_CXX \
37002no_undefined_flag_CXX \
37003hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037004hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037005exclude_expsyms_CXX \
37006include_expsyms_CXX \
37007file_list_spec_CXX \
37008compiler_lib_search_dirs_CXX \
37009predep_objects_CXX \
37010postdep_objects_CXX \
37011predeps_CXX \
37012postdeps_CXX \
37013compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037015 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037017 ;;
37018 *)
37019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37020 ;;
37021 esac
37022done
37023
37024# Double-quote double-evaled strings.
37025for var in reload_cmds \
37026old_postinstall_cmds \
37027old_postuninstall_cmds \
37028old_archive_cmds \
37029extract_expsyms_cmds \
37030old_archive_from_new_cmds \
37031old_archive_from_expsyms_cmds \
37032archive_cmds \
37033archive_expsym_cmds \
37034module_cmds \
37035module_expsym_cmds \
37036export_symbols_cmds \
37037prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037038postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037039postinstall_cmds \
37040postuninstall_cmds \
37041finish_cmds \
37042sys_lib_search_path_spec \
37043sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037044reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037045old_archive_cmds_CXX \
37046old_archive_from_new_cmds_CXX \
37047old_archive_from_expsyms_cmds_CXX \
37048archive_cmds_CXX \
37049archive_expsym_cmds_CXX \
37050module_cmds_CXX \
37051module_expsym_cmds_CXX \
37052export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037053prelink_cmds_CXX \
37054postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037056 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037058 ;;
37059 *)
37060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37061 ;;
37062 esac
37063done
37064
cristy73bd4a52010-10-05 11:24:23 +000037065ac_aux_dir='$ac_aux_dir'
37066xsi_shell='$xsi_shell'
37067lt_shell_append='$lt_shell_append'
37068
37069# See if we are running on zsh, and set the options which allow our
37070# commands through without removal of \ escapes INIT.
37071if test -n "\${ZSH_VERSION+set}" ; then
37072 setopt NO_GLOB_SUBST
37073fi
37074
37075
37076 PACKAGE='$PACKAGE'
37077 VERSION='$VERSION'
37078 TIMESTAMP='$TIMESTAMP'
37079 RM='$RM'
37080 ofile='$ofile'
37081
37082
37083
37084
37085
37086
cristy3ed852e2009-09-05 21:47:34 +000037087_ACEOF
37088
37089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37090
37091# Handling of arguments.
37092for ac_config_target in $ac_config_targets
37093do
37094 case $ac_config_target in
37095 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037096 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037097 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37098 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37099 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37100 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37101 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37102 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37103 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37104 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037105 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037106 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37107 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37108 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37109 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37110 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037111 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037112 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037113 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037114 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37115 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37116 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37117 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37118 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037119 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037120 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037121 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37122 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37123 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37125 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037126 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037127 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037128 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037129 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037130 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37131 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37132 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37133 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037134 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37135 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37136 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37137 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37138 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37139 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37140 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37141 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37142 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37143 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37144 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37145 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037146 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37147 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037148
cristy98dddb52010-11-04 00:30:15 +000037149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037150 esac
37151done
37152
37153
37154# If the user did not use the arguments to specify the items to instantiate,
37155# then the envvar interface is used. Set only those that are not.
37156# We use the long form for the default assignment because of an extremely
37157# bizarre bug on SunOS 4.1.3.
37158if $ac_need_defaults; then
37159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37162fi
37163
37164# Have a temporary directory for convenience. Make it in the build tree
37165# simply because there is no reason against having it here, and in addition,
37166# creating and moving files from /tmp can sometimes cause problems.
37167# Hook for its removal unless debugging.
37168# Note that there is a small window in which the directory will not be cleaned:
37169# after its creation but before its name has been assigned to `$tmp'.
37170$debug ||
37171{
cristyda16f162011-02-19 23:52:17 +000037172 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037173 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037174 : "${ac_tmp:=$tmp}"
37175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037176' 0
cristy8b350f62009-11-15 23:12:43 +000037177 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037178}
37179# Create a (secure) tmp directory for tmp files.
37180
37181{
37182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037183 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037184} ||
37185{
37186 tmp=./conf$$-$RANDOM
37187 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037188} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037189ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037190
37191# Set up the scripts for CONFIG_FILES section.
37192# No need to generate them if there are no CONFIG_FILES.
37193# This happens for instance with `./config.status config.h'.
37194if test -n "$CONFIG_FILES"; then
37195
37196
cristy8b350f62009-11-15 23:12:43 +000037197ac_cr=`echo X | tr X '\015'`
37198# On cygwin, bash can eat \r inside `` if the user requested igncr.
37199# But we know of no other shell where ac_cr would be empty at this
37200# point, so we can use a bashism as a fallback.
37201if test "x$ac_cr" = x; then
37202 eval ac_cr=\$\'\\r\'
37203fi
cristy3ed852e2009-09-05 21:47:34 +000037204ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37205if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037206 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037207else
37208 ac_cs_awk_cr=$ac_cr
37209fi
37210
cristyda16f162011-02-19 23:52:17 +000037211echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037212_ACEOF
37213
37214
37215{
37216 echo "cat >conf$$subs.awk <<_ACEOF" &&
37217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37218 echo "_ACEOF"
37219} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37221ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037222ac_delim='%!_!# '
37223for ac_last_try in false false false false false :; do
37224 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037226
37227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37228 if test $ac_delim_n = $ac_delim_num; then
37229 break
37230 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037232 else
37233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37234 fi
37235done
37236rm -f conf$$subs.sh
37237
37238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037239cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037240_ACEOF
37241sed -n '
37242h
37243s/^/S["/; s/!.*/"]=/
37244p
37245g
37246s/^[^!]*!//
37247:repl
37248t repl
37249s/'"$ac_delim"'$//
37250t delim
37251:nl
37252h
cristycd4c5312009-11-22 01:19:08 +000037253s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037254t more1
37255s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37256p
37257n
37258b repl
37259:more1
37260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37261p
37262g
37263s/.\{148\}//
37264t nl
37265:delim
37266h
cristycd4c5312009-11-22 01:19:08 +000037267s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037268t more2
37269s/["\\]/\\&/g; s/^/"/; s/$/"/
37270p
37271b
37272:more2
37273s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37274p
37275g
37276s/.\{148\}//
37277t delim
37278' <conf$$subs.awk | sed '
37279/^[^""]/{
37280 N
37281 s/\n//
37282}
37283' >>$CONFIG_STATUS || ac_write_fail=1
37284rm -f conf$$subs.awk
37285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37286_ACAWK
cristyda16f162011-02-19 23:52:17 +000037287cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037288 for (key in S) S_is_set[key] = 1
37289 FS = ""
37290
37291}
37292{
37293 line = $ 0
37294 nfields = split(line, field, "@")
37295 substed = 0
37296 len = length(field[1])
37297 for (i = 2; i < nfields; i++) {
37298 key = field[i]
37299 keylen = length(key)
37300 if (S_is_set[key]) {
37301 value = S[key]
37302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37303 len += length(value) + length(field[++i])
37304 substed = 1
37305 } else
37306 len += 1 + keylen
37307 }
37308
37309 print line
37310}
37311
37312_ACAWK
37313_ACEOF
37314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37315if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37316 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37317else
37318 cat
cristyda16f162011-02-19 23:52:17 +000037319fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037320 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037321_ACEOF
37322
cristy98dddb52010-11-04 00:30:15 +000037323# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37324# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037325# trailing colons and then remove the whole line if VPATH becomes empty
37326# (actually we leave an empty line to preserve line numbers).
37327if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037328 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37329h
37330s///
37331s/^/:/
37332s/[ ]*$/:/
37333s/:\$(srcdir):/:/g
37334s/:\${srcdir}:/:/g
37335s/:@srcdir@:/:/g
37336s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037337s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037338x
37339s/\(=[ ]*\).*/\1/
37340G
37341s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037342s/^[^=]*=[ ]*$//
37343}'
37344fi
37345
37346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37347fi # test -n "$CONFIG_FILES"
37348
37349# Set up the scripts for CONFIG_HEADERS section.
37350# No need to generate them if there are no CONFIG_HEADERS.
37351# This happens for instance with `./config.status Makefile'.
37352if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037353cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037354BEGIN {
37355_ACEOF
37356
37357# Transform confdefs.h into an awk script `defines.awk', embedded as
37358# here-document in config.status, that substitutes the proper values into
37359# config.h.in to produce config.h.
37360
37361# Create a delimiter string that does not exist in confdefs.h, to ease
37362# handling of long lines.
37363ac_delim='%!_!# '
37364for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037365 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37366 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037367 break
37368 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037369 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037370 else
37371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37372 fi
37373done
37374
37375# For the awk script, D is an array of macro values keyed by name,
37376# likewise P contains macro parameters if any. Preserve backslash
37377# newline sequences.
37378
37379ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37380sed -n '
37381s/.\{148\}/&'"$ac_delim"'/g
37382t rset
37383:rset
37384s/^[ ]*#[ ]*define[ ][ ]*/ /
37385t def
37386d
37387:def
37388s/\\$//
37389t bsnl
37390s/["\\]/\\&/g
37391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37392D["\1"]=" \3"/p
37393s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37394d
37395:bsnl
37396s/["\\]/\\&/g
37397s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37398D["\1"]=" \3\\\\\\n"\\/p
37399t cont
37400s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37401t cont
37402d
37403:cont
37404n
37405s/.\{148\}/&'"$ac_delim"'/g
37406t clear
37407:clear
37408s/\\$//
37409t bsnlc
37410s/["\\]/\\&/g; s/^/"/; s/$/"/p
37411d
37412:bsnlc
37413s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37414b cont
37415' <confdefs.h | sed '
37416s/'"$ac_delim"'/"\\\
37417"/g' >>$CONFIG_STATUS || ac_write_fail=1
37418
37419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37420 for (key in D) D_is_set[key] = 1
37421 FS = ""
37422}
37423/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37424 line = \$ 0
37425 split(line, arg, " ")
37426 if (arg[1] == "#") {
37427 defundef = arg[2]
37428 mac1 = arg[3]
37429 } else {
37430 defundef = substr(arg[1], 2)
37431 mac1 = arg[2]
37432 }
37433 split(mac1, mac2, "(") #)
37434 macro = mac2[1]
37435 prefix = substr(line, 1, index(line, defundef) - 1)
37436 if (D_is_set[macro]) {
37437 # Preserve the white space surrounding the "#".
37438 print prefix "define", macro P[macro] D[macro]
37439 next
37440 } else {
37441 # Replace #undef with comments. This is necessary, for example,
37442 # in the case of _POSIX_SOURCE, which is predefined and required
37443 # on some systems where configure will not decide to define it.
37444 if (defundef == "undef") {
37445 print "/*", prefix defundef, macro, "*/"
37446 next
37447 }
37448 }
37449}
37450{ print }
37451_ACAWK
37452_ACEOF
37453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037454 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037455fi # test -n "$CONFIG_HEADERS"
37456
37457
37458eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37459shift
37460for ac_tag
37461do
37462 case $ac_tag in
37463 :[FHLC]) ac_mode=$ac_tag; continue;;
37464 esac
37465 case $ac_mode$ac_tag in
37466 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037467 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037468 :[FH]-) ac_tag=-:-;;
37469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37470 esac
37471 ac_save_IFS=$IFS
37472 IFS=:
37473 set x $ac_tag
37474 IFS=$ac_save_IFS
37475 shift
37476 ac_file=$1
37477 shift
37478
37479 case $ac_mode in
37480 :L) ac_source=$1;;
37481 :[FH])
37482 ac_file_inputs=
37483 for ac_f
37484 do
37485 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037486 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037487 *) # Look for the file first in the build tree, then in the source tree
37488 # (if the path is not absolute). The absolute path cannot be DOS-style,
37489 # because $ac_f cannot contain `:'.
37490 test -f "$ac_f" ||
37491 case $ac_f in
37492 [\\/$]*) false;;
37493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37494 esac ||
cristy98dddb52010-11-04 00:30:15 +000037495 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037496 esac
37497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037498 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037499 done
37500
37501 # Let's still pretend it is `configure' which instantiates (i.e., don't
37502 # use $as_me), people would be surprised to read:
37503 # /* config.h. Generated by config.status. */
37504 configure_input='Generated from '`
37505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37506 `' by configure.'
37507 if test x"$ac_file" != x-; then
37508 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037510$as_echo "$as_me: creating $ac_file" >&6;}
37511 fi
37512 # Neutralize special characters interpreted by sed in replacement strings.
37513 case $configure_input in #(
37514 *\&* | *\|* | *\\* )
37515 ac_sed_conf_input=`$as_echo "$configure_input" |
37516 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37517 *) ac_sed_conf_input=$configure_input;;
37518 esac
37519
37520 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037521 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037523 esac
37524 ;;
37525 esac
37526
37527 ac_dir=`$as_dirname -- "$ac_file" ||
37528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37529 X"$ac_file" : 'X\(//\)[^/]' \| \
37530 X"$ac_file" : 'X\(//\)$' \| \
37531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37532$as_echo X"$ac_file" |
37533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37534 s//\1/
37535 q
37536 }
37537 /^X\(\/\/\)[^/].*/{
37538 s//\1/
37539 q
37540 }
37541 /^X\(\/\/\)$/{
37542 s//\1/
37543 q
37544 }
37545 /^X\(\/\).*/{
37546 s//\1/
37547 q
37548 }
37549 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037550 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037551 ac_builddir=.
37552
37553case "$ac_dir" in
37554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37555*)
37556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37557 # A ".." for each directory in $ac_dir_suffix.
37558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37559 case $ac_top_builddir_sub in
37560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37562 esac ;;
37563esac
37564ac_abs_top_builddir=$ac_pwd
37565ac_abs_builddir=$ac_pwd$ac_dir_suffix
37566# for backward compatibility:
37567ac_top_builddir=$ac_top_build_prefix
37568
37569case $srcdir in
37570 .) # We are building in place.
37571 ac_srcdir=.
37572 ac_top_srcdir=$ac_top_builddir_sub
37573 ac_abs_top_srcdir=$ac_pwd ;;
37574 [\\/]* | ?:[\\/]* ) # Absolute name.
37575 ac_srcdir=$srcdir$ac_dir_suffix;
37576 ac_top_srcdir=$srcdir
37577 ac_abs_top_srcdir=$srcdir ;;
37578 *) # Relative name.
37579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37580 ac_top_srcdir=$ac_top_build_prefix$srcdir
37581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37582esac
37583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37584
37585
37586 case $ac_mode in
37587 :F)
37588 #
37589 # CONFIG_FILE
37590 #
37591
37592 case $INSTALL in
37593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37595 esac
cristy73bd4a52010-10-05 11:24:23 +000037596 ac_MKDIR_P=$MKDIR_P
37597 case $MKDIR_P in
37598 [\\/$]* | ?:[\\/]* ) ;;
37599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37600 esac
cristy3ed852e2009-09-05 21:47:34 +000037601_ACEOF
37602
37603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37604# If the template does not know about datarootdir, expand it.
37605# FIXME: This hack should be removed a few years after 2.60.
37606ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037607ac_sed_dataroot='
37608/datarootdir/ {
37609 p
37610 q
37611}
37612/@datadir@/p
37613/@docdir@/p
37614/@infodir@/p
37615/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037616/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037617case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37618*datarootdir*) ac_datarootdir_seen=yes;;
37619*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037621$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37622_ACEOF
37623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37624 ac_datarootdir_hack='
37625 s&@datadir@&$datadir&g
37626 s&@docdir@&$docdir&g
37627 s&@infodir@&$infodir&g
37628 s&@localedir@&$localedir&g
37629 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037630 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037631esac
37632_ACEOF
37633
37634# Neutralize VPATH when `$srcdir' = `.'.
37635# Shell code in configure.ac might set extrasub.
37636# FIXME: do we really want to maintain this feature?
37637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37638ac_sed_extra="$ac_vpsub
37639$extrasub
37640_ACEOF
37641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37642:t
37643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37644s|@configure_input@|$ac_sed_conf_input|;t t
37645s&@top_builddir@&$ac_top_builddir_sub&;t t
37646s&@top_build_prefix@&$ac_top_build_prefix&;t t
37647s&@srcdir@&$ac_srcdir&;t t
37648s&@abs_srcdir@&$ac_abs_srcdir&;t t
37649s&@top_srcdir@&$ac_top_srcdir&;t t
37650s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37651s&@builddir@&$ac_builddir&;t t
37652s&@abs_builddir@&$ac_abs_builddir&;t t
37653s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37654s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037655s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037656$ac_datarootdir_hack
37657"
cristyda16f162011-02-19 23:52:17 +000037658eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37659 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037660
37661test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037662 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37663 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37664 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037666which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037667$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037668which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037669
cristyda16f162011-02-19 23:52:17 +000037670 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037671 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037672 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37673 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037674 esac \
cristy98dddb52010-11-04 00:30:15 +000037675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037676 ;;
37677 :H)
37678 #
37679 # CONFIG_HEADER
37680 #
37681 if test x"$ac_file" != x-; then
37682 {
37683 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37685 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037687 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037689$as_echo "$as_me: $ac_file is unchanged" >&6;}
37690 else
37691 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037692 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037694 fi
37695 else
37696 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037697 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037698 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037699 fi
cristy73bd4a52010-10-05 11:24:23 +000037700# Compute "$ac_file"'s index in $config_headers.
37701_am_arg="$ac_file"
37702_am_stamp_count=1
37703for _am_header in $config_headers :; do
37704 case $_am_header in
37705 $_am_arg | $_am_arg:* )
37706 break ;;
37707 * )
37708 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37709 esac
37710done
37711echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37712$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37713 X"$_am_arg" : 'X\(//\)[^/]' \| \
37714 X"$_am_arg" : 'X\(//\)$' \| \
37715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37716$as_echo X"$_am_arg" |
37717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37718 s//\1/
37719 q
37720 }
37721 /^X\(\/\/\)[^/].*/{
37722 s//\1/
37723 q
37724 }
37725 /^X\(\/\/\)$/{
37726 s//\1/
37727 q
37728 }
37729 /^X\(\/\).*/{
37730 s//\1/
37731 q
37732 }
37733 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037734 ;;
37735
cristy8b350f62009-11-15 23:12:43 +000037736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037737$as_echo "$as_me: executing $ac_file commands" >&6;}
37738 ;;
37739 esac
37740
37741
37742 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037743 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037744ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37745ac_prefix_conf_PKG=`echo MagickCore`
37746ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37747ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37748ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37749if test ".$ac_prefix_conf_INP" = "."; then
37750 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37751 case "$ac_file" in
37752 *.h) ac_prefix_conf_INP=$ac_file ;;
37753 *)
37754 esac
37755 test ".$ac_prefix_conf_INP" != "." && break
37756 done
37757fi
37758if test ".$ac_prefix_conf_INP" = "."; then
37759 case "$ac_prefix_conf_OUT" in
37760 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37761 ;;
37762 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37763 ;;
37764 *) ac_prefix_conf_INP=config.h
37765 ;;
37766 esac
37767fi
37768if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037769 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037770else
37771 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37772 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37773 fi fi
37774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37775$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37776 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037777 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37778 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37779 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37780 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37781 $as_echo "#endif/" >> conftest.prefix
37782 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37783 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37784 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037785 # now executing _script on _DEF input to create _OUT output file
37786 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37787 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37788 echo ' ' >>$tmp/pconfig.h
37789 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37790
37791 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37792 echo ' ' >>$tmp/pconfig.h
37793 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37794 echo "#endif" >>$tmp/pconfig.h
37795 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37796 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37797$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37798 else
37799 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37800$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37801 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37802 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37803 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37804$as_echo X"$ac_prefix_conf_OUT" |
37805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37806 s//\1/
37807 q
37808 }
37809 /^X\(\/\/\)[^/].*/{
37810 s//\1/
37811 q
37812 }
37813 /^X\(\/\/\)$/{
37814 s//\1/
37815 q
37816 }
37817 /^X\(\/\).*/{
37818 s//\1/
37819 q
37820 }
37821 s/.*/./; q'`
37822 as_dir="$ac_dir"; as_fn_mkdir_p
37823 rm -f "$ac_prefix_conf_OUT"
37824 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37825 fi
cristy73bd4a52010-10-05 11:24:23 +000037826 else
cristy98dddb52010-11-04 00:30:15 +000037827 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 +000037828 fi
37829 rm -f conftest.*
37830fi
37831 ;;
37832 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037833 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037834 # are listed without --file. Let's play safe and only enable the eval
37835 # if we detect the quoting.
37836 case $CONFIG_FILES in
37837 *\'*) eval set x "$CONFIG_FILES" ;;
37838 *) set x $CONFIG_FILES ;;
37839 esac
37840 shift
37841 for mf
37842 do
37843 # Strip MF so we end up with the name of the file.
37844 mf=`echo "$mf" | sed -e 's/:.*$//'`
37845 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037846 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037847 # some people rename them; so instead we look at the file content.
37848 # Grep'ing the first line is not enough: some people post-process
37849 # each Makefile.in and add a new line on top of each file to say so.
37850 # Grep'ing the whole file is not good either: AIX grep has a line
37851 # limit of 2048, but all sed's we know have understand at least 4000.
37852 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37853 dirpart=`$as_dirname -- "$mf" ||
37854$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37855 X"$mf" : 'X\(//\)[^/]' \| \
37856 X"$mf" : 'X\(//\)$' \| \
37857 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37858$as_echo X"$mf" |
37859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37860 s//\1/
37861 q
37862 }
37863 /^X\(\/\/\)[^/].*/{
37864 s//\1/
37865 q
37866 }
37867 /^X\(\/\/\)$/{
37868 s//\1/
37869 q
37870 }
37871 /^X\(\/\).*/{
37872 s//\1/
37873 q
37874 }
37875 s/.*/./; q'`
37876 else
37877 continue
37878 fi
37879 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037880 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37882 test -z "$DEPDIR" && continue
37883 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037884 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037886 # Find all dependency output files, they are included files with
37887 # $(DEPDIR) in their names. We invoke sed twice because it is the
37888 # simplest approach to changing $(DEPDIR) to its actual value in the
37889 # expansion.
37890 for file in `sed -n "
37891 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037893 # Make sure the directory exists.
37894 test -f "$dirpart/$file" && continue
37895 fdir=`$as_dirname -- "$file" ||
37896$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37897 X"$file" : 'X\(//\)[^/]' \| \
37898 X"$file" : 'X\(//\)$' \| \
37899 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37900$as_echo X"$file" |
37901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37902 s//\1/
37903 q
37904 }
37905 /^X\(\/\/\)[^/].*/{
37906 s//\1/
37907 q
37908 }
37909 /^X\(\/\/\)$/{
37910 s//\1/
37911 q
37912 }
37913 /^X\(\/\).*/{
37914 s//\1/
37915 q
37916 }
37917 s/.*/./; q'`
37918 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37919 # echo "creating $dirpart/$file"
37920 echo '# dummy' > "$dirpart/$file"
37921 done
37922 done
37923}
37924 ;;
37925 "libtool":C)
37926
37927 # See if we are running on zsh, and set the options which allow our
37928 # commands through without removal of \ escapes.
37929 if test -n "${ZSH_VERSION+set}" ; then
37930 setopt NO_GLOB_SUBST
37931 fi
37932
37933 cfgfile="${ofile}T"
37934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37935 $RM "$cfgfile"
37936
37937 cat <<_LT_EOF >> "$cfgfile"
37938#! $SHELL
37939
37940# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37941# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37943# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37944#
37945# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037946# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37947# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037948# Written by Gordon Matzigkeit, 1996
37949#
37950# This file is part of GNU Libtool.
37951#
37952# GNU Libtool is free software; you can redistribute it and/or
37953# modify it under the terms of the GNU General Public License as
37954# published by the Free Software Foundation; either version 2 of
37955# the License, or (at your option) any later version.
37956#
37957# As a special exception to the GNU General Public License,
37958# if you distribute this file as part of a program or library that
37959# is built using GNU Libtool, you may include this file under the
37960# same distribution terms that you use for the rest of that program.
37961#
37962# GNU Libtool is distributed in the hope that it will be useful,
37963# but WITHOUT ANY WARRANTY; without even the implied warranty of
37964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37965# GNU General Public License for more details.
37966#
37967# You should have received a copy of the GNU General Public License
37968# along with GNU Libtool; see the file COPYING. If not, a copy
37969# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37970# obtained by writing to the Free Software Foundation, Inc.,
37971# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37972
37973
37974# The names of the tagged configurations supported by this script.
37975available_tags="CXX "
37976
37977# ### BEGIN LIBTOOL CONFIG
37978
37979# A sed program that does not truncate output.
37980SED=$lt_SED
37981
37982# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37983Xsed="\$SED -e 1s/^X//"
37984
37985# A grep program that handles long lines.
37986GREP=$lt_GREP
37987
37988# An ERE matcher.
37989EGREP=$lt_EGREP
37990
37991# A literal string matcher.
37992FGREP=$lt_FGREP
37993
cristy0c60a692010-11-04 01:09:47 +000037994# Shell to use when invoking shell scripts.
37995SHELL=$lt_SHELL
37996
37997# An echo program that protects backslashes.
37998ECHO=$lt_ECHO
37999
cristy73bd4a52010-10-05 11:24:23 +000038000# Which release of libtool.m4 was used?
38001macro_version=$macro_version
38002macro_revision=$macro_revision
38003
38004# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038005AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038006
38007# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038008DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038009
38010# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038011OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038012
38013# Whether or not to build shared libraries.
38014build_libtool_libs=$enable_shared
38015
38016# Whether or not to build static libraries.
38017build_old_libs=$enable_static
38018
38019# What type of objects to build.
38020pic_mode=$pic_mode
38021
38022# Whether or not to optimize for fast installation.
38023fast_install=$enable_fast_install
38024
cristy99bd5232011-12-07 14:38:20 +000038025# The PATH separator for the build system.
38026PATH_SEPARATOR=$lt_PATH_SEPARATOR
38027
cristy73bd4a52010-10-05 11:24:23 +000038028# The host system.
38029host_alias=$host_alias
38030host=$host
38031host_os=$host_os
38032
38033# The build system.
38034build_alias=$build_alias
38035build=$build
38036build_os=$build_os
38037
38038# A BSD- or MS-compatible name lister.
38039NM=$lt_NM
38040
38041# Whether we need soft or hard links.
38042LN_S=$lt_LN_S
38043
38044# What is the maximum length of a command?
38045max_cmd_len=$max_cmd_len
38046
38047# Object file suffix (normally "o").
38048objext=$ac_objext
38049
38050# Executable file suffix (normally "").
38051exeext=$exeext
38052
38053# whether the shell understands "unset".
38054lt_unset=$lt_unset
38055
38056# turn spaces into newlines.
38057SP2NL=$lt_lt_SP2NL
38058
38059# turn newlines into spaces.
38060NL2SP=$lt_lt_NL2SP
38061
cristyda16f162011-02-19 23:52:17 +000038062# convert \$build file names to \$host format.
38063to_host_file_cmd=$lt_cv_to_host_file_cmd
38064
38065# convert \$build files to toolchain format.
38066to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38067
cristy73bd4a52010-10-05 11:24:23 +000038068# Method to check whether dependent libraries are shared objects.
38069deplibs_check_method=$lt_deplibs_check_method
38070
cristyda16f162011-02-19 23:52:17 +000038071# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038072file_magic_cmd=$lt_file_magic_cmd
38073
cristyda16f162011-02-19 23:52:17 +000038074# How to find potential files when deplibs_check_method = "file_magic".
38075file_magic_glob=$lt_file_magic_glob
38076
38077# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38078want_nocaseglob=$lt_want_nocaseglob
38079
38080# Command to associate shared and link libraries.
38081sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38082
cristy73bd4a52010-10-05 11:24:23 +000038083# The archiver.
38084AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038085
38086# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038087AR_FLAGS=$lt_AR_FLAGS
38088
cristyda16f162011-02-19 23:52:17 +000038089# How to feed a file listing to the archiver.
38090archiver_list_spec=$lt_archiver_list_spec
38091
cristy73bd4a52010-10-05 11:24:23 +000038092# A symbol stripping program.
38093STRIP=$lt_STRIP
38094
38095# Commands used to install an old-style archive.
38096RANLIB=$lt_RANLIB
38097old_postinstall_cmds=$lt_old_postinstall_cmds
38098old_postuninstall_cmds=$lt_old_postuninstall_cmds
38099
cristy0c60a692010-11-04 01:09:47 +000038100# Whether to use a lock for old archive extraction.
38101lock_old_archive_extraction=$lock_old_archive_extraction
38102
cristy73bd4a52010-10-05 11:24:23 +000038103# A C compiler.
38104LTCC=$lt_CC
38105
38106# LTCC compiler flags.
38107LTCFLAGS=$lt_CFLAGS
38108
38109# Take the output of nm and produce a listing of raw symbols and C names.
38110global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38111
38112# Transform the output of nm in a proper C declaration.
38113global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38114
38115# Transform the output of nm in a C name address pair.
38116global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38117
38118# Transform the output of nm in a C name address pair when lib prefix is needed.
38119global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38120
cristyda16f162011-02-19 23:52:17 +000038121# Specify filename containing input files for \$NM.
38122nm_file_list_spec=$lt_nm_file_list_spec
38123
38124# The root where to search for dependent libraries,and in which our libraries should be installed.
38125lt_sysroot=$lt_sysroot
38126
cristy73bd4a52010-10-05 11:24:23 +000038127# The name of the directory that contains temporary libtool files.
38128objdir=$objdir
38129
cristy73bd4a52010-10-05 11:24:23 +000038130# Used to examine libraries when file_magic_cmd begins with "file".
38131MAGIC_CMD=$MAGIC_CMD
38132
38133# Must we lock files when doing compilation?
38134need_locks=$lt_need_locks
38135
cristyda16f162011-02-19 23:52:17 +000038136# Manifest tool.
38137MANIFEST_TOOL=$lt_MANIFEST_TOOL
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38140DSYMUTIL=$lt_DSYMUTIL
38141
38142# Tool to change global to local symbols on Mac OS X.
38143NMEDIT=$lt_NMEDIT
38144
38145# Tool to manipulate fat objects and archives on Mac OS X.
38146LIPO=$lt_LIPO
38147
38148# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38149OTOOL=$lt_OTOOL
38150
38151# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38152OTOOL64=$lt_OTOOL64
38153
38154# Old archive suffix (normally "a").
38155libext=$libext
38156
38157# Shared library suffix (normally ".so").
38158shrext_cmds=$lt_shrext_cmds
38159
38160# The commands to extract the exported symbol list from a shared archive.
38161extract_expsyms_cmds=$lt_extract_expsyms_cmds
38162
38163# Variables whose values should be saved in libtool wrapper scripts and
38164# restored at link time.
38165variables_saved_for_relink=$lt_variables_saved_for_relink
38166
38167# Do we need the "lib" prefix for modules?
38168need_lib_prefix=$need_lib_prefix
38169
38170# Do we need a version for libraries?
38171need_version=$need_version
38172
38173# Library versioning type.
38174version_type=$version_type
38175
38176# Shared library runtime path variable.
38177runpath_var=$runpath_var
38178
38179# Shared library path variable.
38180shlibpath_var=$shlibpath_var
38181
38182# Is shlibpath searched before the hard-coded library search path?
38183shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38184
38185# Format of library name prefix.
38186libname_spec=$lt_libname_spec
38187
38188# List of archive names. First name is the real one, the rest are links.
38189# The last name is the one that the linker finds with -lNAME
38190library_names_spec=$lt_library_names_spec
38191
38192# The coded name of the library, if different from the real name.
38193soname_spec=$lt_soname_spec
38194
cristy0c60a692010-11-04 01:09:47 +000038195# Permission mode override for installation of shared libraries.
38196install_override_mode=$lt_install_override_mode
38197
cristy73bd4a52010-10-05 11:24:23 +000038198# Command to use after installation of a shared archive.
38199postinstall_cmds=$lt_postinstall_cmds
38200
38201# Command to use after uninstallation of a shared archive.
38202postuninstall_cmds=$lt_postuninstall_cmds
38203
38204# Commands used to finish a libtool library installation in a directory.
38205finish_cmds=$lt_finish_cmds
38206
38207# As "finish_cmds", except a single script fragment to be evaled but
38208# not shown.
38209finish_eval=$lt_finish_eval
38210
38211# Whether we should hardcode library paths into libraries.
38212hardcode_into_libs=$hardcode_into_libs
38213
38214# Compile-time system search path for libraries.
38215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38216
38217# Run-time system search path for libraries.
38218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38219
38220# Whether dlopen is supported.
38221dlopen_support=$enable_dlopen
38222
38223# Whether dlopen of programs is supported.
38224dlopen_self=$enable_dlopen_self
38225
38226# Whether dlopen of statically linked programs is supported.
38227dlopen_self_static=$enable_dlopen_self_static
38228
38229# Commands to strip libraries.
38230old_striplib=$lt_old_striplib
38231striplib=$lt_striplib
38232
38233
38234# The linker used to build libraries.
38235LD=$lt_LD
38236
cristy0c60a692010-11-04 01:09:47 +000038237# How to create reloadable object files.
38238reload_flag=$lt_reload_flag
38239reload_cmds=$lt_reload_cmds
38240
cristy73bd4a52010-10-05 11:24:23 +000038241# Commands used to build an old-style archive.
38242old_archive_cmds=$lt_old_archive_cmds
38243
38244# A language specific compiler.
38245CC=$lt_compiler
38246
38247# Is the compiler the GNU compiler?
38248with_gcc=$GCC
38249
38250# Compiler flag to turn off builtin functions.
38251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38252
cristy73bd4a52010-10-05 11:24:23 +000038253# Additional compiler flags for building library objects.
38254pic_flag=$lt_lt_prog_compiler_pic
38255
cristyda16f162011-02-19 23:52:17 +000038256# How to pass a linker flag through the compiler.
38257wl=$lt_lt_prog_compiler_wl
38258
cristy73bd4a52010-10-05 11:24:23 +000038259# Compiler flag to prevent dynamic linking.
38260link_static_flag=$lt_lt_prog_compiler_static
38261
38262# Does compiler simultaneously support -c and -o options?
38263compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38264
38265# Whether or not to add -lc for building shared libraries.
38266build_libtool_need_lc=$archive_cmds_need_lc
38267
38268# Whether or not to disallow shared libs when runtime libs are static.
38269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38270
38271# Compiler flag to allow reflexive dlopens.
38272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38273
38274# Compiler flag to generate shared objects directly from archives.
38275whole_archive_flag_spec=$lt_whole_archive_flag_spec
38276
38277# Whether the compiler copes with passing no objects directly.
38278compiler_needs_object=$lt_compiler_needs_object
38279
38280# Create an old-style archive from a shared archive.
38281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38282
38283# Create a temporary old-style archive to link instead of a shared archive.
38284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38285
38286# Commands used to build a shared archive.
38287archive_cmds=$lt_archive_cmds
38288archive_expsym_cmds=$lt_archive_expsym_cmds
38289
38290# Commands used to build a loadable module if different from building
38291# a shared archive.
38292module_cmds=$lt_module_cmds
38293module_expsym_cmds=$lt_module_expsym_cmds
38294
38295# Whether we are building with GNU ld or not.
38296with_gnu_ld=$lt_with_gnu_ld
38297
38298# Flag that allows shared libraries with undefined symbols to be built.
38299allow_undefined_flag=$lt_allow_undefined_flag
38300
38301# Flag that enforces no undefined symbols.
38302no_undefined_flag=$lt_no_undefined_flag
38303
38304# Flag to hardcode \$libdir into a binary during linking.
38305# This must work even if \$libdir does not exist
38306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38307
cristy73bd4a52010-10-05 11:24:23 +000038308# Whether we need a single "-rpath" flag with a separated argument.
38309hardcode_libdir_separator=$lt_hardcode_libdir_separator
38310
38311# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38312# DIR into the resulting binary.
38313hardcode_direct=$hardcode_direct
38314
38315# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38316# DIR into the resulting binary and the resulting library dependency is
38317# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38318# library is relocated.
38319hardcode_direct_absolute=$hardcode_direct_absolute
38320
38321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38322# into the resulting binary.
38323hardcode_minus_L=$hardcode_minus_L
38324
38325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38326# into the resulting binary.
38327hardcode_shlibpath_var=$hardcode_shlibpath_var
38328
38329# Set to "yes" if building a shared library automatically hardcodes DIR
38330# into the library and all subsequent libraries and executables linked
38331# against it.
38332hardcode_automatic=$hardcode_automatic
38333
38334# Set to yes if linker adds runtime paths of dependent libraries
38335# to runtime path list.
38336inherit_rpath=$inherit_rpath
38337
38338# Whether libtool must link a program against all its dependency libraries.
38339link_all_deplibs=$link_all_deplibs
38340
cristy73bd4a52010-10-05 11:24:23 +000038341# Set to "yes" if exported symbols are required.
38342always_export_symbols=$always_export_symbols
38343
38344# The commands to list exported symbols.
38345export_symbols_cmds=$lt_export_symbols_cmds
38346
38347# Symbols that should not be listed in the preloaded symbols.
38348exclude_expsyms=$lt_exclude_expsyms
38349
38350# Symbols that must always be exported.
38351include_expsyms=$lt_include_expsyms
38352
38353# Commands necessary for linking programs (against libraries) with templates.
38354prelink_cmds=$lt_prelink_cmds
38355
cristyda16f162011-02-19 23:52:17 +000038356# Commands necessary for finishing linking programs.
38357postlink_cmds=$lt_postlink_cmds
38358
cristy73bd4a52010-10-05 11:24:23 +000038359# Specify filename containing input files.
38360file_list_spec=$lt_file_list_spec
38361
38362# How to hardcode a shared library path into an executable.
38363hardcode_action=$hardcode_action
38364
38365# The directories searched by this compiler when creating a shared library.
38366compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38367
38368# Dependencies to place before and after the objects being linked to
38369# create a shared library.
38370predep_objects=$lt_predep_objects
38371postdep_objects=$lt_postdep_objects
38372predeps=$lt_predeps
38373postdeps=$lt_postdeps
38374
38375# The library search path used internally by the compiler when linking
38376# a shared library.
38377compiler_lib_search_path=$lt_compiler_lib_search_path
38378
38379# ### END LIBTOOL CONFIG
38380
38381_LT_EOF
38382
38383 case $host_os in
38384 aix3*)
38385 cat <<\_LT_EOF >> "$cfgfile"
38386# AIX sometimes has problems with the GCC collect2 program. For some
38387# reason, if we set the COLLECT_NAMES environment variable, the problems
38388# vanish in a puff of smoke.
38389if test "X${COLLECT_NAMES+set}" != Xset; then
38390 COLLECT_NAMES=
38391 export COLLECT_NAMES
38392fi
38393_LT_EOF
38394 ;;
38395 esac
38396
38397
38398ltmain="$ac_aux_dir/ltmain.sh"
38399
38400
38401 # We use sed instead of cat because bash on DJGPP gets confused if
38402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38403 # text mode, it properly converts lines to CR/LF. This bash problem
38404 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038405 sed '$q' "$ltmain" >> "$cfgfile" \
38406 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038407
cristyda16f162011-02-19 23:52:17 +000038408 if test x"$xsi_shell" = xyes; then
38409 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38410func_dirname ()\
38411{\
38412\ case ${1} in\
38413\ */*) func_dirname_result="${1%/*}${2}" ;;\
38414\ * ) func_dirname_result="${3}" ;;\
38415\ esac\
38416} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38417 && mv -f "$cfgfile.tmp" "$cfgfile" \
38418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38419test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038420
38421
cristyda16f162011-02-19 23:52:17 +000038422 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38423func_basename ()\
38424{\
38425\ func_basename_result="${1##*/}"\
38426} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38427 && mv -f "$cfgfile.tmp" "$cfgfile" \
38428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38429test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038430
38431
cristyda16f162011-02-19 23:52:17 +000038432 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38433func_dirname_and_basename ()\
38434{\
38435\ case ${1} in\
38436\ */*) func_dirname_result="${1%/*}${2}" ;;\
38437\ * ) func_dirname_result="${3}" ;;\
38438\ esac\
38439\ func_basename_result="${1##*/}"\
38440} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38441 && mv -f "$cfgfile.tmp" "$cfgfile" \
38442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38443test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038444
cristyda16f162011-02-19 23:52:17 +000038445
38446 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38447func_stripname ()\
38448{\
38449\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38450\ # positional parameters, so assign one to ordinary parameter first.\
38451\ func_stripname_result=${3}\
38452\ func_stripname_result=${func_stripname_result#"${1}"}\
38453\ func_stripname_result=${func_stripname_result%"${2}"}\
38454} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38455 && mv -f "$cfgfile.tmp" "$cfgfile" \
38456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38457test 0 -eq $? || _lt_function_replace_fail=:
38458
38459
38460 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38461func_split_long_opt ()\
38462{\
38463\ func_split_long_opt_name=${1%%=*}\
38464\ func_split_long_opt_arg=${1#*=}\
38465} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38466 && mv -f "$cfgfile.tmp" "$cfgfile" \
38467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38468test 0 -eq $? || _lt_function_replace_fail=:
38469
38470
38471 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38472func_split_short_opt ()\
38473{\
38474\ func_split_short_opt_arg=${1#??}\
38475\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38476} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38477 && mv -f "$cfgfile.tmp" "$cfgfile" \
38478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38479test 0 -eq $? || _lt_function_replace_fail=:
38480
38481
38482 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38483func_lo2o ()\
38484{\
38485\ case ${1} in\
38486\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38487\ *) func_lo2o_result=${1} ;;\
38488\ esac\
38489} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38490 && mv -f "$cfgfile.tmp" "$cfgfile" \
38491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38492test 0 -eq $? || _lt_function_replace_fail=:
38493
38494
38495 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38496func_xform ()\
38497{\
38498 func_xform_result=${1%.*}.lo\
38499} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38500 && mv -f "$cfgfile.tmp" "$cfgfile" \
38501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38502test 0 -eq $? || _lt_function_replace_fail=:
38503
38504
38505 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38506func_arith ()\
38507{\
38508 func_arith_result=$(( $* ))\
38509} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38510 && mv -f "$cfgfile.tmp" "$cfgfile" \
38511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38512test 0 -eq $? || _lt_function_replace_fail=:
38513
38514
38515 sed -e '/^func_len ()$/,/^} # func_len /c\
38516func_len ()\
38517{\
38518 func_len_result=${#1}\
38519} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38520 && mv -f "$cfgfile.tmp" "$cfgfile" \
38521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38522test 0 -eq $? || _lt_function_replace_fail=:
38523
38524fi
38525
38526if test x"$lt_shell_append" = xyes; then
38527 sed -e '/^func_append ()$/,/^} # func_append /c\
38528func_append ()\
38529{\
38530 eval "${1}+=\\${2}"\
38531} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38532 && mv -f "$cfgfile.tmp" "$cfgfile" \
38533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38534test 0 -eq $? || _lt_function_replace_fail=:
38535
38536
38537 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38538func_append_quoted ()\
38539{\
38540\ func_quote_for_eval "${2}"\
38541\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38542} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38543 && mv -f "$cfgfile.tmp" "$cfgfile" \
38544 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38545test 0 -eq $? || _lt_function_replace_fail=:
38546
38547
38548 # Save a `func_append' function call where possible by direct use of '+='
38549 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38550 && mv -f "$cfgfile.tmp" "$cfgfile" \
38551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38552 test 0 -eq $? || _lt_function_replace_fail=:
38553else
38554 # Save a `func_append' function call even when '+=' is not available
38555 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38556 && mv -f "$cfgfile.tmp" "$cfgfile" \
38557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38558 test 0 -eq $? || _lt_function_replace_fail=:
38559fi
38560
38561if test x"$_lt_function_replace_fail" = x":"; then
38562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38563$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38564fi
38565
38566
38567 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038568 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38569 chmod +x "$ofile"
38570
38571
38572 cat <<_LT_EOF >> "$ofile"
38573
38574# ### BEGIN LIBTOOL TAG CONFIG: CXX
38575
38576# The linker used to build libraries.
38577LD=$lt_LD_CXX
38578
cristy0c60a692010-11-04 01:09:47 +000038579# How to create reloadable object files.
38580reload_flag=$lt_reload_flag_CXX
38581reload_cmds=$lt_reload_cmds_CXX
38582
cristy73bd4a52010-10-05 11:24:23 +000038583# Commands used to build an old-style archive.
38584old_archive_cmds=$lt_old_archive_cmds_CXX
38585
38586# A language specific compiler.
38587CC=$lt_compiler_CXX
38588
38589# Is the compiler the GNU compiler?
38590with_gcc=$GCC_CXX
38591
38592# Compiler flag to turn off builtin functions.
38593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38594
cristy73bd4a52010-10-05 11:24:23 +000038595# Additional compiler flags for building library objects.
38596pic_flag=$lt_lt_prog_compiler_pic_CXX
38597
cristyda16f162011-02-19 23:52:17 +000038598# How to pass a linker flag through the compiler.
38599wl=$lt_lt_prog_compiler_wl_CXX
38600
cristy73bd4a52010-10-05 11:24:23 +000038601# Compiler flag to prevent dynamic linking.
38602link_static_flag=$lt_lt_prog_compiler_static_CXX
38603
38604# Does compiler simultaneously support -c and -o options?
38605compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38606
38607# Whether or not to add -lc for building shared libraries.
38608build_libtool_need_lc=$archive_cmds_need_lc_CXX
38609
38610# Whether or not to disallow shared libs when runtime libs are static.
38611allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38612
38613# Compiler flag to allow reflexive dlopens.
38614export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38615
38616# Compiler flag to generate shared objects directly from archives.
38617whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38618
38619# Whether the compiler copes with passing no objects directly.
38620compiler_needs_object=$lt_compiler_needs_object_CXX
38621
38622# Create an old-style archive from a shared archive.
38623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38624
38625# Create a temporary old-style archive to link instead of a shared archive.
38626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38627
38628# Commands used to build a shared archive.
38629archive_cmds=$lt_archive_cmds_CXX
38630archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38631
38632# Commands used to build a loadable module if different from building
38633# a shared archive.
38634module_cmds=$lt_module_cmds_CXX
38635module_expsym_cmds=$lt_module_expsym_cmds_CXX
38636
38637# Whether we are building with GNU ld or not.
38638with_gnu_ld=$lt_with_gnu_ld_CXX
38639
38640# Flag that allows shared libraries with undefined symbols to be built.
38641allow_undefined_flag=$lt_allow_undefined_flag_CXX
38642
38643# Flag that enforces no undefined symbols.
38644no_undefined_flag=$lt_no_undefined_flag_CXX
38645
38646# Flag to hardcode \$libdir into a binary during linking.
38647# This must work even if \$libdir does not exist
38648hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38649
cristy73bd4a52010-10-05 11:24:23 +000038650# Whether we need a single "-rpath" flag with a separated argument.
38651hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38652
38653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38654# DIR into the resulting binary.
38655hardcode_direct=$hardcode_direct_CXX
38656
38657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38658# DIR into the resulting binary and the resulting library dependency is
38659# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38660# library is relocated.
38661hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38662
38663# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38664# into the resulting binary.
38665hardcode_minus_L=$hardcode_minus_L_CXX
38666
38667# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38668# into the resulting binary.
38669hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38670
38671# Set to "yes" if building a shared library automatically hardcodes DIR
38672# into the library and all subsequent libraries and executables linked
38673# against it.
38674hardcode_automatic=$hardcode_automatic_CXX
38675
38676# Set to yes if linker adds runtime paths of dependent libraries
38677# to runtime path list.
38678inherit_rpath=$inherit_rpath_CXX
38679
38680# Whether libtool must link a program against all its dependency libraries.
38681link_all_deplibs=$link_all_deplibs_CXX
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# Set to "yes" if exported symbols are required.
38684always_export_symbols=$always_export_symbols_CXX
38685
38686# The commands to list exported symbols.
38687export_symbols_cmds=$lt_export_symbols_cmds_CXX
38688
38689# Symbols that should not be listed in the preloaded symbols.
38690exclude_expsyms=$lt_exclude_expsyms_CXX
38691
38692# Symbols that must always be exported.
38693include_expsyms=$lt_include_expsyms_CXX
38694
38695# Commands necessary for linking programs (against libraries) with templates.
38696prelink_cmds=$lt_prelink_cmds_CXX
38697
cristyda16f162011-02-19 23:52:17 +000038698# Commands necessary for finishing linking programs.
38699postlink_cmds=$lt_postlink_cmds_CXX
38700
cristy73bd4a52010-10-05 11:24:23 +000038701# Specify filename containing input files.
38702file_list_spec=$lt_file_list_spec_CXX
38703
38704# How to hardcode a shared library path into an executable.
38705hardcode_action=$hardcode_action_CXX
38706
38707# The directories searched by this compiler when creating a shared library.
38708compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38709
38710# Dependencies to place before and after the objects being linked to
38711# create a shared library.
38712predep_objects=$lt_predep_objects_CXX
38713postdep_objects=$lt_postdep_objects_CXX
38714predeps=$lt_predeps_CXX
38715postdeps=$lt_postdeps_CXX
38716
38717# The library search path used internally by the compiler when linking
38718# a shared library.
38719compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38720
38721# ### END LIBTOOL TAG CONFIG: CXX
38722_LT_EOF
38723
38724 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038725 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038726 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038727 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038728 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38729 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38730
38731 esac
38732done # for ac_tag
38733
38734
cristy8b350f62009-11-15 23:12:43 +000038735as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038736_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038737ac_clean_files=$ac_clean_files_save
38738
38739test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038740 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038741
38742
38743# configure is writing to config.log, and then calls config.status.
38744# config.status does its own redirection, appending to config.log.
38745# Unfortunately, on DOS this fails, as config.log is still kept open
38746# by configure, so config.status won't be able to write to it; its
38747# output is simply discarded. So we exec the FD to /dev/null,
38748# effectively closing config.log, so it can be properly (re)opened and
38749# appended to by config.status. When coming back to configure, we
38750# need to make the FD available again.
38751if test "$no_create" != yes; then
38752 ac_cs_success=:
38753 ac_config_status_args=
38754 test "$silent" = yes &&
38755 ac_config_status_args="$ac_config_status_args --quiet"
38756 exec 5>/dev/null
38757 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38758 exec 5>>config.log
38759 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38760 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038761 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038762fi
38763if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038765$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38766fi
38767
38768
cristy9af1cbf2014-12-28 22:03:09 +000038769# ==============================================================================
38770# ImageMagick Configuration
38771# ==============================================================================
38772{ $as_echo "$as_me:${as_lineno-$LINENO}:
38773==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038774ImageMagick is configured as follows. Please verify that this configuration
38775matches your expectations.
38776
cristy9af1cbf2014-12-28 22:03:09 +000038777 Host system type: $host
38778 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038779
38780 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038781 ------------------------------------------------------------------------------
38782 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38783 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38784 Module support --with-modules=$build_modules $build_modules
38785 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38786 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38787 High Dynamic Range Imagery
38788 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038789
cristy9af1cbf2014-12-28 22:03:09 +000038790 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038791
cristy9af1cbf2014-12-28 22:03:09 +000038792 Delegate Library Configuration:
38793 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38794 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38795 DJVU --with-djvu=$with_djvu $have_djvu
38796 DPS --with-dps=$with_dps $have_dps
38797 FFTW --with-fftw=$with_fftw $have_fftw
38798 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038799 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038800 FreeType --with-freetype=$with_freetype $have_freetype
38801 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38802 Graphviz --with-gvc=$with_gvc $have_gvc
38803 JBIG --with-jbig=$with_jbig $have_jbig
38804 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38805 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristyd6ac47f2015-06-06 13:46:55 +000038806 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000038807 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
38808 LQR --with-lqr=$with_lqr $have_lqr
38809 LTDL --with-ltdl=$with_ltdl $have_ltdl
38810 LZMA --with-lzma=$with_lzma $have_lzma
38811 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38812 OpenEXR --with-openexr=$with_openexr $have_openexr
38813 PANGO --with-pango=$with_pango $have_pango
38814 PERL --with-perl=$with_perl $have_perl
38815 PNG --with-png=$with_png $have_png
38816 RSVG --with-rsvg=$with_rsvg $have_rsvg
38817 TIFF --with-tiff=$with_tiff $have_tiff
38818 WEBP --with-webp=$with_webp $have_webp
38819 WMF --with-wmf=$with_wmf $have_wmf
38820 X11 --with-x=$with_x $have_x
38821 XML --with-xml=$with_xml $have_xml
38822 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038823
cristy9af1cbf2014-12-28 22:03:09 +000038824 Delegate Program Configuration:
38825 GhostPCL None $PCLDelegate ($PCLVersion)
38826 GhostXPS None $XPSDelegate ($XPSVersion)
38827 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038828
cristy9af1cbf2014-12-28 22:03:09 +000038829 Font Configuration:
38830 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38831 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38832 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38833 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038834
cristy9af1cbf2014-12-28 22:03:09 +000038835 X11 Configuration:
38836 X_CFLAGS = $X_CFLAGS
38837 X_PRE_LIBS = $X_PRE_LIBS
38838 X_LIBS = $X_LIBS
38839 X_EXTRA_LIBS = $X_EXTRA_LIBS
38840
38841 Options used to compile and link:
38842 PREFIX = $PREFIX_DIR
38843 EXEC-PREFIX = $EXEC_PREFIX_DIR
38844 VERSION = $PACKAGE_VERSION
38845 CC = $CC
38846 CFLAGS = $CFLAGS
38847 CPPFLAGS = $CPPFLAGS
38848 PCFLAGS = $PCFLAGS
38849 DEFS = $DEFS
38850 LDFLAGS = $LDFLAGS
38851 LIBS = $LIBS
38852 CXX = $CXX
38853 CXXFLAGS = $CXXFLAGS
38854 FEATURES = $MAGICK_FEATURES
38855 DELEGATES = $MAGICK_DELEGATES
38856==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038857" >&5
cristy9af1cbf2014-12-28 22:03:09 +000038858$as_echo "$as_me:
38859==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000038860ImageMagick is configured as follows. Please verify that this configuration
38861matches your expectations.
38862
cristy9af1cbf2014-12-28 22:03:09 +000038863 Host system type: $host
38864 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000038865
38866 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000038867 ------------------------------------------------------------------------------
38868 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38869 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38870 Module support --with-modules=$build_modules $build_modules
38871 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38872 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38873 High Dynamic Range Imagery
38874 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000038875
cristy9af1cbf2014-12-28 22:03:09 +000038876 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000038877
cristy9af1cbf2014-12-28 22:03:09 +000038878 Delegate Library Configuration:
38879 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38880 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38881 DJVU --with-djvu=$with_djvu $have_djvu
38882 DPS --with-dps=$with_dps $have_dps
38883 FFTW --with-fftw=$with_fftw $have_fftw
38884 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000038885 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000038886 FreeType --with-freetype=$with_freetype $have_freetype
38887 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38888 Graphviz --with-gvc=$with_gvc $have_gvc
38889 JBIG --with-jbig=$with_jbig $have_jbig
38890 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38891 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristyd6ac47f2015-06-06 13:46:55 +000038892 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000038893 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
38894 LQR --with-lqr=$with_lqr $have_lqr
38895 LTDL --with-ltdl=$with_ltdl $have_ltdl
38896 LZMA --with-lzma=$with_lzma $have_lzma
38897 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38898 OpenEXR --with-openexr=$with_openexr $have_openexr
38899 PANGO --with-pango=$with_pango $have_pango
38900 PERL --with-perl=$with_perl $have_perl
38901 PNG --with-png=$with_png $have_png
38902 RSVG --with-rsvg=$with_rsvg $have_rsvg
38903 TIFF --with-tiff=$with_tiff $have_tiff
38904 WEBP --with-webp=$with_webp $have_webp
38905 WMF --with-wmf=$with_wmf $have_wmf
38906 X11 --with-x=$with_x $have_x
38907 XML --with-xml=$with_xml $have_xml
38908 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000038909
cristy9af1cbf2014-12-28 22:03:09 +000038910 Delegate Program Configuration:
38911 GhostPCL None $PCLDelegate ($PCLVersion)
38912 GhostXPS None $XPSDelegate ($XPSVersion)
38913 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000038914
cristy9af1cbf2014-12-28 22:03:09 +000038915 Font Configuration:
38916 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
38917 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38918 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38919 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038920
cristy9af1cbf2014-12-28 22:03:09 +000038921 X11 Configuration:
38922 X_CFLAGS = $X_CFLAGS
38923 X_PRE_LIBS = $X_PRE_LIBS
38924 X_LIBS = $X_LIBS
38925 X_EXTRA_LIBS = $X_EXTRA_LIBS
38926
38927 Options used to compile and link:
38928 PREFIX = $PREFIX_DIR
38929 EXEC-PREFIX = $EXEC_PREFIX_DIR
38930 VERSION = $PACKAGE_VERSION
38931 CC = $CC
38932 CFLAGS = $CFLAGS
38933 CPPFLAGS = $CPPFLAGS
38934 PCFLAGS = $PCFLAGS
38935 DEFS = $DEFS
38936 LDFLAGS = $LDFLAGS
38937 LIBS = $LIBS
38938 CXX = $CXX
38939 CXXFLAGS = $CXXFLAGS
38940 FEATURES = $MAGICK_FEATURES
38941 DELEGATES = $MAGICK_DELEGATES
38942==============================================================================
38943" >&6;}