blob: 1ff023e74e913d917b264100feeb6ff7027a0caa [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000795MUPDF_LIBS
796MUPDF_DELEGATE_FALSE
797MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
806LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807LCMS_DELEGATE_FALSE
808LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JP2_DELEGATE_FALSE
811JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JPEG_DELEGATE_FALSE
814JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JBIG_DELEGATE_FALSE
817JBIG_DELEGATE_TRUE
818GVC_DELEGATE_FALSE
819GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820GVC_LIBS
821GVC_CFLAGS
822GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823GS_DELEGATE_FALSE
824GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000825FREETYPE_DELEGATE_FALSE
826FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000827FREETYPE_LIBS
828FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000829FONTCONFIG_DELEGATE_FALSE
830FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000831FONTCONFIG_LIBS
832FONTCONFIG_CFLAGS
833FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FPX_DELEGATE_FALSE
835FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FFTW_DELEGATE_FALSE
838FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DJVU_DELEGATE_FALSE
841DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DPS_DELEGATE_FALSE
844DPS_DELEGATE_TRUE
845AUTOTRACE_DELEGATE_FALSE
846AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847AUTOTRACE_LIBS
848AUTOTRACE_CFLAGS
849LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000850WITH_LTDL_FALSE
851WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853ZLIB_DELEGATE_FALSE
854ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855XEXT_LIBS
856X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857X11_DELEGATE_FALSE
858X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859X_EXTRA_LIBS
860X_LIBS
861X_PRE_LIBS
862X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000863XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000864BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000865BZLIB_DELEGATE_FALSE
866BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000867CCMALLOCDelegate
868UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869HasUMEM_FALSE
870HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872WITH_MAGICK_PLUS_PLUS_FALSE
873WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000875MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000876POW_LIB
877LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT32_T
890UINT16_T
891INT16_T
892UINT8_T
893INT8_T
894LIBRARY_EXTRA_CPPFLAGS
895MODULE_EXTRA_CPPFLAGS
896LIBSTDCLDFLAGS
897PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000898MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000899MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000900QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000901LEGACY_SUPPORT_FALSE
902LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000903MAINT
904MAINTAINER_MODE_FALSE
905MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000906MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000907WITH_MODULES_FALSE
908WITH_MODULES_TRUE
909WITH_SHARED_LIBS_FALSE
910WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000911LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000912CXXCPP
913OTOOL64
914OTOOL
915LIPO
916NMEDIT
917DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000918MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000919RANLIB
cristyda16f162011-02-19 23:52:17 +0000920ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000921AR
922NM
923ac_ct_DUMPBIN
924DUMPBIN
925LIBTOOL
926OBJDUMP
927DLLTOOL
928AS
cristy3ed852e2009-09-05 21:47:34 +0000929LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000930CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000931CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000932OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000933THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000934PTHREAD_CFLAGS
935PTHREAD_LIBS
936PTHREAD_CC
937ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000938pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000939SHAREARCH_DIR
940INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000941WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000942USING_CL_FALSE
943USING_CL_TRUE
944CYGWIN_BUILD_FALSE
945CYGWIN_BUILD_TRUE
946WIN32_NATIVE_BUILD_FALSE
947WIN32_NATIVE_BUILD_TRUE
948WINGDI32_DELEGATE_FALSE
949WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000950GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000951HAVE_LD_VERSION_SCRIPT_FALSE
952HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000953PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000954PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000955LN_S
cristy3ed852e2009-09-05 21:47:34 +0000956LD
cristy73bd4a52010-10-05 11:24:23 +0000957FGREP
958SED
959am__fastdepCXX_FALSE
960am__fastdepCXX_TRUE
961CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000962ac_ct_CXX
963CXXFLAGS
964CXX
cristya0b81c32010-01-22 02:54:33 +0000965EGREP
966GREP
967CPP
cristy73bd4a52010-10-05 11:24:23 +0000968am__fastdepCC_FALSE
969am__fastdepCC_TRUE
970CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000971am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000972AMDEPBACKSLASH
973AMDEP_FALSE
974AMDEP_TRUE
975am__quote
976am__include
977DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000978OBJEXT
979EXEEXT
980ac_ct_CC
981CPPFLAGS
982LDFLAGS
983CFLAGS
984CC
985DIRSEP
986MAGICK_FILTER_MODULE_PATH
987MAGICK_CONFIGURE_BUILD_PATH
988MAGICK_CONFIGURE_SRC_PATH
989MAGICK_CODER_MODULE_PATH
990MAN_DIR
991INFO_DIR
992PERSISTINCLUDE_DIR
993INCLUDE_DIR
994LIB_DIR
995LOCALSTATE_DIR
996SHAREDSTATE_DIR
997SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000998DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000999DATA_DIR
1000LIBEXEC_DIR
1001SBIN_DIR
1002BIN_DIR
1003EXEC_PREFIX_DIR
1004PREFIX_DIR
1005CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001006MAGICKPP_LIB_VERSION_TEXT
1007MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001008MAGICK_LIB_VERSION_NUMBER
1009MAGICK_LIB_VERSION_TEXT
1010MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001011AM_BACKSLASH
1012AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001013AM_DEFAULT_V
1014AM_V
cristy73bd4a52010-10-05 11:24:23 +00001015am__untar
1016am__tar
1017AMTAR
1018am__leading_dot
1019SET_MAKE
1020AWK
1021mkdir_p
1022MKDIR_P
1023INSTALL_STRIP_PROGRAM
1024STRIP
1025install_sh
1026MAKEINFO
1027AUTOHEADER
1028AUTOMAKE
1029AUTOCONF
1030ACLOCAL
1031VERSION
1032PACKAGE
1033CYGPATH_W
1034am__isrc
1035INSTALL_DATA
1036INSTALL_SCRIPT
1037INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001038PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001039PACKAGE_RELEASE_DATE
1040PACKAGE_LIB_VERSION_NUMBER
1041PACKAGE_LIB_VERSION
1042PACKAGE_CHANGE_DATE
1043PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001044PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001045MAGICKPP_LIBRARY_VERSION_INFO
1046MAGICKPP_LIBRARY_CURRENT_MIN
1047MAGICKPP_LIBRARY_AGE
1048MAGICKPP_LIBRARY_REVISION
1049MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001055MAGICK_SVN_REVISION
1056MAGICK_VERSION
1057MAGICK_PATCHLEVEL_VERSION
1058MAGICK_MICRO_VERSION
1059MAGICK_MINOR_VERSION
1060MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001061MAGICK_TARGET_OS
1062MAGICK_TARGET_VENDOR
1063MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001064target_os
1065target_vendor
1066target_cpu
1067target
1068host_os
1069host_vendor
1070host_cpu
1071host
1072build_os
1073build_vendor
1074build_cpu
1075build
1076CONFIGURE_ARGS
1077DISTCHECK_CONFIG_FLAGS
1078target_alias
1079host_alias
1080build_alias
1081LIBS
1082ECHO_T
1083ECHO_N
1084ECHO_C
1085DEFS
1086mandir
1087localedir
1088libdir
1089psdir
1090pdfdir
1091dvidir
1092htmldir
1093infodir
1094docdir
1095oldincludedir
1096includedir
1097localstatedir
1098sharedstatedir
1099sysconfdir
1100datadir
1101datarootdir
1102libexecdir
1103sbindir
1104bindir
1105program_transform_name
1106prefix
1107exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001108PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001109PACKAGE_BUGREPORT
1110PACKAGE_STRING
1111PACKAGE_VERSION
1112PACKAGE_TARNAME
1113PACKAGE_NAME
1114PATH_SEPARATOR
1115SHELL'
1116ac_subst_files=''
1117ac_user_opts='
1118enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001119enable_silent_rules
1120enable_dependency_tracking
1121with_gnu_ld
1122with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001123with_gcc_arch
cristyd95b7a52013-10-23 13:12:53 +00001124enable_portable_binary
cristy9b86f202012-11-28 21:55:35 +00001125enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001126enable_bounds_checking
1127enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001128with_includearch_dir
1129with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001130with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001131with_threads
1132enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001133enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001134enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001135enable_shared
1136enable_static
1137with_pic
1138enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001139with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001140enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001141with_modules
1142enable_delegate_build
1143enable_deprecated
1144enable_installed
1145enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001146enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001147enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001148enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001149enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001150enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001151enable_ccmalloc
1152enable_efence
1153enable_prof
1154enable_gprof
1155enable_gcov
1156with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001157enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001158with_quantum_depth
1159with_cache
1160with_frozenpaths
1161with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001162with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001163with_perl
1164with_perl_options
1165with_umem
1166with_libstdc
1167with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001168with_x
cristy3ed852e2009-09-05 21:47:34 +00001169with_zlib
1170with_autotrace
1171with_dps
1172with_djvu
cristy430a7312010-01-21 20:44:04 +00001173with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001174with_fftw
1175with_fpx
1176with_fontconfig
1177with_freetype
1178with_gslib
1179with_fontpath
1180with_gs_font_dir
1181with_gvc
1182with_jbig
1183with_jpeg
1184with_jp2
1185with_lcms
cristy71203402010-06-18 13:12:03 +00001186with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001187with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001188with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001189with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001190with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001191with_pango
cristy3ed852e2009-09-05 21:47:34 +00001192with_png
1193with_rsvg
1194with_tiff
cristyb1860752011-03-14 00:27:46 +00001195with_webp
cristy3ed852e2009-09-05 21:47:34 +00001196with_windows_font_dir
1197with_wmf
1198with_xml
1199'
1200 ac_precious_vars='build_alias
1201host_alias
1202target_alias
1203CC
1204CFLAGS
1205LDFLAGS
1206LIBS
1207CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001208CPP
cristy3ed852e2009-09-05 21:47:34 +00001209CXX
1210CXXFLAGS
1211CCC
cristy73bd4a52010-10-05 11:24:23 +00001212PKG_CONFIG
1213CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001214XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001215AUTOTRACE_CFLAGS
1216AUTOTRACE_LIBS
1217FONTCONFIG_CFLAGS
1218FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001219FREETYPE_CFLAGS
1220FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221GVC_CFLAGS
1222GVC_LIBS
1223LQR_CFLAGS
1224LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001225LZMA_CFLAGS
1226LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001227OPENEXR_CFLAGS
1228OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001229PANGO_CFLAGS
1230PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001231RSVG_CFLAGS
1232RSVG_LIBS
1233CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001234CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001235
1236
1237# Initialize some variables set by options.
1238ac_init_help=
1239ac_init_version=false
1240ac_unrecognized_opts=
1241ac_unrecognized_sep=
1242# The variables have the same names as the options, with
1243# dashes changed to underlines.
1244cache_file=/dev/null
1245exec_prefix=NONE
1246no_create=
1247no_recursion=
1248prefix=NONE
1249program_prefix=NONE
1250program_suffix=NONE
1251program_transform_name=s,x,x,
1252silent=
1253site=
1254srcdir=
1255verbose=
1256x_includes=NONE
1257x_libraries=NONE
1258
1259# Installation directory options.
1260# These are left unexpanded so users can "make install exec_prefix=/foo"
1261# and all the variables that are supposed to be based on exec_prefix
1262# by default will actually change.
1263# Use braces instead of parens because sh, perl, etc. also accept them.
1264# (The list follows the same order as the GNU Coding Standards.)
1265bindir='${exec_prefix}/bin'
1266sbindir='${exec_prefix}/sbin'
1267libexecdir='${exec_prefix}/libexec'
1268datarootdir='${prefix}/share'
1269datadir='${datarootdir}'
1270sysconfdir='${prefix}/etc'
1271sharedstatedir='${prefix}/com'
1272localstatedir='${prefix}/var'
1273includedir='${prefix}/include'
1274oldincludedir='/usr/include'
1275docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1276infodir='${datarootdir}/info'
1277htmldir='${docdir}'
1278dvidir='${docdir}'
1279pdfdir='${docdir}'
1280psdir='${docdir}'
1281libdir='${exec_prefix}/lib'
1282localedir='${datarootdir}/locale'
1283mandir='${datarootdir}/man'
1284
1285ac_prev=
1286ac_dashdash=
1287for ac_option
1288do
1289 # If the previous option needs an argument, assign it.
1290 if test -n "$ac_prev"; then
1291 eval $ac_prev=\$ac_option
1292 ac_prev=
1293 continue
1294 fi
1295
1296 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001297 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1298 *=) ac_optarg= ;;
1299 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001300 esac
1301
1302 # Accept the important Cygnus configure options, so we can diagnose typos.
1303
1304 case $ac_dashdash$ac_option in
1305 --)
1306 ac_dashdash=yes ;;
1307
1308 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1309 ac_prev=bindir ;;
1310 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1311 bindir=$ac_optarg ;;
1312
1313 -build | --build | --buil | --bui | --bu)
1314 ac_prev=build_alias ;;
1315 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1316 build_alias=$ac_optarg ;;
1317
1318 -cache-file | --cache-file | --cache-fil | --cache-fi \
1319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1320 ac_prev=cache_file ;;
1321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1323 cache_file=$ac_optarg ;;
1324
1325 --config-cache | -C)
1326 cache_file=config.cache ;;
1327
1328 -datadir | --datadir | --datadi | --datad)
1329 ac_prev=datadir ;;
1330 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1331 datadir=$ac_optarg ;;
1332
1333 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1334 | --dataroo | --dataro | --datar)
1335 ac_prev=datarootdir ;;
1336 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1337 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1338 datarootdir=$ac_optarg ;;
1339
1340 -disable-* | --disable-*)
1341 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001344 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"enable_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval enable_$ac_useropt=no ;;
1355
1356 -docdir | --docdir | --docdi | --doc | --do)
1357 ac_prev=docdir ;;
1358 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1359 docdir=$ac_optarg ;;
1360
1361 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1362 ac_prev=dvidir ;;
1363 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1364 dvidir=$ac_optarg ;;
1365
1366 -enable-* | --enable-*)
1367 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001370 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001371 ac_useropt_orig=$ac_useropt
1372 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1373 case $ac_user_opts in
1374 *"
1375"enable_$ac_useropt"
1376"*) ;;
1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1378 ac_unrecognized_sep=', ';;
1379 esac
1380 eval enable_$ac_useropt=\$ac_optarg ;;
1381
1382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1384 | --exec | --exe | --ex)
1385 ac_prev=exec_prefix ;;
1386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1388 | --exec=* | --exe=* | --ex=*)
1389 exec_prefix=$ac_optarg ;;
1390
1391 -gas | --gas | --ga | --g)
1392 # Obsolete; use --with-gas.
1393 with_gas=yes ;;
1394
1395 -help | --help | --hel | --he | -h)
1396 ac_init_help=long ;;
1397 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1398 ac_init_help=recursive ;;
1399 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1400 ac_init_help=short ;;
1401
1402 -host | --host | --hos | --ho)
1403 ac_prev=host_alias ;;
1404 -host=* | --host=* | --hos=* | --ho=*)
1405 host_alias=$ac_optarg ;;
1406
1407 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1408 ac_prev=htmldir ;;
1409 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1410 | --ht=*)
1411 htmldir=$ac_optarg ;;
1412
1413 -includedir | --includedir | --includedi | --included | --include \
1414 | --includ | --inclu | --incl | --inc)
1415 ac_prev=includedir ;;
1416 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1417 | --includ=* | --inclu=* | --incl=* | --inc=*)
1418 includedir=$ac_optarg ;;
1419
1420 -infodir | --infodir | --infodi | --infod | --info | --inf)
1421 ac_prev=infodir ;;
1422 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1423 infodir=$ac_optarg ;;
1424
1425 -libdir | --libdir | --libdi | --libd)
1426 ac_prev=libdir ;;
1427 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1428 libdir=$ac_optarg ;;
1429
1430 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1431 | --libexe | --libex | --libe)
1432 ac_prev=libexecdir ;;
1433 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1434 | --libexe=* | --libex=* | --libe=*)
1435 libexecdir=$ac_optarg ;;
1436
1437 -localedir | --localedir | --localedi | --localed | --locale)
1438 ac_prev=localedir ;;
1439 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1440 localedir=$ac_optarg ;;
1441
1442 -localstatedir | --localstatedir | --localstatedi | --localstated \
1443 | --localstate | --localstat | --localsta | --localst | --locals)
1444 ac_prev=localstatedir ;;
1445 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1446 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1447 localstatedir=$ac_optarg ;;
1448
1449 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1450 ac_prev=mandir ;;
1451 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1452 mandir=$ac_optarg ;;
1453
1454 -nfp | --nfp | --nf)
1455 # Obsolete; use --without-fp.
1456 with_fp=no ;;
1457
1458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1459 | --no-cr | --no-c | -n)
1460 no_create=yes ;;
1461
1462 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1463 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1464 no_recursion=yes ;;
1465
1466 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1467 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1468 | --oldin | --oldi | --old | --ol | --o)
1469 ac_prev=oldincludedir ;;
1470 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1471 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1472 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1473 oldincludedir=$ac_optarg ;;
1474
1475 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1476 ac_prev=prefix ;;
1477 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1478 prefix=$ac_optarg ;;
1479
1480 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1481 | --program-pre | --program-pr | --program-p)
1482 ac_prev=program_prefix ;;
1483 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1484 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1485 program_prefix=$ac_optarg ;;
1486
1487 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1488 | --program-suf | --program-su | --program-s)
1489 ac_prev=program_suffix ;;
1490 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1491 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1492 program_suffix=$ac_optarg ;;
1493
1494 -program-transform-name | --program-transform-name \
1495 | --program-transform-nam | --program-transform-na \
1496 | --program-transform-n | --program-transform- \
1497 | --program-transform | --program-transfor \
1498 | --program-transfo | --program-transf \
1499 | --program-trans | --program-tran \
1500 | --progr-tra | --program-tr | --program-t)
1501 ac_prev=program_transform_name ;;
1502 -program-transform-name=* | --program-transform-name=* \
1503 | --program-transform-nam=* | --program-transform-na=* \
1504 | --program-transform-n=* | --program-transform-=* \
1505 | --program-transform=* | --program-transfor=* \
1506 | --program-transfo=* | --program-transf=* \
1507 | --program-trans=* | --program-tran=* \
1508 | --progr-tra=* | --program-tr=* | --program-t=*)
1509 program_transform_name=$ac_optarg ;;
1510
1511 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1512 ac_prev=pdfdir ;;
1513 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1514 pdfdir=$ac_optarg ;;
1515
1516 -psdir | --psdir | --psdi | --psd | --ps)
1517 ac_prev=psdir ;;
1518 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1519 psdir=$ac_optarg ;;
1520
1521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1522 | -silent | --silent | --silen | --sile | --sil)
1523 silent=yes ;;
1524
1525 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1526 ac_prev=sbindir ;;
1527 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1528 | --sbi=* | --sb=*)
1529 sbindir=$ac_optarg ;;
1530
1531 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1532 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1533 | --sharedst | --shareds | --shared | --share | --shar \
1534 | --sha | --sh)
1535 ac_prev=sharedstatedir ;;
1536 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1537 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1538 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1539 | --sha=* | --sh=*)
1540 sharedstatedir=$ac_optarg ;;
1541
1542 -site | --site | --sit)
1543 ac_prev=site ;;
1544 -site=* | --site=* | --sit=*)
1545 site=$ac_optarg ;;
1546
1547 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1548 ac_prev=srcdir ;;
1549 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1550 srcdir=$ac_optarg ;;
1551
1552 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1553 | --syscon | --sysco | --sysc | --sys | --sy)
1554 ac_prev=sysconfdir ;;
1555 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1556 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1557 sysconfdir=$ac_optarg ;;
1558
1559 -target | --target | --targe | --targ | --tar | --ta | --t)
1560 ac_prev=target_alias ;;
1561 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1562 target_alias=$ac_optarg ;;
1563
1564 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1565 verbose=yes ;;
1566
1567 -version | --version | --versio | --versi | --vers | -V)
1568 ac_init_version=: ;;
1569
1570 -with-* | --with-*)
1571 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1572 # Reject names that are not valid shell variable names.
1573 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001574 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001575 ac_useropt_orig=$ac_useropt
1576 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1577 case $ac_user_opts in
1578 *"
1579"with_$ac_useropt"
1580"*) ;;
1581 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1582 ac_unrecognized_sep=', ';;
1583 esac
1584 eval with_$ac_useropt=\$ac_optarg ;;
1585
1586 -without-* | --without-*)
1587 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1588 # Reject names that are not valid shell variable names.
1589 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001591 ac_useropt_orig=$ac_useropt
1592 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1593 case $ac_user_opts in
1594 *"
1595"with_$ac_useropt"
1596"*) ;;
1597 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1598 ac_unrecognized_sep=', ';;
1599 esac
1600 eval with_$ac_useropt=no ;;
1601
1602 --x)
1603 # Obsolete; use --with-x.
1604 with_x=yes ;;
1605
1606 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1607 | --x-incl | --x-inc | --x-in | --x-i)
1608 ac_prev=x_includes ;;
1609 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1610 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1611 x_includes=$ac_optarg ;;
1612
1613 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1614 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1615 ac_prev=x_libraries ;;
1616 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1617 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1618 x_libraries=$ac_optarg ;;
1619
cristy98dddb52010-11-04 00:30:15 +00001620 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1621Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001622 ;;
1623
1624 *=*)
1625 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1626 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001627 case $ac_envvar in #(
1628 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001629 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001630 esac
cristy3ed852e2009-09-05 21:47:34 +00001631 eval $ac_envvar=\$ac_optarg
1632 export $ac_envvar ;;
1633
1634 *)
1635 # FIXME: should be removed in autoconf 3.0.
1636 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1637 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1638 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001639 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001640 ;;
1641
1642 esac
1643done
1644
1645if test -n "$ac_prev"; then
1646 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001647 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001648fi
1649
1650if test -n "$ac_unrecognized_opts"; then
1651 case $enable_option_checking in
1652 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001653 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001654 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1655 esac
1656fi
1657
1658# Check all directory arguments for consistency.
1659for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1660 datadir sysconfdir sharedstatedir localstatedir includedir \
1661 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1662 libdir localedir mandir
1663do
1664 eval ac_val=\$$ac_var
1665 # Remove trailing slashes.
1666 case $ac_val in
1667 */ )
1668 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1669 eval $ac_var=\$ac_val;;
1670 esac
1671 # Be sure to have absolute directory names.
1672 case $ac_val in
1673 [\\/$]* | ?:[\\/]* ) continue;;
1674 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1675 esac
cristy98dddb52010-11-04 00:30:15 +00001676 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001677done
1678
1679# There might be people who depend on the old broken behavior: `$host'
1680# used to hold the argument of --host etc.
1681# FIXME: To remove some day.
1682build=$build_alias
1683host=$host_alias
1684target=$target_alias
1685
1686# FIXME: To remove some day.
1687if test "x$host_alias" != x; then
1688 if test "x$build_alias" = x; then
1689 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001690 elif test "x$build_alias" != "x$host_alias"; then
1691 cross_compiling=yes
1692 fi
1693fi
1694
1695ac_tool_prefix=
1696test -n "$host_alias" && ac_tool_prefix=$host_alias-
1697
1698test "$silent" = yes && exec 6>/dev/null
1699
1700
1701ac_pwd=`pwd` && test -n "$ac_pwd" &&
1702ac_ls_di=`ls -di .` &&
1703ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001704 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001705test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001706 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001707
1708
1709# Find the source files, if location was not specified.
1710if test -z "$srcdir"; then
1711 ac_srcdir_defaulted=yes
1712 # Try the directory containing this script, then the parent directory.
1713 ac_confdir=`$as_dirname -- "$as_myself" ||
1714$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1715 X"$as_myself" : 'X\(//\)[^/]' \| \
1716 X"$as_myself" : 'X\(//\)$' \| \
1717 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1718$as_echo X"$as_myself" |
1719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1720 s//\1/
1721 q
1722 }
1723 /^X\(\/\/\)[^/].*/{
1724 s//\1/
1725 q
1726 }
1727 /^X\(\/\/\)$/{
1728 s//\1/
1729 q
1730 }
1731 /^X\(\/\).*/{
1732 s//\1/
1733 q
1734 }
1735 s/.*/./; q'`
1736 srcdir=$ac_confdir
1737 if test ! -r "$srcdir/$ac_unique_file"; then
1738 srcdir=..
1739 fi
1740else
1741 ac_srcdir_defaulted=no
1742fi
1743if test ! -r "$srcdir/$ac_unique_file"; then
1744 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001745 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001746fi
1747ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1748ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001749 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001750 pwd)`
1751# When building in place, set srcdir=.
1752if test "$ac_abs_confdir" = "$ac_pwd"; then
1753 srcdir=.
1754fi
1755# Remove unnecessary trailing slashes from srcdir.
1756# Double slashes in file names in object file debugging info
1757# mess up M-x gdb in Emacs.
1758case $srcdir in
1759*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1760esac
1761for ac_var in $ac_precious_vars; do
1762 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1763 eval ac_env_${ac_var}_value=\$${ac_var}
1764 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1765 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1766done
1767
1768#
1769# Report the --help message.
1770#
1771if test "$ac_init_help" = "long"; then
1772 # Omit some internal or obsolete options to make the list less imposing.
1773 # This message is too long to be a string in the A/UX 3.1 sh.
1774 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001775\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001776
1777Usage: $0 [OPTION]... [VAR=VALUE]...
1778
1779To assign environment variables (e.g., CC, CFLAGS...), specify them as
1780VAR=VALUE. See below for descriptions of some of the useful variables.
1781
1782Defaults for the options are specified in brackets.
1783
1784Configuration:
1785 -h, --help display this help and exit
1786 --help=short display options specific to this package
1787 --help=recursive display the short help of all the included packages
1788 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001789 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001790 --cache-file=FILE cache test results in FILE [disabled]
1791 -C, --config-cache alias for \`--cache-file=config.cache'
1792 -n, --no-create do not create output files
1793 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1794
1795Installation directories:
1796 --prefix=PREFIX install architecture-independent files in PREFIX
1797 [$ac_default_prefix]
1798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1799 [PREFIX]
1800
1801By default, \`make install' will install all the files in
1802\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1803an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1804for instance \`--prefix=\$HOME'.
1805
1806For better control, use the options below.
1807
1808Fine tuning of the installation directories:
1809 --bindir=DIR user executables [EPREFIX/bin]
1810 --sbindir=DIR system admin executables [EPREFIX/sbin]
1811 --libexecdir=DIR program executables [EPREFIX/libexec]
1812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1815 --libdir=DIR object code libraries [EPREFIX/lib]
1816 --includedir=DIR C header files [PREFIX/include]
1817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1818 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1819 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1820 --infodir=DIR info documentation [DATAROOTDIR/info]
1821 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1822 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001823 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001824 --htmldir=DIR html documentation [DOCDIR]
1825 --dvidir=DIR dvi documentation [DOCDIR]
1826 --pdfdir=DIR pdf documentation [DOCDIR]
1827 --psdir=DIR ps documentation [DOCDIR]
1828_ACEOF
1829
1830 cat <<\_ACEOF
1831
cristy73bd4a52010-10-05 11:24:23 +00001832Program names:
1833 --program-prefix=PREFIX prepend PREFIX to installed program names
1834 --program-suffix=SUFFIX append SUFFIX to installed program names
1835 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1836
cristy3ed852e2009-09-05 21:47:34 +00001837X features:
1838 --x-includes=DIR X include files are in DIR
1839 --x-libraries=DIR X library files are in DIR
1840
1841System types:
1842 --build=BUILD configure for building on BUILD [guessed]
1843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1844 --target=TARGET configure for building compilers for TARGET [HOST]
1845_ACEOF
1846fi
1847
1848if test -n "$ac_init_help"; then
1849 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001850 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001851 esac
1852 cat <<\_ACEOF
1853
1854Optional Features:
1855 --disable-option-checking ignore unrecognized --enable/--with options
1856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001858 --enable-silent-rules less verbose build output (undo: "make V=1")
1859 --disable-silent-rules verbose build output (undo: "make V=0")
1860 --enable-dependency-tracking
1861 do not reject slow dependency extractors
1862 --disable-dependency-tracking
1863 speeds up one-time build
cristyd95b7a52013-10-23 13:12:53 +00001864 --enable-portable-binary
1865 disable compiler optimizations that would produce
1866 unportable binaries
cristy9b86f202012-11-28 21:55:35 +00001867 --enable-ld-version-script
1868 enable linker version script (default is enabled
1869 when possible)
cristya3824692012-03-30 17:22:07 +00001870 --enable-bounds-checking
1871 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001872 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001873 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001875 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001877 --enable-shared[=PKGS] build shared libraries [default=yes]
1878 --enable-static[=PKGS] build static libraries [default=yes]
1879 --enable-fast-install[=PKGS]
1880 optimize for fast installation [default=yes]
1881 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-delegate-build look for delegate libraries in build directory
1883 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001884 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001885 --disable-installed Formally install ImageMagick under PREFIX
1886 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001887 --enable-zero-configuration
1888 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001889 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001890 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001891 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001892 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001893 --enable-maintainer-mode
1894 enable make rules and dependencies not useful (and
1895 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001896 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001897 --enable-ccmalloc enable 'ccmalloc' memory debug support
1898 --enable-efence enable 'efence' memory debug support
1899 --enable-prof enable 'prof' profiling support
1900 --enable-gprof enable 'gprof' profiling support
1901 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001902 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001903 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001904
1905Optional Packages:
1906 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1907 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001908 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001909 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001910 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1911 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001912 --includearch-dir=DIR ARCH specific include directory
1913 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001914 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001916 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001917 both]
cristyda16f162011-02-19 23:52:17 +00001918 --with-sysroot=DIR Search for dependent libraries within DIR
1919 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-modules enable building dynamically loadable modules
1921 --with-method-prefix=PREFIX
1922 prefix MagickCore API methods
1923 --with-quantum-depth=DEPTH
1924 number of bits in a pixel quantum (default 16)
1925 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1926 memory)
1927 --with-frozenpaths freeze delegate paths
1928 --without-magick-plus-plus
1929 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001930 --with-package-release-name=NAME
1931 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-perl enable build/install of PerlMagick
1933 --with-perl-options=OPTIONS
1934 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001935 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-umem enable umem memory allocation library support
1937 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1938 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001939 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-zlib disable ZLIB support
1941 --with-autotrace enable autotrace support
1942 --without-dps disable Display Postscript support
1943 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001944 --with-dejavu-font-dir=DIR
1945 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-fftw disable FFTW support
1947 --without-fpx disable FlashPIX support
1948 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001949 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001950 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-fontpath=DIR prepend to default font search path
1952 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-jbig disable JBIG support
1955 --without-jpeg disable JPEG support
1956 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001957 --without-lcms disable lcms (v1.1X) support
1958 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001959 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001960 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001961 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001963 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001965 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001967 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001968 --with-windows-font-dir=DIR
1969 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001970 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001971 --without-xml disable XML support
1972
1973Some influential environment variables:
1974 CC C compiler command
1975 CFLAGS C compiler flags
1976 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1977 nonstandard directory <lib dir>
1978 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001979 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001980 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001981 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001982 CXX C++ compiler command
1983 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001984 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001985 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001986 XMKMF Path to xmkmf, Makefile generator for X Window System
1987 AUTOTRACE_CFLAGS
1988 C compiler flags for AUTOTRACE, overriding pkg-config
1989 AUTOTRACE_LIBS
1990 linker flags for AUTOTRACE, overriding pkg-config
1991 FONTCONFIG_CFLAGS
1992 C compiler flags for FONTCONFIG, overriding pkg-config
1993 FONTCONFIG_LIBS
1994 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001995 FREETYPE_CFLAGS
1996 C compiler flags for FREETYPE, overriding pkg-config
1997 FREETYPE_LIBS
1998 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001999 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2000 GVC_LIBS linker flags for GVC, overriding pkg-config
2001 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2002 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002003 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2004 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002005 OPENEXR_CFLAGS
2006 C compiler flags for OPENEXR, overriding pkg-config
2007 OPENEXR_LIBS
2008 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002009 PANGO_CFLAGS
2010 C compiler flags for PANGO, overriding pkg-config
2011 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002012 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2013 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2014 CAIRO_SVG_CFLAGS
2015 C compiler flags for CAIRO_SVG, overriding pkg-config
2016 CAIRO_SVG_LIBS
2017 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002018
2019Use these variables to override the choices made by `configure' or to help
2020it to find libraries and programs with nonstandard names/locations.
2021
2022Report bugs to <http://www.imagemagick.org>.
2023_ACEOF
2024ac_status=$?
2025fi
2026
2027if test "$ac_init_help" = "recursive"; then
2028 # If there are subdirs, report their specific --help.
2029 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2030 test -d "$ac_dir" ||
2031 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2032 continue
2033 ac_builddir=.
2034
2035case "$ac_dir" in
2036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2037*)
2038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2039 # A ".." for each directory in $ac_dir_suffix.
2040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2041 case $ac_top_builddir_sub in
2042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2044 esac ;;
2045esac
2046ac_abs_top_builddir=$ac_pwd
2047ac_abs_builddir=$ac_pwd$ac_dir_suffix
2048# for backward compatibility:
2049ac_top_builddir=$ac_top_build_prefix
2050
2051case $srcdir in
2052 .) # We are building in place.
2053 ac_srcdir=.
2054 ac_top_srcdir=$ac_top_builddir_sub
2055 ac_abs_top_srcdir=$ac_pwd ;;
2056 [\\/]* | ?:[\\/]* ) # Absolute name.
2057 ac_srcdir=$srcdir$ac_dir_suffix;
2058 ac_top_srcdir=$srcdir
2059 ac_abs_top_srcdir=$srcdir ;;
2060 *) # Relative name.
2061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2062 ac_top_srcdir=$ac_top_build_prefix$srcdir
2063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2064esac
2065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2066
2067 cd "$ac_dir" || { ac_status=$?; continue; }
2068 # Check for guested configure.
2069 if test -f "$ac_srcdir/configure.gnu"; then
2070 echo &&
2071 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2072 elif test -f "$ac_srcdir/configure"; then
2073 echo &&
2074 $SHELL "$ac_srcdir/configure" --help=recursive
2075 else
2076 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2077 fi || ac_status=$?
2078 cd "$ac_pwd" || { ac_status=$?; break; }
2079 done
2080fi
2081
2082test -n "$ac_init_help" && exit $ac_status
2083if $ac_init_version; then
2084 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002085ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002086generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002087
cristy14fefe52012-05-21 00:59:18 +00002088Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002089This configure script is free software; the Free Software Foundation
2090gives unlimited permission to copy, distribute and modify it.
2091_ACEOF
2092 exit
2093fi
cristy8b350f62009-11-15 23:12:43 +00002094
2095## ------------------------ ##
2096## Autoconf initialization. ##
2097## ------------------------ ##
2098
2099# ac_fn_c_try_compile LINENO
2100# --------------------------
2101# Try to compile conftest.$ac_ext, and return whether this succeeded.
2102ac_fn_c_try_compile ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 rm -f conftest.$ac_objext
2106 if { { ac_try="$ac_compile"
2107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
2111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112$as_echo "$ac_try_echo"; } >&5
2113 (eval "$ac_compile") 2>conftest.err
2114 ac_status=$?
2115 if test -s conftest.err; then
2116 grep -v '^ *+' conftest.err >conftest.er1
2117 cat conftest.er1 >&5
2118 mv -f conftest.er1 conftest.err
2119 fi
2120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121 test $ac_status = 0; } && {
2122 test -z "$ac_c_werror_flag" ||
2123 test ! -s conftest.err
2124 } && test -s conftest.$ac_objext; then :
2125 ac_retval=0
2126else
2127 $as_echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 ac_retval=1
2131fi
cristyda16f162011-02-19 23:52:17 +00002132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002133 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002134
2135} # ac_fn_c_try_compile
2136
cristy95646052009-11-28 23:05:30 +00002137# ac_fn_c_try_cpp LINENO
2138# ----------------------
2139# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2140ac_fn_c_try_cpp ()
2141{
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 if { { ac_try="$ac_cpp conftest.$ac_ext"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149$as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2156 fi
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002158 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2160 test ! -s conftest.err
2161 }; then :
2162 ac_retval=0
2163else
2164 $as_echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 ac_retval=1
2168fi
cristyda16f162011-02-19 23:52:17 +00002169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002170 as_fn_set_status $ac_retval
2171
2172} # ac_fn_c_try_cpp
2173
cristy8b350f62009-11-15 23:12:43 +00002174# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2175# -------------------------------------------------------
2176# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2177# the include files in INCLUDES and setting the cache variable VAR
2178# accordingly.
2179ac_fn_c_check_header_mongrel ()
2180{
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002182 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002185if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002186 $as_echo_n "(cached) " >&6
2187fi
2188eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190$as_echo "$ac_res" >&6; }
2191else
2192 # Is the header compilable?
2193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2194$as_echo_n "checking $2 usability... " >&6; }
2195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$4
2198#include <$2>
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_header_compiler=yes
2202else
2203 ac_header_compiler=no
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2207$as_echo "$ac_header_compiler" >&6; }
2208
2209# Is the header present?
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2211$as_echo_n "checking $2 presence... " >&6; }
2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214#include <$2>
2215_ACEOF
2216if ac_fn_c_try_cpp "$LINENO"; then :
2217 ac_header_preproc=yes
2218else
2219 ac_header_preproc=no
2220fi
cristyda16f162011-02-19 23:52:17 +00002221rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2223$as_echo "$ac_header_preproc" >&6; }
2224
2225# So? What about this header?
2226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2227 yes:no: )
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2229$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2231$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2232 ;;
2233 no:yes:* )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2235$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2237$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2239$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2241$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2243$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002244( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002245## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002246## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002247 ) | sed "s/^/$as_me: WARNING: /" >&2
2248 ;;
2249esac
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002252if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002253 $as_echo_n "(cached) " >&6
2254else
2255 eval "$3=\$ac_header_compiler"
2256fi
2257eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259$as_echo "$ac_res" >&6; }
2260fi
cristyda16f162011-02-19 23:52:17 +00002261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002262
2263} # ac_fn_c_check_header_mongrel
2264
2265# ac_fn_c_try_run LINENO
2266# ----------------------
2267# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2268# that executables *can* be run.
2269ac_fn_c_try_run ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 if { { ac_try="$ac_link"
2273case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276esac
2277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278$as_echo "$ac_try_echo"; } >&5
2279 (eval "$ac_link") 2>&5
2280 ac_status=$?
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2283 { { case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286esac
2287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288$as_echo "$ac_try_echo"; } >&5
2289 (eval "$ac_try") 2>&5
2290 ac_status=$?
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; }; }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: program exited with status $ac_status" >&5
2296 $as_echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 ac_retval=$ac_status
2300fi
2301 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002303 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002304
2305} # ac_fn_c_try_run
2306
2307# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2308# -------------------------------------------------------
2309# Tests whether HEADER exists and can be compiled using the include files in
2310# INCLUDES, setting the cache variable VAR accordingly.
2311ac_fn_c_check_header_compile ()
2312{
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002316if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002317 $as_echo_n "(cached) " >&6
2318else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320/* end confdefs.h. */
2321$4
2322#include <$2>
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325 eval "$3=yes"
2326else
2327 eval "$3=no"
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331eval ac_res=\$$3
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002335
2336} # ac_fn_c_check_header_compile
2337
cristya0b81c32010-01-22 02:54:33 +00002338# ac_fn_cxx_try_compile LINENO
2339# ----------------------------
2340# Try to compile conftest.$ac_ext, and return whether this succeeded.
2341ac_fn_cxx_try_compile ()
2342{
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext
2345 if { { ac_try="$ac_compile"
2346case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351$as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_compile") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2358 fi
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_cxx_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest.$ac_objext; then :
2364 ac_retval=0
2365else
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=1
2370fi
cristyda16f162011-02-19 23:52:17 +00002371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002372 as_fn_set_status $ac_retval
2373
2374} # ac_fn_cxx_try_compile
2375
cristyd95b7a52013-10-23 13:12:53 +00002376# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2377# --------------------------------------------
2378# Tries to find the compile-time value of EXPR in a program that includes
2379# INCLUDES, setting VAR accordingly. Returns whether the value could be
2380# computed
2381ac_fn_c_compute_int ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 if test "$cross_compiling" = yes; then
2385 # Depending upon the size, compute the lo and hi bounds.
2386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387/* end confdefs.h. */
2388$4
2389int
2390main ()
2391{
2392static int test_array [1 - 2 * !(($2) >= 0)];
2393test_array [0] = 0;
2394return test_array [0];
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_compile "$LINENO"; then :
2401 ac_lo=0 ac_mid=0
2402 while :; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h. */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2410test_array [0] = 0;
2411return test_array [0];
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_hi=$ac_mid; break
2419else
2420 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2421 if test $ac_lo -le $ac_mid; then
2422 ac_lo= ac_hi=
2423 break
2424 fi
2425 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2426fi
2427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 done
2429else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431/* end confdefs.h. */
2432$4
2433int
2434main ()
2435{
2436static int test_array [1 - 2 * !(($2) < 0)];
2437test_array [0] = 0;
2438return test_array [0];
2439
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444if ac_fn_c_try_compile "$LINENO"; then :
2445 ac_hi=-1 ac_mid=-1
2446 while :; do
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449$4
2450int
2451main ()
2452{
2453static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2454test_array [0] = 0;
2455return test_array [0];
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462 ac_lo=$ac_mid; break
2463else
2464 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2465 if test $ac_mid -le $ac_hi; then
2466 ac_lo= ac_hi=
2467 break
2468 fi
2469 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2470fi
2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 done
2473else
2474 ac_lo= ac_hi=
2475fi
2476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479# Binary search between lo and hi bounds.
2480while test "x$ac_lo" != "x$ac_hi"; do
2481 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483/* end confdefs.h. */
2484$4
2485int
2486main ()
2487{
2488static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2489test_array [0] = 0;
2490return test_array [0];
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
2496if ac_fn_c_try_compile "$LINENO"; then :
2497 ac_hi=$ac_mid
2498else
2499 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502done
2503case $ac_lo in #((
2504?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2505'') ac_retval=1 ;;
2506esac
2507 else
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509/* end confdefs.h. */
2510$4
2511static long int longval () { return $2; }
2512static unsigned long int ulongval () { return $2; }
2513#include <stdio.h>
2514#include <stdlib.h>
2515int
2516main ()
2517{
2518
2519 FILE *f = fopen ("conftest.val", "w");
2520 if (! f)
2521 return 1;
2522 if (($2) < 0)
2523 {
2524 long int i = longval ();
2525 if (i != ($2))
2526 return 1;
2527 fprintf (f, "%ld", i);
2528 }
2529 else
2530 {
2531 unsigned long int i = ulongval ();
2532 if (i != ($2))
2533 return 1;
2534 fprintf (f, "%lu", i);
2535 }
2536 /* Do not output a trailing newline, as this causes \r\n confusion
2537 on some platforms. */
2538 return ferror (f) || fclose (f) != 0;
2539
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_run "$LINENO"; then :
2545 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2546else
2547 ac_retval=1
2548fi
2549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2550 conftest.$ac_objext conftest.beam conftest.$ac_ext
2551rm -f conftest.val
2552
2553 fi
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 as_fn_set_status $ac_retval
2556
2557} # ac_fn_c_compute_int
2558
cristy8b350f62009-11-15 23:12:43 +00002559# ac_fn_c_try_link LINENO
2560# -----------------------
2561# Try to link conftest.$ac_ext, and return whether this succeeded.
2562ac_fn_c_try_link ()
2563{
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 rm -f conftest.$ac_objext conftest$ac_exeext
2566 if { { ac_try="$ac_link"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572$as_echo "$ac_try_echo"; } >&5
2573 (eval "$ac_link") 2>conftest.err
2574 ac_status=$?
2575 if test -s conftest.err; then
2576 grep -v '^ *+' conftest.err >conftest.er1
2577 cat conftest.er1 >&5
2578 mv -f conftest.er1 conftest.err
2579 fi
2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; } && {
2582 test -z "$ac_c_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest$ac_exeext && {
2585 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002586 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002587 }; then :
2588 ac_retval=0
2589else
2590 $as_echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 ac_retval=1
2594fi
2595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2597 # interfere with the next link command; also delete a directory that is
2598 # left behind by Apple's compiler. We do this before executing the actions.
2599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002601 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002602
2603} # ac_fn_c_try_link
2604
cristy73bd4a52010-10-05 11:24:23 +00002605# ac_fn_c_check_func LINENO FUNC VAR
2606# ----------------------------------
2607# Tests whether FUNC exists, setting the cache variable VAR accordingly
2608ac_fn_c_check_func ()
2609{
2610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2612$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002613if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002614 $as_echo_n "(cached) " >&6
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2620#define $2 innocuous_$2
2621
2622/* System header to define __stub macros and hopefully few prototypes,
2623 which can conflict with char $2 (); below.
2624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2625 <limits.h> exists even on freestanding compilers. */
2626
2627#ifdef __STDC__
2628# include <limits.h>
2629#else
2630# include <assert.h>
2631#endif
2632
2633#undef $2
2634
2635/* Override any GCC internal prototype to avoid an error.
2636 Use char because int might match the return type of a GCC
2637 builtin and then its argument prototype would still apply. */
2638#ifdef __cplusplus
2639extern "C"
2640#endif
2641char $2 ();
2642/* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645#if defined __stub_$2 || defined __stub___$2
2646choke me
2647#endif
2648
2649int
2650main ()
2651{
2652return $2 ();
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_link "$LINENO"; then :
2658 eval "$3=yes"
2659else
2660 eval "$3=no"
2661fi
2662rm -f core conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664fi
2665eval ac_res=\$$3
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002669
2670} # ac_fn_c_check_func
2671
2672# ac_fn_cxx_try_cpp LINENO
2673# ------------------------
2674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2675ac_fn_cxx_try_cpp ()
2676{
2677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2678 if { { ac_try="$ac_cpp conftest.$ac_ext"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684$as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2686 ac_status=$?
2687 if test -s conftest.err; then
2688 grep -v '^ *+' conftest.err >conftest.er1
2689 cat conftest.er1 >&5
2690 mv -f conftest.er1 conftest.err
2691 fi
2692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002693 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002694 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2695 test ! -s conftest.err
2696 }; then :
2697 ac_retval=0
2698else
2699 $as_echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 ac_retval=1
2703fi
cristyda16f162011-02-19 23:52:17 +00002704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002705 as_fn_set_status $ac_retval
2706
2707} # ac_fn_cxx_try_cpp
2708
2709# ac_fn_cxx_try_link LINENO
2710# -------------------------
2711# Try to link conftest.$ac_ext, and return whether this succeeded.
2712ac_fn_cxx_try_link ()
2713{
2714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2715 rm -f conftest.$ac_objext conftest$ac_exeext
2716 if { { ac_try="$ac_link"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722$as_echo "$ac_try_echo"; } >&5
2723 (eval "$ac_link") 2>conftest.err
2724 ac_status=$?
2725 if test -s conftest.err; then
2726 grep -v '^ *+' conftest.err >conftest.er1
2727 cat conftest.er1 >&5
2728 mv -f conftest.er1 conftest.err
2729 fi
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; } && {
2732 test -z "$ac_cxx_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest$ac_exeext && {
2735 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002736 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002737 }; then :
2738 ac_retval=0
2739else
2740 $as_echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_retval=1
2744fi
2745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2747 # interfere with the next link command; also delete a directory that is
2748 # left behind by Apple's compiler. We do this before executing the actions.
2749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002751 as_fn_set_status $ac_retval
2752
2753} # ac_fn_cxx_try_link
2754
cristy8b350f62009-11-15 23:12:43 +00002755# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2756# -------------------------------------------
2757# Tests whether TYPE exists after having included INCLUDES, setting cache
2758# variable VAR accordingly.
2759ac_fn_c_check_type ()
2760{
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002764if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002765 $as_echo_n "(cached) " >&6
2766else
2767 eval "$3=no"
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$4
2771int
2772main ()
2773{
2774if (sizeof ($2))
2775 return 0;
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_compile "$LINENO"; then :
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782/* end confdefs.h. */
2783$4
2784int
2785main ()
2786{
2787if (sizeof (($2)))
2788 return 0;
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793if ac_fn_c_try_compile "$LINENO"; then :
2794
2795else
2796 eval "$3=yes"
2797fi
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799fi
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801fi
2802eval ac_res=\$$3
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002806
2807} # ac_fn_c_check_type
2808
cristy92703d82010-04-26 00:18:18 +00002809# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2810# ----------------------------------------------------
2811# Tries to find if the field MEMBER exists in type AGGR, after including
2812# INCLUDES, setting cache variable VAR accordingly.
2813ac_fn_c_check_member ()
2814{
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2817$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002818if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002819 $as_echo_n "(cached) " >&6
2820else
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823$5
2824int
2825main ()
2826{
2827static $2 ac_aggr;
2828if (ac_aggr.$3)
2829return 0;
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 eval "$4=yes"
2836else
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839$5
2840int
2841main ()
2842{
2843static $2 ac_aggr;
2844if (sizeof ac_aggr.$3)
2845return 0;
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850if ac_fn_c_try_compile "$LINENO"; then :
2851 eval "$4=yes"
2852else
2853 eval "$4=no"
2854fi
2855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856fi
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858fi
2859eval ac_res=\$$4
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2861$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002863
2864} # ac_fn_c_check_member
2865
cristy5eef09f2012-10-16 12:08:28 +00002866# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2867# ---------------------------------------------
2868# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2869# accordingly.
2870ac_fn_c_check_decl ()
2871{
2872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2873 as_decl_name=`echo $2|sed 's/ *(.*//'`
2874 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2876$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2877if eval \${$3+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879else
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
2882$4
2883int
2884main ()
2885{
2886#ifndef $as_decl_name
2887#ifdef __cplusplus
2888 (void) $as_decl_use;
2889#else
2890 (void) $as_decl_name;
2891#endif
2892#endif
2893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899 eval "$3=yes"
2900else
2901 eval "$3=no"
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905eval ac_res=\$$3
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2907$as_echo "$ac_res" >&6; }
2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2909
2910} # ac_fn_c_check_decl
2911
cristy501c8042011-05-26 17:46:28 +00002912# ac_fn_c_find_intX_t LINENO BITS VAR
2913# -----------------------------------
2914# Finds a signed integer type with width BITS, setting cache variable VAR
2915# accordingly.
2916ac_fn_c_find_intX_t ()
2917{
2918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2920$as_echo_n "checking for int$2_t... " >&6; }
2921if eval \${$3+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923else
2924 eval "$3=no"
2925 # Order is important - never check a type that is potentially smaller
2926 # than half of the expected target width.
2927 for ac_type in int$2_t 'int' 'long int' \
2928 'long long int' 'short int' 'signed char'; do
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h. */
2931$ac_includes_default
2932 enum { N = $2 / 2 - 1 };
2933int
2934main ()
2935{
2936static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002937test_array [0] = 0;
2938return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944if ac_fn_c_try_compile "$LINENO"; then :
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$ac_includes_default
2948 enum { N = $2 / 2 - 1 };
2949int
2950main ()
2951{
2952static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2953 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002954test_array [0] = 0;
2955return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961if ac_fn_c_try_compile "$LINENO"; then :
2962
2963else
2964 case $ac_type in #(
2965 int$2_t) :
2966 eval "$3=yes" ;; #(
2967 *) :
2968 eval "$3=\$ac_type" ;;
2969esac
2970fi
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 if eval test \"x\$"$3"\" = x"no"; then :
2975
2976else
2977 break
2978fi
2979 done
2980fi
2981eval ac_res=\$$3
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2983$as_echo "$ac_res" >&6; }
2984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2985
2986} # ac_fn_c_find_intX_t
2987
2988# ac_fn_c_find_uintX_t LINENO BITS VAR
2989# ------------------------------------
2990# Finds an unsigned integer type with width BITS, setting cache variable VAR
2991# accordingly.
2992ac_fn_c_find_uintX_t ()
2993{
2994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2996$as_echo_n "checking for uint$2_t... " >&6; }
2997if eval \${$3+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 eval "$3=no"
3001 # Order is important - never check a type that is potentially smaller
3002 # than half of the expected target width.
3003 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3004 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006/* end confdefs.h. */
3007$ac_includes_default
3008int
3009main ()
3010{
3011static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003012test_array [0] = 0;
3013return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019if ac_fn_c_try_compile "$LINENO"; then :
3020 case $ac_type in #(
3021 uint$2_t) :
3022 eval "$3=yes" ;; #(
3023 *) :
3024 eval "$3=\$ac_type" ;;
3025esac
3026fi
3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 if eval test \"x\$"$3"\" = x"no"; then :
3029
3030else
3031 break
3032fi
3033 done
3034fi
3035eval ac_res=\$$3
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037$as_echo "$ac_res" >&6; }
3038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3039
3040} # ac_fn_c_find_uintX_t
3041
cristy8b350f62009-11-15 23:12:43 +00003042# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3043# ---------------------------------------------------------
3044# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3045# the include files in INCLUDES and setting the cache variable VAR
3046# accordingly.
3047ac_fn_cxx_check_header_mongrel ()
3048{
3049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003050 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3052$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003053if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003054 $as_echo_n "(cached) " >&6
3055fi
3056eval ac_res=\$$3
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3058$as_echo "$ac_res" >&6; }
3059else
3060 # Is the header compilable?
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3062$as_echo_n "checking $2 usability... " >&6; }
3063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h. */
3065$4
3066#include <$2>
3067_ACEOF
3068if ac_fn_cxx_try_compile "$LINENO"; then :
3069 ac_header_compiler=yes
3070else
3071 ac_header_compiler=no
3072fi
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3075$as_echo "$ac_header_compiler" >&6; }
3076
3077# Is the header present?
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3079$as_echo_n "checking $2 presence... " >&6; }
3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081/* end confdefs.h. */
3082#include <$2>
3083_ACEOF
3084if ac_fn_cxx_try_cpp "$LINENO"; then :
3085 ac_header_preproc=yes
3086else
3087 ac_header_preproc=no
3088fi
cristyda16f162011-02-19 23:52:17 +00003089rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3091$as_echo "$ac_header_preproc" >&6; }
3092
3093# So? What about this header?
3094case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3095 yes:no: )
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3097$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3099$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3100 ;;
3101 no:yes:* )
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3103$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3105$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3107$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3109$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003112( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003113## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003114## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003115 ) | sed "s/^/$as_me: WARNING: /" >&2
3116 ;;
3117esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3119$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003120if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003121 $as_echo_n "(cached) " >&6
3122else
3123 eval "$3=\$ac_header_compiler"
3124fi
3125eval ac_res=\$$3
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3127$as_echo "$ac_res" >&6; }
3128fi
cristyda16f162011-02-19 23:52:17 +00003129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003130
3131} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003132cat >config.log <<_ACEOF
3133This file contains any messages produced by compilers while
3134running configure, to aid debugging if configure makes a mistake.
3135
cristy29eb34e2011-10-16 00:46:08 +00003136It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003137generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003138
3139 $ $0 $@
3140
3141_ACEOF
3142exec 5>>config.log
3143{
3144cat <<_ASUNAME
3145## --------- ##
3146## Platform. ##
3147## --------- ##
3148
3149hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3150uname -m = `(uname -m) 2>/dev/null || echo unknown`
3151uname -r = `(uname -r) 2>/dev/null || echo unknown`
3152uname -s = `(uname -s) 2>/dev/null || echo unknown`
3153uname -v = `(uname -v) 2>/dev/null || echo unknown`
3154
3155/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3156/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3157
3158/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3159/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3160/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3161/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3162/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3163/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3164/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3165
3166_ASUNAME
3167
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003173 $as_echo "PATH: $as_dir"
3174 done
cristy3ed852e2009-09-05 21:47:34 +00003175IFS=$as_save_IFS
3176
3177} >&5
3178
3179cat >&5 <<_ACEOF
3180
3181
3182## ----------- ##
3183## Core tests. ##
3184## ----------- ##
3185
3186_ACEOF
3187
3188
3189# Keep a trace of the command line.
3190# Strip out --no-create and --no-recursion so they do not pile up.
3191# Strip out --silent because we don't want to record it for future runs.
3192# Also quote any args containing shell meta-characters.
3193# Make two passes to allow for proper duplicate-argument suppression.
3194ac_configure_args=
3195ac_configure_args0=
3196ac_configure_args1=
3197ac_must_keep_next=false
3198for ac_pass in 1 2
3199do
3200 for ac_arg
3201 do
3202 case $ac_arg in
3203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3205 | -silent | --silent | --silen | --sile | --sil)
3206 continue ;;
3207 *\'*)
3208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3209 esac
3210 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003212 2)
cristy8b350f62009-11-15 23:12:43 +00003213 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003214 if test $ac_must_keep_next = true; then
3215 ac_must_keep_next=false # Got value, back to normal.
3216 else
3217 case $ac_arg in
3218 *=* | --config-cache | -C | -disable-* | --disable-* \
3219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3221 | -with-* | --with-* | -without-* | --without-* | --x)
3222 case "$ac_configure_args0 " in
3223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3224 esac
3225 ;;
3226 -* ) ac_must_keep_next=true ;;
3227 esac
3228 fi
cristy8b350f62009-11-15 23:12:43 +00003229 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003230 ;;
3231 esac
3232 done
3233done
cristy8b350f62009-11-15 23:12:43 +00003234{ ac_configure_args0=; unset ac_configure_args0;}
3235{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003236
3237# When interrupted or exit'd, cleanup temporary files, and complete
3238# config.log. We remove comments because anyway the quotes in there
3239# would cause problems or look ugly.
3240# WARNING: Use '\'' to represent an apostrophe within the trap.
3241# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3242trap 'exit_status=$?
3243 # Save into config.log some information that might help in debugging.
3244 {
3245 echo
3246
cristy98dddb52010-11-04 00:30:15 +00003247 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003248## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003249## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003250 echo
3251 # The following way of writing the cache mishandles newlines in values,
3252(
3253 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3254 eval ac_val=\$$ac_var
3255 case $ac_val in #(
3256 *${as_nl}*)
3257 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3260 esac
3261 case $ac_var in #(
3262 _ | IFS | as_nl) ;; #(
3263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003264 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003265 esac ;;
3266 esac
3267 done
3268 (set) 2>&1 |
3269 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3270 *${as_nl}ac_space=\ *)
3271 sed -n \
3272 "s/'\''/'\''\\\\'\'''\''/g;
3273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3274 ;; #(
3275 *)
3276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3277 ;;
3278 esac |
3279 sort
3280)
3281 echo
3282
cristy98dddb52010-11-04 00:30:15 +00003283 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003284## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003285## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003286 echo
3287 for ac_var in $ac_subst_vars
3288 do
3289 eval ac_val=\$$ac_var
3290 case $ac_val in
3291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3292 esac
3293 $as_echo "$ac_var='\''$ac_val'\''"
3294 done | sort
3295 echo
3296
3297 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003298 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003299## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003300## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003301 echo
3302 for ac_var in $ac_subst_files
3303 do
3304 eval ac_val=\$$ac_var
3305 case $ac_val in
3306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3307 esac
3308 $as_echo "$ac_var='\''$ac_val'\''"
3309 done | sort
3310 echo
3311 fi
3312
3313 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003314 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003315## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003316## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003317 echo
3318 cat confdefs.h
3319 echo
3320 fi
3321 test "$ac_signal" != 0 &&
3322 $as_echo "$as_me: caught signal $ac_signal"
3323 $as_echo "$as_me: exit $exit_status"
3324 } >&5
3325 rm -f core *.core core.conftest.* &&
3326 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3327 exit $exit_status
3328' 0
3329for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003330 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003331done
3332ac_signal=0
3333
3334# confdefs.h avoids OS command line length limits that DEFS can exceed.
3335rm -f -r conftest* confdefs.h
3336
cristy8b350f62009-11-15 23:12:43 +00003337$as_echo "/* confdefs.h */" > confdefs.h
3338
cristy3ed852e2009-09-05 21:47:34 +00003339# Predefined preprocessor variables.
3340
3341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_NAME "$PACKAGE_NAME"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_VERSION "$PACKAGE_VERSION"
3351_ACEOF
3352
cristy3ed852e2009-09-05 21:47:34 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_STRING "$PACKAGE_STRING"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3359_ACEOF
3360
cristy8b350f62009-11-15 23:12:43 +00003361cat >>confdefs.h <<_ACEOF
3362#define PACKAGE_URL "$PACKAGE_URL"
3363_ACEOF
3364
cristy3ed852e2009-09-05 21:47:34 +00003365
3366# Let the site file select an alternate cache file if it wants to.
3367# Prefer an explicitly selected file to automatically selected ones.
3368ac_site_file1=NONE
3369ac_site_file2=NONE
3370if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003371 # We do not want a PATH search for config.site.
3372 case $CONFIG_SITE in #((
3373 -*) ac_site_file1=./$CONFIG_SITE;;
3374 */*) ac_site_file1=$CONFIG_SITE;;
3375 *) ac_site_file1=./$CONFIG_SITE;;
3376 esac
cristy3ed852e2009-09-05 21:47:34 +00003377elif test "x$prefix" != xNONE; then
3378 ac_site_file1=$prefix/share/config.site
3379 ac_site_file2=$prefix/etc/config.site
3380else
3381 ac_site_file1=$ac_default_prefix/share/config.site
3382 ac_site_file2=$ac_default_prefix/etc/config.site
3383fi
3384for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3385do
3386 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003387 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3390 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003391 . "$ac_site_file" \
3392 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394as_fn_error $? "failed to load site script $ac_site_file
3395See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003396 fi
3397done
3398
3399if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003400 # Some versions of bash will fail to source /dev/null (special files
3401 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003404$as_echo "$as_me: loading cache $cache_file" >&6;}
3405 case $cache_file in
3406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3407 *) . "./$cache_file";;
3408 esac
3409 fi
3410else
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: creating cache $cache_file" >&6;}
3413 >$cache_file
3414fi
3415
cristycd4c5312009-11-22 01:19:08 +00003416as_fn_append ac_header_list " stdlib.h"
3417as_fn_append ac_header_list " unistd.h"
3418as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003419# Check that the precious variables saved in the cache have kept the same
3420# value.
3421ac_cache_corrupted=false
3422for ac_var in $ac_precious_vars; do
3423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3424 eval ac_new_set=\$ac_env_${ac_var}_set
3425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3426 eval ac_new_val=\$ac_env_${ac_var}_value
3427 case $ac_old_set,$ac_new_set in
3428 set,)
cristy8b350f62009-11-15 23:12:43 +00003429 { $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 +00003430$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3431 ac_cache_corrupted=: ;;
3432 ,set)
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3435 ac_cache_corrupted=: ;;
3436 ,);;
3437 *)
3438 if test "x$ac_old_val" != "x$ac_new_val"; then
3439 # differences in whitespace do not lead to failure.
3440 ac_old_val_w=`echo x $ac_old_val`
3441 ac_new_val_w=`echo x $ac_new_val`
3442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3445 ac_cache_corrupted=:
3446 else
cristy8b350f62009-11-15 23:12:43 +00003447 { $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 +00003448$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3449 eval $ac_var=\$ac_old_val
3450 fi
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003454$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3455 fi;;
3456 esac
3457 # Pass precious variables to config.status.
3458 if test "$ac_new_set" = set; then
3459 case $ac_new_val in
3460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3461 *) ac_arg=$ac_var=$ac_new_val ;;
3462 esac
3463 case " $ac_configure_args " in
3464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003466 esac
3467 fi
3468done
3469if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003473$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003474 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003475fi
cristy8b350f62009-11-15 23:12:43 +00003476## -------------------- ##
3477## Main body of script. ##
3478## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003479
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
3487
3488ac_aux_dir=
3489for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003490 if test -f "$ac_dir/install-sh"; then
3491 ac_aux_dir=$ac_dir
3492 ac_install_sh="$ac_aux_dir/install-sh -c"
3493 break
3494 elif test -f "$ac_dir/install.sh"; then
3495 ac_aux_dir=$ac_dir
3496 ac_install_sh="$ac_aux_dir/install.sh -c"
3497 break
3498 elif test -f "$ac_dir/shtool"; then
3499 ac_aux_dir=$ac_dir
3500 ac_install_sh="$ac_aux_dir/shtool install -c"
3501 break
3502 fi
cristy3ed852e2009-09-05 21:47:34 +00003503done
3504if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508# These three variables are undocumented and unsupported,
3509# and are intended to be withdrawn in a future Autoconf release.
3510# They can cause serious problems if a builder's source tree is in a directory
3511# whose full name contains unusual characters.
3512ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3513ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3514ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3515
3516
3517
3518
3519ac_config_headers="$ac_config_headers config/config.h"
3520
cristy24fc1fe2010-10-23 21:13:01 +00003521
cristy01ff9f32012-12-01 18:15:29 +00003522ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003523
cristy8d0ff762013-03-10 20:33:28 +00003524ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003525
3526
3527#
3528# Save initial user-tunable values
3529#
3530USER_LIBS=$LIBS
3531for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3532 eval isset=\${$var+set}
3533 if test "$isset" = 'set'; then
3534 eval val=$`echo $var`
3535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3536 fi
3537done
3538
3539
3540CONFIGURE_ARGS="$0 ${ac_configure_args}"
3541
3542
3543# Source file containing package/library versioning information.
3544. ${srcdir}/version.sh
3545
cristy15a88782010-01-31 23:24:49 +00003546echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003547# Make sure we can run config.sub.
3548$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003550
cristy8b350f62009-11-15 23:12:43 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003552$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003553if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003554 $as_echo_n "(cached) " >&6
3555else
3556 ac_build_alias=$build_alias
3557test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563
3564fi
cristy8b350f62009-11-15 23:12:43 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003566$as_echo "$ac_cv_build" >&6; }
3567case $ac_cv_build in
3568*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003569*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003570esac
3571build=$ac_cv_build
3572ac_save_IFS=$IFS; IFS='-'
3573set x $ac_cv_build
3574shift
3575build_cpu=$1
3576build_vendor=$2
3577shift; shift
3578# Remember, the first character of IFS is used to create $*,
3579# except with old shells:
3580build_os=$*
3581IFS=$ac_save_IFS
3582case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3583
3584
cristy8b350f62009-11-15 23:12:43 +00003585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003586$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003587if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003588 $as_echo_n "(cached) " >&6
3589else
3590 if test "x$host_alias" = x; then
3591 ac_cv_host=$ac_cv_build
3592else
3593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003595fi
3596
3597fi
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo "$ac_cv_host" >&6; }
3600case $ac_cv_host in
3601*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003602*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003603esac
3604host=$ac_cv_host
3605ac_save_IFS=$IFS; IFS='-'
3606set x $ac_cv_host
3607shift
3608host_cpu=$1
3609host_vendor=$2
3610shift; shift
3611# Remember, the first character of IFS is used to create $*,
3612# except with old shells:
3613host_os=$*
3614IFS=$ac_save_IFS
3615case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616
3617
cristy8b350f62009-11-15 23:12:43 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003619$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003620if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003621 $as_echo_n "(cached) " >&6
3622else
3623 if test "x$target_alias" = x; then
3624 ac_cv_target=$ac_cv_host
3625else
3626 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003627 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003628fi
3629
3630fi
cristy8b350f62009-11-15 23:12:43 +00003631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003632$as_echo "$ac_cv_target" >&6; }
3633case $ac_cv_target in
3634*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003635*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003636esac
3637target=$ac_cv_target
3638ac_save_IFS=$IFS; IFS='-'
3639set x $ac_cv_target
3640shift
3641target_cpu=$1
3642target_vendor=$2
3643shift; shift
3644# Remember, the first character of IFS is used to create $*,
3645# except with old shells:
3646target_os=$*
3647IFS=$ac_save_IFS
3648case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3649
3650
3651# The aliases save the names the user supplied, while $host etc.
3652# will get canonicalized.
3653test -n "$target_alias" &&
3654 test "$program_prefix$program_suffix$program_transform_name" = \
3655 NONENONEs,x,x, &&
3656 program_prefix=${target_alias}-
3657
cristy837d6dc2010-02-27 01:16:57 +00003658
3659
3660
cristy8be34142012-06-17 14:07:18 +00003661
cristy19615b82011-04-13 20:02:01 +00003662MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003663
3664
cristy27d53d62012-07-29 23:30:07 +00003665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3667_ACEOF
3668
3669
cristy19615b82011-04-13 20:02:01 +00003670MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003671
3672
cristy27d53d62012-07-29 23:30:07 +00003673cat >>confdefs.h <<_ACEOF
3674#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3675_ACEOF
3676
3677
cristy19615b82011-04-13 20:02:01 +00003678MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003679
3680
cristy27d53d62012-07-29 23:30:07 +00003681cat >>confdefs.h <<_ACEOF
3682#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3683_ACEOF
3684
3685
cristy37442762013-02-10 21:07:23 +00003686
3687# Substitute versioning
3688MAGICK_MAJOR_VERSION=7
3689
3690MAGICK_MINOR_VERSION=0
3691
3692MAGICK_MICRO_VERSION=0
3693
3694MAGICK_PATCHLEVEL_VERSION=0
3695
3696MAGICK_VERSION=7.0.0-0
3697
cristyd95b7a52013-10-23 13:12:53 +00003698MAGICK_SVN_REVISION=13524:13534M
cristy37442762013-02-10 21:07:23 +00003699
3700
cristy3ed852e2009-09-05 21:47:34 +00003701# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003702MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3703
3704MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3705
cristy37442762013-02-10 21:07:23 +00003706
cristy5ed9c6e2013-07-14 21:20:31 +00003707MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3708
3709MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3710
3711
cristyd694ca32011-03-27 21:42:54 +00003712
cristy3ed852e2009-09-05 21:47:34 +00003713# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3715$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003716# Reject unsafe characters in $srcdir or the absolute working directory
3717# name. Accept space and tab only in the latter.
3718am_lf='
3719'
3720case `pwd` in
3721 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003722 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003723esac
3724case $srcdir in
3725 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003726 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003727esac
cristy3ed852e2009-09-05 21:47:34 +00003728
cristyc0890a62012-07-19 00:18:20 +00003729# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003730# arguments. Must try -L first in case configure is actually a
3731# symlink; some systems play weird games with the mod time of symlinks
3732# (eg FreeBSD returns the mod time of the symlink's containing
3733# directory).
3734if (
cristyc0890a62012-07-19 00:18:20 +00003735 am_has_slept=no
3736 for am_try in 1 2; do
3737 echo "timestamp, slept: $am_has_slept" > conftest.file
3738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3739 if test "$*" = "X"; then
3740 # -L didn't work.
3741 set X `ls -t "$srcdir/configure" conftest.file`
3742 fi
3743 if test "$*" != "X $srcdir/configure conftest.file" \
3744 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003745
cristyc0890a62012-07-19 00:18:20 +00003746 # If neither matched, then we have a broken ls. This can happen
3747 # if, for instance, CONFIG_SHELL is bash and it inherits a
3748 # broken ls alias from the environment. This has actually
3749 # happened. Such a system could not be considered "sane".
3750 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3751 alias in your environment" "$LINENO" 5
3752 fi
3753 if test "$2" = conftest.file || test $am_try -eq 2; then
3754 break
3755 fi
3756 # Just in case.
3757 sleep 1
3758 am_has_slept=yes
3759 done
cristy73bd4a52010-10-05 11:24:23 +00003760 test "$2" = conftest.file
3761 )
3762then
3763 # Ok.
3764 :
3765else
cristy98dddb52010-11-04 00:30:15 +00003766 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003767Check your system clock" "$LINENO" 5
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3770$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003771# If we didn't sleep, we still need to ensure time stamps of config.status and
3772# generated files are strictly newer.
3773am_sleep_pid=
3774if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3775 ( sleep 1 ) &
3776 am_sleep_pid=$!
3777fi
cristy73bd4a52010-10-05 11:24:23 +00003778
cristyc0890a62012-07-19 00:18:20 +00003779rm -f conftest.file
3780
3781
cristyd95b7a52013-10-23 13:12:53 +00003782am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003783
3784# Find a good install program. We prefer a C program (faster),
3785# so one script is as good as another. But avoid the broken or
3786# incompatible versions:
3787# SysV /etc/install, /usr/sbin/install
3788# SunOS /usr/etc/install
3789# IRIX /sbin/install
3790# AIX /bin/install
3791# AmigaOS /C/install, which installs bootblocks on floppy discs
3792# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3793# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3794# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3795# OS/2's system install, which has a completely different semantic
3796# ./install, which can be erroneously created by make from ./install.sh.
3797# Reject install programs that cannot install multiple files.
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3799$as_echo_n "checking for a BSD-compatible install... " >&6; }
3800if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003801if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003802 $as_echo_n "(cached) " >&6
3803else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 # Account for people who put trailing slashes in PATH elements.
3810case $as_dir/ in #((
3811 ./ | .// | /[cC]/* | \
3812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3813 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3814 /usr/ucb/* ) ;;
3815 *)
3816 # OSF1 and SCO ODT 3.0 have their own names for install.
3817 # Don't use installbsd from OSF since it installs stuff as root
3818 # by default.
3819 for ac_prog in ginstall scoinst install; do
3820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003821 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003822 if test $ac_prog = install &&
3823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824 # AIX install. It has an incompatible calling convention.
3825 :
3826 elif test $ac_prog = install &&
3827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3828 # program-specific install script used by HP pwplus--don't use.
3829 :
3830 else
3831 rm -rf conftest.one conftest.two conftest.dir
3832 echo one > conftest.one
3833 echo two > conftest.two
3834 mkdir conftest.dir
3835 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3836 test -s conftest.one && test -s conftest.two &&
3837 test -s conftest.dir/conftest.one &&
3838 test -s conftest.dir/conftest.two
3839 then
3840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3841 break 3
3842 fi
3843 fi
3844 fi
3845 done
3846 done
3847 ;;
3848esac
3849
3850 done
3851IFS=$as_save_IFS
3852
3853rm -rf conftest.one conftest.two conftest.dir
3854
3855fi
3856 if test "${ac_cv_path_install+set}" = set; then
3857 INSTALL=$ac_cv_path_install
3858 else
3859 # As a last resort, use the slow shell script. Don't cache a
3860 # value for INSTALL within a source directory, because that will
3861 # break other packages using the cache if that directory is
3862 # removed, or if the value is a relative name.
3863 INSTALL=$ac_install_sh
3864 fi
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3867$as_echo "$INSTALL" >&6; }
3868
3869# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3870# It thinks the first close brace ends the variable substitution.
3871test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3872
3873test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3874
3875test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3876
3877test "$program_prefix" != NONE &&
3878 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3879# Use a double $ so make ignores it.
3880test "$program_suffix" != NONE &&
3881 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3882# Double any \ or $.
3883# By default was `s,x,x', remove it if useless.
3884ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3885program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3886
3887# expand $ac_aux_dir to an absolute path
3888am_aux_dir=`cd $ac_aux_dir && pwd`
3889
3890if test x"${MISSING+set}" != xset; then
3891 case $am_aux_dir in
3892 *\ * | *\ *)
3893 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3894 *)
3895 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3896 esac
3897fi
3898# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003899if eval "$MISSING --is-lightweight"; then
3900 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003901else
3902 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3904$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003905fi
3906
3907if test x"${install_sh}" != xset; then
3908 case $am_aux_dir in
3909 *\ * | *\ *)
3910 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3911 *)
3912 install_sh="\${SHELL} $am_aux_dir/install-sh"
3913 esac
3914fi
3915
cristyc0890a62012-07-19 00:18:20 +00003916# Installed binaries are usually stripped using 'strip' when the user
3917# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003918# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003919# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003920if test "$cross_compiling" != no; then
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}strip; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003926if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003927 $as_echo_n "(cached) " >&6
3928else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944 done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949STRIP=$ac_cv_prog_STRIP
3950if test -n "$STRIP"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3952$as_echo "$STRIP" >&6; }
3953else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958
3959fi
3960if test -z "$ac_cv_prog_STRIP"; then
3961 ac_ct_STRIP=$STRIP
3962 # Extract the first word of "strip", so it can be a program name with args.
3963set dummy strip; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003966if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003967 $as_echo_n "(cached) " >&6
3968else
3969 if test -n "$ac_ct_STRIP"; then
3970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003979 ac_cv_prog_ac_ct_STRIP="strip"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984 done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3990if test -n "$ac_ct_STRIP"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3992$as_echo "$ac_ct_STRIP" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998 if test "x$ac_ct_STRIP" = x; then
3999 STRIP=":"
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 STRIP=$ac_ct_STRIP
4008 fi
4009else
4010 STRIP="$ac_cv_prog_STRIP"
4011fi
4012
4013fi
4014INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4017$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4018if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004019 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004020 $as_echo_n "(cached) " >&6
4021else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in mkdir gmkdir; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004029 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4031 'mkdir (GNU coreutils) '* | \
4032 'mkdir (coreutils) '* | \
4033 'mkdir (fileutils) '4.1*)
4034 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4035 break 3;;
4036 esac
4037 done
4038 done
4039 done
4040IFS=$as_save_IFS
4041
4042fi
4043
4044 test -d ./--version && rmdir ./--version
4045 if test "${ac_cv_path_mkdir+set}" = set; then
4046 MKDIR_P="$ac_cv_path_mkdir -p"
4047 else
4048 # As a last resort, use the slow shell script. Don't cache a
4049 # value for MKDIR_P within a source directory, because that will
4050 # break other packages using the cache if that directory is
4051 # removed, or if the value is a relative name.
4052 MKDIR_P="$ac_install_sh -d"
4053 fi
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4056$as_echo "$MKDIR_P" >&6; }
4057
cristy73bd4a52010-10-05 11:24:23 +00004058for ac_prog in gawk mawk nawk awk
4059do
4060 # Extract the first word of "$ac_prog", so it can be a program name with args.
4061set dummy $ac_prog; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004064if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004065 $as_echo_n "(cached) " >&6
4066else
4067 if test -n "$AWK"; then
4068 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004077 ac_cv_prog_AWK="$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081done
4082 done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087AWK=$ac_cv_prog_AWK
4088if test -n "$AWK"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4090$as_echo "$AWK" >&6; }
4091else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097 test -n "$AWK" && break
4098done
4099
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4101$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4102set x ${MAKE-make}
4103ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004104if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004105 $as_echo_n "(cached) " >&6
4106else
4107 cat >conftest.make <<\_ACEOF
4108SHELL = /bin/sh
4109all:
4110 @echo '@@@%%%=$(MAKE)=@@@%%%'
4111_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004113case `${MAKE-make} -f conftest.make 2>/dev/null` in
4114 *@@@%%%=?*=@@@%%%*)
4115 eval ac_cv_prog_make_${ac_make}_set=yes;;
4116 *)
4117 eval ac_cv_prog_make_${ac_make}_set=no;;
4118esac
4119rm -f conftest.make
4120fi
4121if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4123$as_echo "yes" >&6; }
4124 SET_MAKE=
4125else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
4128 SET_MAKE="MAKE=${MAKE-make}"
4129fi
4130
4131rm -rf .tst 2>/dev/null
4132mkdir .tst 2>/dev/null
4133if test -d .tst; then
4134 am__leading_dot=.
4135else
4136 am__leading_dot=_
4137fi
4138rmdir .tst 2>/dev/null
4139
cristya448bd22011-10-14 12:38:13 +00004140# Check whether --enable-silent-rules was given.
4141if test "${enable_silent_rules+set}" = set; then :
4142 enableval=$enable_silent_rules;
4143fi
4144
cristyc0890a62012-07-19 00:18:20 +00004145case $enable_silent_rules in # (((
4146 yes) AM_DEFAULT_VERBOSITY=0;;
4147 no) AM_DEFAULT_VERBOSITY=1;;
4148 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004149esac
cristyc3fb77b2012-02-06 01:49:41 +00004150am_make=${MAKE-make}
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4152$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4153if ${am_cv_make_support_nested_variables+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 if $as_echo 'TRUE=$(BAR$(V))
4157BAR0=false
4158BAR1=true
4159V=1
4160am__doit:
4161 @$(TRUE)
4162.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4163 am_cv_make_support_nested_variables=yes
4164else
4165 am_cv_make_support_nested_variables=no
4166fi
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4169$as_echo "$am_cv_make_support_nested_variables" >&6; }
4170if test $am_cv_make_support_nested_variables = yes; then
4171 AM_V='$(V)'
4172 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4173else
4174 AM_V=$AM_DEFAULT_VERBOSITY
4175 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4176fi
cristya448bd22011-10-14 12:38:13 +00004177AM_BACKSLASH='\'
4178
cristy73bd4a52010-10-05 11:24:23 +00004179if test "`cd $srcdir && pwd`" != "`pwd`"; then
4180 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4181 # is not polluted with repeated "-I."
4182 am__isrc=' -I$(srcdir)'
4183 # test to see if srcdir already configured
4184 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004185 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004186 fi
4187fi
4188
4189# test whether we have cygpath
4190if test -z "$CYGPATH_W"; then
4191 if (cygpath --version) >/dev/null 2>/dev/null; then
4192 CYGPATH_W='cygpath -w'
4193 else
4194 CYGPATH_W=echo
4195 fi
4196fi
4197
4198
4199# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004200 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004201 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004202
4203
cristya448bd22011-10-14 12:38:13 +00004204cat >>confdefs.h <<_ACEOF
4205#define PACKAGE "$PACKAGE"
4206_ACEOF
4207
4208
4209cat >>confdefs.h <<_ACEOF
4210#define VERSION "$VERSION"
4211_ACEOF
4212
cristy73bd4a52010-10-05 11:24:23 +00004213# Some tools Automake needs.
4214
4215ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4216
4217
4218AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4219
4220
4221AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4222
4223
4224AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4225
4226
4227MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4228
cristyc0890a62012-07-19 00:18:20 +00004229# For better backward compatibility. To be removed once Automake 1.9.x
4230# dies out for good. For more background, see:
4231# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4232# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4233mkdir_p='$(MKDIR_P)'
4234
cristy73bd4a52010-10-05 11:24:23 +00004235# We need awk for the "check" target. The system "awk" is bad on
4236# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004237# Always define AMTAR for backward compatibility. Yes, it's still used
4238# in the wild :-( We should find a proper way to deprecate it ...
4239AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004240
cristye69bdbe2013-05-03 21:40:44 +00004241
4242# We'll loop over all known methods to create a tar archive until one works.
4243_am_tools='gnutar pax cpio none'
4244
cristyc3fb77b2012-02-06 01:49:41 +00004245am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004246
4247
4248
4249
4250
cristy3ed852e2009-09-05 21:47:34 +00004251
cristyd95b7a52013-10-23 13:12:53 +00004252# POSIX will say in a future version that running "rm -f" with no argument
4253# is OK; and we want to be able to make that assumption in our Makefile
4254# recipes. So use an aggressive probe to check that the usage we want is
4255# actually supported "in the wild" to an acceptable degree.
4256# See automake bug#10828.
4257# To make any issue more visible, cause the running configure to be aborted
4258# by default if the 'rm' program in use doesn't match our expectations; the
4259# user can still override this though.
4260if rm -f && rm -fr && rm -rf; then : OK; else
4261 cat >&2 <<'END'
4262Oops!
4263
4264Your 'rm' program seems unable to run without file operands specified
4265on the command line, even when the '-f' option is present. This is contrary
4266to the behaviour of most rm programs out there, and not conforming with
4267the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4268
4269Please tell bug-automake@gnu.org about your system, including the value
4270of your $PATH and any error possibly output before this message. This
4271can help us improve future automake versions.
4272
4273END
4274 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4275 echo 'Configuration will proceed anyway, since you have set the' >&2
4276 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4277 echo >&2
4278 else
4279 cat >&2 <<'END'
4280Aborting the configuration process, to ensure you take notice of the issue.
4281
4282You can download and install GNU coreutils to get an 'rm' implementation
4283that behaves properly: <http://www.gnu.org/software/coreutils/>.
4284
4285If you want to complete the configuration process using your problematic
4286'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4287to "yes", and re-run configure.
4288
4289END
4290 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4291 fi
4292fi
cristye69bdbe2013-05-03 21:40:44 +00004293
cristy3ed852e2009-09-05 21:47:34 +00004294# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004295# Check whether --enable-silent-rules was given.
4296if test "${enable_silent_rules+set}" = set; then :
4297 enableval=$enable_silent_rules;
4298fi
4299
cristyc0890a62012-07-19 00:18:20 +00004300case $enable_silent_rules in # (((
4301 yes) AM_DEFAULT_VERBOSITY=0;;
4302 no) AM_DEFAULT_VERBOSITY=1;;
4303 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004304esac
cristyc3fb77b2012-02-06 01:49:41 +00004305am_make=${MAKE-make}
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4307$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4308if ${am_cv_make_support_nested_variables+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310else
4311 if $as_echo 'TRUE=$(BAR$(V))
4312BAR0=false
4313BAR1=true
4314V=1
4315am__doit:
4316 @$(TRUE)
4317.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4318 am_cv_make_support_nested_variables=yes
4319else
4320 am_cv_make_support_nested_variables=no
4321fi
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4324$as_echo "$am_cv_make_support_nested_variables" >&6; }
4325if test $am_cv_make_support_nested_variables = yes; then
4326 AM_V='$(V)'
4327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4328else
4329 AM_V=$AM_DEFAULT_VERBOSITY
4330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4331fi
cristy73bd4a52010-10-05 11:24:23 +00004332AM_BACKSLASH='\'
4333
cristy3ed852e2009-09-05 21:47:34 +00004334
cristy5ed9c6e2013-07-14 21:20:31 +00004335# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004336MAGICK_LIB_VERSION="0x"
4337if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4338 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4339fi
4340MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4341if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4342 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4343fi
4344MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4345if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4346 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4347fi
4348MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4349
4350
4351# Definition used to define MagickLibVersionText in version.h
4352MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4353
4354
4355# Definition used to define MagickLibVersionNumber in version.h
4356MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4357
4358
cristy5ed9c6e2013-07-14 21:20:31 +00004359MAGICKPP_LIB_VERSION="0x"
4360if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4361 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4362fi
4363MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4364if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4365 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4366fi
4367MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4368if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4369 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4370fi
4371MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4372
4373
4374# Definition used to define MagickLibVersionText in version.h
4375MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4376
4377
4378# Definition used to define MagickLibVersionNumber in version.h
4379MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4380
4381
4382
4383
cristy3ed852e2009-09-05 21:47:34 +00004384# Regenerate config.status if ChangeLog or version.sh is updated.
4385CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4386
4387
4388PERLMAINCC=$CC
4389
4390MAGICK_CFLAGS=''
4391MAGICK_CPPFLAGS=$CPPFLAGS_USER
4392MAGICK_PCFLAGS=$CPPFLAGS_USER
4393MAGICK_LDFLAGS=''
4394MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004395MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004396
4397#
4398# Evaluate shell variable equivalents to Makefile directory variables
4399#
4400if test "x$prefix" = xNONE; then
4401 prefix=$ac_default_prefix
4402fi
4403# Let make expand exec_prefix.
4404if test "x$exec_prefix" = xNONE; then
4405 exec_prefix='${prefix}'
4406fi
4407
4408#
4409eval "eval PREFIX_DIR=${prefix}"
4410
4411eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4412
4413eval "eval BIN_DIR=$bindir"
4414
4415eval "eval SBIN_DIR=$sbindir"
4416
4417eval "eval LIBEXEC_DIR=$libexecdir"
4418
4419eval "eval DATA_DIR=$datadir"
4420
cristy4e65ec22012-04-08 01:33:27 +00004421eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004422
cristy3ed852e2009-09-05 21:47:34 +00004423eval "eval SYSCONF_DIR=$sysconfdir"
4424
4425eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4426
4427eval "eval LOCALSTATE_DIR=$localstatedir"
4428
4429eval "eval LIB_DIR=$libdir"
4430
4431eval "eval INCLUDE_DIR=$includedir"
4432
4433eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4434
4435eval "eval INFO_DIR=$infodir"
4436
4437eval "eval MAN_DIR=$mandir"
4438
4439
4440# Get full paths to source and build directories
4441srcdirfull="`cd $srcdir && pwd`"
4442builddir="`pwd`"
4443
4444#
4445# Compute variables useful for running uninstalled software.
4446#
4447MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4448MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4449MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4450MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4451DIRSEP=':'
4452case "${build_os}" in
4453 mingw* )
4454 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4455 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4456 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4457 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4458 DIRSEP=';'
4459 ;;
4460esac
4461case "${host_os}" in
4462 mingw* )
4463 DIRSEP=';'
4464 ;;
4465esac
4466
4467
4468
4469
4470
4471
cristya0b81c32010-01-22 02:54:33 +00004472
4473#
4474# Enable OS features.
4475#
cristy73bd4a52010-10-05 11:24:23 +00004476DEPDIR="${am__leading_dot}deps"
4477
4478ac_config_commands="$ac_config_commands depfiles"
4479
4480
4481am_make=${MAKE-make}
4482cat > confinc << 'END'
4483am__doit:
4484 @echo this is the am__doit target
4485.PHONY: am__doit
4486END
4487# If we don't find an include directive, just comment out the code.
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4489$as_echo_n "checking for style of include used by $am_make... " >&6; }
4490am__include="#"
4491am__quote=
4492_am_result=none
4493# First try GNU make style include.
4494echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004495# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004496case `$am_make -s -f confmf 2> /dev/null` in #(
4497*the\ am__doit\ target*)
4498 am__include=include
4499 am__quote=
4500 _am_result=GNU
4501 ;;
4502esac
4503# Now try BSD make style include.
4504if test "$am__include" = "#"; then
4505 echo '.include "confinc"' > confmf
4506 case `$am_make -s -f confmf 2> /dev/null` in #(
4507 *the\ am__doit\ target*)
4508 am__include=.include
4509 am__quote="\""
4510 _am_result=BSD
4511 ;;
4512 esac
4513fi
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4517$as_echo "$_am_result" >&6; }
4518rm -f confinc confmf
4519
4520# Check whether --enable-dependency-tracking was given.
4521if test "${enable_dependency_tracking+set}" = set; then :
4522 enableval=$enable_dependency_tracking;
4523fi
4524
4525if test "x$enable_dependency_tracking" != xno; then
4526 am_depcomp="$ac_aux_dir/depcomp"
4527 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004528 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004529fi
4530 if test "x$enable_dependency_tracking" != xno; then
4531 AMDEP_TRUE=
4532 AMDEP_FALSE='#'
4533else
4534 AMDEP_TRUE='#'
4535 AMDEP_FALSE=
4536fi
4537
4538
cristy3ed852e2009-09-05 21:47:34 +00004539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004549if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564 break 2
4565 fi
4566done
cristy8b350f62009-11-15 23:12:43 +00004567 done
cristy3ed852e2009-09-05 21:47:34 +00004568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "$CC" >&6; }
4576else
cristy8b350f62009-11-15 23:12:43 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_prog_CC"; then
4584 ac_ct_CC=$CC
4585 # Extract the first word of "gcc", so it can be a program name with args.
4586set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004589if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$ac_ct_CC"; then
4593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004602 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004604 break 2
4605 fi
4606done
cristy8b350f62009-11-15 23:12:43 +00004607 done
cristy3ed852e2009-09-05 21:47:34 +00004608IFS=$as_save_IFS
4609
4610fi
4611fi
4612ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004615$as_echo "$ac_ct_CC" >&6; }
4616else
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "no" >&6; }
4619fi
4620
4621 if test "x$ac_ct_CC" = x; then
4622 CC=""
4623 else
4624 case $cross_compiling:$ac_tool_warned in
4625yes:)
cristy8b350f62009-11-15 23:12:43 +00004626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628ac_tool_warned=yes ;;
4629esac
4630 CC=$ac_ct_CC
4631 fi
4632else
4633 CC="$ac_cv_prog_CC"
4634fi
4635
4636if test -z "$CC"; then
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4639set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004642if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004643 $as_echo_n "(cached) " >&6
4644else
4645 if test -n "$CC"; then
4646 ac_cv_prog_CC="$CC" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004655 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004657 break 2
4658 fi
4659done
cristy8b350f62009-11-15 23:12:43 +00004660 done
cristy3ed852e2009-09-05 21:47:34 +00004661IFS=$as_save_IFS
4662
4663fi
4664fi
4665CC=$ac_cv_prog_CC
4666if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo "$CC" >&6; }
4669else
cristy8b350f62009-11-15 23:12:43 +00004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671$as_echo "no" >&6; }
4672fi
4673
4674
4675 fi
4676fi
4677if test -z "$CC"; then
4678 # Extract the first word of "cc", so it can be a program name with args.
4679set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004682if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004683 $as_echo_n "(cached) " >&6
4684else
4685 if test -n "$CC"; then
4686 ac_cv_prog_CC="$CC" # Let the user override the test.
4687else
4688 ac_prog_rejected=no
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4697 ac_prog_rejected=yes
4698 continue
4699 fi
4700 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702 break 2
4703 fi
4704done
cristy8b350f62009-11-15 23:12:43 +00004705 done
cristy3ed852e2009-09-05 21:47:34 +00004706IFS=$as_save_IFS
4707
4708if test $ac_prog_rejected = yes; then
4709 # We found a bogon in the path, so make sure we never use it.
4710 set dummy $ac_cv_prog_CC
4711 shift
4712 if test $# != 0; then
4713 # We chose a different compiler from the bogus one.
4714 # However, it has the same basename, so the bogon will be chosen
4715 # first if we set CC to just the basename; use the full file name.
4716 shift
4717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4718 fi
4719fi
4720fi
4721fi
4722CC=$ac_cv_prog_CC
4723if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$CC" >&6; }
4726else
cristy8b350f62009-11-15 23:12:43 +00004727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004728$as_echo "no" >&6; }
4729fi
4730
4731
4732fi
4733if test -z "$CC"; then
4734 if test -n "$ac_tool_prefix"; then
4735 for ac_prog in cl.exe
4736 do
4737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004741if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756 break 2
4757 fi
4758done
cristy8b350f62009-11-15 23:12:43 +00004759 done
cristy3ed852e2009-09-05 21:47:34 +00004760IFS=$as_save_IFS
4761
4762fi
4763fi
4764CC=$ac_cv_prog_CC
4765if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004767$as_echo "$CC" >&6; }
4768else
cristy8b350f62009-11-15 23:12:43 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "no" >&6; }
4771fi
4772
4773
4774 test -n "$CC" && break
4775 done
4776fi
4777if test -z "$CC"; then
4778 ac_ct_CC=$CC
4779 for ac_prog in cl.exe
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004785if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004786 $as_echo_n "(cached) " >&6
4787else
4788 if test -n "$ac_ct_CC"; then
4789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004798 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004800 break 2
4801 fi
4802done
cristy8b350f62009-11-15 23:12:43 +00004803 done
cristy3ed852e2009-09-05 21:47:34 +00004804IFS=$as_save_IFS
4805
4806fi
4807fi
4808ac_ct_CC=$ac_cv_prog_ac_ct_CC
4809if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004811$as_echo "$ac_ct_CC" >&6; }
4812else
cristy8b350f62009-11-15 23:12:43 +00004813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo "no" >&6; }
4815fi
4816
4817
4818 test -n "$ac_ct_CC" && break
4819done
4820
4821 if test "x$ac_ct_CC" = x; then
4822 CC=""
4823 else
4824 case $cross_compiling:$ac_tool_warned in
4825yes:)
cristy8b350f62009-11-15 23:12:43 +00004826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828ac_tool_warned=yes ;;
4829esac
4830 CC=$ac_ct_CC
4831 fi
4832fi
4833
4834fi
4835
4836
cristy8b350f62009-11-15 23:12:43 +00004837test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004839as_fn_error $? "no acceptable C compiler found in \$PATH
4840See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004841
4842# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844set X $ac_compile
4845ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
cristy8b350f62009-11-15 23:12:43 +00004852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004855 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004861 fi
cristycd4c5312009-11-22 01:19:08 +00004862 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
cristy3ed852e2009-09-05 21:47:34 +00004866
cristy8b350f62009-11-15 23:12:43 +00004867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004868/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004869
cristy3ed852e2009-09-05 21:47:34 +00004870int
4871main ()
4872{
4873
4874 ;
4875 return 0;
4876}
4877_ACEOF
4878ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004879ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004880# Try to create an executable without -o first, disregard a.out.
4881# It will help us diagnose broken compilers, and finding out an intuition
4882# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4884$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004885ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4886
4887# The possible output files:
4888ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4889
4890ac_rmfiles=
4891for ac_file in $ac_files
4892do
4893 case $ac_file in
4894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4896 esac
4897done
4898rm -f $ac_rmfiles
4899
cristy8b350f62009-11-15 23:12:43 +00004900if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004901case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904esac
cristy8b350f62009-11-15 23:12:43 +00004905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4906$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004907 (eval "$ac_link_default") 2>&5
4908 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4910 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4912# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4913# in a Makefile. We should not override ac_cv_exeext if it was cached,
4914# so that the user can short-circuit this test for compilers unknown to
4915# Autoconf.
4916for ac_file in $ac_files ''
4917do
4918 test -f "$ac_file" || continue
4919 case $ac_file in
4920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4921 ;;
4922 [ab].out )
4923 # We found the default executable, but exeext='' is most
4924 # certainly right.
4925 break;;
4926 *.* )
cristy8b350f62009-11-15 23:12:43 +00004927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004928 then :; else
4929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4930 fi
4931 # We set ac_cv_exeext here because the later test for it is not
4932 # safe: cross compilers may not add the suffix if given an `-o'
4933 # argument, so we may need to know it at that point already.
4934 # Even if this section looks crufty: it has the advantage of
4935 # actually working.
4936 break;;
4937 * )
4938 break;;
4939 esac
4940done
4941test "$ac_cv_exeext" = no && ac_cv_exeext=
4942
4943else
4944 ac_file=''
4945fi
cristy8b350f62009-11-15 23:12:43 +00004946if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948$as_echo "no" >&6; }
4949$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004950sed 's/^/| /' conftest.$ac_ext >&5
4951
cristy8b350f62009-11-15 23:12:43 +00004952{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004954as_fn_error 77 "C compiler cannot create executables
4955See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004956else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4958$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004959fi
cristycd4c5312009-11-22 01:19:08 +00004960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4961$as_echo_n "checking for C compiler default output file name... " >&6; }
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4963$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004964ac_exeext=$ac_cv_exeext
4965
cristycd4c5312009-11-22 01:19:08 +00004966rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004967ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004970if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004971case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974esac
cristy8b350f62009-11-15 23:12:43 +00004975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4976$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004977 (eval "$ac_link") 2>&5
4978 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4983# work properly (i.e., refer to `conftest.exe'), while it won't with
4984# `rm'.
4985for ac_file in conftest.exe conftest conftest.*; do
4986 test -f "$ac_file" || continue
4987 case $ac_file in
4988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4990 break;;
4991 * ) break;;
4992 esac
4993done
4994else
cristy8b350f62009-11-15 23:12:43 +00004995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004997as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4998See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004999fi
cristycd4c5312009-11-22 01:19:08 +00005000rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005002$as_echo "$ac_cv_exeext" >&6; }
5003
5004rm -f conftest.$ac_ext
5005EXEEXT=$ac_cv_exeext
5006ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008/* end confdefs.h. */
5009#include <stdio.h>
5010int
5011main ()
5012{
5013FILE *f = fopen ("conftest.out", "w");
5014 return ferror (f) || fclose (f) != 0;
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020ac_clean_files="$ac_clean_files conftest.out"
5021# Check that the compiler produces executables we can run. If not, either
5022# the compiler is broken, or we cross compile.
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5024$as_echo_n "checking whether we are cross compiling... " >&6; }
5025if test "$cross_compiling" != yes; then
5026 { { ac_try="$ac_link"
5027case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5030esac
5031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5032$as_echo "$ac_try_echo"; } >&5
5033 (eval "$ac_link") 2>&5
5034 ac_status=$?
5035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5036 test $ac_status = 0; }
5037 if { ac_try='./conftest$ac_cv_exeext'
5038 { { case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
5042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043$as_echo "$ac_try_echo"; } >&5
5044 (eval "$ac_try") 2>&5
5045 ac_status=$?
5046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }; }; then
5048 cross_compiling=no
5049 else
5050 if test "$cross_compiling" = maybe; then
5051 cross_compiling=yes
5052 else
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005055as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005056If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005057See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005058 fi
5059 fi
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5062$as_echo "$cross_compiling" >&6; }
5063
5064rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5065ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005067$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005068if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005069 $as_echo_n "(cached) " >&6
5070else
cristy8b350f62009-11-15 23:12:43 +00005071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005072/* end confdefs.h. */
5073
5074int
5075main ()
5076{
5077
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005083if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005084case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087esac
cristy8b350f62009-11-15 23:12:43 +00005088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005090 (eval "$ac_compile") 2>&5
5091 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005094 for ac_file in conftest.o conftest.obj conftest.*; do
5095 test -f "$ac_file" || continue;
5096 case $ac_file in
5097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5099 break;;
5100 esac
5101done
5102else
5103 $as_echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
cristy8b350f62009-11-15 23:12:43 +00005106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005108as_fn_error $? "cannot compute suffix of object files: cannot compile
5109See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005110fi
cristy3ed852e2009-09-05 21:47:34 +00005111rm -f conftest.$ac_cv_objext conftest.$ac_ext
5112fi
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo "$ac_cv_objext" >&6; }
5115OBJEXT=$ac_cv_objext
5116ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005119if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005120 $as_echo_n "(cached) " >&6
5121else
cristy8b350f62009-11-15 23:12:43 +00005122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005123/* end confdefs.h. */
5124
5125int
5126main ()
5127{
5128#ifndef __GNUC__
5129 choke me
5130#endif
5131
5132 ;
5133 return 0;
5134}
5135_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005136if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005137 ac_compiler_gnu=yes
5138else
cristy8b350f62009-11-15 23:12:43 +00005139 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005140fi
cristy3ed852e2009-09-05 21:47:34 +00005141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142ac_cv_c_compiler_gnu=$ac_compiler_gnu
5143
5144fi
cristy8b350f62009-11-15 23:12:43 +00005145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005146$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5147if test $ac_compiler_gnu = yes; then
5148 GCC=yes
5149else
5150 GCC=
5151fi
5152ac_test_CFLAGS=${CFLAGS+set}
5153ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005155$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005156if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005157 $as_echo_n "(cached) " >&6
5158else
5159 ac_save_c_werror_flag=$ac_c_werror_flag
5160 ac_c_werror_flag=yes
5161 ac_cv_prog_cc_g=no
5162 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005164/* end confdefs.h. */
5165
5166int
5167main ()
5168{
5169
5170 ;
5171 return 0;
5172}
5173_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005174if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005175 ac_cv_prog_cc_g=yes
5176else
cristy8b350f62009-11-15 23:12:43 +00005177 CFLAGS=""
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005179/* end confdefs.h. */
5180
5181int
5182main ()
5183{
5184
5185 ;
5186 return 0;
5187}
5188_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005189if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005190
cristy8b350f62009-11-15 23:12:43 +00005191else
5192 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005193 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005195/* end confdefs.h. */
5196
5197int
5198main ()
5199{
5200
5201 ;
5202 return 0;
5203}
5204_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005206 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005207fi
cristy3ed852e2009-09-05 21:47:34 +00005208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
cristy3ed852e2009-09-05 21:47:34 +00005210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
cristy3ed852e2009-09-05 21:47:34 +00005212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 ac_c_werror_flag=$ac_save_c_werror_flag
5214fi
cristy8b350f62009-11-15 23:12:43 +00005215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005216$as_echo "$ac_cv_prog_cc_g" >&6; }
5217if test "$ac_test_CFLAGS" = set; then
5218 CFLAGS=$ac_save_CFLAGS
5219elif test $ac_cv_prog_cc_g = yes; then
5220 if test "$GCC" = yes; then
5221 CFLAGS="-g -O2"
5222 else
5223 CFLAGS="-g"
5224 fi
5225else
5226 if test "$GCC" = yes; then
5227 CFLAGS="-O2"
5228 else
5229 CFLAGS=
5230 fi
5231fi
cristy8b350f62009-11-15 23:12:43 +00005232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005234if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005235 $as_echo_n "(cached) " >&6
5236else
5237 ac_cv_prog_cc_c89=no
5238ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005240/* end confdefs.h. */
5241#include <stdarg.h>
5242#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005243struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5245struct buf { int x; };
5246FILE * (*rcsopen) (struct buf *, struct stat *, int);
5247static char *e (p, i)
5248 char **p;
5249 int i;
5250{
5251 return p[i];
5252}
5253static char *f (char * (*g) (char **, int), char **p, ...)
5254{
5255 char *s;
5256 va_list v;
5257 va_start (v,p);
5258 s = g (p, va_arg (v,int));
5259 va_end (v);
5260 return s;
5261}
5262
5263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5264 function prototypes and stuff, but not '\xHH' hex character constants.
5265 These don't provoke an error unfortunately, instead are silently treated
5266 as 'x'. The following induces an error, until -std is added to get
5267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5268 array size at least. It's necessary to write '\x00'==0 to get something
5269 that's true only with -std. */
5270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5271
5272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5273 inside strings and character constants. */
5274#define FOO(x) 'x'
5275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5276
5277int test (int i, double x);
5278struct s1 {int (*f) (int a);};
5279struct s2 {int (*f) (double a);};
5280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5281int argc;
5282char **argv;
5283int
5284main ()
5285{
5286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5293do
5294 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005295 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005296 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005297fi
cristy3ed852e2009-09-05 21:47:34 +00005298rm -f core conftest.err conftest.$ac_objext
5299 test "x$ac_cv_prog_cc_c89" != "xno" && break
5300done
5301rm -f conftest.$ac_ext
5302CC=$ac_save_CC
5303
5304fi
5305# AC_CACHE_VAL
5306case "x$ac_cv_prog_cc_c89" in
5307 x)
cristy8b350f62009-11-15 23:12:43 +00005308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005309$as_echo "none needed" >&6; } ;;
5310 xno)
cristy8b350f62009-11-15 23:12:43 +00005311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005312$as_echo "unsupported" >&6; } ;;
5313 *)
5314 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005316$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5317esac
cristy8b350f62009-11-15 23:12:43 +00005318if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005319
cristy8b350f62009-11-15 23:12:43 +00005320fi
cristy3ed852e2009-09-05 21:47:34 +00005321
5322ac_ext=c
5323ac_cpp='$CPP $CPPFLAGS'
5324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005327
cristyd95b7a52013-10-23 13:12:53 +00005328ac_ext=c
5329ac_cpp='$CPP $CPPFLAGS'
5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5334$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5335if ${am_cv_prog_cc_c_o+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337else
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h. */
5340
5341int
5342main ()
5343{
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349 # Make sure it works both with $CC and with simple cc.
5350 # Following AC_PROG_CC_C_O, we do the test twice because some
5351 # compilers refuse to overwrite an existing .o file with -o,
5352 # though they will create one.
5353 am_cv_prog_cc_c_o=yes
5354 for am_i in 1 2; do
5355 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5356 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } \
5360 && test -f conftest2.$ac_objext; then
5361 : OK
5362 else
5363 am_cv_prog_cc_c_o=no
5364 break
5365 fi
5366 done
5367 rm -f core conftest*
5368 unset am_i
5369fi
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5371$as_echo "$am_cv_prog_cc_c_o" >&6; }
5372if test "$am_cv_prog_cc_c_o" != yes; then
5373 # Losing compiler, so override with the script.
5374 # FIXME: It is wrong to rewrite CC.
5375 # But if we don't then we get into trouble of one sort or another.
5376 # A longer-term fix would be to have automake use am__CC in this case,
5377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5378 CC="$am_aux_dir/compile $CC"
5379fi
5380ac_ext=c
5381ac_cpp='$CPP $CPPFLAGS'
5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385
5386
cristy73bd4a52010-10-05 11:24:23 +00005387depcc="$CC" am_compiler_list=
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5390$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005391if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005392 $as_echo_n "(cached) " >&6
5393else
5394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5395 # We make a subdir and do the tests there. Otherwise we can end up
5396 # making bogus files that we don't know about and never remove. For
5397 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005398 # making a dummy file named 'D' -- because '-MD' means "put the output
5399 # in D".
cristy7247bba2012-02-05 16:37:27 +00005400 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005401 mkdir conftest.dir
5402 # Copy depcomp to subdir because otherwise we won't find it if we're
5403 # using a relative directory.
5404 cp "$am_depcomp" conftest.dir
5405 cd conftest.dir
5406 # We will build objects and dependencies in a subdirectory because
5407 # it helps to detect inapplicable dependency modes. For instance
5408 # both Tru64's cc and ICC support -MD to output dependencies as a
5409 # side effect of compilation, but ICC will put the dependencies in
5410 # the current directory while Tru64 will put them in the object
5411 # directory.
5412 mkdir sub
5413
5414 am_cv_CC_dependencies_compiler_type=none
5415 if test "$am_compiler_list" = ""; then
5416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5417 fi
5418 am__universal=false
5419 case " $depcc " in #(
5420 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5421 esac
5422
5423 for depmode in $am_compiler_list; do
5424 # Setup a source with many dependencies, because some compilers
5425 # like to wrap large dependency lists on column 80 (with \), and
5426 # we should not choose a depcomp mode which is confused by this.
5427 #
5428 # We need to recreate these files for each test, as the compiler may
5429 # overwrite some of them when testing with obscure command lines.
5430 # This happens at least with the AIX C compiler.
5431 : > sub/conftest.c
5432 for i in 1 2 3 4 5 6; do
5433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5435 # Solaris 10 /bin/sh.
5436 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005437 done
5438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5439
cristyc0890a62012-07-19 00:18:20 +00005440 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005441 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005442 # handle '-M -o', and we need to detect this. Also, some Intel
5443 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005444 am__obj=sub/conftest.${OBJEXT-o}
5445 am__minus_obj="-o $am__obj"
5446 case $depmode in
5447 gcc)
5448 # This depmode causes a compiler race in universal mode.
5449 test "$am__universal" = false || continue
5450 ;;
5451 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005452 # After this tag, mechanisms are not by side-effect, so they'll
5453 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005454 if test "x$enable_dependency_tracking" = xyes; then
5455 continue
5456 else
5457 break
5458 fi
5459 ;;
cristy7247bba2012-02-05 16:37:27 +00005460 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005461 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005462 # not run yet. These depmodes are late enough in the game, and
5463 # so weak that their functioning should not be impacted.
5464 am__obj=conftest.${OBJEXT-o}
5465 am__minus_obj=
5466 ;;
5467 none) break ;;
5468 esac
5469 if depmode=$depmode \
5470 source=sub/conftest.c object=$am__obj \
5471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5473 >/dev/null 2>conftest.err &&
5474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5478 # icc doesn't choke on unknown options, it will just issue warnings
5479 # or remarks (even with -Werror). So we grep stderr for any message
5480 # that says an option was ignored or not supported.
5481 # When given -MP, icc 7.0 and 7.1 complain thusly:
5482 # icc: Command line warning: ignoring option '-M'; no argument required
5483 # The diagnosis changed in icc 8.0:
5484 # icc: Command line remark: option '-MP' not supported
5485 if (grep 'ignoring option' conftest.err ||
5486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5487 am_cv_CC_dependencies_compiler_type=$depmode
5488 break
5489 fi
5490 fi
5491 done
5492
5493 cd ..
5494 rm -rf conftest.dir
5495else
5496 am_cv_CC_dependencies_compiler_type=none
5497fi
5498
5499fi
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5501$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5503
5504 if
5505 test "x$enable_dependency_tracking" != xno \
5506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5507 am__fastdepCC_TRUE=
5508 am__fastdepCC_FALSE='#'
5509else
5510 am__fastdepCC_TRUE='#'
5511 am__fastdepCC_FALSE=
5512fi
5513
5514
cristy3ed852e2009-09-05 21:47:34 +00005515
cristya0b81c32010-01-22 02:54:33 +00005516ac_ext=c
5517ac_cpp='$CPP $CPPFLAGS'
5518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5522$as_echo_n "checking how to run the C preprocessor... " >&6; }
5523# On Suns, sometimes $CPP names a directory.
5524if test -n "$CPP" && test -d "$CPP"; then
5525 CPP=
5526fi
5527if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005528 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 # Double quotes because CPP needs to be expanded
5532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5533 do
5534 ac_preproc_ok=false
5535for ac_c_preproc_warn_flag in '' yes
5536do
5537 # Use a header file that comes with gcc, so configuring glibc
5538 # with a fresh cross-compiler works.
5539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 # <limits.h> exists even on freestanding compilers.
5541 # On the NeXT, cc -E runs the code through the compiler's parser,
5542 # not just through cpp. "Syntax error" is here to catch this case.
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h. */
5545#ifdef __STDC__
5546# include <limits.h>
5547#else
5548# include <assert.h>
5549#endif
5550 Syntax error
5551_ACEOF
5552if ac_fn_c_try_cpp "$LINENO"; then :
5553
5554else
5555 # Broken: fails on valid input.
5556continue
5557fi
cristyda16f162011-02-19 23:52:17 +00005558rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005559
5560 # OK, works on sane cases. Now check whether nonexistent headers
5561 # can be detected and how.
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h. */
5564#include <ac_nonexistent.h>
5565_ACEOF
5566if ac_fn_c_try_cpp "$LINENO"; then :
5567 # Broken: success on invalid input.
5568continue
5569else
5570 # Passes both tests.
5571ac_preproc_ok=:
5572break
5573fi
cristyda16f162011-02-19 23:52:17 +00005574rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005575
5576done
5577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005578rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005579if $ac_preproc_ok; then :
5580 break
5581fi
5582
5583 done
5584 ac_cv_prog_CPP=$CPP
5585
5586fi
5587 CPP=$ac_cv_prog_CPP
5588else
5589 ac_cv_prog_CPP=$CPP
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5592$as_echo "$CPP" >&6; }
5593ac_preproc_ok=false
5594for ac_c_preproc_warn_flag in '' yes
5595do
5596 # Use a header file that comes with gcc, so configuring glibc
5597 # with a fresh cross-compiler works.
5598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 # <limits.h> exists even on freestanding compilers.
5600 # On the NeXT, cc -E runs the code through the compiler's parser,
5601 # not just through cpp. "Syntax error" is here to catch this case.
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */
5604#ifdef __STDC__
5605# include <limits.h>
5606#else
5607# include <assert.h>
5608#endif
5609 Syntax error
5610_ACEOF
5611if ac_fn_c_try_cpp "$LINENO"; then :
5612
5613else
5614 # Broken: fails on valid input.
5615continue
5616fi
cristyda16f162011-02-19 23:52:17 +00005617rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005618
5619 # OK, works on sane cases. Now check whether nonexistent headers
5620 # can be detected and how.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623#include <ac_nonexistent.h>
5624_ACEOF
5625if ac_fn_c_try_cpp "$LINENO"; then :
5626 # Broken: success on invalid input.
5627continue
5628else
5629 # Passes both tests.
5630ac_preproc_ok=:
5631break
5632fi
cristyda16f162011-02-19 23:52:17 +00005633rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005634
5635done
5636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005637rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005638if $ac_preproc_ok; then :
5639
5640else
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005643as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5644See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005645fi
5646
5647ac_ext=c
5648ac_cpp='$CPP $CPPFLAGS'
5649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652
5653
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5655$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005656if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005657 $as_echo_n "(cached) " >&6
5658else
5659 if test -z "$GREP"; then
5660 ac_path_GREP_found=false
5661 # Loop through the user's path and test for each of PROGNAME-LIST
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_prog in grep ggrep; do
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005670 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005671# Check for GNU ac_path_GREP and select it if it is found.
5672 # Check for GNU $ac_path_GREP
5673case `"$ac_path_GREP" --version 2>&1` in
5674*GNU*)
5675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5676*)
5677 ac_count=0
5678 $as_echo_n 0123456789 >"conftest.in"
5679 while :
5680 do
5681 cat "conftest.in" "conftest.in" >"conftest.tmp"
5682 mv "conftest.tmp" "conftest.in"
5683 cp "conftest.in" "conftest.nl"
5684 $as_echo 'GREP' >> "conftest.nl"
5685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5687 as_fn_arith $ac_count + 1 && ac_count=$as_val
5688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5689 # Best one so far, save it but keep looking for a better one
5690 ac_cv_path_GREP="$ac_path_GREP"
5691 ac_path_GREP_max=$ac_count
5692 fi
5693 # 10*(2^10) chars as input seems more than enough
5694 test $ac_count -gt 10 && break
5695 done
5696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5697esac
5698
5699 $ac_path_GREP_found && break 3
5700 done
5701 done
5702 done
5703IFS=$as_save_IFS
5704 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005705 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005706 fi
5707else
5708 ac_cv_path_GREP=$GREP
5709fi
5710
5711fi
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5713$as_echo "$ac_cv_path_GREP" >&6; }
5714 GREP="$ac_cv_path_GREP"
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5718$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005719if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005720 $as_echo_n "(cached) " >&6
5721else
5722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5723 then ac_cv_path_EGREP="$GREP -E"
5724 else
5725 if test -z "$EGREP"; then
5726 ac_path_EGREP_found=false
5727 # Loop through the user's path and test for each of PROGNAME-LIST
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_prog in egrep; do
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005736 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005737# Check for GNU ac_path_EGREP and select it if it is found.
5738 # Check for GNU $ac_path_EGREP
5739case `"$ac_path_EGREP" --version 2>&1` in
5740*GNU*)
5741 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5742*)
5743 ac_count=0
5744 $as_echo_n 0123456789 >"conftest.in"
5745 while :
5746 do
5747 cat "conftest.in" "conftest.in" >"conftest.tmp"
5748 mv "conftest.tmp" "conftest.in"
5749 cp "conftest.in" "conftest.nl"
5750 $as_echo 'EGREP' >> "conftest.nl"
5751 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5753 as_fn_arith $ac_count + 1 && ac_count=$as_val
5754 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5755 # Best one so far, save it but keep looking for a better one
5756 ac_cv_path_EGREP="$ac_path_EGREP"
5757 ac_path_EGREP_max=$ac_count
5758 fi
5759 # 10*(2^10) chars as input seems more than enough
5760 test $ac_count -gt 10 && break
5761 done
5762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5763esac
5764
5765 $ac_path_EGREP_found && break 3
5766 done
5767 done
5768 done
5769IFS=$as_save_IFS
5770 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005771 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005772 fi
5773else
5774 ac_cv_path_EGREP=$EGREP
5775fi
5776
5777 fi
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5780$as_echo "$ac_cv_path_EGREP" >&6; }
5781 EGREP="$ac_cv_path_EGREP"
5782
5783
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5785$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005786if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005787 $as_echo_n "(cached) " >&6
5788else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h. */
5791#include <stdlib.h>
5792#include <stdarg.h>
5793#include <string.h>
5794#include <float.h>
5795
5796int
5797main ()
5798{
5799
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804if ac_fn_c_try_compile "$LINENO"; then :
5805 ac_cv_header_stdc=yes
5806else
5807 ac_cv_header_stdc=no
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811if test $ac_cv_header_stdc = yes; then
5812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h. */
5815#include <string.h>
5816
5817_ACEOF
5818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 $EGREP "memchr" >/dev/null 2>&1; then :
5820
5821else
5822 ac_cv_header_stdc=no
5823fi
5824rm -f conftest*
5825
5826fi
5827
5828if test $ac_cv_header_stdc = yes; then
5829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h. */
5832#include <stdlib.h>
5833
5834_ACEOF
5835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836 $EGREP "free" >/dev/null 2>&1; then :
5837
5838else
5839 ac_cv_header_stdc=no
5840fi
5841rm -f conftest*
5842
5843fi
5844
5845if test $ac_cv_header_stdc = yes; then
5846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5847 if test "$cross_compiling" = yes; then :
5848 :
5849else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851/* end confdefs.h. */
5852#include <ctype.h>
5853#include <stdlib.h>
5854#if ((' ' & 0x0FF) == 0x020)
5855# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5856# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5857#else
5858# define ISLOWER(c) \
5859 (('a' <= (c) && (c) <= 'i') \
5860 || ('j' <= (c) && (c) <= 'r') \
5861 || ('s' <= (c) && (c) <= 'z'))
5862# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5863#endif
5864
5865#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5866int
5867main ()
5868{
5869 int i;
5870 for (i = 0; i < 256; i++)
5871 if (XOR (islower (i), ISLOWER (i))
5872 || toupper (i) != TOUPPER (i))
5873 return 2;
5874 return 0;
5875}
5876_ACEOF
5877if ac_fn_c_try_run "$LINENO"; then :
5878
5879else
5880 ac_cv_header_stdc=no
5881fi
5882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5883 conftest.$ac_objext conftest.beam conftest.$ac_ext
5884fi
5885
5886fi
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5889$as_echo "$ac_cv_header_stdc" >&6; }
5890if test $ac_cv_header_stdc = yes; then
5891
5892$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5893
5894fi
5895
5896# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5898 inttypes.h stdint.h unistd.h
5899do :
5900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5901ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5902"
cristy98dddb52010-11-04 00:30:15 +00005903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005904 cat >>confdefs.h <<_ACEOF
5905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5906_ACEOF
5907
5908fi
5909
5910done
5911
5912
5913
5914 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 +00005915if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005916 MINIX=yes
5917else
5918 MINIX=
5919fi
5920
5921
5922 if test "$MINIX" = yes; then
5923
5924$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5925
5926
5927$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5928
5929
5930$as_echo "#define _MINIX 1" >>confdefs.h
5931
5932 fi
5933
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5936$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005937if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005938 $as_echo_n "(cached) " >&6
5939else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h. */
5942
cristy14fefe52012-05-21 00:59:18 +00005943# define __EXTENSIONS__ 1
5944 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"; then :
5954 ac_cv_safe_to_define___extensions__=yes
5955else
5956 ac_cv_safe_to_define___extensions__=no
5957fi
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5961$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5962 test $ac_cv_safe_to_define___extensions__ = yes &&
5963 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5964
5965 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5966
5967 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5968
5969 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5970
5971 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5972
5973
5974
5975# Check for programs
5976ac_ext=c
5977ac_cpp='$CPP $CPPFLAGS'
5978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5983set dummy ${ac_tool_prefix}gcc; ac_word=$2
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005986if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005987 $as_echo_n "(cached) " >&6
5988else
5989 if test -n "$CC"; then
5990 ac_cv_prog_CC="$CC" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003done
6004 done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009CC=$ac_cv_prog_CC
6010if test -n "$CC"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6012$as_echo "$CC" >&6; }
6013else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015$as_echo "no" >&6; }
6016fi
6017
6018
6019fi
6020if test -z "$ac_cv_prog_CC"; then
6021 ac_ct_CC=$CC
6022 # Extract the first word of "gcc", so it can be a program name with args.
6023set dummy gcc; ac_word=$2
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006026if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006027 $as_echo_n "(cached) " >&6
6028else
6029 if test -n "$ac_ct_CC"; then
6030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6031else
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006039 ac_cv_prog_ac_ct_CC="gcc"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043done
6044 done
6045IFS=$as_save_IFS
6046
6047fi
6048fi
6049ac_ct_CC=$ac_cv_prog_ac_ct_CC
6050if test -n "$ac_ct_CC"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6052$as_echo "$ac_ct_CC" >&6; }
6053else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055$as_echo "no" >&6; }
6056fi
6057
6058 if test "x$ac_ct_CC" = x; then
6059 CC=""
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062yes:)
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065ac_tool_warned=yes ;;
6066esac
6067 CC=$ac_ct_CC
6068 fi
6069else
6070 CC="$ac_cv_prog_CC"
6071fi
6072
6073if test -z "$CC"; then
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}cc; ac_word=$2
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006079if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006080 $as_echo_n "(cached) " >&6
6081else
6082 if test -n "$CC"; then
6083 ac_cv_prog_CC="$CC" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006092 ac_cv_prog_CC="${ac_tool_prefix}cc"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096done
6097 done
6098IFS=$as_save_IFS
6099
6100fi
6101fi
6102CC=$ac_cv_prog_CC
6103if test -n "$CC"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6105$as_echo "$CC" >&6; }
6106else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
6109fi
6110
6111
6112 fi
6113fi
6114if test -z "$CC"; then
6115 # Extract the first word of "cc", so it can be a program name with args.
6116set dummy cc; ac_word=$2
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006119if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006120 $as_echo_n "(cached) " >&6
6121else
6122 if test -n "$CC"; then
6123 ac_cv_prog_CC="$CC" # Let the user override the test.
6124else
6125 ac_prog_rejected=no
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6134 ac_prog_rejected=yes
6135 continue
6136 fi
6137 ac_cv_prog_CC="cc"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141done
6142 done
6143IFS=$as_save_IFS
6144
6145if test $ac_prog_rejected = yes; then
6146 # We found a bogon in the path, so make sure we never use it.
6147 set dummy $ac_cv_prog_CC
6148 shift
6149 if test $# != 0; then
6150 # We chose a different compiler from the bogus one.
6151 # However, it has the same basename, so the bogon will be chosen
6152 # first if we set CC to just the basename; use the full file name.
6153 shift
6154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6155 fi
6156fi
6157fi
6158fi
6159CC=$ac_cv_prog_CC
6160if test -n "$CC"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6162$as_echo "$CC" >&6; }
6163else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168
6169fi
6170if test -z "$CC"; then
6171 if test -n "$ac_tool_prefix"; then
6172 for ac_prog in cl.exe
6173 do
6174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006178if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$CC"; then
6182 ac_cv_prog_CC="$CC" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201CC=$ac_cv_prog_CC
6202if test -n "$CC"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6204$as_echo "$CC" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211 test -n "$CC" && break
6212 done
6213fi
6214if test -z "$CC"; then
6215 ac_ct_CC=$CC
6216 for ac_prog in cl.exe
6217do
6218 # Extract the first word of "$ac_prog", so it can be a program name with args.
6219set dummy $ac_prog; ac_word=$2
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006222if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006223 $as_echo_n "(cached) " >&6
6224else
6225 if test -n "$ac_ct_CC"; then
6226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006235 ac_cv_prog_ac_ct_CC="$ac_prog"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239done
6240 done
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245ac_ct_CC=$ac_cv_prog_ac_ct_CC
6246if test -n "$ac_ct_CC"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6248$as_echo "$ac_ct_CC" >&6; }
6249else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252fi
6253
6254
6255 test -n "$ac_ct_CC" && break
6256done
6257
6258 if test "x$ac_ct_CC" = x; then
6259 CC=""
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267 CC=$ac_ct_CC
6268 fi
6269fi
6270
6271fi
6272
6273
6274test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006276as_fn_error $? "no acceptable C compiler found in \$PATH
6277See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006278
6279# Provide some information about the compiler.
6280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6281set X $ac_compile
6282ac_compiler=$2
6283for ac_option in --version -v -V -qversion; do
6284 { { ac_try="$ac_compiler $ac_option >&5"
6285case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288esac
6289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6290$as_echo "$ac_try_echo"; } >&5
6291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6292 ac_status=$?
6293 if test -s conftest.err; then
6294 sed '10a\
6295... rest of stderr output deleted ...
6296 10q' conftest.err >conftest.er1
6297 cat conftest.er1 >&5
6298 fi
6299 rm -f conftest.er1 conftest.err
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }
6302done
6303
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6305$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006306if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006307 $as_echo_n "(cached) " >&6
6308else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h. */
6311
6312int
6313main ()
6314{
6315#ifndef __GNUC__
6316 choke me
6317#endif
6318
6319 ;
6320 return 0;
6321}
6322_ACEOF
6323if ac_fn_c_try_compile "$LINENO"; then :
6324 ac_compiler_gnu=yes
6325else
6326 ac_compiler_gnu=no
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329ac_cv_c_compiler_gnu=$ac_compiler_gnu
6330
6331fi
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6333$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6334if test $ac_compiler_gnu = yes; then
6335 GCC=yes
6336else
6337 GCC=
6338fi
6339ac_test_CFLAGS=${CFLAGS+set}
6340ac_save_CFLAGS=$CFLAGS
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6342$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006343if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006344 $as_echo_n "(cached) " >&6
6345else
6346 ac_save_c_werror_flag=$ac_c_werror_flag
6347 ac_c_werror_flag=yes
6348 ac_cv_prog_cc_g=no
6349 CFLAGS="-g"
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h. */
6352
6353int
6354main ()
6355{
6356
6357 ;
6358 return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_compile "$LINENO"; then :
6362 ac_cv_prog_cc_g=yes
6363else
6364 CFLAGS=""
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h. */
6367
6368int
6369main ()
6370{
6371
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376if ac_fn_c_try_compile "$LINENO"; then :
6377
6378else
6379 ac_c_werror_flag=$ac_save_c_werror_flag
6380 CFLAGS="-g"
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h. */
6383
6384int
6385main ()
6386{
6387
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_prog_cc_g=yes
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_c_werror_flag=$ac_save_c_werror_flag
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6403$as_echo "$ac_cv_prog_cc_g" >&6; }
6404if test "$ac_test_CFLAGS" = set; then
6405 CFLAGS=$ac_save_CFLAGS
6406elif test $ac_cv_prog_cc_g = yes; then
6407 if test "$GCC" = yes; then
6408 CFLAGS="-g -O2"
6409 else
6410 CFLAGS="-g"
6411 fi
6412else
6413 if test "$GCC" = yes; then
6414 CFLAGS="-O2"
6415 else
6416 CFLAGS=
6417 fi
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6420$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006421if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006422 $as_echo_n "(cached) " >&6
6423else
6424 ac_cv_prog_cc_c89=no
6425ac_save_CC=$CC
6426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h. */
6428#include <stdarg.h>
6429#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006430struct stat;
cristya0b81c32010-01-22 02:54:33 +00006431/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6432struct buf { int x; };
6433FILE * (*rcsopen) (struct buf *, struct stat *, int);
6434static char *e (p, i)
6435 char **p;
6436 int i;
6437{
6438 return p[i];
6439}
6440static char *f (char * (*g) (char **, int), char **p, ...)
6441{
6442 char *s;
6443 va_list v;
6444 va_start (v,p);
6445 s = g (p, va_arg (v,int));
6446 va_end (v);
6447 return s;
6448}
6449
6450/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6451 function prototypes and stuff, but not '\xHH' hex character constants.
6452 These don't provoke an error unfortunately, instead are silently treated
6453 as 'x'. The following induces an error, until -std is added to get
6454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6455 array size at least. It's necessary to write '\x00'==0 to get something
6456 that's true only with -std. */
6457int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6458
6459/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6460 inside strings and character constants. */
6461#define FOO(x) 'x'
6462int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6463
6464int test (int i, double x);
6465struct s1 {int (*f) (int a);};
6466struct s2 {int (*f) (double a);};
6467int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6468int argc;
6469char **argv;
6470int
6471main ()
6472{
6473return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6480do
6481 CC="$ac_save_CC $ac_arg"
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 ac_cv_prog_cc_c89=$ac_arg
6484fi
6485rm -f core conftest.err conftest.$ac_objext
6486 test "x$ac_cv_prog_cc_c89" != "xno" && break
6487done
6488rm -f conftest.$ac_ext
6489CC=$ac_save_CC
6490
6491fi
6492# AC_CACHE_VAL
6493case "x$ac_cv_prog_cc_c89" in
6494 x)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6496$as_echo "none needed" >&6; } ;;
6497 xno)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6499$as_echo "unsupported" >&6; } ;;
6500 *)
6501 CC="$CC $ac_cv_prog_cc_c89"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6503$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6504esac
6505if test "x$ac_cv_prog_cc_c89" != xno; then :
6506
6507fi
6508
6509ac_ext=c
6510ac_cpp='$CPP $CPPFLAGS'
6511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6513ac_compiler_gnu=$ac_cv_c_compiler_gnu
6514
cristyd95b7a52013-10-23 13:12:53 +00006515ac_ext=c
6516ac_cpp='$CPP $CPPFLAGS'
6517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6521$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6522if ${am_cv_prog_cc_c_o+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h. */
6527
6528int
6529main ()
6530{
6531
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536 # Make sure it works both with $CC and with simple cc.
6537 # Following AC_PROG_CC_C_O, we do the test twice because some
6538 # compilers refuse to overwrite an existing .o file with -o,
6539 # though they will create one.
6540 am_cv_prog_cc_c_o=yes
6541 for am_i in 1 2; do
6542 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6543 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } \
6547 && test -f conftest2.$ac_objext; then
6548 : OK
6549 else
6550 am_cv_prog_cc_c_o=no
6551 break
6552 fi
6553 done
6554 rm -f core conftest*
6555 unset am_i
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6558$as_echo "$am_cv_prog_cc_c_o" >&6; }
6559if test "$am_cv_prog_cc_c_o" != yes; then
6560 # Losing compiler, so override with the script.
6561 # FIXME: It is wrong to rewrite CC.
6562 # But if we don't then we get into trouble of one sort or another.
6563 # A longer-term fix would be to have automake use am__CC in this case,
6564 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6565 CC="$am_aux_dir/compile $CC"
6566fi
6567ac_ext=c
6568ac_cpp='$CPP $CPPFLAGS'
6569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
6573
cristy73bd4a52010-10-05 11:24:23 +00006574depcc="$CC" am_compiler_list=
6575
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6577$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006578if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006579 $as_echo_n "(cached) " >&6
6580else
6581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6582 # We make a subdir and do the tests there. Otherwise we can end up
6583 # making bogus files that we don't know about and never remove. For
6584 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006585 # making a dummy file named 'D' -- because '-MD' means "put the output
6586 # in D".
cristy7247bba2012-02-05 16:37:27 +00006587 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006588 mkdir conftest.dir
6589 # Copy depcomp to subdir because otherwise we won't find it if we're
6590 # using a relative directory.
6591 cp "$am_depcomp" conftest.dir
6592 cd conftest.dir
6593 # We will build objects and dependencies in a subdirectory because
6594 # it helps to detect inapplicable dependency modes. For instance
6595 # both Tru64's cc and ICC support -MD to output dependencies as a
6596 # side effect of compilation, but ICC will put the dependencies in
6597 # the current directory while Tru64 will put them in the object
6598 # directory.
6599 mkdir sub
6600
6601 am_cv_CC_dependencies_compiler_type=none
6602 if test "$am_compiler_list" = ""; then
6603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6604 fi
6605 am__universal=false
6606 case " $depcc " in #(
6607 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6608 esac
6609
6610 for depmode in $am_compiler_list; do
6611 # Setup a source with many dependencies, because some compilers
6612 # like to wrap large dependency lists on column 80 (with \), and
6613 # we should not choose a depcomp mode which is confused by this.
6614 #
6615 # We need to recreate these files for each test, as the compiler may
6616 # overwrite some of them when testing with obscure command lines.
6617 # This happens at least with the AIX C compiler.
6618 : > sub/conftest.c
6619 for i in 1 2 3 4 5 6; do
6620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006621 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6622 # Solaris 10 /bin/sh.
6623 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006624 done
6625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6626
cristyc0890a62012-07-19 00:18:20 +00006627 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006628 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006629 # handle '-M -o', and we need to detect this. Also, some Intel
6630 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006631 am__obj=sub/conftest.${OBJEXT-o}
6632 am__minus_obj="-o $am__obj"
6633 case $depmode in
6634 gcc)
6635 # This depmode causes a compiler race in universal mode.
6636 test "$am__universal" = false || continue
6637 ;;
6638 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006639 # After this tag, mechanisms are not by side-effect, so they'll
6640 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006641 if test "x$enable_dependency_tracking" = xyes; then
6642 continue
6643 else
6644 break
6645 fi
6646 ;;
cristy7247bba2012-02-05 16:37:27 +00006647 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006648 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006649 # not run yet. These depmodes are late enough in the game, and
6650 # so weak that their functioning should not be impacted.
6651 am__obj=conftest.${OBJEXT-o}
6652 am__minus_obj=
6653 ;;
6654 none) break ;;
6655 esac
6656 if depmode=$depmode \
6657 source=sub/conftest.c object=$am__obj \
6658 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6659 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6660 >/dev/null 2>conftest.err &&
6661 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6663 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6665 # icc doesn't choke on unknown options, it will just issue warnings
6666 # or remarks (even with -Werror). So we grep stderr for any message
6667 # that says an option was ignored or not supported.
6668 # When given -MP, icc 7.0 and 7.1 complain thusly:
6669 # icc: Command line warning: ignoring option '-M'; no argument required
6670 # The diagnosis changed in icc 8.0:
6671 # icc: Command line remark: option '-MP' not supported
6672 if (grep 'ignoring option' conftest.err ||
6673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6674 am_cv_CC_dependencies_compiler_type=$depmode
6675 break
6676 fi
6677 fi
6678 done
6679
6680 cd ..
6681 rm -rf conftest.dir
6682else
6683 am_cv_CC_dependencies_compiler_type=none
6684fi
6685
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6688$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6689CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6690
6691 if
6692 test "x$enable_dependency_tracking" != xno \
6693 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6694 am__fastdepCC_TRUE=
6695 am__fastdepCC_FALSE='#'
6696else
6697 am__fastdepCC_TRUE='#'
6698 am__fastdepCC_FALSE=
6699fi
6700
6701
cristy95646052009-11-28 23:05:30 +00006702ac_ext=cpp
6703ac_cpp='$CXXCPP $CPPFLAGS'
6704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707if test -z "$CXX"; then
6708 if test -n "$CCC"; then
6709 CXX=$CCC
6710 else
6711 if test -n "$ac_tool_prefix"; then
6712 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6713 do
6714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006718if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006719 $as_echo_n "(cached) " >&6
6720else
6721 if test -n "$CXX"; then
6722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736 done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741CXX=$ac_cv_prog_CXX
6742if test -n "$CXX"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6744$as_echo "$CXX" >&6; }
6745else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751 test -n "$CXX" && break
6752 done
6753fi
6754if test -z "$CXX"; then
6755 ac_ct_CXX=$CXX
6756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6757do
6758 # Extract the first word of "$ac_prog", so it can be a program name with args.
6759set dummy $ac_prog; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006762if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006763 $as_echo_n "(cached) " >&6
6764else
6765 if test -n "$ac_ct_CXX"; then
6766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006775 ac_cv_prog_ac_ct_CXX="$ac_prog"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780 done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6786if test -n "$ac_ct_CXX"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6788$as_echo "$ac_ct_CXX" >&6; }
6789else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794
6795 test -n "$ac_ct_CXX" && break
6796done
6797
6798 if test "x$ac_ct_CXX" = x; then
6799 CXX="g++"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807 CXX=$ac_ct_CXX
6808 fi
6809fi
6810
6811 fi
6812fi
6813# Provide some information about the compiler.
6814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6815set X $ac_compile
6816ac_compiler=$2
6817for ac_option in --version -v -V -qversion; do
6818 { { ac_try="$ac_compiler $ac_option >&5"
6819case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822esac
6823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6824$as_echo "$ac_try_echo"; } >&5
6825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6826 ac_status=$?
6827 if test -s conftest.err; then
6828 sed '10a\
6829... rest of stderr output deleted ...
6830 10q' conftest.err >conftest.er1
6831 cat conftest.er1 >&5
6832 fi
6833 rm -f conftest.er1 conftest.err
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }
6836done
6837
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6839$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006840if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006841 $as_echo_n "(cached) " >&6
6842else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h. */
6845
6846int
6847main ()
6848{
6849#ifndef __GNUC__
6850 choke me
6851#endif
6852
6853 ;
6854 return 0;
6855}
6856_ACEOF
6857if ac_fn_cxx_try_compile "$LINENO"; then :
6858 ac_compiler_gnu=yes
6859else
6860 ac_compiler_gnu=no
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6864
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6867$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6868if test $ac_compiler_gnu = yes; then
6869 GXX=yes
6870else
6871 GXX=
6872fi
6873ac_test_CXXFLAGS=${CXXFLAGS+set}
6874ac_save_CXXFLAGS=$CXXFLAGS
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6876$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006877if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006878 $as_echo_n "(cached) " >&6
6879else
6880 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6881 ac_cxx_werror_flag=yes
6882 ac_cv_prog_cxx_g=no
6883 CXXFLAGS="-g"
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h. */
6886
6887int
6888main ()
6889{
6890
6891 ;
6892 return 0;
6893}
6894_ACEOF
6895if ac_fn_cxx_try_compile "$LINENO"; then :
6896 ac_cv_prog_cxx_g=yes
6897else
6898 CXXFLAGS=""
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h. */
6901
6902int
6903main ()
6904{
6905
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910if ac_fn_cxx_try_compile "$LINENO"; then :
6911
6912else
6913 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6914 CXXFLAGS="-g"
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h. */
6917
6918int
6919main ()
6920{
6921
6922 ;
6923 return 0;
6924}
6925_ACEOF
6926if ac_fn_cxx_try_compile "$LINENO"; then :
6927 ac_cv_prog_cxx_g=yes
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6937$as_echo "$ac_cv_prog_cxx_g" >&6; }
6938if test "$ac_test_CXXFLAGS" = set; then
6939 CXXFLAGS=$ac_save_CXXFLAGS
6940elif test $ac_cv_prog_cxx_g = yes; then
6941 if test "$GXX" = yes; then
6942 CXXFLAGS="-g -O2"
6943 else
6944 CXXFLAGS="-g"
6945 fi
6946else
6947 if test "$GXX" = yes; then
6948 CXXFLAGS="-O2"
6949 else
6950 CXXFLAGS=
6951 fi
6952fi
6953ac_ext=c
6954ac_cpp='$CPP $CPPFLAGS'
6955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958
cristy73bd4a52010-10-05 11:24:23 +00006959depcc="$CXX" am_compiler_list=
6960
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6962$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006963if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006964 $as_echo_n "(cached) " >&6
6965else
6966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6967 # We make a subdir and do the tests there. Otherwise we can end up
6968 # making bogus files that we don't know about and never remove. For
6969 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006970 # making a dummy file named 'D' -- because '-MD' means "put the output
6971 # in D".
cristy7247bba2012-02-05 16:37:27 +00006972 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006973 mkdir conftest.dir
6974 # Copy depcomp to subdir because otherwise we won't find it if we're
6975 # using a relative directory.
6976 cp "$am_depcomp" conftest.dir
6977 cd conftest.dir
6978 # We will build objects and dependencies in a subdirectory because
6979 # it helps to detect inapplicable dependency modes. For instance
6980 # both Tru64's cc and ICC support -MD to output dependencies as a
6981 # side effect of compilation, but ICC will put the dependencies in
6982 # the current directory while Tru64 will put them in the object
6983 # directory.
6984 mkdir sub
6985
6986 am_cv_CXX_dependencies_compiler_type=none
6987 if test "$am_compiler_list" = ""; then
6988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6989 fi
6990 am__universal=false
6991 case " $depcc " in #(
6992 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6993 esac
6994
6995 for depmode in $am_compiler_list; do
6996 # Setup a source with many dependencies, because some compilers
6997 # like to wrap large dependency lists on column 80 (with \), and
6998 # we should not choose a depcomp mode which is confused by this.
6999 #
7000 # We need to recreate these files for each test, as the compiler may
7001 # overwrite some of them when testing with obscure command lines.
7002 # This happens at least with the AIX C compiler.
7003 : > sub/conftest.c
7004 for i in 1 2 3 4 5 6; do
7005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007006 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7007 # Solaris 10 /bin/sh.
7008 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007009 done
7010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7011
cristyc0890a62012-07-19 00:18:20 +00007012 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007013 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007014 # handle '-M -o', and we need to detect this. Also, some Intel
7015 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007016 am__obj=sub/conftest.${OBJEXT-o}
7017 am__minus_obj="-o $am__obj"
7018 case $depmode in
7019 gcc)
7020 # This depmode causes a compiler race in universal mode.
7021 test "$am__universal" = false || continue
7022 ;;
7023 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007024 # After this tag, mechanisms are not by side-effect, so they'll
7025 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007026 if test "x$enable_dependency_tracking" = xyes; then
7027 continue
7028 else
7029 break
7030 fi
7031 ;;
cristy7247bba2012-02-05 16:37:27 +00007032 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007033 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007034 # not run yet. These depmodes are late enough in the game, and
7035 # so weak that their functioning should not be impacted.
7036 am__obj=conftest.${OBJEXT-o}
7037 am__minus_obj=
7038 ;;
7039 none) break ;;
7040 esac
7041 if depmode=$depmode \
7042 source=sub/conftest.c object=$am__obj \
7043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7044 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7045 >/dev/null 2>conftest.err &&
7046 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7047 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7048 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7049 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7050 # icc doesn't choke on unknown options, it will just issue warnings
7051 # or remarks (even with -Werror). So we grep stderr for any message
7052 # that says an option was ignored or not supported.
7053 # When given -MP, icc 7.0 and 7.1 complain thusly:
7054 # icc: Command line warning: ignoring option '-M'; no argument required
7055 # The diagnosis changed in icc 8.0:
7056 # icc: Command line remark: option '-MP' not supported
7057 if (grep 'ignoring option' conftest.err ||
7058 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7059 am_cv_CXX_dependencies_compiler_type=$depmode
7060 break
7061 fi
7062 fi
7063 done
7064
7065 cd ..
7066 rm -rf conftest.dir
7067else
7068 am_cv_CXX_dependencies_compiler_type=none
7069fi
7070
7071fi
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7073$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7074CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7075
7076 if
7077 test "x$enable_dependency_tracking" != xno \
7078 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7079 am__fastdepCXX_TRUE=
7080 am__fastdepCXX_FALSE='#'
7081else
7082 am__fastdepCXX_TRUE='#'
7083 am__fastdepCXX_FALSE=
7084fi
7085
7086
cristy8b350f62009-11-15 23:12:43 +00007087 case $ac_cv_prog_cc_stdc in #(
7088 no) :
7089 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7090 *) :
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007092$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007093if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007094 $as_echo_n "(cached) " >&6
7095else
7096 ac_cv_prog_cc_c99=no
7097ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007099/* end confdefs.h. */
7100#include <stdarg.h>
7101#include <stdbool.h>
7102#include <stdlib.h>
7103#include <wchar.h>
7104#include <stdio.h>
7105
7106// Check varargs macros. These examples are taken from C99 6.10.3.5.
7107#define debug(...) fprintf (stderr, __VA_ARGS__)
7108#define showlist(...) puts (#__VA_ARGS__)
7109#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7110static void
7111test_varargs_macros (void)
7112{
7113 int x = 1234;
7114 int y = 5678;
7115 debug ("Flag");
7116 debug ("X = %d\n", x);
7117 showlist (The first, second, and third items.);
7118 report (x>y, "x is %d but y is %d", x, y);
7119}
7120
7121// Check long long types.
7122#define BIG64 18446744073709551615ull
7123#define BIG32 4294967295ul
7124#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7125#if !BIG_OK
7126 your preprocessor is broken;
7127#endif
7128#if BIG_OK
7129#else
7130 your preprocessor is broken;
7131#endif
7132static long long int bignum = -9223372036854775807LL;
7133static unsigned long long int ubignum = BIG64;
7134
7135struct incomplete_array
7136{
7137 int datasize;
7138 double data[];
7139};
7140
7141struct named_init {
7142 int number;
7143 const wchar_t *name;
7144 double average;
7145};
7146
7147typedef const char *ccp;
7148
7149static inline int
7150test_restrict (ccp restrict text)
7151{
7152 // See if C++-style comments work.
7153 // Iterate through items via the restricted pointer.
7154 // Also check for declarations in for loops.
7155 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7156 continue;
7157 return 0;
7158}
7159
7160// Check varargs and va_copy.
7161static void
7162test_varargs (const char *format, ...)
7163{
7164 va_list args;
7165 va_start (args, format);
7166 va_list args_copy;
7167 va_copy (args_copy, args);
7168
7169 const char *str;
7170 int number;
7171 float fnumber;
7172
7173 while (*format)
7174 {
7175 switch (*format++)
7176 {
7177 case 's': // string
7178 str = va_arg (args_copy, const char *);
7179 break;
7180 case 'd': // int
7181 number = va_arg (args_copy, int);
7182 break;
7183 case 'f': // float
7184 fnumber = va_arg (args_copy, double);
7185 break;
7186 default:
7187 break;
7188 }
7189 }
7190 va_end (args_copy);
7191 va_end (args);
7192}
7193
7194int
7195main ()
7196{
7197
7198 // Check bool.
7199 _Bool success = false;
7200
7201 // Check restrict.
7202 if (test_restrict ("String literal") == 0)
7203 success = true;
7204 char *restrict newvar = "Another string";
7205
7206 // Check varargs.
7207 test_varargs ("s, d' f .", "string", 65, 34.234);
7208 test_varargs_macros ();
7209
7210 // Check flexible array members.
7211 struct incomplete_array *ia =
7212 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7213 ia->datasize = 10;
7214 for (int i = 0; i < ia->datasize; ++i)
7215 ia->data[i] = i * 1.234;
7216
7217 // Check named initializers.
7218 struct named_init ni = {
7219 .number = 34,
7220 .name = L"Test wide string",
7221 .average = 543.34343,
7222 };
7223
7224 ni.number = 58;
7225
7226 int dynamic_array[ni.number];
7227 dynamic_array[ni.number - 1] = 543;
7228
7229 // work around unused variable warnings
7230 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7231 || dynamic_array[ni.number - 1] != 543);
7232
7233 ;
7234 return 0;
7235}
7236_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007237for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007238do
7239 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007240 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007241 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007242fi
cristy3ed852e2009-09-05 21:47:34 +00007243rm -f core conftest.err conftest.$ac_objext
7244 test "x$ac_cv_prog_cc_c99" != "xno" && break
7245done
7246rm -f conftest.$ac_ext
7247CC=$ac_save_CC
7248
7249fi
7250# AC_CACHE_VAL
7251case "x$ac_cv_prog_cc_c99" in
7252 x)
cristy8b350f62009-11-15 23:12:43 +00007253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007254$as_echo "none needed" >&6; } ;;
7255 xno)
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "unsupported" >&6; } ;;
7258 *)
7259 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007261$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7262esac
cristy8b350f62009-11-15 23:12:43 +00007263if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7265else
cristy8b350f62009-11-15 23:12:43 +00007266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007267$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007268if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007269 $as_echo_n "(cached) " >&6
7270else
7271 ac_cv_prog_cc_c89=no
7272ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007274/* end confdefs.h. */
7275#include <stdarg.h>
7276#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007277struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7279struct buf { int x; };
7280FILE * (*rcsopen) (struct buf *, struct stat *, int);
7281static char *e (p, i)
7282 char **p;
7283 int i;
7284{
7285 return p[i];
7286}
7287static char *f (char * (*g) (char **, int), char **p, ...)
7288{
7289 char *s;
7290 va_list v;
7291 va_start (v,p);
7292 s = g (p, va_arg (v,int));
7293 va_end (v);
7294 return s;
7295}
7296
7297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7298 function prototypes and stuff, but not '\xHH' hex character constants.
7299 These don't provoke an error unfortunately, instead are silently treated
7300 as 'x'. The following induces an error, until -std is added to get
7301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7302 array size at least. It's necessary to write '\x00'==0 to get something
7303 that's true only with -std. */
7304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7305
7306/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7307 inside strings and character constants. */
7308#define FOO(x) 'x'
7309int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7310
7311int test (int i, double x);
7312struct s1 {int (*f) (int a);};
7313struct s2 {int (*f) (double a);};
7314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7315int argc;
7316char **argv;
7317int
7318main ()
7319{
7320return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7321 ;
7322 return 0;
7323}
7324_ACEOF
7325for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7327do
7328 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007329 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007330 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007331fi
cristy3ed852e2009-09-05 21:47:34 +00007332rm -f core conftest.err conftest.$ac_objext
7333 test "x$ac_cv_prog_cc_c89" != "xno" && break
7334done
7335rm -f conftest.$ac_ext
7336CC=$ac_save_CC
7337
7338fi
7339# AC_CACHE_VAL
7340case "x$ac_cv_prog_cc_c89" in
7341 x)
cristy8b350f62009-11-15 23:12:43 +00007342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007343$as_echo "none needed" >&6; } ;;
7344 xno)
cristy8b350f62009-11-15 23:12:43 +00007345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "unsupported" >&6; } ;;
7347 *)
7348 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007350$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7351esac
cristy8b350f62009-11-15 23:12:43 +00007352if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7354else
7355 ac_cv_prog_cc_stdc=no
7356fi
7357
cristy3ed852e2009-09-05 21:47:34 +00007358fi
cristy3ed852e2009-09-05 21:47:34 +00007359 ;;
7360esac
cristy8b350f62009-11-15 23:12:43 +00007361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007362$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007363 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007364 $as_echo_n "(cached) " >&6
7365fi
7366
cristy8b350f62009-11-15 23:12:43 +00007367 case $ac_cv_prog_cc_stdc in #(
7368 no) :
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7370$as_echo "unsupported" >&6; } ;; #(
7371 '') :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7373$as_echo "none needed" >&6; } ;; #(
7374 *) :
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007376$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7377esac
7378
cristy3ed852e2009-09-05 21:47:34 +00007379ac_ext=c
7380ac_cpp='$CPP $CPPFLAGS'
7381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007385$as_echo_n "checking how to run the C preprocessor... " >&6; }
7386# On Suns, sometimes $CPP names a directory.
7387if test -n "$CPP" && test -d "$CPP"; then
7388 CPP=
7389fi
7390if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007391 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007392 $as_echo_n "(cached) " >&6
7393else
7394 # Double quotes because CPP needs to be expanded
7395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7396 do
7397 ac_preproc_ok=false
7398for ac_c_preproc_warn_flag in '' yes
7399do
7400 # Use a header file that comes with gcc, so configuring glibc
7401 # with a fresh cross-compiler works.
7402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 # <limits.h> exists even on freestanding compilers.
7404 # On the NeXT, cc -E runs the code through the compiler's parser,
7405 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007407/* end confdefs.h. */
7408#ifdef __STDC__
7409# include <limits.h>
7410#else
7411# include <assert.h>
7412#endif
7413 Syntax error
7414_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007415if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007416
cristy8b350f62009-11-15 23:12:43 +00007417else
cristy3ed852e2009-09-05 21:47:34 +00007418 # Broken: fails on valid input.
7419continue
7420fi
cristyda16f162011-02-19 23:52:17 +00007421rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007422
7423 # OK, works on sane cases. Now check whether nonexistent headers
7424 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007426/* end confdefs.h. */
7427#include <ac_nonexistent.h>
7428_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007429if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007430 # Broken: success on invalid input.
7431continue
7432else
cristy3ed852e2009-09-05 21:47:34 +00007433 # Passes both tests.
7434ac_preproc_ok=:
7435break
7436fi
cristyda16f162011-02-19 23:52:17 +00007437rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007438
7439done
7440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007441rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007442if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007443 break
7444fi
7445
7446 done
7447 ac_cv_prog_CPP=$CPP
7448
7449fi
7450 CPP=$ac_cv_prog_CPP
7451else
7452 ac_cv_prog_CPP=$CPP
7453fi
cristy8b350f62009-11-15 23:12:43 +00007454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007455$as_echo "$CPP" >&6; }
7456ac_preproc_ok=false
7457for ac_c_preproc_warn_flag in '' yes
7458do
7459 # Use a header file that comes with gcc, so configuring glibc
7460 # with a fresh cross-compiler works.
7461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7462 # <limits.h> exists even on freestanding compilers.
7463 # On the NeXT, cc -E runs the code through the compiler's parser,
7464 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007466/* end confdefs.h. */
7467#ifdef __STDC__
7468# include <limits.h>
7469#else
7470# include <assert.h>
7471#endif
7472 Syntax error
7473_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007474if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007475
cristy8b350f62009-11-15 23:12:43 +00007476else
cristy3ed852e2009-09-05 21:47:34 +00007477 # Broken: fails on valid input.
7478continue
7479fi
cristyda16f162011-02-19 23:52:17 +00007480rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007481
7482 # OK, works on sane cases. Now check whether nonexistent headers
7483 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007485/* end confdefs.h. */
7486#include <ac_nonexistent.h>
7487_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007488if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007489 # Broken: success on invalid input.
7490continue
7491else
cristy3ed852e2009-09-05 21:47:34 +00007492 # Passes both tests.
7493ac_preproc_ok=:
7494break
7495fi
cristyda16f162011-02-19 23:52:17 +00007496rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007497
7498done
7499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007500rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007501if $ac_preproc_ok; then :
7502
cristy3ed852e2009-09-05 21:47:34 +00007503else
cristy8b350f62009-11-15 23:12:43 +00007504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007506as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7507See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007508fi
7509
7510ac_ext=c
7511ac_cpp='$CPP $CPPFLAGS'
7512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514ac_compiler_gnu=$ac_cv_c_compiler_gnu
7515
cristy73bd4a52010-10-05 11:24:23 +00007516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7517$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007518if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007519 $as_echo_n "(cached) " >&6
7520else
7521 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7522 for ac_i in 1 2 3 4 5 6 7; do
7523 ac_script="$ac_script$as_nl$ac_script"
7524 done
7525 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7526 { ac_script=; unset ac_script;}
7527 if test -z "$SED"; then
7528 ac_path_SED_found=false
7529 # Loop through the user's path and test for each of PROGNAME-LIST
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_prog in sed gsed; do
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007538 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007539# Check for GNU ac_path_SED and select it if it is found.
7540 # Check for GNU $ac_path_SED
7541case `"$ac_path_SED" --version 2>&1` in
7542*GNU*)
7543 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7544*)
7545 ac_count=0
7546 $as_echo_n 0123456789 >"conftest.in"
7547 while :
7548 do
7549 cat "conftest.in" "conftest.in" >"conftest.tmp"
7550 mv "conftest.tmp" "conftest.in"
7551 cp "conftest.in" "conftest.nl"
7552 $as_echo '' >> "conftest.nl"
7553 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7555 as_fn_arith $ac_count + 1 && ac_count=$as_val
7556 if test $ac_count -gt ${ac_path_SED_max-0}; then
7557 # Best one so far, save it but keep looking for a better one
7558 ac_cv_path_SED="$ac_path_SED"
7559 ac_path_SED_max=$ac_count
7560 fi
7561 # 10*(2^10) chars as input seems more than enough
7562 test $ac_count -gt 10 && break
7563 done
7564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7565esac
7566
7567 $ac_path_SED_found && break 3
7568 done
7569 done
7570 done
7571IFS=$as_save_IFS
7572 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007573 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007574 fi
7575else
7576 ac_cv_path_SED=$SED
7577fi
7578
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7581$as_echo "$ac_cv_path_SED" >&6; }
7582 SED="$ac_cv_path_SED"
7583 rm -f conftest.sed
7584
7585test -z "$SED" && SED=sed
7586Xsed="$SED -e 1s/^X//"
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7599$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007600if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007601 $as_echo_n "(cached) " >&6
7602else
7603 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7604 then ac_cv_path_FGREP="$GREP -F"
7605 else
7606 if test -z "$FGREP"; then
7607 ac_path_FGREP_found=false
7608 # Loop through the user's path and test for each of PROGNAME-LIST
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_prog in fgrep; do
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007617 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007618# Check for GNU ac_path_FGREP and select it if it is found.
7619 # Check for GNU $ac_path_FGREP
7620case `"$ac_path_FGREP" --version 2>&1` in
7621*GNU*)
7622 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7623*)
7624 ac_count=0
7625 $as_echo_n 0123456789 >"conftest.in"
7626 while :
7627 do
7628 cat "conftest.in" "conftest.in" >"conftest.tmp"
7629 mv "conftest.tmp" "conftest.in"
7630 cp "conftest.in" "conftest.nl"
7631 $as_echo 'FGREP' >> "conftest.nl"
7632 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7634 as_fn_arith $ac_count + 1 && ac_count=$as_val
7635 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7636 # Best one so far, save it but keep looking for a better one
7637 ac_cv_path_FGREP="$ac_path_FGREP"
7638 ac_path_FGREP_max=$ac_count
7639 fi
7640 # 10*(2^10) chars as input seems more than enough
7641 test $ac_count -gt 10 && break
7642 done
7643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7644esac
7645
7646 $ac_path_FGREP_found && break 3
7647 done
7648 done
7649 done
7650IFS=$as_save_IFS
7651 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007652 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007653 fi
7654else
7655 ac_cv_path_FGREP=$FGREP
7656fi
7657
7658 fi
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7661$as_echo "$ac_cv_path_FGREP" >&6; }
7662 FGREP="$ac_cv_path_FGREP"
7663
7664
7665test -z "$GREP" && GREP=grep
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
cristy0c60a692010-11-04 01:09:47 +00007683ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7684ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7685ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7686
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7688$as_echo_n "checking how to print strings... " >&6; }
7689# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007690if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7692 ECHO='print -r --'
7693elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7694 ECHO='printf %s\n'
7695else
7696 # Use this function as a fallback that always works.
7697 func_fallback_echo ()
7698 {
7699 eval 'cat <<_LTECHO_EOF
7700$1
7701_LTECHO_EOF'
7702 }
7703 ECHO='func_fallback_echo'
7704fi
7705
7706# func_echo_all arg...
7707# Invoke $ECHO with all args, space-separated.
7708func_echo_all ()
7709{
7710 $ECHO ""
7711}
7712
7713case "$ECHO" in
7714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7715$as_echo "printf" >&6; } ;;
7716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7717$as_echo "print -r" >&6; } ;;
7718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7719$as_echo "cat" >&6; } ;;
7720esac
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
cristy73bd4a52010-10-05 11:24:23 +00007735
7736
7737# Check whether --with-gnu-ld was given.
7738if test "${with_gnu_ld+set}" = set; then :
7739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7740else
7741 with_gnu_ld=no
7742fi
7743
7744ac_prog=ld
7745if test "$GCC" = yes; then
7746 # Check if gcc -print-prog-name=ld gives a path.
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7748$as_echo_n "checking for ld used by $CC... " >&6; }
7749 case $host in
7750 *-*-mingw*)
7751 # gcc leaves a trailing carriage return which upsets mingw
7752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7753 *)
7754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7755 esac
7756 case $ac_prog in
7757 # Accept absolute paths.
7758 [\\/]* | ?:[\\/]*)
7759 re_direlt='/[^/][^/]*/\.\./'
7760 # Canonicalize the pathname of ld
7761 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7762 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7763 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7764 done
7765 test -z "$LD" && LD="$ac_prog"
7766 ;;
7767 "")
7768 # If it fails, then pretend we aren't using GCC.
7769 ac_prog=ld
7770 ;;
7771 *)
7772 # If it is relative, then search for the first ld in PATH.
7773 with_gnu_ld=unknown
7774 ;;
7775 esac
7776elif test "$with_gnu_ld" = yes; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7778$as_echo_n "checking for GNU ld... " >&6; }
7779else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7781$as_echo_n "checking for non-GNU ld... " >&6; }
7782fi
cristyda16f162011-02-19 23:52:17 +00007783if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007784 $as_echo_n "(cached) " >&6
7785else
7786 if test -z "$LD"; then
7787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7788 for ac_dir in $PATH; do
7789 IFS="$lt_save_ifs"
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7792 lt_cv_path_LD="$ac_dir/$ac_prog"
7793 # Check to see if the program is GNU ld. I'd rather use --version,
7794 # but apparently some variants of GNU ld only accept -v.
7795 # Break only if it was the GNU/non-GNU ld that we prefer.
7796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7797 *GNU* | *'with BFD'*)
7798 test "$with_gnu_ld" != no && break
7799 ;;
7800 *)
7801 test "$with_gnu_ld" != yes && break
7802 ;;
7803 esac
7804 fi
7805 done
7806 IFS="$lt_save_ifs"
7807else
7808 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7809fi
7810fi
7811
7812LD="$lt_cv_path_LD"
7813if test -n "$LD"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7815$as_echo "$LD" >&6; }
7816else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
7819fi
cristy98dddb52010-11-04 00:30:15 +00007820test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7822$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007823if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007824 $as_echo_n "(cached) " >&6
7825else
7826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7827case `$LD -v 2>&1 </dev/null` in
7828*GNU* | *'with BFD'*)
7829 lt_cv_prog_gnu_ld=yes
7830 ;;
7831*)
7832 lt_cv_prog_gnu_ld=no
7833 ;;
7834esac
7835fi
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7837$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7838with_gnu_ld=$lt_cv_prog_gnu_ld
7839
7840
7841
7842
7843
7844
7845
7846
7847
cristy3ed852e2009-09-05 21:47:34 +00007848
cristy837d6dc2010-02-27 01:16:57 +00007849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7850$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007851if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007852 $as_echo_n "(cached) " >&6
7853else
7854 ac_cv_prog_cc_c99=no
7855ac_save_CC=$CC
7856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857/* end confdefs.h. */
7858#include <stdarg.h>
7859#include <stdbool.h>
7860#include <stdlib.h>
7861#include <wchar.h>
7862#include <stdio.h>
7863
7864// Check varargs macros. These examples are taken from C99 6.10.3.5.
7865#define debug(...) fprintf (stderr, __VA_ARGS__)
7866#define showlist(...) puts (#__VA_ARGS__)
7867#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7868static void
7869test_varargs_macros (void)
7870{
7871 int x = 1234;
7872 int y = 5678;
7873 debug ("Flag");
7874 debug ("X = %d\n", x);
7875 showlist (The first, second, and third items.);
7876 report (x>y, "x is %d but y is %d", x, y);
7877}
7878
7879// Check long long types.
7880#define BIG64 18446744073709551615ull
7881#define BIG32 4294967295ul
7882#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7883#if !BIG_OK
7884 your preprocessor is broken;
7885#endif
7886#if BIG_OK
7887#else
7888 your preprocessor is broken;
7889#endif
7890static long long int bignum = -9223372036854775807LL;
7891static unsigned long long int ubignum = BIG64;
7892
7893struct incomplete_array
7894{
7895 int datasize;
7896 double data[];
7897};
7898
7899struct named_init {
7900 int number;
7901 const wchar_t *name;
7902 double average;
7903};
7904
7905typedef const char *ccp;
7906
7907static inline int
7908test_restrict (ccp restrict text)
7909{
7910 // See if C++-style comments work.
7911 // Iterate through items via the restricted pointer.
7912 // Also check for declarations in for loops.
7913 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7914 continue;
7915 return 0;
7916}
7917
7918// Check varargs and va_copy.
7919static void
7920test_varargs (const char *format, ...)
7921{
7922 va_list args;
7923 va_start (args, format);
7924 va_list args_copy;
7925 va_copy (args_copy, args);
7926
7927 const char *str;
7928 int number;
7929 float fnumber;
7930
7931 while (*format)
7932 {
7933 switch (*format++)
7934 {
7935 case 's': // string
7936 str = va_arg (args_copy, const char *);
7937 break;
7938 case 'd': // int
7939 number = va_arg (args_copy, int);
7940 break;
7941 case 'f': // float
7942 fnumber = va_arg (args_copy, double);
7943 break;
7944 default:
7945 break;
7946 }
7947 }
7948 va_end (args_copy);
7949 va_end (args);
7950}
7951
7952int
7953main ()
7954{
7955
7956 // Check bool.
7957 _Bool success = false;
7958
7959 // Check restrict.
7960 if (test_restrict ("String literal") == 0)
7961 success = true;
7962 char *restrict newvar = "Another string";
7963
7964 // Check varargs.
7965 test_varargs ("s, d' f .", "string", 65, 34.234);
7966 test_varargs_macros ();
7967
7968 // Check flexible array members.
7969 struct incomplete_array *ia =
7970 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7971 ia->datasize = 10;
7972 for (int i = 0; i < ia->datasize; ++i)
7973 ia->data[i] = i * 1.234;
7974
7975 // Check named initializers.
7976 struct named_init ni = {
7977 .number = 34,
7978 .name = L"Test wide string",
7979 .average = 543.34343,
7980 };
7981
7982 ni.number = 58;
7983
7984 int dynamic_array[ni.number];
7985 dynamic_array[ni.number - 1] = 543;
7986
7987 // work around unused variable warnings
7988 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7989 || dynamic_array[ni.number - 1] != 543);
7990
7991 ;
7992 return 0;
7993}
7994_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007995for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007996do
7997 CC="$ac_save_CC $ac_arg"
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 ac_cv_prog_cc_c99=$ac_arg
8000fi
8001rm -f core conftest.err conftest.$ac_objext
8002 test "x$ac_cv_prog_cc_c99" != "xno" && break
8003done
8004rm -f conftest.$ac_ext
8005CC=$ac_save_CC
8006
8007fi
8008# AC_CACHE_VAL
8009case "x$ac_cv_prog_cc_c99" in
8010 x)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8012$as_echo "none needed" >&6; } ;;
8013 xno)
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8015$as_echo "unsupported" >&6; } ;;
8016 *)
8017 CC="$CC $ac_cv_prog_cc_c99"
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8019$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8020esac
8021if test "x$ac_cv_prog_cc_c99" != xno; then :
8022
8023fi
8024
8025
cristy73bd4a52010-10-05 11:24:23 +00008026
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8028$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008029if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008030 $as_echo_n "(cached) " >&6
8031else
8032 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008033 ac_ext=c
8034ac_cpp='$CPP $CPPFLAGS'
8035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039 ac_save_CFLAGS="$CFLAGS"
8040for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
8041do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043/* end confdefs.h. */
8044
8045int
8046main ()
8047{
cristy24fc1fe2010-10-23 21:13:01 +00008048
cristy73bd4a52010-10-05 11:24:23 +00008049 ;
8050 return 0;
8051}
8052_ACEOF
8053if ac_fn_c_try_compile "$LINENO"; then :
8054 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057done
8058 CFLAGS="$ac_save_CFLAGS"
8059 ac_ext=c
8060ac_cpp='$CPP $CPPFLAGS'
8061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063ac_compiler_gnu=$ac_cv_c_compiler_gnu
8064
8065
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8068$as_echo "$ac_cv_cflags_warn_all" >&6; }
8069case ".$ac_cv_cflags_warn_all" in
8070 .ok|.ok,*) ;;
8071 .|.no|.no,*)
8072 ;;
8073 *)
8074 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8075 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8076 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8077 ac_status=$?
8078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079 test $ac_status = 0; }
8080 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8081 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8082 ac_status=$?
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }
8085 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8086 fi
8087 ;;
nicolas6237c462010-10-05 06:11:49 +00008088esac
cristy3ed852e2009-09-05 21:47:34 +00008089
cristya0b81c32010-01-22 02:54:33 +00008090
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8093set x ${MAKE-make}
8094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008096 $as_echo_n "(cached) " >&6
8097else
8098 cat >conftest.make <<\_ACEOF
8099SHELL = /bin/sh
8100all:
8101 @echo '@@@%%%=$(MAKE)=@@@%%%'
8102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008104case `${MAKE-make} -f conftest.make 2>/dev/null` in
8105 *@@@%%%=?*=@@@%%%*)
8106 eval ac_cv_prog_make_${ac_make}_set=yes;;
8107 *)
8108 eval ac_cv_prog_make_${ac_make}_set=no;;
8109esac
8110rm -f conftest.make
8111fi
8112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114$as_echo "yes" >&6; }
8115 SET_MAKE=
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119 SET_MAKE="MAKE=${MAKE-make}"
8120fi
8121
cristy8b350f62009-11-15 23:12:43 +00008122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008123$as_echo_n "checking whether ln -s works... " >&6; }
8124LN_S=$as_ln_s
8125if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008127$as_echo "yes" >&6; }
8128else
cristy8b350f62009-11-15 23:12:43 +00008129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008130$as_echo "no, using $LN_S" >&6; }
8131fi
8132
cristy8d0ff762013-03-10 20:33:28 +00008133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8134$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8135if ${ac_cv_path_SED+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137else
8138 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8139 for ac_i in 1 2 3 4 5 6 7; do
8140 ac_script="$ac_script$as_nl$ac_script"
8141 done
8142 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8143 { ac_script=; unset ac_script;}
8144 if test -z "$SED"; then
8145 ac_path_SED_found=false
8146 # Loop through the user's path and test for each of PROGNAME-LIST
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_prog in sed gsed; do
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8155 as_fn_executable_p "$ac_path_SED" || continue
8156# Check for GNU ac_path_SED and select it if it is found.
8157 # Check for GNU $ac_path_SED
8158case `"$ac_path_SED" --version 2>&1` in
8159*GNU*)
8160 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8161*)
8162 ac_count=0
8163 $as_echo_n 0123456789 >"conftest.in"
8164 while :
8165 do
8166 cat "conftest.in" "conftest.in" >"conftest.tmp"
8167 mv "conftest.tmp" "conftest.in"
8168 cp "conftest.in" "conftest.nl"
8169 $as_echo '' >> "conftest.nl"
8170 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8172 as_fn_arith $ac_count + 1 && ac_count=$as_val
8173 if test $ac_count -gt ${ac_path_SED_max-0}; then
8174 # Best one so far, save it but keep looking for a better one
8175 ac_cv_path_SED="$ac_path_SED"
8176 ac_path_SED_max=$ac_count
8177 fi
8178 # 10*(2^10) chars as input seems more than enough
8179 test $ac_count -gt 10 && break
8180 done
8181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8182esac
8183
8184 $ac_path_SED_found && break 3
8185 done
8186 done
8187 done
8188IFS=$as_save_IFS
8189 if test -z "$ac_cv_path_SED"; then
8190 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8191 fi
8192else
8193 ac_cv_path_SED=$SED
8194fi
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8198$as_echo "$ac_cv_path_SED" >&6; }
8199 SED="$ac_cv_path_SED"
8200 rm -f conftest.sed
8201
cristybc556452012-08-17 19:44:03 +00008202for ac_prog in gawk mawk nawk awk
8203do
8204 # Extract the first word of "$ac_prog", so it can be a program name with args.
8205set dummy $ac_prog; ac_word=$2
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207$as_echo_n "checking for $ac_word... " >&6; }
8208if ${ac_cv_prog_AWK+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210else
8211 if test -n "$AWK"; then
8212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_AWK="$ac_prog"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225done
8226 done
8227IFS=$as_save_IFS
8228
8229fi
8230fi
8231AWK=$ac_cv_prog_AWK
8232if test -n "$AWK"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8234$as_echo "$AWK" >&6; }
8235else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
8238fi
8239
8240
8241 test -n "$AWK" && break
8242done
8243
cristy73bd4a52010-10-05 11:24:23 +00008244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8245$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8246
8247# Check whether --with-dmalloc was given.
8248if test "${with_dmalloc+set}" = set; then :
8249 withval=$with_dmalloc; if test "$withval" = yes; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8251$as_echo "yes" >&6; }
8252
8253$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8254
8255 LIBS="$LIBS -ldmalloc"
8256 LDFLAGS="$LDFLAGS -g"
8257else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
8260fi
8261else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
8264fi
8265
8266
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8269$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008270if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008271 $as_echo_n "(cached) " >&6
8272else
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274/* end confdefs.h. */
8275#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008276 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008277 static void
8278 foo(void) {
8279 exit(1);
8280 }
8281
8282int
8283main ()
8284{
8285
8286 ;
8287 return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_compile "$LINENO"; then :
8291 ax_cv___attribute__=yes
8292else
8293 ax_cv___attribute__=no
8294
8295fi
8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8300$as_echo "$ax_cv___attribute__" >&6; }
8301 if test "$ax_cv___attribute__" = "yes"; then
8302
8303$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8304
8305 fi
8306
8307
8308
cristy37110d62012-03-01 18:38:20 +00008309
8310
8311# Check whether --with-gcc-arch was given.
8312if test "${with_gcc_arch+set}" = set; then :
8313 withval=$with_gcc_arch; ax_gcc_arch=$withval
8314else
cristya32d1812012-03-02 19:24:21 +00008315 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008316fi
8317
8318
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8320$as_echo_n "checking for gcc architecture flag... " >&6; }
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8322$as_echo "" >&6; }
8323if ${ax_cv_gcc_archflag+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326
8327ax_cv_gcc_archflag="unknown"
8328
8329if test "$GCC" = yes; then
8330
8331if test "x$ax_gcc_arch" = xyes; then
8332ax_gcc_arch=""
8333if test "$cross_compiling" = no; then
8334case $host_cpu in
8335 i[3456]86*|x86_64*) # use cpuid codes
8336
8337ac_ext=c
8338ac_cpp='$CPP $CPPFLAGS'
8339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8341ac_compiler_gnu=$ac_cv_c_compiler_gnu
8342
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8344$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8345if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347else
8348 if test "$cross_compiling" = yes; then :
8349 ax_cv_gcc_x86_cpuid_0=unknown
8350else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353#include <stdio.h>
8354int
8355main ()
8356{
8357
8358 int op = 0, eax, ebx, ecx, edx;
8359 FILE *f;
8360 __asm__("cpuid"
8361 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8362 : "a" (op));
8363 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8364 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8365 fclose(f);
8366 return 0;
8367
8368 ;
8369 return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_run "$LINENO"; then :
8373 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8374else
8375 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8376fi
8377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8378 conftest.$ac_objext conftest.beam conftest.$ac_ext
8379fi
8380
8381fi
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8383$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8384ac_ext=c
8385ac_cpp='$CPP $CPPFLAGS'
8386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388ac_compiler_gnu=$ac_cv_c_compiler_gnu
8389
8390
8391
8392ac_ext=c
8393ac_cpp='$CPP $CPPFLAGS'
8394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396ac_compiler_gnu=$ac_cv_c_compiler_gnu
8397
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8399$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8400if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402else
8403 if test "$cross_compiling" = yes; then :
8404 ax_cv_gcc_x86_cpuid_1=unknown
8405else
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h. */
8408#include <stdio.h>
8409int
8410main ()
8411{
8412
8413 int op = 1, eax, ebx, ecx, edx;
8414 FILE *f;
8415 __asm__("cpuid"
8416 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8417 : "a" (op));
8418 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8419 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8420 fclose(f);
8421 return 0;
8422
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427if ac_fn_c_try_run "$LINENO"; then :
8428 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8429else
8430 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8431fi
8432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8433 conftest.$ac_objext conftest.beam conftest.$ac_ext
8434fi
8435
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8438$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8439ac_ext=c
8440ac_cpp='$CPP $CPPFLAGS'
8441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8443ac_compiler_gnu=$ac_cv_c_compiler_gnu
8444
8445
8446 case $ax_cv_gcc_x86_cpuid_0 in
8447 *:756e6547:*:*) # Intel
8448 case $ax_cv_gcc_x86_cpuid_1 in
8449 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8450 *5??:*:*:*) ax_gcc_arch=pentium ;;
8451 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8452 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8453 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8454 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8455 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8456 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8457 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8458 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8459 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8460 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8461 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8462 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8463 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8464 case $host_cpu in
8465 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8466 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8467 esac ;;
8468 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8469 esac ;;
8470 *:68747541:*:*) # AMD
8471 case $ax_cv_gcc_x86_cpuid_1 in
8472 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8473 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8474 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8475 *60?:*:*:*) ax_gcc_arch=k7 ;;
8476 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8477 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8478 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8479 *6[68a]?:*:*:*)
8480
8481ac_ext=c
8482ac_cpp='$CPP $CPPFLAGS'
8483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485ac_compiler_gnu=$ac_cv_c_compiler_gnu
8486
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8488$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8489if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491else
8492 if test "$cross_compiling" = yes; then :
8493 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8494else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h. */
8497#include <stdio.h>
8498int
8499main ()
8500{
8501
8502 int op = 0x80000006, eax, ebx, ecx, edx;
8503 FILE *f;
8504 __asm__("cpuid"
8505 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8506 : "a" (op));
8507 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8508 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8509 fclose(f);
8510 return 0;
8511
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_run "$LINENO"; then :
8517 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8518else
8519 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8520fi
8521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8522 conftest.$ac_objext conftest.beam conftest.$ac_ext
8523fi
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8527$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8528ac_ext=c
8529ac_cpp='$CPP $CPPFLAGS'
8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532ac_compiler_gnu=$ac_cv_c_compiler_gnu
8533
8534 # L2 cache size
8535 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8536 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8537 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8538 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8539 esac ;;
8540 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8541 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8542 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8543 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8544 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8545 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8546 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8547 esac ;;
8548 *:746e6543:*:*) # IDT
8549 case $ax_cv_gcc_x86_cpuid_1 in
8550 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8551 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8552 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8553 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8554 esac ;;
8555 esac
8556 if test x"$ax_gcc_arch" = x; then # fallback
8557 case $host_cpu in
8558 i586*) ax_gcc_arch=pentium ;;
8559 i686*) ax_gcc_arch=pentiumpro ;;
8560 esac
8561 fi
8562 ;;
8563
8564 sparc*)
8565 # Extract the first word of "prtdiag", so it can be a program name with args.
8566set dummy prtdiag; ac_word=$2
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568$as_echo_n "checking for $ac_word... " >&6; }
8569if ${ac_cv_path_PRTDIAG+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571else
8572 case $PRTDIAG in
8573 [\\/]* | ?:[\\/]*)
8574 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8575 ;;
8576 *)
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8579for as_dir in $as_dummy
8580do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008585 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589done
8590 done
8591IFS=$as_save_IFS
8592
8593 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8594 ;;
8595esac
8596fi
8597PRTDIAG=$ac_cv_path_PRTDIAG
8598if test -n "$PRTDIAG"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8600$as_echo "$PRTDIAG" >&6; }
8601else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603$as_echo "no" >&6; }
8604fi
8605
8606
8607 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`
8608 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8609 case $cputype in
8610 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8611 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8612 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8613 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8614 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8615 *cypress*) ax_gcc_arch=cypress ;;
8616 esac ;;
8617
8618 alphaev5) ax_gcc_arch=ev5 ;;
8619 alphaev56) ax_gcc_arch=ev56 ;;
8620 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8621 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8622 alphaev6) ax_gcc_arch=ev6 ;;
8623 alphaev67) ax_gcc_arch=ev67 ;;
8624 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8625 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8626 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8627 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8628
8629 powerpc*)
8630 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`
8631 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8632 case $cputype in
8633 *750*) ax_gcc_arch="750 G3" ;;
8634 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8635 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8636 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8637 *970*) ax_gcc_arch="970 G5 power4";;
8638 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8639 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8640 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8641 *) ax_gcc_arch=$cputype ;;
8642 esac
8643 ax_gcc_arch="$ax_gcc_arch powerpc"
8644 ;;
8645esac
8646fi # not cross-compiling
8647fi # guess arch
8648
8649if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8650for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008651 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008652 flags="-mtune=$arch"
8653 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8654 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8655 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8656 else
8657 flags="-march=$arch -mcpu=$arch -m$arch"
8658 fi
8659 for flag in $flags; do
8660 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8662$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8663if eval \${$as_CACHEVAR+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665else
8666
8667 ax_check_save_flags=$CFLAGS
8668 CFLAGS="$CFLAGS $flag"
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670/* end confdefs.h. */
8671
8672int
8673main ()
8674{
8675
8676 ;
8677 return 0;
8678}
8679_ACEOF
8680if ac_fn_c_try_compile "$LINENO"; then :
8681 eval "$as_CACHEVAR=yes"
8682else
8683 eval "$as_CACHEVAR=no"
8684fi
8685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 CFLAGS=$ax_check_save_flags
8687fi
8688eval ac_res=\$$as_CACHEVAR
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8690$as_echo "$ac_res" >&6; }
8691if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8692 ax_cv_gcc_archflag=$flag; break
8693else
8694 :
8695fi
8696
8697 done
8698 test "x$ax_cv_gcc_archflag" = xunknown || break
8699done
8700fi
8701
8702fi # $GCC=yes
8703
8704fi
8705
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8707$as_echo_n "checking for gcc architecture flag... " >&6; }
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8709$as_echo "$ax_cv_gcc_archflag" >&6; }
8710if test "x$ax_cv_gcc_archflag" = xunknown; then
8711 :
8712else
8713 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8714fi
8715
8716
8717
cristy73bd4a52010-10-05 11:24:23 +00008718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8719 if test -n "$ac_tool_prefix"; then
8720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008724if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008725 $as_echo_n "(cached) " >&6
8726else
8727 case $PKG_CONFIG in
8728 [\\/]* | ?:[\\/]*)
8729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8730 ;;
8731 *)
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743done
8744 done
8745IFS=$as_save_IFS
8746
8747 ;;
8748esac
8749fi
8750PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8751if test -n "$PKG_CONFIG"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8753$as_echo "$PKG_CONFIG" >&6; }
8754else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756$as_echo "no" >&6; }
8757fi
8758
8759
8760fi
8761if test -z "$ac_cv_path_PKG_CONFIG"; then
8762 ac_pt_PKG_CONFIG=$PKG_CONFIG
8763 # Extract the first word of "pkg-config", so it can be a program name with args.
8764set dummy pkg-config; ac_word=$2
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008767if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008768 $as_echo_n "(cached) " >&6
8769else
8770 case $ac_pt_PKG_CONFIG in
8771 [\\/]* | ?:[\\/]*)
8772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8773 ;;
8774 *)
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786done
8787 done
8788IFS=$as_save_IFS
8789
8790 ;;
8791esac
8792fi
8793ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8794if test -n "$ac_pt_PKG_CONFIG"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8796$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8797else
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
8800fi
8801
8802 if test "x$ac_pt_PKG_CONFIG" = x; then
8803 PKG_CONFIG=""
8804 else
8805 case $cross_compiling:$ac_tool_warned in
8806yes:)
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8809ac_tool_warned=yes ;;
8810esac
8811 PKG_CONFIG=$ac_pt_PKG_CONFIG
8812 fi
8813else
8814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8815fi
8816
8817fi
8818if test -n "$PKG_CONFIG"; then
8819 _pkg_min_version=0.9.0
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8821$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8824$as_echo "yes" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
8828 PKG_CONFIG=""
8829 fi
8830
8831fi
cristy3ed852e2009-09-05 21:47:34 +00008832
cristyd95b7a52013-10-23 13:12:53 +00008833# Test for 64-bit build.
8834# The cast to long int works around a bug in the HP C Compiler
8835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8837# This bug is HP SR number 8606223364.
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8839$as_echo_n "checking size of size_t... " >&6; }
8840if ${ac_cv_sizeof_size_t+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842else
8843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8844
8845else
8846 if test "$ac_cv_type_size_t" = yes; then
8847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8849as_fn_error 77 "cannot compute sizeof (size_t)
8850See \`config.log' for more details" "$LINENO" 5; }
8851 else
8852 ac_cv_sizeof_size_t=0
8853 fi
8854fi
8855
8856fi
8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8858$as_echo "$ac_cv_sizeof_size_t" >&6; }
8859
8860
8861
8862cat >>confdefs.h <<_ACEOF
8863#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8864_ACEOF
8865
8866
8867
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8869$as_echo_n "checking for C compiler vendor... " >&6; }
8870if ${ax_cv_c_compiler_vendor+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872else
8873 # note: don't check for gcc first since some other compilers define __GNUC__
8874 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8875 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8876 pathscale: __PATHCC__,__PATHSCALE__
8877 clang: __clang__
8878 gnu: __GNUC__
8879 sun: __SUNPRO_C,__SUNPRO_CC
8880 hp: __HP_cc,__HP_aCC
8881 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8882 borland: __BORLANDC__,__TURBOC__
8883 comeau: __COMO__
8884 cray: _CRAYC
8885 kai: __KCC
8886 lcc: __LCC__
8887 sgi: __sgi,sgi
8888 microsoft: _MSC_VER
8889 metrowerks: __MWERKS__
8890 watcom: __WATCOMC__
8891 portland: __PGI
8892 unknown: UNKNOWN"
8893 for ventest in $vendors; do
8894 case $ventest in
8895 *:) vendor=$ventest; continue ;;
8896 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8897 esac
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h. */
8900
8901int
8902main ()
8903{
8904
8905 #if !($vencpp)
8906 thisisanerror;
8907 #endif
8908
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_compile "$LINENO"; then :
8914 break
8915fi
8916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 done
8918 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8919
8920fi
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8922$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8923
8924
8925
8926
8927
8928
8929# Check whether --enable-portable-binary was given.
8930if test "${enable_portable_binary+set}" = set; then :
8931 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
8932else
8933 acx_maxopt_portable=no
8934fi
8935
8936
8937# Try to determine "good" native compiler flags if none specified via CFLAGS
8938if test "$ac_test_CFLAGS" != "set"; then
8939 CFLAGS=""
8940 case $ax_cv_c_compiler_vendor in
8941 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
8942 if test "x$acx_maxopt_portable" = xno; then
8943 CFLAGS="$CFLAGS -arch host"
8944 fi;;
8945
8946 sun) CFLAGS="-native -fast -xO5 -dalign"
8947 if test "x$acx_maxopt_portable" = xyes; then
8948 CFLAGS="$CFLAGS -xarch=generic"
8949 fi;;
8950
8951 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
8952 if test "x$acx_maxopt_portable" = xyes; then
8953 CFLAGS="$CFLAGS +DAportable"
8954 fi;;
8955
8956 ibm) if test "x$acx_maxopt_portable" = xno; then
8957 xlc_opt="-qarch=auto -qtune=auto"
8958 else
8959 xlc_opt="-qtune=auto"
8960 fi
8961 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
8963$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
8964if eval \${$as_CACHEVAR+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966else
8967
8968 ax_check_save_flags=$CFLAGS
8969 CFLAGS="$CFLAGS $xlc_opt"
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h. */
8972
8973int
8974main ()
8975{
8976
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981if ac_fn_c_try_compile "$LINENO"; then :
8982 eval "$as_CACHEVAR=yes"
8983else
8984 eval "$as_CACHEVAR=no"
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 CFLAGS=$ax_check_save_flags
8988fi
8989eval ac_res=\$$as_CACHEVAR
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8991$as_echo "$ac_res" >&6; }
8992if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8993 CFLAGS="-O3 -qansialias -w $xlc_opt"
8994else
8995 CFLAGS="-O3 -qansialias -w"
8996 echo "******************************************************"
8997 echo "* You seem to have the IBM C compiler. It is *"
8998 echo "* recommended for best performance that you use: *"
8999 echo "* *"
9000 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
9001 echo "* ^^^ ^^^ *"
9002 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
9003 echo "* CPU you have. (Set the CFLAGS environment var. *"
9004 echo "* and re-run configure.) For more info, man cc. *"
9005 echo "******************************************************"
9006fi
9007
9008 ;;
9009
9010 intel) CFLAGS="-O3 -ansi_alias"
9011 if test "x$acx_maxopt_portable" = xno; then
9012 icc_archflag=unknown
9013 icc_flags=""
9014 case $host_cpu in
9015 i686*|x86_64*)
9016 # icc accepts gcc assembly syntax, so these should work:
9017
9018ac_ext=c
9019ac_cpp='$CPP $CPPFLAGS'
9020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022ac_compiler_gnu=$ac_cv_c_compiler_gnu
9023
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
9025$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
9026if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028else
9029 if test "$cross_compiling" = yes; then :
9030 ax_cv_gcc_x86_cpuid_0=unknown
9031else
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034#include <stdio.h>
9035int
9036main ()
9037{
9038
9039 int op = 0, eax, ebx, ecx, edx;
9040 FILE *f;
9041 __asm__("cpuid"
9042 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
9043 : "a" (op));
9044 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9045 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9046 fclose(f);
9047 return 0;
9048
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_run "$LINENO"; then :
9054 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
9055else
9056 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
9057fi
9058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9059 conftest.$ac_objext conftest.beam conftest.$ac_ext
9060fi
9061
9062fi
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
9064$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
9065ac_ext=c
9066ac_cpp='$CPP $CPPFLAGS'
9067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9069ac_compiler_gnu=$ac_cv_c_compiler_gnu
9070
9071
9072
9073ac_ext=c
9074ac_cpp='$CPP $CPPFLAGS'
9075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
9080$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
9081if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083else
9084 if test "$cross_compiling" = yes; then :
9085 ax_cv_gcc_x86_cpuid_1=unknown
9086else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h. */
9089#include <stdio.h>
9090int
9091main ()
9092{
9093
9094 int op = 1, eax, ebx, ecx, edx;
9095 FILE *f;
9096 __asm__("cpuid"
9097 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
9098 : "a" (op));
9099 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9100 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9101 fclose(f);
9102 return 0;
9103
9104 ;
9105 return 0;
9106}
9107_ACEOF
9108if ac_fn_c_try_run "$LINENO"; then :
9109 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
9110else
9111 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
9112fi
9113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9114 conftest.$ac_objext conftest.beam conftest.$ac_ext
9115fi
9116
9117fi
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
9119$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
9120ac_ext=c
9121ac_cpp='$CPP $CPPFLAGS'
9122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9124ac_compiler_gnu=$ac_cv_c_compiler_gnu
9125
9126
9127 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
9128 *:756e6547:*:*) # Intel
9129 case $ax_cv_gcc_x86_cpuid_1 in
9130 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
9131 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
9132 *f??:*:*:*) icc_flags="-xN -xW -xK";;
9133 esac ;;
9134 esac ;;
9135 esac
9136 if test "x$icc_flags" != x; then
9137 for flag in $icc_flags; do
9138 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9140$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9141if eval \${$as_CACHEVAR+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143else
9144
9145 ax_check_save_flags=$CFLAGS
9146 CFLAGS="$CFLAGS $flag"
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148/* end confdefs.h. */
9149
9150int
9151main ()
9152{
9153
9154 ;
9155 return 0;
9156}
9157_ACEOF
9158if ac_fn_c_try_compile "$LINENO"; then :
9159 eval "$as_CACHEVAR=yes"
9160else
9161 eval "$as_CACHEVAR=no"
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164 CFLAGS=$ax_check_save_flags
9165fi
9166eval ac_res=\$$as_CACHEVAR
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9168$as_echo "$ac_res" >&6; }
9169if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
9170 icc_archflag=$flag; break
9171else
9172 :
9173fi
9174
9175 done
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
9178$as_echo_n "checking for icc architecture flag... " >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
9180$as_echo "$icc_archflag" >&6; }
9181 if test "x$icc_archflag" != xunknown; then
9182 CFLAGS="$CFLAGS $icc_archflag"
9183 fi
9184 fi
9185 ;;
9186
9187 gnu)
9188 # default optimization flags for gcc on all systems
9189 CFLAGS="-O3 -fomit-frame-pointer"
9190
9191 # -malign-double for x86 systems
9192 # LIBFFI -- DON'T DO THIS - CHANGES ABI
9193 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
9194
9195 # -fstrict-aliasing for gcc-2.95+
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
9197$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
9198if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200else
9201
9202 ax_check_save_flags=$CFLAGS
9203 CFLAGS="$CFLAGS -fstrict-aliasing"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h. */
9206
9207int
9208main ()
9209{
9210
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"; then :
9216 ax_cv_check_cflags___fstrict_aliasing=yes
9217else
9218 ax_cv_check_cflags___fstrict_aliasing=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 CFLAGS=$ax_check_save_flags
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
9224$as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
9225if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
9226 CFLAGS="$CFLAGS -fstrict-aliasing"
9227else
9228 :
9229fi
9230
9231
9232 # note that we enable "unsafe" fp optimization with other compilers, too
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
9234$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
9235if ${ax_cv_check_cflags___ffast_math+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237else
9238
9239 ax_check_save_flags=$CFLAGS
9240 CFLAGS="$CFLAGS -ffast-math"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h. */
9243
9244int
9245main ()
9246{
9247
9248 ;
9249 return 0;
9250}
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"; then :
9253 ax_cv_check_cflags___ffast_math=yes
9254else
9255 ax_cv_check_cflags___ffast_math=no
9256fi
9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 CFLAGS=$ax_check_save_flags
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
9261$as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
9262if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
9263 CFLAGS="$CFLAGS -ffast-math"
9264else
9265 :
9266fi
9267
9268
9269
9270
9271
9272
9273# Check whether --with-gcc-arch was given.
9274if test "${with_gcc_arch+set}" = set; then :
9275 withval=$with_gcc_arch; ax_gcc_arch=$withval
9276else
9277 ax_gcc_arch=no
9278fi
9279
9280
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9282$as_echo_n "checking for gcc architecture flag... " >&6; }
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9284$as_echo "" >&6; }
9285if ${ax_cv_gcc_archflag+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287else
9288
9289ax_cv_gcc_archflag="unknown"
9290
9291if test "$GCC" = yes; then
9292
9293if test "x$ax_gcc_arch" = xyes; then
9294ax_gcc_arch=""
9295if test "$cross_compiling" = no; then
9296case $host_cpu in
9297 i[3456]86*|x86_64*) # use cpuid codes
9298
9299ac_ext=c
9300ac_cpp='$CPP $CPPFLAGS'
9301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9303ac_compiler_gnu=$ac_cv_c_compiler_gnu
9304
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
9306$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
9307if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309else
9310 if test "$cross_compiling" = yes; then :
9311 ax_cv_gcc_x86_cpuid_0=unknown
9312else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h. */
9315#include <stdio.h>
9316int
9317main ()
9318{
9319
9320 int op = 0, eax, ebx, ecx, edx;
9321 FILE *f;
9322 __asm__("cpuid"
9323 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
9324 : "a" (op));
9325 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9326 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9327 fclose(f);
9328 return 0;
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334if ac_fn_c_try_run "$LINENO"; then :
9335 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
9336else
9337 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
9338fi
9339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9340 conftest.$ac_objext conftest.beam conftest.$ac_ext
9341fi
9342
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
9345$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
9346ac_ext=c
9347ac_cpp='$CPP $CPPFLAGS'
9348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350ac_compiler_gnu=$ac_cv_c_compiler_gnu
9351
9352
9353
9354ac_ext=c
9355ac_cpp='$CPP $CPPFLAGS'
9356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
9361$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
9362if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364else
9365 if test "$cross_compiling" = yes; then :
9366 ax_cv_gcc_x86_cpuid_1=unknown
9367else
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h. */
9370#include <stdio.h>
9371int
9372main ()
9373{
9374
9375 int op = 1, eax, ebx, ecx, edx;
9376 FILE *f;
9377 __asm__("cpuid"
9378 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
9379 : "a" (op));
9380 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9381 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9382 fclose(f);
9383 return 0;
9384
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_run "$LINENO"; then :
9390 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
9391else
9392 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
9393fi
9394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9395 conftest.$ac_objext conftest.beam conftest.$ac_ext
9396fi
9397
9398fi
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
9400$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
9401ac_ext=c
9402ac_cpp='$CPP $CPPFLAGS'
9403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9405ac_compiler_gnu=$ac_cv_c_compiler_gnu
9406
9407
9408 case $ax_cv_gcc_x86_cpuid_0 in
9409 *:756e6547:*:*) # Intel
9410 case $ax_cv_gcc_x86_cpuid_1 in
9411 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
9412 *5??:*:*:*) ax_gcc_arch=pentium ;;
9413 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
9414 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
9415 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
9416 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
9417 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
9418 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
9419 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
9420 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
9421 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
9422 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9423 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
9424 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
9425 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
9426 case $host_cpu in
9427 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
9428 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
9429 esac ;;
9430 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
9431 esac ;;
9432 *:68747541:*:*) # AMD
9433 case $ax_cv_gcc_x86_cpuid_1 in
9434 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
9435 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
9436 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
9437 *60?:*:*:*) ax_gcc_arch=k7 ;;
9438 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
9439 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
9440 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
9441 *6[68a]?:*:*:*)
9442
9443ac_ext=c
9444ac_cpp='$CPP $CPPFLAGS'
9445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
9450$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
9451if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453else
9454 if test "$cross_compiling" = yes; then :
9455 ax_cv_gcc_x86_cpuid_0x80000006=unknown
9456else
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h. */
9459#include <stdio.h>
9460int
9461main ()
9462{
9463
9464 int op = 0x80000006, eax, ebx, ecx, edx;
9465 FILE *f;
9466 __asm__("cpuid"
9467 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
9468 : "a" (op));
9469 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9470 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9471 fclose(f);
9472 return 0;
9473
9474 ;
9475 return 0;
9476}
9477_ACEOF
9478if ac_fn_c_try_run "$LINENO"; then :
9479 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
9480else
9481 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
9482fi
9483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9484 conftest.$ac_objext conftest.beam conftest.$ac_ext
9485fi
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
9489$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
9490ac_ext=c
9491ac_cpp='$CPP $CPPFLAGS'
9492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495
9496 # L2 cache size
9497 case $ax_cv_gcc_x86_cpuid_0x80000006 in
9498 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
9499 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
9500 *) ax_gcc_arch="athlon-4 athlon k7" ;;
9501 esac ;;
9502 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9503 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
9504 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
9505 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
9506 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9507 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9508 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
9509 esac ;;
9510 *:746e6543:*:*) # IDT
9511 case $ax_cv_gcc_x86_cpuid_1 in
9512 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
9513 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
9514 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
9515 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
9516 esac ;;
9517 esac
9518 if test x"$ax_gcc_arch" = x; then # fallback
9519 case $host_cpu in
9520 i586*) ax_gcc_arch=pentium ;;
9521 i686*) ax_gcc_arch=pentiumpro ;;
9522 esac
9523 fi
9524 ;;
9525
9526 sparc*)
9527 # Extract the first word of "prtdiag", so it can be a program name with args.
9528set dummy prtdiag; ac_word=$2
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if ${ac_cv_path_PRTDIAG+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533else
9534 case $PRTDIAG in
9535 [\\/]* | ?:[\\/]*)
9536 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9537 ;;
9538 *)
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9541for as_dir in $as_dummy
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551done
9552 done
9553IFS=$as_save_IFS
9554
9555 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9556 ;;
9557esac
9558fi
9559PRTDIAG=$ac_cv_path_PRTDIAG
9560if test -n "$PRTDIAG"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9562$as_echo "$PRTDIAG" >&6; }
9563else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565$as_echo "no" >&6; }
9566fi
9567
9568
9569 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`
9570 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
9571 case $cputype in
9572 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9573 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9574 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9575 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9576 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9577 *cypress*) ax_gcc_arch=cypress ;;
9578 esac ;;
9579
9580 alphaev5) ax_gcc_arch=ev5 ;;
9581 alphaev56) ax_gcc_arch=ev56 ;;
9582 alphapca56) ax_gcc_arch="pca56 ev56" ;;
9583 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9584 alphaev6) ax_gcc_arch=ev6 ;;
9585 alphaev67) ax_gcc_arch=ev67 ;;
9586 alphaev68) ax_gcc_arch="ev68 ev67" ;;
9587 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9588 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9589 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9590
9591 powerpc*)
9592 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`
9593 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
9594 case $cputype in
9595 *750*) ax_gcc_arch="750 G3" ;;
9596 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9597 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9598 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9599 *970*) ax_gcc_arch="970 G5 power4";;
9600 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9601 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9602 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9603 *) ax_gcc_arch=$cputype ;;
9604 esac
9605 ax_gcc_arch="$ax_gcc_arch powerpc"
9606 ;;
9607esac
9608fi # not cross-compiling
9609fi # guess arch
9610
9611if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
9612for arch in $ax_gcc_arch; do
9613 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
9614 flags="-mtune=$arch"
9615 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9616 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9617 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
9618 else
9619 flags="-march=$arch -mcpu=$arch -m$arch"
9620 fi
9621 for flag in $flags; do
9622 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9624$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9625if eval \${$as_CACHEVAR+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627else
9628
9629 ax_check_save_flags=$CFLAGS
9630 CFLAGS="$CFLAGS $flag"
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h. */
9633
9634int
9635main ()
9636{
9637
9638 ;
9639 return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_compile "$LINENO"; then :
9643 eval "$as_CACHEVAR=yes"
9644else
9645 eval "$as_CACHEVAR=no"
9646fi
9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 CFLAGS=$ax_check_save_flags
9649fi
9650eval ac_res=\$$as_CACHEVAR
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9652$as_echo "$ac_res" >&6; }
9653if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
9654 ax_cv_gcc_archflag=$flag; break
9655else
9656 :
9657fi
9658
9659 done
9660 test "x$ax_cv_gcc_archflag" = xunknown || break
9661done
9662fi
9663
9664fi # $GCC=yes
9665
9666fi
9667
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9669$as_echo_n "checking for gcc architecture flag... " >&6; }
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9671$as_echo "$ax_cv_gcc_archflag" >&6; }
9672if test "x$ax_cv_gcc_archflag" = xunknown; then
9673 :
9674else
9675 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9676fi
9677
9678 ;;
9679 esac
9680
9681 if test -z "$CFLAGS"; then
9682 echo ""
9683 echo "********************************************************"
9684 echo "* WARNING: Don't know the best CFLAGS for this system *"
9685 echo "* Use ./configure CFLAGS=... to specify your own flags *"
9686 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
9687 echo "********************************************************"
9688 echo ""
9689 CFLAGS="-O3"
9690 fi
9691
9692 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
9694$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
9695if eval \${$as_CACHEVAR+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697else
9698
9699 ax_check_save_flags=$CFLAGS
9700 CFLAGS="$CFLAGS $CFLAGS"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702/* end confdefs.h. */
9703
9704int
9705main ()
9706{
9707
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713 eval "$as_CACHEVAR=yes"
9714else
9715 eval "$as_CACHEVAR=no"
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 CFLAGS=$ax_check_save_flags
9719fi
9720eval ac_res=\$$as_CACHEVAR
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9722$as_echo "$ac_res" >&6; }
9723if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
9724 :
9725else
9726
9727 echo ""
9728 echo "********************************************************"
9729 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
9730 echo "* your compiler. *"
9731 echo "* Use ./configure CFLAGS=... to specify your own flags *"
9732 echo "********************************************************"
9733 echo ""
9734 CFLAGS=""
9735
9736fi
9737
9738
9739fi
9740
9741# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9742# compiler.
9743if test "$ax_cv_c_compiler_vendor" != "sun"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9745$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9746if ${ac_cv_cflags_warn_all+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 ac_cv_cflags_warn_all="no, unknown"
9750 ac_ext=c
9751ac_cpp='$CPP $CPPFLAGS'
9752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755
9756 ac_save_CFLAGS="$CFLAGS"
9757for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
9758do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h. */
9761
9762int
9763main ()
9764{
9765
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774done
9775 CFLAGS="$ac_save_CFLAGS"
9776 ac_ext=c
9777ac_cpp='$CPP $CPPFLAGS'
9778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781
9782
9783fi
9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9785$as_echo "$ac_cv_cflags_warn_all" >&6; }
9786case ".$ac_cv_cflags_warn_all" in
9787 .ok|.ok,*) ;;
9788 .|.no|.no,*)
9789 ;;
9790 *)
9791 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
9792 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
9793 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
9794 ac_status=$?
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; }
9797 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
9798 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; }
9802 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9803 fi
9804 ;;
9805esac
9806
9807fi
9808
9809if test "x$GCC" = "xyes"; then
9810 CFLAGS="$CFLAGS -fexceptions"
9811 touch local.exp
9812else
9813 cat > local.exp <<EOF
9814set CC_FOR_TARGET "$CC"
9815EOF
9816fi
9817
cristy9b86f202012-11-28 21:55:35 +00009818# Check for linker script support
9819
9820 # Check whether --enable-ld-version-script was given.
9821if test "${enable_ld_version_script+set}" = set; then :
9822 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9823fi
9824
9825 if test -z "$have_ld_version_script"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9827$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9828 save_LDFLAGS="$LDFLAGS"
9829 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9830 cat > conftest.map <<EOF
9831foo
9832EOF
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834/* end confdefs.h. */
9835
9836int
9837main ()
9838{
9839
9840 ;
9841 return 0;
9842}
9843_ACEOF
9844if ac_fn_c_try_link "$LINENO"; then :
9845 accepts_syntax_errors=yes
9846else
9847 accepts_syntax_errors=no
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 if test "$accepts_syntax_errors" = no; then
9852 cat > conftest.map <<EOF
9853VERS_1 {
9854 global: sym;
9855};
9856
9857VERS_2 {
9858 global: sym;
9859} VERS_1;
9860EOF
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h. */
9863
9864int
9865main ()
9866{
9867
9868 ;
9869 return 0;
9870}
9871_ACEOF
9872if ac_fn_c_try_link "$LINENO"; then :
9873 have_ld_version_script=yes
9874else
9875 have_ld_version_script=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 else
9880 have_ld_version_script=no
9881 fi
9882 rm -f conftest.map
9883 LDFLAGS="$save_LDFLAGS"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9885$as_echo "$have_ld_version_script" >&6; }
9886 fi
9887 if test "$have_ld_version_script" = "yes"; then
9888 HAVE_LD_VERSION_SCRIPT_TRUE=
9889 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9890else
9891 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9892 HAVE_LD_VERSION_SCRIPT_FALSE=
9893fi
9894
9895
9896
cristy3ed852e2009-09-05 21:47:34 +00009897#
cristy3ed852e2009-09-05 21:47:34 +00009898# Enable run-time checking.
9899#
9900# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009901if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009902 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9903else
9904 enable_bounds_checking='no'
9905fi
9906
9907
9908if test "$enable_bounds_checking" = yes; then
9909
cristy8b350f62009-11-15 23:12:43 +00009910$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009911
9912fi
9913
9914#
9915# Tests for Windows
9916#
9917
9918
9919
9920GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009921native_win32_build='no'
9922cygwin_build='no'
9923case "${host_os}" in
9924 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009925 cygwin_build='yes'
9926 GDI32_LIBS='-lgdi32'
9927 ;;
9928 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009929 native_win32_build='yes'
9930 GDI32_LIBS='-lgdi32'
9931 ;;
9932esac
9933if test "${GDI32_LIBS}x" != 'x'; then
9934
cristy8b350f62009-11-15 23:12:43 +00009935$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009936
9937fi
9938
cristy73bd4a52010-10-05 11:24:23 +00009939 if test "${GDI32_LIBS}x" != 'x' ; then
9940 WINGDI32_DELEGATE_TRUE=
9941 WINGDI32_DELEGATE_FALSE='#'
9942else
9943 WINGDI32_DELEGATE_TRUE='#'
9944 WINGDI32_DELEGATE_FALSE=
9945fi
9946
9947 if test "${native_win32_build}" = 'yes' ; then
9948 WIN32_NATIVE_BUILD_TRUE=
9949 WIN32_NATIVE_BUILD_FALSE='#'
9950else
9951 WIN32_NATIVE_BUILD_TRUE='#'
9952 WIN32_NATIVE_BUILD_FALSE=
9953fi
9954
9955 if test "${cygwin_build}" = 'yes' ; then
9956 CYGWIN_BUILD_TRUE=
9957 CYGWIN_BUILD_FALSE='#'
9958else
9959 CYGWIN_BUILD_TRUE='#'
9960 CYGWIN_BUILD_FALSE=
9961fi
9962
9963 if test "x${CC}" = 'xcl.exe' ; then
9964 USING_CL_TRUE=
9965 USING_CL_FALSE='#'
9966else
9967 USING_CL_TRUE='#'
9968 USING_CL_FALSE=
9969fi
9970
cristy3ed852e2009-09-05 21:47:34 +00009971
9972WinPathScript="${srcdirfull}/winpath.sh"
9973
9974
9975#
9976# Compiler flags tweaks
9977#
9978if test "${GCC}" != "yes"; then
9979 case "${host}" in
9980 *-*-hpux* )
9981 # aCC: HP ANSI C++ B3910B A.03.34
9982 CFLAGS="${CFLAGS} -Wp,-H30000"
9983 if test -n "${CXXFLAGS}"; then
9984 CXXFLAGS='-AA'
9985 else
9986 CXXFLAGS="${CXXFLAGS} -AA"
9987 fi
9988 ;;
9989 *-dec-osf5.* )
9990 # Compaq alphaev68-dec-osf5.1 compiler
9991 if test -n "${CXXFLAGS}"; then
9992 CXXFLAGS='-std strict_ansi -noimplicit_include'
9993 else
9994 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9995 fi
9996 esac
9997fi
9998
9999# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +000010000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010002if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010003 $as_echo_n "(cached) " >&6
10004else
10005
10006im_cv_ld_lazyload='none'
10007case "${host}" in
10008 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
10009 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
10010 im_cv_ld_lazyload='-Wl,-zlazyload'
10011 fi
10012 ;;
10013esac
10014
10015fi
cristy8b350f62009-11-15 23:12:43 +000010016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017$as_echo "$im_cv_ld_lazyload" >&6; }
10018if test "${im_cv_ld_lazyload}" != 'none' ; then
10019 if test -z "${LDFLAGS}" ; then
10020 LDFLAGS="${im_cv_ld_lazyload}"
10021 else
10022 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
10023 fi
10024fi
10025
10026case "$host" in
cristyc37574e2013-02-16 01:04:55 +000010027 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +000010028 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +000010029 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +000010030if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010031 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
10032else
10033 build_osxuniversal=no
10034fi
10035
10036
cristyc37574e2013-02-16 01:04:55 +000010037 if test "${build_osxuniversal}" != no ; then
10038 if test "$enable_dependency_tracking" != no ; then
10039 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +000010040Please re-run configure with these options:
10041 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +000010042 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +000010043 fi
10044 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
10045 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
10046 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +000010047 fi
10048 ;;
10049esac
10050
cristy0151ae12011-10-28 16:32:29 +000010051#
10052# ARCH specific include directory
10053#
10054
cristy670aa3c2011-11-03 00:54:00 +000010055# Check whether --with-includearch-dir was given.
10056if test "${with_includearch_dir+set}" = set; then :
10057 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +000010058else
cristy670aa3c2011-11-03 00:54:00 +000010059 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +000010060fi
10061
10062
cristyd286fd72013-02-24 19:25:33 +000010063eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +000010064
cristy0151ae12011-10-28 16:32:29 +000010065
10066#
10067# ARCH specific configuration directory
10068#
10069
cristy670aa3c2011-11-03 00:54:00 +000010070# Check whether --with-sharearch-dir was given.
10071if test "${with_sharearch_dir+set}" = set; then :
10072 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +000010073else
cristy408ebcd2011-11-14 01:36:57 +000010074 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +000010075fi
10076
10077
cristy670aa3c2011-11-03 00:54:00 +000010078eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +000010079
cristy0151ae12011-10-28 16:32:29 +000010080
cristy2ec87cc2013-02-18 17:46:50 +000010081# Path to the pkgconfig folder
10082
10083# Check whether --with-pkgconfigdir was given.
10084if test "${with_pkgconfigdir+set}" = set; then :
10085 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
10086else
10087 pkgconfigdir='${libdir}/pkgconfig'
10088fi
10089
10090
10091
cristy0151ae12011-10-28 16:32:29 +000010092#
cristy3ed852e2009-09-05 21:47:34 +000010093# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +000010094#
10095# Find Posix threads library
10096#
cristy3ed852e2009-09-05 21:47:34 +000010097
10098# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +000010099if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010100 withval=$with_threads; with_threads=$withval
10101else
10102 with_threads='yes'
10103fi
10104
10105
cristy1ae5c992013-07-30 14:55:07 +000010106THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000010107have_threads=no
10108if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000010109
10110
cristy73bd4a52010-10-05 11:24:23 +000010111ac_ext=c
10112ac_cpp='$CPP $CPPFLAGS'
10113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10115ac_compiler_gnu=$ac_cv_c_compiler_gnu
10116
10117ax_pthread_ok=no
10118
10119# We used to check for pthread.h first, but this fails if pthread.h
10120# requires special compiler flags (e.g. on True64 or Sequent).
10121# It gets checked for in the link test anyway.
10122
10123# First of all, check if the user has set any of the PTHREAD_LIBS,
10124# etcetera environment variables, and if threads linking works using
10125# them:
10126if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10127 save_CFLAGS="$CFLAGS"
10128 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10129 save_LIBS="$LIBS"
10130 LIBS="$PTHREAD_LIBS $LIBS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10132$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h. */
10135
10136/* Override any GCC internal prototype to avoid an error.
10137 Use char because int might match the return type of a GCC
10138 builtin and then its argument prototype would still apply. */
10139#ifdef __cplusplus
10140extern "C"
10141#endif
10142char pthread_join ();
10143int
10144main ()
10145{
10146return pthread_join ();
10147 ;
10148 return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"; then :
10152 ax_pthread_ok=yes
10153fi
10154rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10157$as_echo "$ax_pthread_ok" >&6; }
10158 if test x"$ax_pthread_ok" = xno; then
10159 PTHREAD_LIBS=""
10160 PTHREAD_CFLAGS=""
10161 fi
10162 LIBS="$save_LIBS"
10163 CFLAGS="$save_CFLAGS"
10164fi
10165
10166# We must check for the threads library under a number of different
10167# names; the ordering is very important because some systems
10168# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10169# libraries is broken (non-POSIX).
10170
10171# Create a list of thread flags to try. Items starting with a "-" are
10172# C compiler flags, and other items are library names, except for "none"
10173# which indicates that we try without any flags at all, and "pthread-config"
10174# which is a program returning the flags for the Pth emulation library.
10175
cristy2ec87cc2013-02-18 17:46:50 +000010176ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010177
10178# The ordering *is* (sometimes) important. Some notes on the
10179# individual items follow:
10180
10181# pthreads: AIX (must check this before -lpthread)
10182# none: in case threads are in libc; should be tried before -Kthread and
10183# other compiler flags to prevent continual compiler warnings
10184# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10185# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10186# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10187# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10188# -pthreads: Solaris/gcc
10189# -mthreads: Mingw32/gcc, Lynx/gcc
10190# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10191# doesn't hurt to check since this sometimes defines pthreads too;
10192# also defines -D_REENTRANT)
10193# ... -mt is also the pthreads flag for HP/aCC
10194# pthread: Linux, etcetera
10195# --thread-safe: KAI C++
10196# pthread-config: use pthread-config program (for GNU Pth library)
10197
cristy2ec87cc2013-02-18 17:46:50 +000010198case ${host_os} in
10199 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010200
10201 # On Solaris (at least, for some versions), libc contains stubbed
10202 # (non-functional) versions of the pthreads routines, so link-based
10203 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10204 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10205 # a function called by this macro, so we could check for that, but
10206 # who knows whether they'll stub that too in a future libc.) So,
10207 # we'll just look for -pthreads and -lpthread first:
10208
10209 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10210 ;;
10211
cristy2ec87cc2013-02-18 17:46:50 +000010212 darwin*)
cristya316db12011-10-24 00:49:45 +000010213 ax_pthread_flags="-pthread $ax_pthread_flags"
10214 ;;
cristy73bd4a52010-10-05 11:24:23 +000010215esac
10216
10217if test x"$ax_pthread_ok" = xno; then
10218for flag in $ax_pthread_flags; do
10219
10220 case $flag in
10221 none)
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10223$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10224 ;;
10225
10226 -*)
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10228$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10229 PTHREAD_CFLAGS="$flag"
10230 ;;
10231
cristya316db12011-10-24 00:49:45 +000010232 pthread-config)
10233 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010234set dummy pthread-config; ac_word=$2
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010237if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010238 $as_echo_n "(cached) " >&6
10239else
10240 if test -n "$ax_pthread_config"; then
10241 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10242else
10243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244for as_dir in $PATH
10245do
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010250 ac_cv_prog_ax_pthread_config="yes"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10253 fi
10254done
10255 done
10256IFS=$as_save_IFS
10257
10258 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10259fi
10260fi
10261ax_pthread_config=$ac_cv_prog_ax_pthread_config
10262if test -n "$ax_pthread_config"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10264$as_echo "$ax_pthread_config" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
cristya316db12011-10-24 00:49:45 +000010271 if test x"$ax_pthread_config" = xno; then continue; fi
10272 PTHREAD_CFLAGS="`pthread-config --cflags`"
10273 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10274 ;;
cristy73bd4a52010-10-05 11:24:23 +000010275
10276 *)
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10278$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10279 PTHREAD_LIBS="-l$flag"
10280 ;;
10281 esac
10282
10283 save_LIBS="$LIBS"
10284 save_CFLAGS="$CFLAGS"
10285 LIBS="$PTHREAD_LIBS $LIBS"
10286 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10287
10288 # Check for various functions. We must include pthread.h,
10289 # since some functions may be macros. (On the Sequent, we
10290 # need a special flag -Kthread to make this header compile.)
10291 # We check for pthread_join because it is in -lpthread on IRIX
10292 # while pthread_create is in libc. We check for pthread_attr_init
10293 # due to DEC craziness with -lpthreads. We check for
10294 # pthread_cleanup_push because it is one of the few pthread
10295 # functions on Solaris that doesn't have a non-functional libc stub.
10296 # We try pthread_create on general principles.
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298/* end confdefs.h. */
10299#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010300 static void routine(void *a) { a = 0; }
10301 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010302int
10303main ()
10304{
10305pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010306 pthread_create(&th, 0, start_routine, 0);
10307 pthread_join(th, 0);
10308 pthread_attr_init(&attr);
10309 pthread_cleanup_push(routine, 0);
10310 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010311 ;
10312 return 0;
10313}
10314_ACEOF
10315if ac_fn_c_try_link "$LINENO"; then :
10316 ax_pthread_ok=yes
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320
10321 LIBS="$save_LIBS"
10322 CFLAGS="$save_CFLAGS"
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10325$as_echo "$ax_pthread_ok" >&6; }
10326 if test "x$ax_pthread_ok" = xyes; then
10327 break;
10328 fi
10329
10330 PTHREAD_LIBS=""
10331 PTHREAD_CFLAGS=""
10332done
10333fi
10334
10335# Various other checks:
10336if test "x$ax_pthread_ok" = xyes; then
10337 save_LIBS="$LIBS"
10338 LIBS="$PTHREAD_LIBS $LIBS"
10339 save_CFLAGS="$CFLAGS"
10340 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10341
10342 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010344$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010345 attr_name=unknown
10346 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010348/* end confdefs.h. */
10349#include <pthread.h>
10350int
10351main ()
10352{
cristya316db12011-10-24 00:49:45 +000010353int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010354 ;
10355 return 0;
10356}
10357_ACEOF
10358if ac_fn_c_try_link "$LINENO"; then :
10359 attr_name=$attr; break
10360fi
10361rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010363 done
cristy73bd4a52010-10-05 11:24:23 +000010364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10365$as_echo "$attr_name" >&6; }
10366 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10367
10368cat >>confdefs.h <<_ACEOF
10369#define PTHREAD_CREATE_JOINABLE $attr_name
10370_ACEOF
10371
10372 fi
10373
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10375$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10376 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010377 case ${host_os} in
10378 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10379 osf* | hpux*) flag="-D_REENTRANT";;
10380 solaris*)
10381 if test "$GCC" = "yes"; then
10382 flag="-D_REENTRANT"
10383 else
10384 flag="-mt -D_REENTRANT"
10385 fi
10386 ;;
cristy73bd4a52010-10-05 11:24:23 +000010387 esac
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10389$as_echo "${flag}" >&6; }
10390 if test "x$flag" != xno; then
10391 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10392 fi
10393
cristya316db12011-10-24 00:49:45 +000010394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10395$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10396if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398else
10399
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h. */
10402
10403 #include <pthread.h>
10404int
10405main ()
10406{
10407int i = PTHREAD_PRIO_INHERIT;
10408 ;
10409 return 0;
10410}
10411_ACEOF
10412if ac_fn_c_try_link "$LINENO"; then :
10413 ax_cv_PTHREAD_PRIO_INHERIT=yes
10414else
10415 ax_cv_PTHREAD_PRIO_INHERIT=no
10416fi
10417rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419
10420fi
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10422$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10423 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10424
10425$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10426
10427fi
10428
cristy73bd4a52010-10-05 11:24:23 +000010429 LIBS="$save_LIBS"
10430 CFLAGS="$save_CFLAGS"
10431
cristy23493c42013-04-11 16:04:59 +000010432 # More AIX lossage: compile with *_r variant
10433 if test "x$GCC" != xyes; then
10434 case $host_os in
10435 aix*)
10436 case "x/$CC" in #(
10437 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10438 #handle absolute path differently from PATH based program lookup
10439 case "x$CC" in #(
10440 x/*) :
10441 if as_fn_executable_p ${CC}_r; then :
10442 PTHREAD_CC="${CC}_r"
10443fi ;; #(
10444 *) :
10445 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010446do
10447 # Extract the first word of "$ac_prog", so it can be a program name with args.
10448set dummy $ac_prog; ac_word=$2
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010451if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010452 $as_echo_n "(cached) " >&6
10453else
10454 if test -n "$PTHREAD_CC"; then
10455 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10456else
10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $PATH
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010464 ac_cv_prog_PTHREAD_CC="$ac_prog"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10467 fi
10468done
10469 done
10470IFS=$as_save_IFS
10471
10472fi
10473fi
10474PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10475if test -n "$PTHREAD_CC"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10477$as_echo "$PTHREAD_CC" >&6; }
10478else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480$as_echo "no" >&6; }
10481fi
10482
10483
10484 test -n "$PTHREAD_CC" && break
10485done
cristy23493c42013-04-11 16:04:59 +000010486test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10487 ;;
10488esac ;; #(
10489 *) :
10490 ;;
10491esac
10492 ;;
10493 esac
cristya316db12011-10-24 00:49:45 +000010494 fi
cristy73bd4a52010-10-05 11:24:23 +000010495fi
10496
cristy23493c42013-04-11 16:04:59 +000010497test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10498
cristy73bd4a52010-10-05 11:24:23 +000010499
10500
10501
10502
10503# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10504if test x"$ax_pthread_ok" = xyes; then
10505
10506$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10507
10508 :
10509else
10510 ax_pthread_ok=no
10511
10512fi
10513ac_ext=c
10514ac_cpp='$CPP $CPPFLAGS'
10515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518
10519
cristy7acf8fb2010-09-23 19:58:53 +000010520 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010521 have_threads=yes
10522 DEF_THREAD="$PTHREAD_CFLAGS"
10523 CFLAGS="$CFLAGS $DEF_THREAD"
10524 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010525 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010526 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010527 { $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 +000010528$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10529 CC="$PTHREAD_CC"
10530 fi
cristy55bf91c2010-09-24 00:29:41 +000010531
10532$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10533
cristy3ed852e2009-09-05 21:47:34 +000010534 fi
10535fi
cristy1ae5c992013-07-30 14:55:07 +000010536LIBS="$LIBS $THREAD_LIBS"
10537
cristy3ed852e2009-09-05 21:47:34 +000010538
10539# Enable support for OpenMP
10540if test "$have_threads" != 'yes'; then
10541 ac_cv_prog_c_openmp=unsupported
10542fi
10543
10544 OPENMP_CFLAGS=
10545 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010546if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010547 enableval=$enable_openmp;
10548fi
10549
10550 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010552$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010553if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010554 $as_echo_n "(cached) " >&6
10555else
cristy8b350f62009-11-15 23:12:43 +000010556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010558
10559#ifndef _OPENMP
10560 choke me
10561#endif
10562#include <omp.h>
10563int main () { return omp_get_num_threads (); }
10564
10565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010567 ac_cv_prog_c_openmp='none needed'
10568else
cristy8b350f62009-11-15 23:12:43 +000010569 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010570 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10571 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010572 ac_save_CFLAGS=$CFLAGS
10573 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010576
10577#ifndef _OPENMP
10578 choke me
10579#endif
10580#include <omp.h>
10581int main () { return omp_get_num_threads (); }
10582
10583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010585 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010586fi
cristy8b350f62009-11-15 23:12:43 +000010587rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010589 CFLAGS=$ac_save_CFLAGS
10590 if test "$ac_cv_prog_c_openmp" != unsupported; then
10591 break
10592 fi
10593 done
10594fi
cristy8b350f62009-11-15 23:12:43 +000010595rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010597fi
cristy8b350f62009-11-15 23:12:43 +000010598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010599$as_echo "$ac_cv_prog_c_openmp" >&6; }
10600 case $ac_cv_prog_c_openmp in #(
10601 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010602 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010603 *)
cristy8b350f62009-11-15 23:12:43 +000010604 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010605 esac
10606 fi
10607
10608
10609CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10610MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10611
cristy391f1ce2010-09-09 17:23:28 +000010612if test "$enable_openmp" != no; then
10613 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10614 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10615 fi
10616fi
cristy3ed852e2009-09-05 21:47:34 +000010617
cristy736173a2009-09-20 21:18:22 +000010618# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010619
10620
cristy73bd4a52010-10-05 11:24:23 +000010621ac_ext=c
10622ac_cpp='$CPP $CPPFLAGS'
10623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626
10627ax_pthread_ok=no
10628
10629# We used to check for pthread.h first, but this fails if pthread.h
10630# requires special compiler flags (e.g. on True64 or Sequent).
10631# It gets checked for in the link test anyway.
10632
10633# First of all, check if the user has set any of the PTHREAD_LIBS,
10634# etcetera environment variables, and if threads linking works using
10635# them:
10636if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10637 save_CFLAGS="$CFLAGS"
10638 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10639 save_LIBS="$LIBS"
10640 LIBS="$PTHREAD_LIBS $LIBS"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10642$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h. */
10645
10646/* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10649#ifdef __cplusplus
10650extern "C"
10651#endif
10652char pthread_join ();
10653int
10654main ()
10655{
10656return pthread_join ();
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_link "$LINENO"; then :
10662 ax_pthread_ok=yes
10663fi
10664rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10667$as_echo "$ax_pthread_ok" >&6; }
10668 if test x"$ax_pthread_ok" = xno; then
10669 PTHREAD_LIBS=""
10670 PTHREAD_CFLAGS=""
10671 fi
10672 LIBS="$save_LIBS"
10673 CFLAGS="$save_CFLAGS"
10674fi
10675
10676# We must check for the threads library under a number of different
10677# names; the ordering is very important because some systems
10678# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10679# libraries is broken (non-POSIX).
10680
10681# Create a list of thread flags to try. Items starting with a "-" are
10682# C compiler flags, and other items are library names, except for "none"
10683# which indicates that we try without any flags at all, and "pthread-config"
10684# which is a program returning the flags for the Pth emulation library.
10685
cristy2ec87cc2013-02-18 17:46:50 +000010686ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010687
10688# The ordering *is* (sometimes) important. Some notes on the
10689# individual items follow:
10690
10691# pthreads: AIX (must check this before -lpthread)
10692# none: in case threads are in libc; should be tried before -Kthread and
10693# other compiler flags to prevent continual compiler warnings
10694# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10695# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10696# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10697# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10698# -pthreads: Solaris/gcc
10699# -mthreads: Mingw32/gcc, Lynx/gcc
10700# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10701# doesn't hurt to check since this sometimes defines pthreads too;
10702# also defines -D_REENTRANT)
10703# ... -mt is also the pthreads flag for HP/aCC
10704# pthread: Linux, etcetera
10705# --thread-safe: KAI C++
10706# pthread-config: use pthread-config program (for GNU Pth library)
10707
cristy2ec87cc2013-02-18 17:46:50 +000010708case ${host_os} in
10709 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010710
10711 # On Solaris (at least, for some versions), libc contains stubbed
10712 # (non-functional) versions of the pthreads routines, so link-based
10713 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10714 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10715 # a function called by this macro, so we could check for that, but
10716 # who knows whether they'll stub that too in a future libc.) So,
10717 # we'll just look for -pthreads and -lpthread first:
10718
10719 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10720 ;;
10721
cristy2ec87cc2013-02-18 17:46:50 +000010722 darwin*)
cristya316db12011-10-24 00:49:45 +000010723 ax_pthread_flags="-pthread $ax_pthread_flags"
10724 ;;
cristy73bd4a52010-10-05 11:24:23 +000010725esac
10726
10727if test x"$ax_pthread_ok" = xno; then
10728for flag in $ax_pthread_flags; do
10729
10730 case $flag in
10731 none)
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10733$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10734 ;;
10735
10736 -*)
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10738$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10739 PTHREAD_CFLAGS="$flag"
10740 ;;
10741
cristya316db12011-10-24 00:49:45 +000010742 pthread-config)
10743 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010744set dummy pthread-config; ac_word=$2
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010747if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010748 $as_echo_n "(cached) " >&6
10749else
10750 if test -n "$ax_pthread_config"; then
10751 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10752else
10753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754for as_dir in $PATH
10755do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010760 ac_cv_prog_ax_pthread_config="yes"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10763 fi
10764done
10765 done
10766IFS=$as_save_IFS
10767
10768 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10769fi
10770fi
10771ax_pthread_config=$ac_cv_prog_ax_pthread_config
10772if test -n "$ax_pthread_config"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10774$as_echo "$ax_pthread_config" >&6; }
10775else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
10778fi
10779
10780
cristya316db12011-10-24 00:49:45 +000010781 if test x"$ax_pthread_config" = xno; then continue; fi
10782 PTHREAD_CFLAGS="`pthread-config --cflags`"
10783 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10784 ;;
cristy73bd4a52010-10-05 11:24:23 +000010785
10786 *)
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10788$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10789 PTHREAD_LIBS="-l$flag"
10790 ;;
10791 esac
10792
10793 save_LIBS="$LIBS"
10794 save_CFLAGS="$CFLAGS"
10795 LIBS="$PTHREAD_LIBS $LIBS"
10796 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10797
10798 # Check for various functions. We must include pthread.h,
10799 # since some functions may be macros. (On the Sequent, we
10800 # need a special flag -Kthread to make this header compile.)
10801 # We check for pthread_join because it is in -lpthread on IRIX
10802 # while pthread_create is in libc. We check for pthread_attr_init
10803 # due to DEC craziness with -lpthreads. We check for
10804 # pthread_cleanup_push because it is one of the few pthread
10805 # functions on Solaris that doesn't have a non-functional libc stub.
10806 # We try pthread_create on general principles.
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h. */
10809#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010810 static void routine(void *a) { a = 0; }
10811 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010812int
10813main ()
10814{
10815pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010816 pthread_create(&th, 0, start_routine, 0);
10817 pthread_join(th, 0);
10818 pthread_attr_init(&attr);
10819 pthread_cleanup_push(routine, 0);
10820 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010821 ;
10822 return 0;
10823}
10824_ACEOF
10825if ac_fn_c_try_link "$LINENO"; then :
10826 ax_pthread_ok=yes
10827fi
10828rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830
10831 LIBS="$save_LIBS"
10832 CFLAGS="$save_CFLAGS"
10833
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10835$as_echo "$ax_pthread_ok" >&6; }
10836 if test "x$ax_pthread_ok" = xyes; then
10837 break;
10838 fi
10839
10840 PTHREAD_LIBS=""
10841 PTHREAD_CFLAGS=""
10842done
10843fi
10844
10845# Various other checks:
10846if test "x$ax_pthread_ok" = xyes; then
10847 save_LIBS="$LIBS"
10848 LIBS="$PTHREAD_LIBS $LIBS"
10849 save_CFLAGS="$CFLAGS"
10850 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10851
10852 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010854$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010855 attr_name=unknown
10856 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010858/* end confdefs.h. */
10859#include <pthread.h>
10860int
10861main ()
10862{
cristya316db12011-10-24 00:49:45 +000010863int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010864 ;
10865 return 0;
10866}
10867_ACEOF
10868if ac_fn_c_try_link "$LINENO"; then :
10869 attr_name=$attr; break
10870fi
10871rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010873 done
cristy73bd4a52010-10-05 11:24:23 +000010874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10875$as_echo "$attr_name" >&6; }
10876 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10877
10878cat >>confdefs.h <<_ACEOF
10879#define PTHREAD_CREATE_JOINABLE $attr_name
10880_ACEOF
10881
10882 fi
10883
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10885$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10886 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010887 case ${host_os} in
10888 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10889 osf* | hpux*) flag="-D_REENTRANT";;
10890 solaris*)
10891 if test "$GCC" = "yes"; then
10892 flag="-D_REENTRANT"
10893 else
10894 flag="-mt -D_REENTRANT"
10895 fi
10896 ;;
cristy73bd4a52010-10-05 11:24:23 +000010897 esac
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10899$as_echo "${flag}" >&6; }
10900 if test "x$flag" != xno; then
10901 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10902 fi
10903
cristya316db12011-10-24 00:49:45 +000010904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10905$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10906if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908else
10909
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h. */
10912
10913 #include <pthread.h>
10914int
10915main ()
10916{
10917int i = PTHREAD_PRIO_INHERIT;
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923 ax_cv_PTHREAD_PRIO_INHERIT=yes
10924else
10925 ax_cv_PTHREAD_PRIO_INHERIT=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10932$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10933 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10934
10935$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10936
10937fi
10938
cristy73bd4a52010-10-05 11:24:23 +000010939 LIBS="$save_LIBS"
10940 CFLAGS="$save_CFLAGS"
10941
cristy23493c42013-04-11 16:04:59 +000010942 # More AIX lossage: compile with *_r variant
10943 if test "x$GCC" != xyes; then
10944 case $host_os in
10945 aix*)
10946 case "x/$CC" in #(
10947 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10948 #handle absolute path differently from PATH based program lookup
10949 case "x$CC" in #(
10950 x/*) :
10951 if as_fn_executable_p ${CC}_r; then :
10952 PTHREAD_CC="${CC}_r"
10953fi ;; #(
10954 *) :
10955 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010956do
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958set dummy $ac_prog; ac_word=$2
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010961if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010962 $as_echo_n "(cached) " >&6
10963else
10964 if test -n "$PTHREAD_CC"; then
10965 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10966else
10967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
10969do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010974 ac_cv_prog_PTHREAD_CC="$ac_prog"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978done
10979 done
10980IFS=$as_save_IFS
10981
10982fi
10983fi
10984PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10985if test -n "$PTHREAD_CC"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10987$as_echo "$PTHREAD_CC" >&6; }
10988else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
10991fi
10992
10993
10994 test -n "$PTHREAD_CC" && break
10995done
cristy23493c42013-04-11 16:04:59 +000010996test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10997 ;;
10998esac ;; #(
10999 *) :
11000 ;;
11001esac
11002 ;;
11003 esac
cristya316db12011-10-24 00:49:45 +000011004 fi
cristy73bd4a52010-10-05 11:24:23 +000011005fi
11006
cristy23493c42013-04-11 16:04:59 +000011007test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11008
cristy73bd4a52010-10-05 11:24:23 +000011009
11010
11011
11012
11013# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11014if test x"$ax_pthread_ok" = xyes; then
11015
11016$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11017
11018 :
11019else
11020 ax_pthread_ok=no
11021
11022fi
11023ac_ext=c
11024ac_cpp='$CPP $CPPFLAGS'
11025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027ac_compiler_gnu=$ac_cv_c_compiler_gnu
11028
11029
11030
11031# Check whether --enable-opencl was given.
11032if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000011033 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000011034else
cristy48794642012-09-02 15:19:08 +000011035 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000011036fi
11037
11038
cristy48794642012-09-02 15:19:08 +000011039if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000011040 ac_ext=c
11041ac_cpp='$CPP $CPPFLAGS'
11042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045
cristy75314cc2012-09-15 23:08:29 +000011046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
11047$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
11048if ${ax_cv_c_compiler_ms+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050else
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h. */
11053
11054int
11055main ()
11056{
11057#ifndef _MSC_VER
11058 choke me
11059#endif
11060
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065if ac_fn_c_try_compile "$LINENO"; then :
11066 ax_compiler_ms=yes
11067else
11068 ax_compiler_ms=no
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071ax_cv_c_compiler_ms=$ax_compiler_ms
11072
11073fi
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
11075$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000011076 if test X$ax_compiler_ms = Xno; then :
11077 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
11078fi
11079
11080 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000011081 ax_save_CL_CFLAGS=$CL_CFLAGS
11082
11083 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000011084 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11085 for ac_header in CL/cl.h OpenCL/cl.h
11086do :
11087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11088ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000011089if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000011090 cat >>confdefs.h <<_ACEOF
11091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000011093 found_opencl_header='yes'
11094 break;
11095else
11096 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000011097fi
11098
11099done
11100
cristyfdc7d122013-08-17 20:46:45 +000011101
11102 if test X$found_opencl_header = Xno; then :
11103 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
11104 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
11105 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
11106 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
11107 for ac_header in CL/cl.h OpenCL/cl.h
11108do :
11109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11111if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11112 cat >>confdefs.h <<_ACEOF
11113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114_ACEOF
11115 found_opencl_header='yes'
11116 break;
11117else
11118 found_opencl_header='no'
11119fi
11120
11121done
11122
11123
11124fi
11125
11126 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000011127
11128 for ac_header in windows.h
11129do :
11130 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000011131if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000011132 cat >>confdefs.h <<_ACEOF
11133#define HAVE_WINDOWS_H 1
11134_ACEOF
11135
11136fi
11137
11138done
11139
11140
11141
11142
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
11144$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011145if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011146 $as_echo_n "(cached) " >&6
11147else
11148 ax_cv_check_cl_libcl=no
11149 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000011150 x86_64) ax_check_cl_libdir=lib64
11151 ax_check_cl_amd_libdir=x86_64
11152 ;;
11153 *) ax_check_cl_libdir=lib
11154 ax_check_cl_amd_libdir=x86
11155 ;;
cristy73bd4a52010-10-05 11:24:23 +000011156 esac
11157 ax_save_CPPFLAGS=$CPPFLAGS
11158 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11159 ax_save_LIBS=$LIBS
11160 LIBS=""
11161 ax_check_libs="-lOpenCL -lCL -lclparser"
11162 for ax_lib in $ax_check_libs; do
11163 if test X$ax_compiler_ms = Xyes; then :
11164 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
11165else
11166 ax_try_lib=$ax_lib
11167fi
11168 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h. */
11171
11172 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11173 # include <windows.h>
11174 # endif
11175 # ifdef HAVE_CL_CL_H
11176 # include <CL/cl.h>
11177 # elif defined(HAVE_OPENCL_CL_H)
11178 # include <OpenCL/cl.h>
11179 # else
11180 # error no CL.h
11181 # endif
11182int
11183main ()
11184{
11185clCreateContextFromType(0,0,0,0,0)
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190if ac_fn_c_try_link "$LINENO"; then :
11191 ax_cv_check_cl_libcl=$ax_try_lib; break
11192else
11193 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"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195/* end confdefs.h. */
11196
11197 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11198 # include <windows.h>
11199 # endif
11200 # ifdef HAVE_CL_CL_H
11201 # include <CL/cl.h>
11202 # elif defined(HAVE_OPENCL_CL_H)
11203 # include <OpenCL/cl.h>
11204 # else
11205 # error no CL.h
11206 # endif
11207int
11208main ()
11209{
11210clCreateContextFromType(0,0,0,0,0)
11211 ;
11212 return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
11217else
cristy78c5a0c2010-12-04 20:00:59 +000011218 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 +000011219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220/* end confdefs.h. */
11221
11222 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11223 # include <windows.h>
11224 # endif
11225 # ifdef HAVE_CL_CL_H
11226 # include <CL/cl.h>
11227 # elif defined(HAVE_OPENCL_CL_H)
11228 # include <OpenCL/cl.h>
11229 # else
11230 # error no CL.h
11231 # endif
11232int
11233main ()
11234{
11235clCreateContextFromType(0,0,0,0,0)
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240if ac_fn_c_try_link "$LINENO"; then :
11241 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000011242else
11243 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"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h. */
11246
11247 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11248 # include <windows.h>
11249 # endif
11250 # ifdef HAVE_CL_CL_H
11251 # include <CL/cl.h>
11252 # elif defined(HAVE_OPENCL_CL_H)
11253 # include <OpenCL/cl.h>
11254 # else
11255 # error no CL.h
11256 # endif
11257int
11258main ()
11259{
11260clCreateContextFromType(0,0,0,0,0)
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_link "$LINENO"; then :
11266 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
11267
11268fi
11269rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271
11272
cristy73bd4a52010-10-05 11:24:23 +000011273fi
11274rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276fi
11277rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279fi
11280rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11282 done
11283
cristyc3f8b8e2011-12-22 14:55:16 +000011284 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000011285 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000011286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h. */
11288
11289 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11290 # include <windows.h>
11291 # endif
11292 # ifdef HAVE_CL_CL_H
11293 # include <CL/cl.h>
11294 # elif defined(HAVE_OPENCL_CL_H)
11295 # include <OpenCL/cl.h>
11296 # else
11297 # error no CL.h
11298 # endif
11299int
11300main ()
11301{
11302clCreateContextFromType(0,0,0,0,0)
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307if ac_fn_c_try_link "$LINENO"; then :
11308 ax_cv_check_cl_libcl=$LIBS
11309fi
11310rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312fi
11313
11314 LIBS=$ax_save_LIBS
11315 CPPFLAGS=$ax_save_CPPFLAGS
11316fi
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
11318$as_echo "$ax_cv_check_cl_libcl" >&6; }
11319
11320 if test "X$ax_cv_check_cl_libcl" = Xno; then :
11321 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
11322else
11323 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
11324$as_echo "#define _OPENCL 1" >>confdefs.h
11325
11326fi
11327 ac_ext=c
11328ac_cpp='$CPP $CPPFLAGS'
11329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11331ac_compiler_gnu=$ac_cv_c_compiler_gnu
11332
11333fi
11334
11335
11336
11337
cristyc7083c12009-10-14 03:16:55 +000011338CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000011339CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000011340LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000011341
cristy391f1ce2010-09-09 17:23:28 +000011342if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000011343 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000011344 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
11345 fi
cristyfd9dcd42010-08-08 18:07:02 +000011346fi
cristy2e8b51d2009-10-17 18:26:15 +000011347
cristy3ed852e2009-09-05 21:47:34 +000011348########
11349#
11350# Check for large file support
11351#
11352########
11353# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000011354if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011355 enableval=$enable_largefile;
11356fi
11357
11358if test "$enable_largefile" != no; then
11359
cristy8b350f62009-11-15 23:12:43 +000011360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011361$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011362if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011363 $as_echo_n "(cached) " >&6
11364else
11365 ac_cv_sys_largefile_CC=no
11366 if test "$GCC" != yes; then
11367 ac_save_CC=$CC
11368 while :; do
11369 # IRIX 6.2 and later do not support large files by default,
11370 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000011371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011372/* end confdefs.h. */
11373#include <sys/types.h>
11374 /* Check that off_t can represent 2**63 - 1 correctly.
11375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11376 since some C++ compilers masquerading as C compilers
11377 incorrectly reject 9223372036854775807. */
11378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11380 && LARGE_OFF_T % 2147483647 == 1)
11381 ? 1 : -1];
11382int
11383main ()
11384{
11385
11386 ;
11387 return 0;
11388}
11389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011390 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011391 break
cristy3ed852e2009-09-05 21:47:34 +000011392fi
cristy3ed852e2009-09-05 21:47:34 +000011393rm -f core conftest.err conftest.$ac_objext
11394 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011395 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011396 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011397fi
cristy3ed852e2009-09-05 21:47:34 +000011398rm -f core conftest.err conftest.$ac_objext
11399 break
11400 done
11401 CC=$ac_save_CC
11402 rm -f conftest.$ac_ext
11403 fi
11404fi
cristy8b350f62009-11-15 23:12:43 +000011405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011406$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11407 if test "$ac_cv_sys_largefile_CC" != no; then
11408 CC=$CC$ac_cv_sys_largefile_CC
11409 fi
11410
cristy8b350f62009-11-15 23:12:43 +000011411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011412$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011413if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011414 $as_echo_n "(cached) " >&6
11415else
11416 while :; do
cristy8b350f62009-11-15 23:12:43 +000011417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011418/* end confdefs.h. */
11419#include <sys/types.h>
11420 /* Check that off_t can represent 2**63 - 1 correctly.
11421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11422 since some C++ compilers masquerading as C compilers
11423 incorrectly reject 9223372036854775807. */
11424#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11426 && LARGE_OFF_T % 2147483647 == 1)
11427 ? 1 : -1];
11428int
11429main ()
11430{
11431
11432 ;
11433 return 0;
11434}
11435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011436if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011437 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011438fi
cristy3ed852e2009-09-05 21:47:34 +000011439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011441/* end confdefs.h. */
11442#define _FILE_OFFSET_BITS 64
11443#include <sys/types.h>
11444 /* Check that off_t can represent 2**63 - 1 correctly.
11445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11446 since some C++ compilers masquerading as C compilers
11447 incorrectly reject 9223372036854775807. */
11448#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11450 && LARGE_OFF_T % 2147483647 == 1)
11451 ? 1 : -1];
11452int
11453main ()
11454{
11455
11456 ;
11457 return 0;
11458}
11459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011460if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011461 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011462fi
cristy3ed852e2009-09-05 21:47:34 +000011463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 ac_cv_sys_file_offset_bits=unknown
11465 break
11466done
11467fi
cristy8b350f62009-11-15 23:12:43 +000011468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011469$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11470case $ac_cv_sys_file_offset_bits in #(
11471 no | unknown) ;;
11472 *)
11473cat >>confdefs.h <<_ACEOF
11474#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11475_ACEOF
11476;;
11477esac
11478rm -rf conftest*
11479 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011481$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011482if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011483 $as_echo_n "(cached) " >&6
11484else
11485 while :; do
cristy8b350f62009-11-15 23:12:43 +000011486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011487/* end confdefs.h. */
11488#include <sys/types.h>
11489 /* Check that off_t can represent 2**63 - 1 correctly.
11490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11491 since some C++ compilers masquerading as C compilers
11492 incorrectly reject 9223372036854775807. */
11493#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11495 && LARGE_OFF_T % 2147483647 == 1)
11496 ? 1 : -1];
11497int
11498main ()
11499{
11500
11501 ;
11502 return 0;
11503}
11504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011505if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011506 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011507fi
cristy3ed852e2009-09-05 21:47:34 +000011508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011510/* end confdefs.h. */
11511#define _LARGE_FILES 1
11512#include <sys/types.h>
11513 /* Check that off_t can represent 2**63 - 1 correctly.
11514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11515 since some C++ compilers masquerading as C compilers
11516 incorrectly reject 9223372036854775807. */
11517#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11519 && LARGE_OFF_T % 2147483647 == 1)
11520 ? 1 : -1];
11521int
11522main ()
11523{
11524
11525 ;
11526 return 0;
11527}
11528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011529if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011530 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011531fi
cristy3ed852e2009-09-05 21:47:34 +000011532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 ac_cv_sys_large_files=unknown
11534 break
11535done
11536fi
cristy8b350f62009-11-15 23:12:43 +000011537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011538$as_echo "$ac_cv_sys_large_files" >&6; }
11539case $ac_cv_sys_large_files in #(
11540 no | unknown) ;;
11541 *)
11542cat >>confdefs.h <<_ACEOF
11543#define _LARGE_FILES $ac_cv_sys_large_files
11544_ACEOF
11545;;
11546esac
11547rm -rf conftest*
11548 fi
cristy14fefe52012-05-21 00:59:18 +000011549
11550
cristy3ed852e2009-09-05 21:47:34 +000011551fi
11552
cristy8b350f62009-11-15 23:12:43 +000011553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011554$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011555if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011556 $as_echo_n "(cached) " >&6
11557else
11558 while :; do
cristy8b350f62009-11-15 23:12:43 +000011559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011560/* end confdefs.h. */
11561#include <sys/types.h> /* for off_t */
11562 #include <stdio.h>
11563int
11564main ()
11565{
11566int (*fp) (FILE *, off_t, int) = fseeko;
11567 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11568 ;
11569 return 0;
11570}
11571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011573 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011574fi
cristy8b350f62009-11-15 23:12:43 +000011575rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011578/* end confdefs.h. */
11579#define _LARGEFILE_SOURCE 1
11580#include <sys/types.h> /* for off_t */
11581 #include <stdio.h>
11582int
11583main ()
11584{
11585int (*fp) (FILE *, off_t, int) = fseeko;
11586 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11587 ;
11588 return 0;
11589}
11590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011592 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011593fi
cristy8b350f62009-11-15 23:12:43 +000011594rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011596 ac_cv_sys_largefile_source=unknown
11597 break
11598done
11599fi
cristy8b350f62009-11-15 23:12:43 +000011600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011601$as_echo "$ac_cv_sys_largefile_source" >&6; }
11602case $ac_cv_sys_largefile_source in #(
11603 no | unknown) ;;
11604 *)
11605cat >>confdefs.h <<_ACEOF
11606#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11607_ACEOF
11608;;
11609esac
11610rm -rf conftest*
11611
11612# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11613# in glibc 2.1.3, but that breaks too many other things.
11614# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11615if test $ac_cv_sys_largefile_source != unknown; then
11616
cristy8b350f62009-11-15 23:12:43 +000011617$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011618
11619fi
11620
11621LFS_CPPFLAGS=''
11622if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011623 case $ac_cv_sys_file_offset_bits in
11624 no)
11625 # nothing to do here as the host supports LFS fine
11626 ;;
11627 unknown)
cristy8b350f62009-11-15 23:12:43 +000011628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011629$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011630 if test "$cross_compiling" = yes; then :
11631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011633as_fn_error $? "cannot run test program while cross compiling
11634See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011635else
cristy8b350f62009-11-15 23:12:43 +000011636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011638#include <unistd.h>
11639 main () {
11640 exit(!(sizeof(off_t) == 8));
11641 }
cristyda16f162011-02-19 23:52:17 +000011642int
11643main ()
11644{
11645
11646 ;
11647 return 0;
11648}
cristy3ed852e2009-09-05 21:47:34 +000011649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011650if ac_fn_c_try_run "$LINENO"; then :
11651 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011652
cristyad38abe2012-12-23 23:03:21 +000011653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011655else
cristyad38abe2012-12-23 23:03:21 +000011656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011658fi
cristy8b350f62009-11-15 23:12:43 +000011659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11660 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011661fi
11662
cristyc1e0cc12011-09-21 16:41:16 +000011663 ;;
11664 *)
11665 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11666 ;;
11667 esac
cristy3ed852e2009-09-05 21:47:34 +000011668 if test "$ac_cv_sys_large_files" != 'no'; then
11669 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11670 fi
11671 if test "$ac_cv_sys_largefile_source" != 'no'; then
11672 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11673 fi
11674fi
11675
11676
cristy3ed852e2009-09-05 21:47:34 +000011677# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011678enable_dlopen=yes
11679
11680
11681
11682case `pwd` in
11683 *\ * | *\ *)
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11685$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11686esac
11687
11688
11689
cristy99bd5232011-12-07 14:38:20 +000011690macro_version='2.4.2'
11691macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705ltmain="$ac_aux_dir/ltmain.sh"
11706
cristy0c60a692010-11-04 01:09:47 +000011707# Backslashify metacharacters that are still active within
11708# double-quoted strings.
11709sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11710
11711# Same as above, but do not quote variable references.
11712double_quote_subst='s/\(["`\\]\)/\\\1/g'
11713
11714# Sed substitution to delay expansion of an escaped shell variable in a
11715# double_quote_subst'ed string.
11716delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11717
11718# Sed substitution to delay expansion of an escaped single quote.
11719delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11720
11721# Sed substitution to avoid accidental globbing in evaled expressions
11722no_glob_subst='s/\*/\\\*/g'
11723
cristy73bd4a52010-10-05 11:24:23 +000011724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11725$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011726if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011727 $as_echo_n "(cached) " >&6
11728else
11729 if test -n "$NM"; then
11730 # Let the user override the test.
11731 lt_cv_path_NM="$NM"
11732else
11733 lt_nm_to_check="${ac_tool_prefix}nm"
11734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11735 lt_nm_to_check="$lt_nm_to_check nm"
11736 fi
11737 for lt_tmp_nm in $lt_nm_to_check; do
11738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11740 IFS="$lt_save_ifs"
11741 test -z "$ac_dir" && ac_dir=.
11742 tmp_nm="$ac_dir/$lt_tmp_nm"
11743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11744 # Check to see if the nm accepts a BSD-compat flag.
11745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11746 # nm: unknown option "B" ignored
11747 # Tru64's nm complains that /dev/null is an invalid object file
11748 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11749 */dev/null* | *'Invalid file or object type'*)
11750 lt_cv_path_NM="$tmp_nm -B"
11751 break
11752 ;;
11753 *)
11754 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11755 */dev/null*)
11756 lt_cv_path_NM="$tmp_nm -p"
11757 break
11758 ;;
11759 *)
11760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11761 continue # so that we can try to find one that supports BSD flags
11762 ;;
11763 esac
11764 ;;
11765 esac
11766 fi
11767 done
11768 IFS="$lt_save_ifs"
11769 done
11770 : ${lt_cv_path_NM=no}
11771fi
11772fi
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11774$as_echo "$lt_cv_path_NM" >&6; }
11775if test "$lt_cv_path_NM" != "no"; then
11776 NM="$lt_cv_path_NM"
11777else
11778 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011779 if test -n "$DUMPBIN"; then :
11780 # Let the user override the test.
11781 else
11782 if test -n "$ac_tool_prefix"; then
11783 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011784 do
11785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011789if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011790 $as_echo_n "(cached) " >&6
11791else
11792 if test -n "$DUMPBIN"; then
11793 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011802 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806done
11807 done
11808IFS=$as_save_IFS
11809
11810fi
11811fi
11812DUMPBIN=$ac_cv_prog_DUMPBIN
11813if test -n "$DUMPBIN"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11815$as_echo "$DUMPBIN" >&6; }
11816else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
11819fi
11820
11821
11822 test -n "$DUMPBIN" && break
11823 done
11824fi
11825if test -z "$DUMPBIN"; then
11826 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011827 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011828do
11829 # Extract the first word of "$ac_prog", so it can be a program name with args.
11830set dummy $ac_prog; ac_word=$2
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011833if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011834 $as_echo_n "(cached) " >&6
11835else
11836 if test -n "$ac_ct_DUMPBIN"; then
11837 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11838else
11839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011846 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850done
11851 done
11852IFS=$as_save_IFS
11853
11854fi
11855fi
11856ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11857if test -n "$ac_ct_DUMPBIN"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11859$as_echo "$ac_ct_DUMPBIN" >&6; }
11860else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
11863fi
11864
11865
11866 test -n "$ac_ct_DUMPBIN" && break
11867done
11868
11869 if test "x$ac_ct_DUMPBIN" = x; then
11870 DUMPBIN=":"
11871 else
11872 case $cross_compiling:$ac_tool_warned in
11873yes:)
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11876ac_tool_warned=yes ;;
11877esac
11878 DUMPBIN=$ac_ct_DUMPBIN
11879 fi
11880fi
11881
cristy0c60a692010-11-04 01:09:47 +000011882 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11883 *COFF*)
11884 DUMPBIN="$DUMPBIN -symbols"
11885 ;;
11886 *)
11887 DUMPBIN=:
11888 ;;
11889 esac
11890 fi
cristy73bd4a52010-10-05 11:24:23 +000011891
11892 if test "$DUMPBIN" != ":"; then
11893 NM="$DUMPBIN"
11894 fi
11895fi
11896test -z "$NM" && NM=nm
11897
11898
11899
11900
11901
11902
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11904$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011905if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011906 $as_echo_n "(cached) " >&6
11907else
11908 lt_cv_nm_interface="BSD nm"
11909 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011910 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011911 (eval "$ac_compile" 2>conftest.err)
11912 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011913 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011914 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11915 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011916 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011917 cat conftest.out >&5
11918 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11919 lt_cv_nm_interface="MS dumpbin"
11920 fi
11921 rm -f conftest*
11922fi
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11924$as_echo "$lt_cv_nm_interface" >&6; }
11925
11926# find the maximum length of command line arguments
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11928$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011929if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011930 $as_echo_n "(cached) " >&6
11931else
11932 i=0
11933 teststring="ABCD"
11934
11935 case $build_os in
11936 msdosdjgpp*)
11937 # On DJGPP, this test can blow up pretty badly due to problems in libc
11938 # (any single argument exceeding 2000 bytes causes a buffer overrun
11939 # during glob expansion). Even if it were fixed, the result of this
11940 # check would be larger than it should be.
11941 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11942 ;;
11943
11944 gnu*)
11945 # Under GNU Hurd, this test is not required because there is
11946 # no limit to the length of command line arguments.
11947 # Libtool will interpret -1 as no limit whatsoever
11948 lt_cv_sys_max_cmd_len=-1;
11949 ;;
11950
11951 cygwin* | mingw* | cegcc*)
11952 # On Win9x/ME, this test blows up -- it succeeds, but takes
11953 # about 5 minutes as the teststring grows exponentially.
11954 # Worse, since 9x/ME are not pre-emptively multitasking,
11955 # you end up with a "frozen" computer, even though with patience
11956 # the test eventually succeeds (with a max line length of 256k).
11957 # Instead, let's just punt: use the minimum linelength reported by
11958 # all of the supported platforms: 8192 (on NT/2K/XP).
11959 lt_cv_sys_max_cmd_len=8192;
11960 ;;
11961
cristy0c60a692010-11-04 01:09:47 +000011962 mint*)
11963 # On MiNT this can take a long time and run out of memory.
11964 lt_cv_sys_max_cmd_len=8192;
11965 ;;
11966
cristy73bd4a52010-10-05 11:24:23 +000011967 amigaos*)
11968 # On AmigaOS with pdksh, this test takes hours, literally.
11969 # So we just punt and use a minimum line length of 8192.
11970 lt_cv_sys_max_cmd_len=8192;
11971 ;;
11972
11973 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11974 # This has been around since 386BSD, at least. Likely further.
11975 if test -x /sbin/sysctl; then
11976 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11977 elif test -x /usr/sbin/sysctl; then
11978 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11979 else
11980 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11981 fi
11982 # And add a safety zone
11983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11985 ;;
11986
11987 interix*)
11988 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11989 lt_cv_sys_max_cmd_len=196608
11990 ;;
11991
cristy99bd5232011-12-07 14:38:20 +000011992 os2*)
11993 # The test takes a long time on OS/2.
11994 lt_cv_sys_max_cmd_len=8192
11995 ;;
11996
cristy73bd4a52010-10-05 11:24:23 +000011997 osf*)
11998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12000 # nice to cause kernel panics so lets avoid the loop below.
12001 # First set a reasonable default.
12002 lt_cv_sys_max_cmd_len=16384
12003 #
12004 if test -x /sbin/sysconfig; then
12005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12007 esac
12008 fi
12009 ;;
12010 sco3.2v5*)
12011 lt_cv_sys_max_cmd_len=102400
12012 ;;
12013 sysv5* | sco5v6* | sysv4.2uw2*)
12014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12015 if test -n "$kargmax"; then
12016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12017 else
12018 lt_cv_sys_max_cmd_len=32768
12019 fi
12020 ;;
12021 *)
12022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12023 if test -n "$lt_cv_sys_max_cmd_len"; then
12024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12026 else
12027 # Make teststring a little bigger before we do anything with it.
12028 # a 1K string should be a reasonable start.
12029 for i in 1 2 3 4 5 6 7 8 ; do
12030 teststring=$teststring$teststring
12031 done
12032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12033 # If test is not a shell built-in, we'll probably end up computing a
12034 # maximum length that is only half of the actual maximum length, but
12035 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000012036 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000012037 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000012038 test $i != 17 # 1/2 MB should be enough
12039 do
12040 i=`expr $i + 1`
12041 teststring=$teststring$teststring
12042 done
12043 # Only check the string length outside the loop.
12044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12045 teststring=
12046 # Add a significant safety factor because C++ compilers can tack on
12047 # massive amounts of additional arguments before passing them to the
12048 # linker. It appears as though 1/2 is a usable value.
12049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12050 fi
12051 ;;
12052 esac
12053
12054fi
12055
12056if test -n $lt_cv_sys_max_cmd_len ; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12058$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12059else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12061$as_echo "none" >&6; }
12062fi
12063max_cmd_len=$lt_cv_sys_max_cmd_len
12064
12065
12066
12067
12068
12069
12070: ${CP="cp -f"}
12071: ${MV="mv -f"}
12072: ${RM="rm -f"}
12073
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12075$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12076# Try some XSI features
12077xsi_shell=no
12078( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000012079 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
12080 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000012081 && eval 'test $(( 1 + 1 )) -eq 2 \
12082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12083 && xsi_shell=yes
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12085$as_echo "$xsi_shell" >&6; }
12086
12087
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12089$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12090lt_shell_append=no
12091( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12092 >/dev/null 2>&1 \
12093 && lt_shell_append=yes
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12095$as_echo "$lt_shell_append" >&6; }
12096
12097
12098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12099 lt_unset=unset
12100else
12101 lt_unset=false
12102fi
12103
12104
12105
12106
12107
12108# test EBCDIC or ASCII
12109case `echo X|tr X '\101'` in
12110 A) # ASCII based system
12111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12112 lt_SP2NL='tr \040 \012'
12113 lt_NL2SP='tr \015\012 \040\040'
12114 ;;
12115 *) # EBCDIC based system
12116 lt_SP2NL='tr \100 \n'
12117 lt_NL2SP='tr \r\n \100\100'
12118 ;;
12119esac
12120
12121
12122
12123
12124
12125
12126
12127
12128
cristyda16f162011-02-19 23:52:17 +000012129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12130$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12131if ${lt_cv_to_host_file_cmd+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133else
12134 case $host in
12135 *-*-mingw* )
12136 case $build in
12137 *-*-mingw* ) # actually msys
12138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12139 ;;
12140 *-*-cygwin* )
12141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12142 ;;
12143 * ) # otherwise, assume *nix
12144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12145 ;;
12146 esac
12147 ;;
12148 *-*-cygwin* )
12149 case $build in
12150 *-*-mingw* ) # actually msys
12151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12152 ;;
12153 *-*-cygwin* )
12154 lt_cv_to_host_file_cmd=func_convert_file_noop
12155 ;;
12156 * ) # otherwise, assume *nix
12157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12158 ;;
12159 esac
12160 ;;
12161 * ) # unhandled hosts (and "normal" native builds)
12162 lt_cv_to_host_file_cmd=func_convert_file_noop
12163 ;;
12164esac
12165
12166fi
12167
12168to_host_file_cmd=$lt_cv_to_host_file_cmd
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12170$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12171
12172
12173
12174
12175
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12177$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12178if ${lt_cv_to_tool_file_cmd+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180else
12181 #assume ordinary cross tools, or native build.
12182lt_cv_to_tool_file_cmd=func_convert_file_noop
12183case $host in
12184 *-*-mingw* )
12185 case $build in
12186 *-*-mingw* ) # actually msys
12187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12188 ;;
12189 esac
12190 ;;
12191esac
12192
12193fi
12194
12195to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12197$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12198
12199
12200
12201
12202
cristy73bd4a52010-10-05 11:24:23 +000012203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12204$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012205if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012206 $as_echo_n "(cached) " >&6
12207else
12208 lt_cv_ld_reload_flag='-r'
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12211$as_echo "$lt_cv_ld_reload_flag" >&6; }
12212reload_flag=$lt_cv_ld_reload_flag
12213case $reload_flag in
12214"" | " "*) ;;
12215*) reload_flag=" $reload_flag" ;;
12216esac
12217reload_cmds='$LD$reload_flag -o $output$reload_objs'
12218case $host_os in
cristyda16f162011-02-19 23:52:17 +000012219 cygwin* | mingw* | pw32* | cegcc*)
12220 if test "$GCC" != yes; then
12221 reload_cmds=false
12222 fi
12223 ;;
cristy73bd4a52010-10-05 11:24:23 +000012224 darwin*)
12225 if test "$GCC" = yes; then
12226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12227 else
12228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12229 fi
12230 ;;
12231esac
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241if test -n "$ac_tool_prefix"; then
12242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12243set dummy ${ac_tool_prefix}objdump; ac_word=$2
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012246if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012247 $as_echo_n "(cached) " >&6
12248else
12249 if test -n "$OBJDUMP"; then
12250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12251else
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263done
12264 done
12265IFS=$as_save_IFS
12266
12267fi
12268fi
12269OBJDUMP=$ac_cv_prog_OBJDUMP
12270if test -n "$OBJDUMP"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12272$as_echo "$OBJDUMP" >&6; }
12273else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
12276fi
12277
12278
12279fi
12280if test -z "$ac_cv_prog_OBJDUMP"; then
12281 ac_ct_OBJDUMP=$OBJDUMP
12282 # Extract the first word of "objdump", so it can be a program name with args.
12283set dummy objdump; ac_word=$2
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012286if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012287 $as_echo_n "(cached) " >&6
12288else
12289 if test -n "$ac_ct_OBJDUMP"; then
12290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303done
12304 done
12305IFS=$as_save_IFS
12306
12307fi
12308fi
12309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12310if test -n "$ac_ct_OBJDUMP"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12312$as_echo "$ac_ct_OBJDUMP" >&6; }
12313else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
12316fi
12317
12318 if test "x$ac_ct_OBJDUMP" = x; then
12319 OBJDUMP="false"
12320 else
12321 case $cross_compiling:$ac_tool_warned in
12322yes:)
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12325ac_tool_warned=yes ;;
12326esac
12327 OBJDUMP=$ac_ct_OBJDUMP
12328 fi
12329else
12330 OBJDUMP="$ac_cv_prog_OBJDUMP"
12331fi
12332
12333test -z "$OBJDUMP" && OBJDUMP=objdump
12334
12335
12336
12337
12338
12339
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12341$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012342if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012343 $as_echo_n "(cached) " >&6
12344else
12345 lt_cv_file_magic_cmd='$MAGIC_CMD'
12346lt_cv_file_magic_test_file=
12347lt_cv_deplibs_check_method='unknown'
12348# Need to set the preceding variable on all platforms that support
12349# interlibrary dependencies.
12350# 'none' -- dependencies not supported.
12351# `unknown' -- same as none, but documents that we really don't know.
12352# 'pass_all' -- all dependencies passed with no checks.
12353# 'test_compile' -- check by making test program.
12354# 'file_magic [[regex]]' -- check by looking for files in library path
12355# which responds to the $file_magic_cmd with a given extended regex.
12356# If you have `file' or equivalent on your system and you're not sure
12357# whether `pass_all' will *always* work, you probably want this one.
12358
12359case $host_os in
12360aix[4-9]*)
12361 lt_cv_deplibs_check_method=pass_all
12362 ;;
12363
12364beos*)
12365 lt_cv_deplibs_check_method=pass_all
12366 ;;
12367
12368bsdi[45]*)
12369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12370 lt_cv_file_magic_cmd='/usr/bin/file -L'
12371 lt_cv_file_magic_test_file=/shlib/libc.so
12372 ;;
12373
12374cygwin*)
12375 # func_win32_libid is a shell function defined in ltmain.sh
12376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12377 lt_cv_file_magic_cmd='func_win32_libid'
12378 ;;
12379
12380mingw* | pw32*)
12381 # Base MSYS/MinGW do not provide the 'file' command needed by
12382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12383 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000012384 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12385 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012386 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12387 lt_cv_file_magic_cmd='func_win32_libid'
12388 else
cristy0c60a692010-11-04 01:09:47 +000012389 # Keep this pattern in sync with the one in func_win32_libid.
12390 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 +000012391 lt_cv_file_magic_cmd='$OBJDUMP -f'
12392 fi
12393 ;;
12394
cristy0c60a692010-11-04 01:09:47 +000012395cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012396 # use the weaker test based on 'objdump'. See mingw*.
12397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12398 lt_cv_file_magic_cmd='$OBJDUMP -f'
12399 ;;
12400
12401darwin* | rhapsody*)
12402 lt_cv_deplibs_check_method=pass_all
12403 ;;
12404
12405freebsd* | dragonfly*)
12406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12407 case $host_cpu in
12408 i*86 )
12409 # Not sure whether the presence of OpenBSD here was a mistake.
12410 # Let's accept both of them until this is cleared up.
12411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12412 lt_cv_file_magic_cmd=/usr/bin/file
12413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12414 ;;
12415 esac
12416 else
12417 lt_cv_deplibs_check_method=pass_all
12418 fi
12419 ;;
12420
12421gnu*)
12422 lt_cv_deplibs_check_method=pass_all
12423 ;;
12424
cristy0c60a692010-11-04 01:09:47 +000012425haiku*)
12426 lt_cv_deplibs_check_method=pass_all
12427 ;;
12428
cristy73bd4a52010-10-05 11:24:23 +000012429hpux10.20* | hpux11*)
12430 lt_cv_file_magic_cmd=/usr/bin/file
12431 case $host_cpu in
12432 ia64*)
12433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12435 ;;
12436 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012437 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 +000012438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12439 ;;
12440 *)
cristy0c60a692010-11-04 01:09:47 +000012441 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 +000012442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12443 ;;
12444 esac
12445 ;;
12446
12447interix[3-9]*)
12448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12450 ;;
12451
12452irix5* | irix6* | nonstopux*)
12453 case $LD in
12454 *-32|*"-32 ") libmagic=32-bit;;
12455 *-n32|*"-n32 ") libmagic=N32;;
12456 *-64|*"-64 ") libmagic=64-bit;;
12457 *) libmagic=never-match;;
12458 esac
12459 lt_cv_deplibs_check_method=pass_all
12460 ;;
12461
cristy99bd5232011-12-07 14:38:20 +000012462# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012463linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012464 lt_cv_deplibs_check_method=pass_all
12465 ;;
12466
12467netbsd*)
12468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12470 else
12471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12472 fi
12473 ;;
12474
12475newos6*)
12476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12477 lt_cv_file_magic_cmd=/usr/bin/file
12478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12479 ;;
12480
12481*nto* | *qnx*)
12482 lt_cv_deplibs_check_method=pass_all
12483 ;;
12484
12485openbsd*)
12486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12488 else
12489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12490 fi
12491 ;;
12492
12493osf3* | osf4* | osf5*)
12494 lt_cv_deplibs_check_method=pass_all
12495 ;;
12496
12497rdos*)
12498 lt_cv_deplibs_check_method=pass_all
12499 ;;
12500
12501solaris*)
12502 lt_cv_deplibs_check_method=pass_all
12503 ;;
12504
12505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12506 lt_cv_deplibs_check_method=pass_all
12507 ;;
12508
12509sysv4 | sysv4.3*)
12510 case $host_vendor in
12511 motorola)
12512 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]'
12513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12514 ;;
12515 ncr)
12516 lt_cv_deplibs_check_method=pass_all
12517 ;;
12518 sequent)
12519 lt_cv_file_magic_cmd='/bin/file'
12520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12521 ;;
12522 sni)
12523 lt_cv_file_magic_cmd='/bin/file'
12524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12525 lt_cv_file_magic_test_file=/lib/libc.so
12526 ;;
12527 siemens)
12528 lt_cv_deplibs_check_method=pass_all
12529 ;;
12530 pc)
12531 lt_cv_deplibs_check_method=pass_all
12532 ;;
12533 esac
12534 ;;
12535
12536tpf*)
12537 lt_cv_deplibs_check_method=pass_all
12538 ;;
12539esac
12540
12541fi
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12543$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012544
12545file_magic_glob=
12546want_nocaseglob=no
12547if test "$build" = "$host"; then
12548 case $host_os in
12549 mingw* | pw32*)
12550 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12551 want_nocaseglob=yes
12552 else
12553 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12554 fi
12555 ;;
12556 esac
12557fi
12558
cristy73bd4a52010-10-05 11:24:23 +000012559file_magic_cmd=$lt_cv_file_magic_cmd
12560deplibs_check_method=$lt_cv_deplibs_check_method
12561test -z "$deplibs_check_method" && deplibs_check_method=unknown
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
cristyda16f162011-02-19 23:52:17 +000012574
12575
12576
12577
12578
12579
12580
12581
12582
12583
cristy73bd4a52010-10-05 11:24:23 +000012584if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12586set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012589if ${ac_cv_prog_DLLTOOL+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591else
12592 if test -n "$DLLTOOL"; then
12593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12594else
12595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596for as_dir in $PATH
12597do
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606done
12607 done
12608IFS=$as_save_IFS
12609
12610fi
12611fi
12612DLLTOOL=$ac_cv_prog_DLLTOOL
12613if test -n "$DLLTOOL"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12615$as_echo "$DLLTOOL" >&6; }
12616else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619fi
12620
12621
12622fi
12623if test -z "$ac_cv_prog_DLLTOOL"; then
12624 ac_ct_DLLTOOL=$DLLTOOL
12625 # Extract the first word of "dlltool", so it can be a program name with args.
12626set dummy dlltool; ac_word=$2
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628$as_echo_n "checking for $ac_word... " >&6; }
12629if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631else
12632 if test -n "$ac_ct_DLLTOOL"; then
12633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12634else
12635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636for as_dir in $PATH
12637do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646done
12647 done
12648IFS=$as_save_IFS
12649
12650fi
12651fi
12652ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12653if test -n "$ac_ct_DLLTOOL"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12655$as_echo "$ac_ct_DLLTOOL" >&6; }
12656else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658$as_echo "no" >&6; }
12659fi
12660
12661 if test "x$ac_ct_DLLTOOL" = x; then
12662 DLLTOOL="false"
12663 else
12664 case $cross_compiling:$ac_tool_warned in
12665yes:)
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12668ac_tool_warned=yes ;;
12669esac
12670 DLLTOOL=$ac_ct_DLLTOOL
12671 fi
12672else
12673 DLLTOOL="$ac_cv_prog_DLLTOOL"
12674fi
12675
12676test -z "$DLLTOOL" && DLLTOOL=dlltool
12677
12678
12679
12680
12681
12682
12683
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12685$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12686if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688else
12689 lt_cv_sharedlib_from_linklib_cmd='unknown'
12690
12691case $host_os in
12692cygwin* | mingw* | pw32* | cegcc*)
12693 # two different shell functions defined in ltmain.sh
12694 # decide which to use based on capabilities of $DLLTOOL
12695 case `$DLLTOOL --help 2>&1` in
12696 *--identify-strict*)
12697 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12698 ;;
12699 *)
12700 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12701 ;;
12702 esac
12703 ;;
12704*)
12705 # fallback: assume linklib IS sharedlib
12706 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12707 ;;
12708esac
12709
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12712$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12713sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12714test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12715
12716
12717
12718
12719
12720
12721
12722if test -n "$ac_tool_prefix"; then
12723 for ac_prog in ar
12724 do
12725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
12729if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012730 $as_echo_n "(cached) " >&6
12731else
12732 if test -n "$AR"; then
12733 ac_cv_prog_AR="$AR" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012742 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747 done
12748IFS=$as_save_IFS
12749
12750fi
12751fi
12752AR=$ac_cv_prog_AR
12753if test -n "$AR"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12755$as_echo "$AR" >&6; }
12756else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759fi
12760
12761
cristyda16f162011-02-19 23:52:17 +000012762 test -n "$AR" && break
12763 done
cristy73bd4a52010-10-05 11:24:23 +000012764fi
cristyda16f162011-02-19 23:52:17 +000012765if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012766 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012767 for ac_prog in ar
12768do
12769 # Extract the first word of "$ac_prog", so it can be a program name with args.
12770set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012773if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012774 $as_echo_n "(cached) " >&6
12775else
12776 if test -n "$ac_ct_AR"; then
12777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12778else
12779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780for as_dir in $PATH
12781do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012786 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12789 fi
12790done
12791 done
12792IFS=$as_save_IFS
12793
12794fi
12795fi
12796ac_ct_AR=$ac_cv_prog_ac_ct_AR
12797if test -n "$ac_ct_AR"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12799$as_echo "$ac_ct_AR" >&6; }
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803fi
12804
cristyda16f162011-02-19 23:52:17 +000012805
12806 test -n "$ac_ct_AR" && break
12807done
12808
cristy73bd4a52010-10-05 11:24:23 +000012809 if test "x$ac_ct_AR" = x; then
12810 AR="false"
12811 else
12812 case $cross_compiling:$ac_tool_warned in
12813yes:)
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12816ac_tool_warned=yes ;;
12817esac
12818 AR=$ac_ct_AR
12819 fi
cristy73bd4a52010-10-05 11:24:23 +000012820fi
12821
cristyda16f162011-02-19 23:52:17 +000012822: ${AR=ar}
12823: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
cristyda16f162011-02-19 23:52:17 +000012835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12836$as_echo_n "checking for archiver @FILE support... " >&6; }
12837if ${lt_cv_ar_at_file+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839else
12840 lt_cv_ar_at_file=no
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842/* end confdefs.h. */
12843
12844int
12845main ()
12846{
12847
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852if ac_fn_c_try_compile "$LINENO"; then :
12853 echo conftest.$ac_objext > conftest.lst
12854 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12856 (eval $lt_ar_try) 2>&5
12857 ac_status=$?
12858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12859 test $ac_status = 0; }
12860 if test "$ac_status" -eq 0; then
12861 # Ensure the archiver fails upon bogus file names.
12862 rm -f conftest.$ac_objext libconftest.a
12863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12864 (eval $lt_ar_try) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; }
12868 if test "$ac_status" -ne 0; then
12869 lt_cv_ar_at_file=@
12870 fi
12871 fi
12872 rm -f conftest.* libconftest.a
12873
12874fi
12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876
12877fi
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12879$as_echo "$lt_cv_ar_at_file" >&6; }
12880
12881if test "x$lt_cv_ar_at_file" = xno; then
12882 archiver_list_spec=
12883else
12884 archiver_list_spec=$lt_cv_ar_at_file
12885fi
12886
12887
12888
12889
12890
12891
12892
cristy73bd4a52010-10-05 11:24:23 +000012893if test -n "$ac_tool_prefix"; then
12894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12895set dummy ${ac_tool_prefix}strip; ac_word=$2
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012898if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012899 $as_echo_n "(cached) " >&6
12900else
12901 if test -n "$STRIP"; then
12902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12903else
12904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905for as_dir in $PATH
12906do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915done
12916 done
12917IFS=$as_save_IFS
12918
12919fi
12920fi
12921STRIP=$ac_cv_prog_STRIP
12922if test -n "$STRIP"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12924$as_echo "$STRIP" >&6; }
12925else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927$as_echo "no" >&6; }
12928fi
12929
12930
12931fi
12932if test -z "$ac_cv_prog_STRIP"; then
12933 ac_ct_STRIP=$STRIP
12934 # Extract the first word of "strip", so it can be a program name with args.
12935set dummy strip; ac_word=$2
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012938if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012939 $as_echo_n "(cached) " >&6
12940else
12941 if test -n "$ac_ct_STRIP"; then
12942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12943else
12944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945for as_dir in $PATH
12946do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012951 ac_cv_prog_ac_ct_STRIP="strip"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955done
12956 done
12957IFS=$as_save_IFS
12958
12959fi
12960fi
12961ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12962if test -n "$ac_ct_STRIP"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12964$as_echo "$ac_ct_STRIP" >&6; }
12965else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967$as_echo "no" >&6; }
12968fi
12969
12970 if test "x$ac_ct_STRIP" = x; then
12971 STRIP=":"
12972 else
12973 case $cross_compiling:$ac_tool_warned in
12974yes:)
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12977ac_tool_warned=yes ;;
12978esac
12979 STRIP=$ac_ct_STRIP
12980 fi
12981else
12982 STRIP="$ac_cv_prog_STRIP"
12983fi
12984
12985test -z "$STRIP" && STRIP=:
12986
12987
12988
12989
12990
12991
12992if test -n "$ac_tool_prefix"; then
12993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012997if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012998 $as_echo_n "(cached) " >&6
12999else
13000 if test -n "$RANLIB"; then
13001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014done
13015 done
13016IFS=$as_save_IFS
13017
13018fi
13019fi
13020RANLIB=$ac_cv_prog_RANLIB
13021if test -n "$RANLIB"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13023$as_echo "$RANLIB" >&6; }
13024else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
13027fi
13028
13029
13030fi
13031if test -z "$ac_cv_prog_RANLIB"; then
13032 ac_ct_RANLIB=$RANLIB
13033 # Extract the first word of "ranlib", so it can be a program name with args.
13034set dummy ranlib; ac_word=$2
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013037if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013038 $as_echo_n "(cached) " >&6
13039else
13040 if test -n "$ac_ct_RANLIB"; then
13041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013050 ac_cv_prog_ac_ct_RANLIB="ranlib"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055 done
13056IFS=$as_save_IFS
13057
13058fi
13059fi
13060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13061if test -n "$ac_ct_RANLIB"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13063$as_echo "$ac_ct_RANLIB" >&6; }
13064else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
13067fi
13068
13069 if test "x$ac_ct_RANLIB" = x; then
13070 RANLIB=":"
13071 else
13072 case $cross_compiling:$ac_tool_warned in
13073yes:)
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13076ac_tool_warned=yes ;;
13077esac
13078 RANLIB=$ac_ct_RANLIB
13079 fi
13080else
13081 RANLIB="$ac_cv_prog_RANLIB"
13082fi
13083
13084test -z "$RANLIB" && RANLIB=:
13085
13086
13087
13088
13089
13090
13091# Determine commands to create old-style static archives.
13092old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13093old_postinstall_cmds='chmod 644 $oldlib'
13094old_postuninstall_cmds=
13095
13096if test -n "$RANLIB"; then
13097 case $host_os in
13098 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000013099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000013100 ;;
13101 *)
cristy99bd5232011-12-07 14:38:20 +000013102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000013103 ;;
13104 esac
cristy99bd5232011-12-07 14:38:20 +000013105 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000013106fi
13107
cristy0c60a692010-11-04 01:09:47 +000013108case $host_os in
13109 darwin*)
13110 lock_old_archive_extraction=yes ;;
13111 *)
13112 lock_old_archive_extraction=no ;;
13113esac
13114
13115
13116
13117
13118
13119
cristy73bd4a52010-10-05 11:24:23 +000013120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153# If no C compiler was specified, use CC.
13154LTCC=${LTCC-"$CC"}
13155
13156# If no C compiler flags were specified, use CFLAGS.
13157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13158
13159# Allow CC to be a program name with arguments.
13160compiler=$CC
13161
13162
13163# Check for command to grab the raw symbol name followed by C symbol from nm.
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13165$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013166if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013167 $as_echo_n "(cached) " >&6
13168else
13169
13170# These are sane defaults that work on at least a few old systems.
13171# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13172
13173# Character class describing NM global symbol codes.
13174symcode='[BCDEGRST]'
13175
13176# Regexp to match symbols that can be accessed directly from C.
13177sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13178
13179# Define system-specific variables.
13180case $host_os in
13181aix*)
13182 symcode='[BCDT]'
13183 ;;
13184cygwin* | mingw* | pw32* | cegcc*)
13185 symcode='[ABCDGISTW]'
13186 ;;
13187hpux*)
13188 if test "$host_cpu" = ia64; then
13189 symcode='[ABCDEGRST]'
13190 fi
13191 ;;
13192irix* | nonstopux*)
13193 symcode='[BCDEGRST]'
13194 ;;
13195osf*)
13196 symcode='[BCDEGQRST]'
13197 ;;
13198solaris*)
13199 symcode='[BDRT]'
13200 ;;
13201sco3.2v5*)
13202 symcode='[DT]'
13203 ;;
13204sysv4.2uw2*)
13205 symcode='[DT]'
13206 ;;
13207sysv5* | sco5v6* | unixware* | OpenUNIX*)
13208 symcode='[ABDT]'
13209 ;;
13210sysv4)
13211 symcode='[DFNSTU]'
13212 ;;
13213esac
13214
13215# If we're using GNU nm, then use its standard symbol codes.
13216case `$NM -V 2>&1` in
13217*GNU* | *'with BFD'*)
13218 symcode='[ABCDGIRSTW]' ;;
13219esac
13220
13221# Transform an extracted symbol line into a proper C declaration.
13222# Some systems (esp. on ia64) link data and code symbols differently,
13223# so use this general approach.
13224lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13225
13226# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000013227lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13228lt_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 +000013229
13230# Handle CRLF in mingw tool chain
13231opt_cr=
13232case $build_os in
13233mingw*)
13234 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13235 ;;
13236esac
13237
13238# Try without a prefix underscore, then with it.
13239for ac_symprfx in "" "_"; do
13240
13241 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13242 symxfrm="\\1 $ac_symprfx\\2 \\2"
13243
13244 # Write the raw and C identifiers.
13245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13246 # Fake it for dumpbin and say T for any non-static function
13247 # and D for any global variable.
13248 # Also find C++ and __fastcall symbols from MSVC++,
13249 # which start with @ or ?.
13250 lt_cv_sys_global_symbol_pipe="$AWK '"\
13251" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000013252" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000013253" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13254" \$ 0!~/External *\|/{next};"\
13255" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13256" {if(hide[section]) next};"\
13257" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13258" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13259" s[1]~/^[@?]/{print s[1], s[1]; next};"\
13260" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13261" ' prfx=^$ac_symprfx"
13262 else
13263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13264 fi
cristyda16f162011-02-19 23:52:17 +000013265 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000013266
13267 # Check to see that the pipe works correctly.
13268 pipe_works=no
13269
13270 rm -f conftest*
13271 cat > conftest.$ac_ext <<_LT_EOF
13272#ifdef __cplusplus
13273extern "C" {
13274#endif
13275char nm_test_var;
13276void nm_test_func(void);
13277void nm_test_func(void){}
13278#ifdef __cplusplus
13279}
13280#endif
13281int main(){nm_test_var='a';nm_test_func();return(0);}
13282_LT_EOF
13283
13284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13285 (eval $ac_compile) 2>&5
13286 ac_status=$?
13287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13288 test $ac_status = 0; }; then
13289 # Now try to grab the symbols.
13290 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000013291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13292 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000013293 ac_status=$?
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; } && test -s "$nlist"; then
13296 # Try sorting and uniquifying the output.
13297 if sort "$nlist" | uniq > "$nlist"T; then
13298 mv -f "$nlist"T "$nlist"
13299 else
13300 rm -f "$nlist"T
13301 fi
13302
13303 # Make sure that we snagged all the symbols we need.
13304 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13305 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13306 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000013307/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
13308#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13309/* DATA imports from DLLs on WIN32 con't be const, because runtime
13310 relocations are performed -- see ld's documentation on pseudo-relocs. */
13311# define LT_DLSYM_CONST
13312#elif defined(__osf__)
13313/* This system does not cope well with relocations in const data. */
13314# define LT_DLSYM_CONST
13315#else
13316# define LT_DLSYM_CONST const
13317#endif
13318
cristy73bd4a52010-10-05 11:24:23 +000013319#ifdef __cplusplus
13320extern "C" {
13321#endif
13322
13323_LT_EOF
13324 # Now generate the symbol file.
13325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13326
13327 cat <<_LT_EOF >> conftest.$ac_ext
13328
13329/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000013330LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000013331 const char *name;
13332 void *address;
13333}
13334lt__PROGRAM__LTX_preloaded_symbols[] =
13335{
13336 { "@PROGRAM@", (void *) 0 },
13337_LT_EOF
13338 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13339 cat <<\_LT_EOF >> conftest.$ac_ext
13340 {0, (void *) 0}
13341};
13342
13343/* This works around a problem in FreeBSD linker */
13344#ifdef FREEBSD_WORKAROUND
13345static const void *lt_preloaded_setup() {
13346 return lt__PROGRAM__LTX_preloaded_symbols;
13347}
13348#endif
13349
13350#ifdef __cplusplus
13351}
13352#endif
13353_LT_EOF
13354 # Now try linking the two files.
13355 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000013356 lt_globsym_save_LIBS=$LIBS
13357 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013358 LIBS="conftstm.$ac_objext"
13359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13361 (eval $ac_link) 2>&5
13362 ac_status=$?
13363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13364 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13365 pipe_works=yes
13366 fi
cristyda16f162011-02-19 23:52:17 +000013367 LIBS=$lt_globsym_save_LIBS
13368 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013369 else
13370 echo "cannot find nm_test_func in $nlist" >&5
13371 fi
13372 else
13373 echo "cannot find nm_test_var in $nlist" >&5
13374 fi
13375 else
13376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13377 fi
13378 else
13379 echo "$progname: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 fi
13382 rm -rf conftest* conftst*
13383
13384 # Do not use the global_symbol_pipe unless it works.
13385 if test "$pipe_works" = yes; then
13386 break
13387 else
13388 lt_cv_sys_global_symbol_pipe=
13389 fi
13390done
13391
13392fi
13393
13394if test -z "$lt_cv_sys_global_symbol_pipe"; then
13395 lt_cv_sys_global_symbol_to_cdecl=
13396fi
13397if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13399$as_echo "failed" >&6; }
13400else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13402$as_echo "ok" >&6; }
13403fi
13404
cristyda16f162011-02-19 23:52:17 +000013405# Response file support.
13406if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13407 nm_file_list_spec='@'
13408elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13409 nm_file_list_spec='@'
13410fi
cristy73bd4a52010-10-05 11:24:23 +000013411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
cristyda16f162011-02-19 23:52:17 +000013432
13433
13434
13435
13436
13437
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13439$as_echo_n "checking for sysroot... " >&6; }
13440
13441# Check whether --with-sysroot was given.
13442if test "${with_sysroot+set}" = set; then :
13443 withval=$with_sysroot;
13444else
13445 with_sysroot=no
13446fi
13447
13448
13449lt_sysroot=
13450case ${with_sysroot} in #(
13451 yes)
13452 if test "$GCC" = yes; then
13453 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13454 fi
13455 ;; #(
13456 /*)
13457 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13458 ;; #(
13459 no|'')
13460 ;; #(
13461 *)
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13463$as_echo "${with_sysroot}" >&6; }
13464 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13465 ;;
13466esac
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13469$as_echo "${lt_sysroot:-no}" >&6; }
13470
13471
13472
13473
13474
cristy73bd4a52010-10-05 11:24:23 +000013475# Check whether --enable-libtool-lock was given.
13476if test "${enable_libtool_lock+set}" = set; then :
13477 enableval=$enable_libtool_lock;
13478fi
13479
13480test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13481
13482# Some flags need to be propagated to the compiler or linker for good
13483# libtool support.
13484case $host in
13485ia64-*-hpux*)
13486 # Find out which ABI we are using.
13487 echo 'int i;' > conftest.$ac_ext
13488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13489 (eval $ac_compile) 2>&5
13490 ac_status=$?
13491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13492 test $ac_status = 0; }; then
13493 case `/usr/bin/file conftest.$ac_objext` in
13494 *ELF-32*)
13495 HPUX_IA64_MODE="32"
13496 ;;
13497 *ELF-64*)
13498 HPUX_IA64_MODE="64"
13499 ;;
13500 esac
13501 fi
13502 rm -rf conftest*
13503 ;;
13504*-*-irix6*)
13505 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013506 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13508 (eval $ac_compile) 2>&5
13509 ac_status=$?
13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; }; then
13512 if test "$lt_cv_prog_gnu_ld" = yes; then
13513 case `/usr/bin/file conftest.$ac_objext` in
13514 *32-bit*)
13515 LD="${LD-ld} -melf32bsmip"
13516 ;;
13517 *N32*)
13518 LD="${LD-ld} -melf32bmipn32"
13519 ;;
13520 *64-bit*)
13521 LD="${LD-ld} -melf64bmip"
13522 ;;
13523 esac
13524 else
13525 case `/usr/bin/file conftest.$ac_objext` in
13526 *32-bit*)
13527 LD="${LD-ld} -32"
13528 ;;
13529 *N32*)
13530 LD="${LD-ld} -n32"
13531 ;;
13532 *64-bit*)
13533 LD="${LD-ld} -64"
13534 ;;
13535 esac
13536 fi
13537 fi
13538 rm -rf conftest*
13539 ;;
13540
cristyd95b7a52013-10-23 13:12:53 +000013541x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013542s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13543 # Find out which ABI we are using.
13544 echo 'int i;' > conftest.$ac_ext
13545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13546 (eval $ac_compile) 2>&5
13547 ac_status=$?
13548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13549 test $ac_status = 0; }; then
13550 case `/usr/bin/file conftest.o` in
13551 *32-bit*)
13552 case $host in
13553 x86_64-*kfreebsd*-gnu)
13554 LD="${LD-ld} -m elf_i386_fbsd"
13555 ;;
13556 x86_64-*linux*)
13557 LD="${LD-ld} -m elf_i386"
13558 ;;
cristyd95b7a52013-10-23 13:12:53 +000013559 powerpcle-*linux*)
13560 LD="${LD-ld} -m elf32lppclinux"
13561 ;;
13562 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013563 LD="${LD-ld} -m elf32ppclinux"
13564 ;;
13565 s390x-*linux*)
13566 LD="${LD-ld} -m elf_s390"
13567 ;;
13568 sparc64-*linux*)
13569 LD="${LD-ld} -m elf32_sparc"
13570 ;;
13571 esac
13572 ;;
13573 *64-bit*)
13574 case $host in
13575 x86_64-*kfreebsd*-gnu)
13576 LD="${LD-ld} -m elf_x86_64_fbsd"
13577 ;;
13578 x86_64-*linux*)
13579 LD="${LD-ld} -m elf_x86_64"
13580 ;;
cristyd95b7a52013-10-23 13:12:53 +000013581 powerpcle-*linux*)
13582 LD="${LD-ld} -m elf64lppc"
13583 ;;
13584 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013585 LD="${LD-ld} -m elf64ppc"
13586 ;;
13587 s390*-*linux*|s390*-*tpf*)
13588 LD="${LD-ld} -m elf64_s390"
13589 ;;
13590 sparc*-*linux*)
13591 LD="${LD-ld} -m elf64_sparc"
13592 ;;
13593 esac
13594 ;;
13595 esac
13596 fi
13597 rm -rf conftest*
13598 ;;
13599
13600*-*-sco3.2v5*)
13601 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13602 SAVE_CFLAGS="$CFLAGS"
13603 CFLAGS="$CFLAGS -belf"
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13605$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013606if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013607 $as_echo_n "(cached) " >&6
13608else
13609 ac_ext=c
13610ac_cpp='$CPP $CPPFLAGS'
13611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h. */
13617
13618int
13619main ()
13620{
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"; then :
13627 lt_cv_cc_needs_belf=yes
13628else
13629 lt_cv_cc_needs_belf=no
13630fi
13631rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 ac_ext=c
13634ac_cpp='$CPP $CPPFLAGS'
13635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13637ac_compiler_gnu=$ac_cv_c_compiler_gnu
13638
13639fi
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13641$as_echo "$lt_cv_cc_needs_belf" >&6; }
13642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13644 CFLAGS="$SAVE_CFLAGS"
13645 fi
13646 ;;
cristy99bd5232011-12-07 14:38:20 +000013647*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013648 # Find out which ABI we are using.
13649 echo 'int i;' > conftest.$ac_ext
13650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13651 (eval $ac_compile) 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; }; then
13655 case `/usr/bin/file conftest.o` in
13656 *64-bit*)
13657 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013658 yes*)
13659 case $host in
13660 i?86-*-solaris*)
13661 LD="${LD-ld} -m elf_x86_64"
13662 ;;
13663 sparc*-*-solaris*)
13664 LD="${LD-ld} -m elf64_sparc"
13665 ;;
13666 esac
13667 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13668 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13669 LD="${LD-ld}_sol2"
13670 fi
13671 ;;
cristy73bd4a52010-10-05 11:24:23 +000013672 *)
13673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13674 LD="${LD-ld} -64"
13675 fi
13676 ;;
13677 esac
13678 ;;
13679 esac
13680 fi
13681 rm -rf conftest*
13682 ;;
13683esac
13684
13685need_locks="$enable_libtool_lock"
13686
cristyda16f162011-02-19 23:52:17 +000013687if test -n "$ac_tool_prefix"; then
13688 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13689set dummy ${ac_tool_prefix}mt; ac_word=$2
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691$as_echo_n "checking for $ac_word... " >&6; }
13692if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694else
13695 if test -n "$MANIFEST_TOOL"; then
13696 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13697else
13698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699for as_dir in $PATH
13700do
13701 IFS=$as_save_IFS
13702 test -z "$as_dir" && as_dir=.
13703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013705 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13707 break 2
13708 fi
13709done
13710 done
13711IFS=$as_save_IFS
13712
13713fi
13714fi
13715MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13716if test -n "$MANIFEST_TOOL"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13718$as_echo "$MANIFEST_TOOL" >&6; }
13719else
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
13722fi
13723
13724
13725fi
13726if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13727 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13728 # Extract the first word of "mt", so it can be a program name with args.
13729set dummy mt; ac_word=$2
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731$as_echo_n "checking for $ac_word... " >&6; }
13732if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734else
13735 if test -n "$ac_ct_MANIFEST_TOOL"; then
13736 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13737else
13738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739for as_dir in $PATH
13740do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013745 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13748 fi
13749done
13750 done
13751IFS=$as_save_IFS
13752
13753fi
13754fi
13755ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13756if test -n "$ac_ct_MANIFEST_TOOL"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13758$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13759else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761$as_echo "no" >&6; }
13762fi
13763
13764 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13765 MANIFEST_TOOL=":"
13766 else
13767 case $cross_compiling:$ac_tool_warned in
13768yes:)
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13771ac_tool_warned=yes ;;
13772esac
13773 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13774 fi
13775else
13776 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13777fi
13778
13779test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13781$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13782if ${lt_cv_path_mainfest_tool+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784else
13785 lt_cv_path_mainfest_tool=no
13786 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13787 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13788 cat conftest.err >&5
13789 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13790 lt_cv_path_mainfest_tool=yes
13791 fi
13792 rm -f conftest*
13793fi
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13795$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13796if test "x$lt_cv_path_mainfest_tool" != xyes; then
13797 MANIFEST_TOOL=:
13798fi
13799
13800
13801
13802
13803
cristy73bd4a52010-10-05 11:24:23 +000013804
13805 case $host_os in
13806 rhapsody* | darwin*)
13807 if test -n "$ac_tool_prefix"; then
13808 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13809set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013812if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013813 $as_echo_n "(cached) " >&6
13814else
13815 if test -n "$DSYMUTIL"; then
13816 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13817else
13818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819for as_dir in $PATH
13820do
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013825 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13828 fi
13829done
13830 done
13831IFS=$as_save_IFS
13832
13833fi
13834fi
13835DSYMUTIL=$ac_cv_prog_DSYMUTIL
13836if test -n "$DSYMUTIL"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13838$as_echo "$DSYMUTIL" >&6; }
13839else
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841$as_echo "no" >&6; }
13842fi
13843
13844
13845fi
13846if test -z "$ac_cv_prog_DSYMUTIL"; then
13847 ac_ct_DSYMUTIL=$DSYMUTIL
13848 # Extract the first word of "dsymutil", so it can be a program name with args.
13849set dummy dsymutil; ac_word=$2
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013852if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013853 $as_echo_n "(cached) " >&6
13854else
13855 if test -n "$ac_ct_DSYMUTIL"; then
13856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13857else
13858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859for as_dir in $PATH
13860do
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013865 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13868 fi
13869done
13870 done
13871IFS=$as_save_IFS
13872
13873fi
13874fi
13875ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13876if test -n "$ac_ct_DSYMUTIL"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13878$as_echo "$ac_ct_DSYMUTIL" >&6; }
13879else
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881$as_echo "no" >&6; }
13882fi
13883
13884 if test "x$ac_ct_DSYMUTIL" = x; then
13885 DSYMUTIL=":"
13886 else
13887 case $cross_compiling:$ac_tool_warned in
13888yes:)
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13891ac_tool_warned=yes ;;
13892esac
13893 DSYMUTIL=$ac_ct_DSYMUTIL
13894 fi
13895else
13896 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13897fi
13898
13899 if test -n "$ac_tool_prefix"; then
13900 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13901set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013904if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013905 $as_echo_n "(cached) " >&6
13906else
13907 if test -n "$NMEDIT"; then
13908 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13909else
13910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911for as_dir in $PATH
13912do
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013917 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921done
13922 done
13923IFS=$as_save_IFS
13924
13925fi
13926fi
13927NMEDIT=$ac_cv_prog_NMEDIT
13928if test -n "$NMEDIT"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13930$as_echo "$NMEDIT" >&6; }
13931else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933$as_echo "no" >&6; }
13934fi
13935
13936
13937fi
13938if test -z "$ac_cv_prog_NMEDIT"; then
13939 ac_ct_NMEDIT=$NMEDIT
13940 # Extract the first word of "nmedit", so it can be a program name with args.
13941set dummy nmedit; ac_word=$2
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013944if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013945 $as_echo_n "(cached) " >&6
13946else
13947 if test -n "$ac_ct_NMEDIT"; then
13948 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13949else
13950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951for as_dir in $PATH
13952do
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013957 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13960 fi
13961done
13962 done
13963IFS=$as_save_IFS
13964
13965fi
13966fi
13967ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13968if test -n "$ac_ct_NMEDIT"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13970$as_echo "$ac_ct_NMEDIT" >&6; }
13971else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973$as_echo "no" >&6; }
13974fi
13975
13976 if test "x$ac_ct_NMEDIT" = x; then
13977 NMEDIT=":"
13978 else
13979 case $cross_compiling:$ac_tool_warned in
13980yes:)
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13983ac_tool_warned=yes ;;
13984esac
13985 NMEDIT=$ac_ct_NMEDIT
13986 fi
13987else
13988 NMEDIT="$ac_cv_prog_NMEDIT"
13989fi
13990
13991 if test -n "$ac_tool_prefix"; then
13992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13993set dummy ${ac_tool_prefix}lipo; ac_word=$2
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013996if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013997 $as_echo_n "(cached) " >&6
13998else
13999 if test -n "$LIPO"; then
14000 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14001else
14002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003for as_dir in $PATH
14004do
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014009 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013done
14014 done
14015IFS=$as_save_IFS
14016
14017fi
14018fi
14019LIPO=$ac_cv_prog_LIPO
14020if test -n "$LIPO"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14022$as_echo "$LIPO" >&6; }
14023else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025$as_echo "no" >&6; }
14026fi
14027
14028
14029fi
14030if test -z "$ac_cv_prog_LIPO"; then
14031 ac_ct_LIPO=$LIPO
14032 # Extract the first word of "lipo", so it can be a program name with args.
14033set dummy lipo; ac_word=$2
14034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014036if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014037 $as_echo_n "(cached) " >&6
14038else
14039 if test -n "$ac_ct_LIPO"; then
14040 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14041else
14042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043for as_dir in $PATH
14044do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014049 ac_cv_prog_ac_ct_LIPO="lipo"
14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 break 2
14052 fi
14053done
14054 done
14055IFS=$as_save_IFS
14056
14057fi
14058fi
14059ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14060if test -n "$ac_ct_LIPO"; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14062$as_echo "$ac_ct_LIPO" >&6; }
14063else
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065$as_echo "no" >&6; }
14066fi
14067
14068 if test "x$ac_ct_LIPO" = x; then
14069 LIPO=":"
14070 else
14071 case $cross_compiling:$ac_tool_warned in
14072yes:)
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14075ac_tool_warned=yes ;;
14076esac
14077 LIPO=$ac_ct_LIPO
14078 fi
14079else
14080 LIPO="$ac_cv_prog_LIPO"
14081fi
14082
14083 if test -n "$ac_tool_prefix"; then
14084 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14085set dummy ${ac_tool_prefix}otool; ac_word=$2
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014088if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014089 $as_echo_n "(cached) " >&6
14090else
14091 if test -n "$OTOOL"; then
14092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105done
14106 done
14107IFS=$as_save_IFS
14108
14109fi
14110fi
14111OTOOL=$ac_cv_prog_OTOOL
14112if test -n "$OTOOL"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14114$as_echo "$OTOOL" >&6; }
14115else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117$as_echo "no" >&6; }
14118fi
14119
14120
14121fi
14122if test -z "$ac_cv_prog_OTOOL"; then
14123 ac_ct_OTOOL=$OTOOL
14124 # Extract the first word of "otool", so it can be a program name with args.
14125set dummy otool; ac_word=$2
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014128if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014129 $as_echo_n "(cached) " >&6
14130else
14131 if test -n "$ac_ct_OTOOL"; then
14132 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14133else
14134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135for as_dir in $PATH
14136do
14137 IFS=$as_save_IFS
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014141 ac_cv_prog_ac_ct_OTOOL="otool"
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 break 2
14144 fi
14145done
14146 done
14147IFS=$as_save_IFS
14148
14149fi
14150fi
14151ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14152if test -n "$ac_ct_OTOOL"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14154$as_echo "$ac_ct_OTOOL" >&6; }
14155else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157$as_echo "no" >&6; }
14158fi
14159
14160 if test "x$ac_ct_OTOOL" = x; then
14161 OTOOL=":"
14162 else
14163 case $cross_compiling:$ac_tool_warned in
14164yes:)
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14167ac_tool_warned=yes ;;
14168esac
14169 OTOOL=$ac_ct_OTOOL
14170 fi
14171else
14172 OTOOL="$ac_cv_prog_OTOOL"
14173fi
14174
14175 if test -n "$ac_tool_prefix"; then
14176 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14177set dummy ${ac_tool_prefix}otool64; ac_word=$2
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014180if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014181 $as_echo_n "(cached) " >&6
14182else
14183 if test -n "$OTOOL64"; then
14184 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14185else
14186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187for as_dir in $PATH
14188do
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14196 fi
14197done
14198 done
14199IFS=$as_save_IFS
14200
14201fi
14202fi
14203OTOOL64=$ac_cv_prog_OTOOL64
14204if test -n "$OTOOL64"; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14206$as_echo "$OTOOL64" >&6; }
14207else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209$as_echo "no" >&6; }
14210fi
14211
14212
14213fi
14214if test -z "$ac_cv_prog_OTOOL64"; then
14215 ac_ct_OTOOL64=$OTOOL64
14216 # Extract the first word of "otool64", so it can be a program name with args.
14217set dummy otool64; ac_word=$2
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014220if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014221 $as_echo_n "(cached) " >&6
14222else
14223 if test -n "$ac_ct_OTOOL64"; then
14224 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14225else
14226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227for as_dir in $PATH
14228do
14229 IFS=$as_save_IFS
14230 test -z "$as_dir" && as_dir=.
14231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014233 ac_cv_prog_ac_ct_OTOOL64="otool64"
14234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14235 break 2
14236 fi
14237done
14238 done
14239IFS=$as_save_IFS
14240
14241fi
14242fi
14243ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14244if test -n "$ac_ct_OTOOL64"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14246$as_echo "$ac_ct_OTOOL64" >&6; }
14247else
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249$as_echo "no" >&6; }
14250fi
14251
14252 if test "x$ac_ct_OTOOL64" = x; then
14253 OTOOL64=":"
14254 else
14255 case $cross_compiling:$ac_tool_warned in
14256yes:)
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14259ac_tool_warned=yes ;;
14260esac
14261 OTOOL64=$ac_ct_OTOOL64
14262 fi
14263else
14264 OTOOL64="$ac_cv_prog_OTOOL64"
14265fi
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14294$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014295if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014296 $as_echo_n "(cached) " >&6
14297else
14298 lt_cv_apple_cc_single_mod=no
14299 if test -z "${LT_MULTI_MODULE}"; then
14300 # By default we will add the -single_module flag. You can override
14301 # by either setting the environment variable LT_MULTI_MODULE
14302 # non-empty at configure time, or by adding -multi_module to the
14303 # link flags.
14304 rm -rf libconftest.dylib*
14305 echo "int foo(void){return 1;}" > conftest.c
14306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14307-dynamiclib -Wl,-single_module conftest.c" >&5
14308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14310 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014311 # If there is a non-empty error log, and "single_module"
14312 # appears in it, assume the flag caused a linker warning
14313 if test -s conftest.err && $GREP single_module conftest.err; then
14314 cat conftest.err >&5
14315 # Otherwise, if the output was created with a 0 exit code from
14316 # the compiler, it worked.
14317 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000014318 lt_cv_apple_cc_single_mod=yes
14319 else
14320 cat conftest.err >&5
14321 fi
14322 rm -rf libconftest.dylib*
14323 rm -f conftest.*
14324 fi
14325fi
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14327$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014328
cristy73bd4a52010-10-05 11:24:23 +000014329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14330$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014331if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014332 $as_echo_n "(cached) " >&6
14333else
14334 lt_cv_ld_exported_symbols_list=no
14335 save_LDFLAGS=$LDFLAGS
14336 echo "_main" > conftest.sym
14337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339/* end confdefs.h. */
14340
14341int
14342main ()
14343{
14344
14345 ;
14346 return 0;
14347}
14348_ACEOF
14349if ac_fn_c_try_link "$LINENO"; then :
14350 lt_cv_ld_exported_symbols_list=yes
14351else
14352 lt_cv_ld_exported_symbols_list=no
14353fi
14354rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LDFLAGS="$save_LDFLAGS"
14357
14358fi
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14360$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014361
cristy0c60a692010-11-04 01:09:47 +000014362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14363$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014364if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014365 $as_echo_n "(cached) " >&6
14366else
14367 lt_cv_ld_force_load=no
14368 cat > conftest.c << _LT_EOF
14369int forced_loaded() { return 2;}
14370_LT_EOF
14371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14373 echo "$AR cru libconftest.a conftest.o" >&5
14374 $AR cru libconftest.a conftest.o 2>&5
14375 echo "$RANLIB libconftest.a" >&5
14376 $RANLIB libconftest.a 2>&5
14377 cat > conftest.c << _LT_EOF
14378int main() { return 0;}
14379_LT_EOF
14380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14382 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014383 if test -s conftest.err && $GREP force_load conftest.err; then
14384 cat conftest.err >&5
14385 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000014386 lt_cv_ld_force_load=yes
14387 else
14388 cat conftest.err >&5
14389 fi
14390 rm -f conftest.err libconftest.a conftest conftest.c
14391 rm -rf conftest.dSYM
14392
14393fi
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14395$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014396 case $host_os in
14397 rhapsody* | darwin1.[012])
14398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14399 darwin1.*)
14400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14401 darwin*) # darwin 5.x on
14402 # if running on 10.5 or later, the deployment target defaults
14403 # to the OS version, if on x86, and 10.4, the deployment
14404 # target defaults to 10.4. Don't you love it?
14405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14406 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14408 10.[012]*)
14409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14410 10.*)
14411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14412 esac
14413 ;;
14414 esac
14415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14416 _lt_dar_single_mod='$single_module'
14417 fi
14418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14420 else
14421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 fi
cristy0c60a692010-11-04 01:09:47 +000014423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014424 _lt_dsymutil='~$DSYMUTIL $lib || :'
14425 else
14426 _lt_dsymutil=
14427 fi
14428 ;;
14429 esac
14430
14431for ac_header in dlfcn.h
14432do :
14433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14434"
cristyda16f162011-02-19 23:52:17 +000014435if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014436 cat >>confdefs.h <<_ACEOF
14437#define HAVE_DLFCN_H 1
14438_ACEOF
14439
14440fi
14441
14442done
14443
14444
14445
cristy73bd4a52010-10-05 11:24:23 +000014446
cristyda16f162011-02-19 23:52:17 +000014447func_stripname_cnf ()
14448{
14449 case ${2} in
14450 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14451 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14452 esac
14453} # func_stripname_cnf
14454
14455
14456
cristy73bd4a52010-10-05 11:24:23 +000014457
14458
14459# Set options
14460enable_win32_dll=yes
14461
14462case $host in
cristy0c60a692010-11-04 01:09:47 +000014463*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014464 if test -n "$ac_tool_prefix"; then
14465 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14466set dummy ${ac_tool_prefix}as; ac_word=$2
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014469if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014470 $as_echo_n "(cached) " >&6
14471else
14472 if test -n "$AS"; then
14473 ac_cv_prog_AS="$AS" # Let the user override the test.
14474else
14475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476for as_dir in $PATH
14477do
14478 IFS=$as_save_IFS
14479 test -z "$as_dir" && as_dir=.
14480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014482 ac_cv_prog_AS="${ac_tool_prefix}as"
14483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14484 break 2
14485 fi
14486done
14487 done
14488IFS=$as_save_IFS
14489
14490fi
14491fi
14492AS=$ac_cv_prog_AS
14493if test -n "$AS"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14495$as_echo "$AS" >&6; }
14496else
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498$as_echo "no" >&6; }
14499fi
14500
14501
14502fi
14503if test -z "$ac_cv_prog_AS"; then
14504 ac_ct_AS=$AS
14505 # Extract the first word of "as", so it can be a program name with args.
14506set dummy as; ac_word=$2
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014509if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014510 $as_echo_n "(cached) " >&6
14511else
14512 if test -n "$ac_ct_AS"; then
14513 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14514else
14515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516for as_dir in $PATH
14517do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014522 ac_cv_prog_ac_ct_AS="as"
14523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14525 fi
14526done
14527 done
14528IFS=$as_save_IFS
14529
14530fi
14531fi
14532ac_ct_AS=$ac_cv_prog_ac_ct_AS
14533if test -n "$ac_ct_AS"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14535$as_echo "$ac_ct_AS" >&6; }
14536else
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538$as_echo "no" >&6; }
14539fi
14540
14541 if test "x$ac_ct_AS" = x; then
14542 AS="false"
14543 else
14544 case $cross_compiling:$ac_tool_warned in
14545yes:)
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14548ac_tool_warned=yes ;;
14549esac
14550 AS=$ac_ct_AS
14551 fi
14552else
14553 AS="$ac_cv_prog_AS"
14554fi
14555
14556 if test -n "$ac_tool_prefix"; then
14557 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14558set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014561if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014562 $as_echo_n "(cached) " >&6
14563else
14564 if test -n "$DLLTOOL"; then
14565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14566else
14567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568for as_dir in $PATH
14569do
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014574 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 break 2
14577 fi
14578done
14579 done
14580IFS=$as_save_IFS
14581
14582fi
14583fi
14584DLLTOOL=$ac_cv_prog_DLLTOOL
14585if test -n "$DLLTOOL"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14587$as_echo "$DLLTOOL" >&6; }
14588else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590$as_echo "no" >&6; }
14591fi
14592
14593
14594fi
14595if test -z "$ac_cv_prog_DLLTOOL"; then
14596 ac_ct_DLLTOOL=$DLLTOOL
14597 # Extract the first word of "dlltool", so it can be a program name with args.
14598set dummy dlltool; ac_word=$2
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014601if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014602 $as_echo_n "(cached) " >&6
14603else
14604 if test -n "$ac_ct_DLLTOOL"; then
14605 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14606else
14607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608for as_dir in $PATH
14609do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014614 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14617 fi
14618done
14619 done
14620IFS=$as_save_IFS
14621
14622fi
14623fi
14624ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14625if test -n "$ac_ct_DLLTOOL"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14627$as_echo "$ac_ct_DLLTOOL" >&6; }
14628else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630$as_echo "no" >&6; }
14631fi
14632
14633 if test "x$ac_ct_DLLTOOL" = x; then
14634 DLLTOOL="false"
14635 else
14636 case $cross_compiling:$ac_tool_warned in
14637yes:)
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14640ac_tool_warned=yes ;;
14641esac
14642 DLLTOOL=$ac_ct_DLLTOOL
14643 fi
14644else
14645 DLLTOOL="$ac_cv_prog_DLLTOOL"
14646fi
14647
14648 if test -n "$ac_tool_prefix"; then
14649 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14650set dummy ${ac_tool_prefix}objdump; ac_word=$2
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014653if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014654 $as_echo_n "(cached) " >&6
14655else
14656 if test -n "$OBJDUMP"; then
14657 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14658else
14659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660for as_dir in $PATH
14661do
14662 IFS=$as_save_IFS
14663 test -z "$as_dir" && as_dir=.
14664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14668 break 2
14669 fi
14670done
14671 done
14672IFS=$as_save_IFS
14673
14674fi
14675fi
14676OBJDUMP=$ac_cv_prog_OBJDUMP
14677if test -n "$OBJDUMP"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14679$as_echo "$OBJDUMP" >&6; }
14680else
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682$as_echo "no" >&6; }
14683fi
14684
14685
14686fi
14687if test -z "$ac_cv_prog_OBJDUMP"; then
14688 ac_ct_OBJDUMP=$OBJDUMP
14689 # Extract the first word of "objdump", so it can be a program name with args.
14690set dummy objdump; ac_word=$2
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014693if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014694 $as_echo_n "(cached) " >&6
14695else
14696 if test -n "$ac_ct_OBJDUMP"; then
14697 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14698else
14699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700for as_dir in $PATH
14701do
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014706 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14709 fi
14710done
14711 done
14712IFS=$as_save_IFS
14713
14714fi
14715fi
14716ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14717if test -n "$ac_ct_OBJDUMP"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14719$as_echo "$ac_ct_OBJDUMP" >&6; }
14720else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722$as_echo "no" >&6; }
14723fi
14724
14725 if test "x$ac_ct_OBJDUMP" = x; then
14726 OBJDUMP="false"
14727 else
14728 case $cross_compiling:$ac_tool_warned in
14729yes:)
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14732ac_tool_warned=yes ;;
14733esac
14734 OBJDUMP=$ac_ct_OBJDUMP
14735 fi
14736else
14737 OBJDUMP="$ac_cv_prog_OBJDUMP"
14738fi
14739
14740 ;;
14741esac
14742
14743test -z "$AS" && AS=as
14744
14745
14746
14747
14748
14749test -z "$DLLTOOL" && DLLTOOL=dlltool
14750
14751
14752
14753
14754
14755test -z "$OBJDUMP" && OBJDUMP=objdump
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765 # Check whether --enable-shared was given.
14766if test "${enable_shared+set}" = set; then :
14767 enableval=$enable_shared; p=${PACKAGE-default}
14768 case $enableval in
14769 yes) enable_shared=yes ;;
14770 no) enable_shared=no ;;
14771 *)
14772 enable_shared=no
14773 # Look at the argument we got. We use all the common list separators.
14774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14775 for pkg in $enableval; do
14776 IFS="$lt_save_ifs"
14777 if test "X$pkg" = "X$p"; then
14778 enable_shared=yes
14779 fi
14780 done
14781 IFS="$lt_save_ifs"
14782 ;;
14783 esac
14784else
14785 enable_shared=yes
14786fi
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796 # Check whether --enable-static was given.
14797if test "${enable_static+set}" = set; then :
14798 enableval=$enable_static; p=${PACKAGE-default}
14799 case $enableval in
14800 yes) enable_static=yes ;;
14801 no) enable_static=no ;;
14802 *)
14803 enable_static=no
14804 # Look at the argument we got. We use all the common list separators.
14805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14806 for pkg in $enableval; do
14807 IFS="$lt_save_ifs"
14808 if test "X$pkg" = "X$p"; then
14809 enable_static=yes
14810 fi
14811 done
14812 IFS="$lt_save_ifs"
14813 ;;
14814 esac
14815else
14816 enable_static=yes
14817fi
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828# Check whether --with-pic was given.
14829if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014830 withval=$with_pic; lt_p=${PACKAGE-default}
14831 case $withval in
14832 yes|no) pic_mode=$withval ;;
14833 *)
14834 pic_mode=default
14835 # Look at the argument we got. We use all the common list separators.
14836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14837 for lt_pkg in $withval; do
14838 IFS="$lt_save_ifs"
14839 if test "X$lt_pkg" = "X$lt_p"; then
14840 pic_mode=yes
14841 fi
14842 done
14843 IFS="$lt_save_ifs"
14844 ;;
14845 esac
cristy73bd4a52010-10-05 11:24:23 +000014846else
14847 pic_mode=default
14848fi
14849
14850
14851test -z "$pic_mode" && pic_mode=default
14852
14853
14854
14855
14856
14857
14858
14859 # Check whether --enable-fast-install was given.
14860if test "${enable_fast_install+set}" = set; then :
14861 enableval=$enable_fast_install; p=${PACKAGE-default}
14862 case $enableval in
14863 yes) enable_fast_install=yes ;;
14864 no) enable_fast_install=no ;;
14865 *)
14866 enable_fast_install=no
14867 # Look at the argument we got. We use all the common list separators.
14868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14869 for pkg in $enableval; do
14870 IFS="$lt_save_ifs"
14871 if test "X$pkg" = "X$p"; then
14872 enable_fast_install=yes
14873 fi
14874 done
14875 IFS="$lt_save_ifs"
14876 ;;
14877 esac
14878else
14879 enable_fast_install=yes
14880fi
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892# This can be used to rebuild libtool when needed
14893LIBTOOL_DEPS="$ltmain"
14894
14895# Always use our own libtool.
14896LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
cristy0c60a692010-11-04 01:09:47 +000014922
cristy99bd5232011-12-07 14:38:20 +000014923
14924
14925
14926
cristy73bd4a52010-10-05 11:24:23 +000014927test -z "$LN_S" && LN_S="ln -s"
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942if test -n "${ZSH_VERSION+set}" ; then
14943 setopt NO_GLOB_SUBST
14944fi
14945
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14947$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014948if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014949 $as_echo_n "(cached) " >&6
14950else
14951 rm -f .libs 2>/dev/null
14952mkdir .libs 2>/dev/null
14953if test -d .libs; then
14954 lt_cv_objdir=.libs
14955else
14956 # MS-DOS does not allow filenames that begin with a dot.
14957 lt_cv_objdir=_libs
14958fi
14959rmdir .libs 2>/dev/null
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14962$as_echo "$lt_cv_objdir" >&6; }
14963objdir=$lt_cv_objdir
14964
14965
14966
14967
14968
14969cat >>confdefs.h <<_ACEOF
14970#define LT_OBJDIR "$lt_cv_objdir/"
14971_ACEOF
14972
14973
14974
14975
cristy73bd4a52010-10-05 11:24:23 +000014976case $host_os in
14977aix3*)
14978 # AIX sometimes has problems with the GCC collect2 program. For some
14979 # reason, if we set the COLLECT_NAMES environment variable, the problems
14980 # vanish in a puff of smoke.
14981 if test "X${COLLECT_NAMES+set}" != Xset; then
14982 COLLECT_NAMES=
14983 export COLLECT_NAMES
14984 fi
14985 ;;
14986esac
14987
cristy73bd4a52010-10-05 11:24:23 +000014988# Global variables:
14989ofile=libtool
14990can_build_shared=yes
14991
14992# All known linkers require a `.a' archive for static linking (except MSVC,
14993# which needs '.lib').
14994libext=a
14995
14996with_gnu_ld="$lt_cv_prog_gnu_ld"
14997
14998old_CC="$CC"
14999old_CFLAGS="$CFLAGS"
15000
15001# Set sane defaults for various variables
15002test -z "$CC" && CC=cc
15003test -z "$LTCC" && LTCC=$CC
15004test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15005test -z "$LD" && LD=ld
15006test -z "$ac_objext" && ac_objext=o
15007
15008for cc_temp in $compiler""; do
15009 case $cc_temp in
15010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15012 \-*) ;;
15013 *) break;;
15014 esac
15015done
cristy0c60a692010-11-04 01:09:47 +000015016cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000015017
15018
15019# Only perform the check for file, if the check method requires it
15020test -z "$MAGIC_CMD" && MAGIC_CMD=file
15021case $deplibs_check_method in
15022file_magic*)
15023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15025$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015026if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015027 $as_echo_n "(cached) " >&6
15028else
15029 case $MAGIC_CMD in
15030[\\/*] | ?:[\\/]*)
15031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15032 ;;
15033*)
15034 lt_save_MAGIC_CMD="$MAGIC_CMD"
15035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15037 for ac_dir in $ac_dummy; do
15038 IFS="$lt_save_ifs"
15039 test -z "$ac_dir" && ac_dir=.
15040 if test -f $ac_dir/${ac_tool_prefix}file; then
15041 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15042 if test -n "$file_magic_test_file"; then
15043 case $deplibs_check_method in
15044 "file_magic "*)
15045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15048 $EGREP "$file_magic_regex" > /dev/null; then
15049 :
15050 else
15051 cat <<_LT_EOF 1>&2
15052
15053*** Warning: the command libtool uses to detect shared libraries,
15054*** $file_magic_cmd, produces output that libtool cannot recognize.
15055*** The result is that libtool may fail to recognize shared libraries
15056*** as such. This will affect the creation of libtool libraries that
15057*** depend on shared libraries, but programs linked with such libtool
15058*** libraries will work regardless of this problem. Nevertheless, you
15059*** may want to report the problem to your system manager and/or to
15060*** bug-libtool@gnu.org
15061
15062_LT_EOF
15063 fi ;;
15064 esac
15065 fi
15066 break
15067 fi
15068 done
15069 IFS="$lt_save_ifs"
15070 MAGIC_CMD="$lt_save_MAGIC_CMD"
15071 ;;
15072esac
15073fi
15074
15075MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15076if test -n "$MAGIC_CMD"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15078$as_echo "$MAGIC_CMD" >&6; }
15079else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081$as_echo "no" >&6; }
15082fi
15083
15084
15085
15086
15087
15088if test -z "$lt_cv_path_MAGIC_CMD"; then
15089 if test -n "$ac_tool_prefix"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15091$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015092if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015093 $as_echo_n "(cached) " >&6
15094else
15095 case $MAGIC_CMD in
15096[\\/*] | ?:[\\/]*)
15097 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15098 ;;
15099*)
15100 lt_save_MAGIC_CMD="$MAGIC_CMD"
15101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15102 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15103 for ac_dir in $ac_dummy; do
15104 IFS="$lt_save_ifs"
15105 test -z "$ac_dir" && ac_dir=.
15106 if test -f $ac_dir/file; then
15107 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15108 if test -n "$file_magic_test_file"; then
15109 case $deplibs_check_method in
15110 "file_magic "*)
15111 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15114 $EGREP "$file_magic_regex" > /dev/null; then
15115 :
15116 else
15117 cat <<_LT_EOF 1>&2
15118
15119*** Warning: the command libtool uses to detect shared libraries,
15120*** $file_magic_cmd, produces output that libtool cannot recognize.
15121*** The result is that libtool may fail to recognize shared libraries
15122*** as such. This will affect the creation of libtool libraries that
15123*** depend on shared libraries, but programs linked with such libtool
15124*** libraries will work regardless of this problem. Nevertheless, you
15125*** may want to report the problem to your system manager and/or to
15126*** bug-libtool@gnu.org
15127
15128_LT_EOF
15129 fi ;;
15130 esac
15131 fi
15132 break
15133 fi
15134 done
15135 IFS="$lt_save_ifs"
15136 MAGIC_CMD="$lt_save_MAGIC_CMD"
15137 ;;
15138esac
15139fi
15140
15141MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15142if test -n "$MAGIC_CMD"; then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15144$as_echo "$MAGIC_CMD" >&6; }
15145else
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15147$as_echo "no" >&6; }
15148fi
15149
15150
15151 else
15152 MAGIC_CMD=:
15153 fi
15154fi
15155
15156 fi
15157 ;;
15158esac
15159
15160# Use C for the default configuration in the libtool script
15161
15162lt_save_CC="$CC"
15163ac_ext=c
15164ac_cpp='$CPP $CPPFLAGS'
15165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15167ac_compiler_gnu=$ac_cv_c_compiler_gnu
15168
15169
15170# Source file extension for C test sources.
15171ac_ext=c
15172
15173# Object file extension for compiled C test sources.
15174objext=o
15175objext=$objext
15176
15177# Code to be used in simple compile tests
15178lt_simple_compile_test_code="int some_variable = 0;"
15179
15180# Code to be used in simple link tests
15181lt_simple_link_test_code='int main(){return(0);}'
15182
15183
15184
15185
15186
15187
15188
15189# If no C compiler was specified, use CC.
15190LTCC=${LTCC-"$CC"}
15191
15192# If no C compiler flags were specified, use CFLAGS.
15193LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15194
15195# Allow CC to be a program name with arguments.
15196compiler=$CC
15197
15198# Save the default compiler, since it gets overwritten when the other
15199# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15200compiler_DEFAULT=$CC
15201
15202# save warnings/boilerplate of simple test code
15203ac_outfile=conftest.$ac_objext
15204echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15205eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15206_lt_compiler_boilerplate=`cat conftest.err`
15207$RM conftest*
15208
15209ac_outfile=conftest.$ac_objext
15210echo "$lt_simple_link_test_code" >conftest.$ac_ext
15211eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15212_lt_linker_boilerplate=`cat conftest.err`
15213$RM -r conftest*
15214
15215
15216## CAVEAT EMPTOR:
15217## There is no encapsulation within the following macros, do not change
15218## the running order or otherwise move them around unless you know exactly
15219## what you are doing...
15220if test -n "$compiler"; then
15221
15222lt_prog_compiler_no_builtin_flag=
15223
15224if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015225 case $cc_basename in
15226 nvcc*)
15227 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15228 *)
15229 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15230 esac
cristy73bd4a52010-10-05 11:24:23 +000015231
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15233$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015234if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015235 $as_echo_n "(cached) " >&6
15236else
15237 lt_cv_prog_compiler_rtti_exceptions=no
15238 ac_outfile=conftest.$ac_objext
15239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15240 lt_compiler_flag="-fno-rtti -fno-exceptions"
15241 # Insert the option either (1) after the last *FLAGS variable, or
15242 # (2) before a word containing "conftest.", or (3) at the end.
15243 # Note that $ac_compile itself does not contain backslashes and begins
15244 # with a dollar sign (not a hyphen), so the echo should work correctly.
15245 # The option is referenced via a variable to avoid confusing sed.
15246 lt_compile=`echo "$ac_compile" | $SED \
15247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15249 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015251 (eval "$lt_compile" 2>conftest.err)
15252 ac_status=$?
15253 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015255 if (exit $ac_status) && test -s "$ac_outfile"; then
15256 # The compiler can only warn and ignore the option if not recognized
15257 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15261 lt_cv_prog_compiler_rtti_exceptions=yes
15262 fi
15263 fi
15264 $RM conftest*
15265
15266fi
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15268$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15269
15270if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15271 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15272else
15273 :
15274fi
15275
15276fi
15277
15278
15279
15280
15281
15282
15283 lt_prog_compiler_wl=
15284lt_prog_compiler_pic=
15285lt_prog_compiler_static=
15286
cristy73bd4a52010-10-05 11:24:23 +000015287
15288 if test "$GCC" = yes; then
15289 lt_prog_compiler_wl='-Wl,'
15290 lt_prog_compiler_static='-static'
15291
15292 case $host_os in
15293 aix*)
15294 # All AIX code is PIC.
15295 if test "$host_cpu" = ia64; then
15296 # AIX 5 now supports IA64 processor
15297 lt_prog_compiler_static='-Bstatic'
15298 fi
15299 ;;
15300
15301 amigaos*)
15302 case $host_cpu in
15303 powerpc)
15304 # see comment about AmigaOS4 .so support
15305 lt_prog_compiler_pic='-fPIC'
15306 ;;
15307 m68k)
15308 # FIXME: we need at least 68020 code to build shared libraries, but
15309 # adding the `-m68020' flag to GCC prevents building anything better,
15310 # like `-m68040'.
15311 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15312 ;;
15313 esac
15314 ;;
15315
15316 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15317 # PIC is the default for these OSes.
15318 ;;
15319
15320 mingw* | cygwin* | pw32* | os2* | cegcc*)
15321 # This hack is so that the source file can tell whether it is being
15322 # built for inclusion in a dll (and should export symbols for example).
15323 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15324 # (--disable-auto-import) libraries
15325 lt_prog_compiler_pic='-DDLL_EXPORT'
15326 ;;
15327
15328 darwin* | rhapsody*)
15329 # PIC is the default on this platform
15330 # Common symbols not allowed in MH_DYLIB files
15331 lt_prog_compiler_pic='-fno-common'
15332 ;;
15333
cristy0c60a692010-11-04 01:09:47 +000015334 haiku*)
15335 # PIC is the default for Haiku.
15336 # The "-static" flag exists, but is broken.
15337 lt_prog_compiler_static=
15338 ;;
15339
cristy73bd4a52010-10-05 11:24:23 +000015340 hpux*)
15341 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15342 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15343 # sets the default TLS model and affects inlining.
15344 case $host_cpu in
15345 hppa*64*)
15346 # +Z the default
15347 ;;
15348 *)
15349 lt_prog_compiler_pic='-fPIC'
15350 ;;
15351 esac
15352 ;;
15353
15354 interix[3-9]*)
15355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15356 # Instead, we relocate shared libraries at runtime.
15357 ;;
15358
15359 msdosdjgpp*)
15360 # Just because we use GCC doesn't mean we suddenly get shared libraries
15361 # on systems that don't support them.
15362 lt_prog_compiler_can_build_shared=no
15363 enable_shared=no
15364 ;;
15365
15366 *nto* | *qnx*)
15367 # QNX uses GNU C++, but need to define -shared option too, otherwise
15368 # it will coredump.
15369 lt_prog_compiler_pic='-fPIC -shared'
15370 ;;
15371
15372 sysv4*MP*)
15373 if test -d /usr/nec; then
15374 lt_prog_compiler_pic=-Kconform_pic
15375 fi
15376 ;;
15377
15378 *)
15379 lt_prog_compiler_pic='-fPIC'
15380 ;;
15381 esac
cristy0c60a692010-11-04 01:09:47 +000015382
15383 case $cc_basename in
15384 nvcc*) # Cuda Compiler Driver 2.2
15385 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015386 if test -n "$lt_prog_compiler_pic"; then
15387 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15388 fi
cristy0c60a692010-11-04 01:09:47 +000015389 ;;
15390 esac
cristy73bd4a52010-10-05 11:24:23 +000015391 else
15392 # PORTME Check for flag to pass linker flags through the system compiler.
15393 case $host_os in
15394 aix*)
15395 lt_prog_compiler_wl='-Wl,'
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 now supports IA64 processor
15398 lt_prog_compiler_static='-Bstatic'
15399 else
15400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15401 fi
15402 ;;
15403
15404 mingw* | cygwin* | pw32* | os2* | cegcc*)
15405 # This hack is so that the source file can tell whether it is being
15406 # built for inclusion in a dll (and should export symbols for example).
15407 lt_prog_compiler_pic='-DDLL_EXPORT'
15408 ;;
15409
15410 hpux9* | hpux10* | hpux11*)
15411 lt_prog_compiler_wl='-Wl,'
15412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15413 # not for PA HP-UX.
15414 case $host_cpu in
15415 hppa*64*|ia64*)
15416 # +Z the default
15417 ;;
15418 *)
15419 lt_prog_compiler_pic='+Z'
15420 ;;
15421 esac
15422 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15423 lt_prog_compiler_static='${wl}-a ${wl}archive'
15424 ;;
15425
15426 irix5* | irix6* | nonstopux*)
15427 lt_prog_compiler_wl='-Wl,'
15428 # PIC (with -KPIC) is the default.
15429 lt_prog_compiler_static='-non_shared'
15430 ;;
15431
cristy0c60a692010-11-04 01:09:47 +000015432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015433 case $cc_basename in
15434 # old Intel for x86_64 which still supported -KPIC.
15435 ecc*)
15436 lt_prog_compiler_wl='-Wl,'
15437 lt_prog_compiler_pic='-KPIC'
15438 lt_prog_compiler_static='-static'
15439 ;;
15440 # icc used to be incompatible with GCC.
15441 # ICC 10 doesn't accept -KPIC any more.
15442 icc* | ifort*)
15443 lt_prog_compiler_wl='-Wl,'
15444 lt_prog_compiler_pic='-fPIC'
15445 lt_prog_compiler_static='-static'
15446 ;;
15447 # Lahey Fortran 8.1.
15448 lf95*)
15449 lt_prog_compiler_wl='-Wl,'
15450 lt_prog_compiler_pic='--shared'
15451 lt_prog_compiler_static='--static'
15452 ;;
cristyda16f162011-02-19 23:52:17 +000015453 nagfor*)
15454 # NAG Fortran compiler
15455 lt_prog_compiler_wl='-Wl,-Wl,,'
15456 lt_prog_compiler_pic='-PIC'
15457 lt_prog_compiler_static='-Bstatic'
15458 ;;
cristy0c60a692010-11-04 01:09:47 +000015459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015460 # Portland Group compilers (*not* the Pentium gcc compiler,
15461 # which looks to be a dead project)
15462 lt_prog_compiler_wl='-Wl,'
15463 lt_prog_compiler_pic='-fpic'
15464 lt_prog_compiler_static='-Bstatic'
15465 ;;
15466 ccc*)
15467 lt_prog_compiler_wl='-Wl,'
15468 # All Alpha code is PIC.
15469 lt_prog_compiler_static='-non_shared'
15470 ;;
cristy0c60a692010-11-04 01:09:47 +000015471 xl* | bgxl* | bgf* | mpixl*)
15472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015473 lt_prog_compiler_wl='-Wl,'
15474 lt_prog_compiler_pic='-qpic'
15475 lt_prog_compiler_static='-qstaticlink'
15476 ;;
15477 *)
15478 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015479 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015480 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15481 lt_prog_compiler_pic='-KPIC'
15482 lt_prog_compiler_static='-Bstatic'
15483 lt_prog_compiler_wl=''
15484 ;;
cristy99bd5232011-12-07 14:38:20 +000015485 *Sun\ F* | *Sun*Fortran*)
15486 lt_prog_compiler_pic='-KPIC'
15487 lt_prog_compiler_static='-Bstatic'
15488 lt_prog_compiler_wl='-Qoption ld '
15489 ;;
cristy73bd4a52010-10-05 11:24:23 +000015490 *Sun\ C*)
15491 # Sun C 5.9
15492 lt_prog_compiler_pic='-KPIC'
15493 lt_prog_compiler_static='-Bstatic'
15494 lt_prog_compiler_wl='-Wl,'
15495 ;;
cristy99bd5232011-12-07 14:38:20 +000015496 *Intel*\ [CF]*Compiler*)
15497 lt_prog_compiler_wl='-Wl,'
15498 lt_prog_compiler_pic='-fPIC'
15499 lt_prog_compiler_static='-static'
15500 ;;
15501 *Portland\ Group*)
15502 lt_prog_compiler_wl='-Wl,'
15503 lt_prog_compiler_pic='-fpic'
15504 lt_prog_compiler_static='-Bstatic'
15505 ;;
cristy73bd4a52010-10-05 11:24:23 +000015506 esac
15507 ;;
15508 esac
15509 ;;
15510
15511 newsos6)
15512 lt_prog_compiler_pic='-KPIC'
15513 lt_prog_compiler_static='-Bstatic'
15514 ;;
15515
15516 *nto* | *qnx*)
15517 # QNX uses GNU C++, but need to define -shared option too, otherwise
15518 # it will coredump.
15519 lt_prog_compiler_pic='-fPIC -shared'
15520 ;;
15521
15522 osf3* | osf4* | osf5*)
15523 lt_prog_compiler_wl='-Wl,'
15524 # All OSF/1 code is PIC.
15525 lt_prog_compiler_static='-non_shared'
15526 ;;
15527
15528 rdos*)
15529 lt_prog_compiler_static='-non_shared'
15530 ;;
15531
15532 solaris*)
15533 lt_prog_compiler_pic='-KPIC'
15534 lt_prog_compiler_static='-Bstatic'
15535 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015536 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015537 lt_prog_compiler_wl='-Qoption ld ';;
15538 *)
15539 lt_prog_compiler_wl='-Wl,';;
15540 esac
15541 ;;
15542
15543 sunos4*)
15544 lt_prog_compiler_wl='-Qoption ld '
15545 lt_prog_compiler_pic='-PIC'
15546 lt_prog_compiler_static='-Bstatic'
15547 ;;
15548
15549 sysv4 | sysv4.2uw2* | sysv4.3*)
15550 lt_prog_compiler_wl='-Wl,'
15551 lt_prog_compiler_pic='-KPIC'
15552 lt_prog_compiler_static='-Bstatic'
15553 ;;
15554
15555 sysv4*MP*)
15556 if test -d /usr/nec ;then
15557 lt_prog_compiler_pic='-Kconform_pic'
15558 lt_prog_compiler_static='-Bstatic'
15559 fi
15560 ;;
15561
15562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15563 lt_prog_compiler_wl='-Wl,'
15564 lt_prog_compiler_pic='-KPIC'
15565 lt_prog_compiler_static='-Bstatic'
15566 ;;
15567
15568 unicos*)
15569 lt_prog_compiler_wl='-Wl,'
15570 lt_prog_compiler_can_build_shared=no
15571 ;;
15572
15573 uts4*)
15574 lt_prog_compiler_pic='-pic'
15575 lt_prog_compiler_static='-Bstatic'
15576 ;;
15577
15578 *)
15579 lt_prog_compiler_can_build_shared=no
15580 ;;
15581 esac
15582 fi
15583
15584case $host_os in
15585 # For platforms which do not support PIC, -DPIC is meaningless:
15586 *djgpp*)
15587 lt_prog_compiler_pic=
15588 ;;
15589 *)
15590 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15591 ;;
15592esac
cristy73bd4a52010-10-05 11:24:23 +000015593
cristyda16f162011-02-19 23:52:17 +000015594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15595$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15596if ${lt_cv_prog_compiler_pic+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598else
15599 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15600fi
15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15602$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15603lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015604
15605#
15606# Check to make sure the PIC flag actually works.
15607#
15608if test -n "$lt_prog_compiler_pic"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15610$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015611if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015612 $as_echo_n "(cached) " >&6
15613else
15614 lt_cv_prog_compiler_pic_works=no
15615 ac_outfile=conftest.$ac_objext
15616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15618 # Insert the option either (1) after the last *FLAGS variable, or
15619 # (2) before a word containing "conftest.", or (3) at the end.
15620 # Note that $ac_compile itself does not contain backslashes and begins
15621 # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 # The option is referenced via a variable to avoid confusing sed.
15623 lt_compile=`echo "$ac_compile" | $SED \
15624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015628 (eval "$lt_compile" 2>conftest.err)
15629 ac_status=$?
15630 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015632 if (exit $ac_status) && test -s "$ac_outfile"; then
15633 # The compiler can only warn and ignore the option if not recognized
15634 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15638 lt_cv_prog_compiler_pic_works=yes
15639 fi
15640 fi
15641 $RM conftest*
15642
15643fi
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15645$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15646
15647if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15648 case $lt_prog_compiler_pic in
15649 "" | " "*) ;;
15650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15651 esac
15652else
15653 lt_prog_compiler_pic=
15654 lt_prog_compiler_can_build_shared=no
15655fi
15656
15657fi
15658
15659
15660
15661
15662
15663
cristyda16f162011-02-19 23:52:17 +000015664
15665
15666
15667
15668
cristy73bd4a52010-10-05 11:24:23 +000015669#
15670# Check to make sure the static flag actually works.
15671#
15672wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015675if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015676 $as_echo_n "(cached) " >&6
15677else
15678 lt_cv_prog_compiler_static_works=no
15679 save_LDFLAGS="$LDFLAGS"
15680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15683 # The linker can only warn and ignore the option if not recognized
15684 # So say no if there are warnings
15685 if test -s conftest.err; then
15686 # Append any errors to the config.log.
15687 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15690 if diff conftest.exp conftest.er2 >/dev/null; then
15691 lt_cv_prog_compiler_static_works=yes
15692 fi
15693 else
15694 lt_cv_prog_compiler_static_works=yes
15695 fi
15696 fi
15697 $RM -r conftest*
15698 LDFLAGS="$save_LDFLAGS"
15699
15700fi
15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15702$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15703
15704if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15705 :
15706else
15707 lt_prog_compiler_static=
15708fi
15709
15710
15711
15712
15713
15714
15715
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015718if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015719 $as_echo_n "(cached) " >&6
15720else
15721 lt_cv_prog_compiler_c_o=no
15722 $RM -r conftest 2>/dev/null
15723 mkdir conftest
15724 cd conftest
15725 mkdir out
15726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727
15728 lt_compiler_flag="-o out/conftest2.$ac_objext"
15729 # Insert the option either (1) after the last *FLAGS variable, or
15730 # (2) before a word containing "conftest.", or (3) at the end.
15731 # Note that $ac_compile itself does not contain backslashes and begins
15732 # with a dollar sign (not a hyphen), so the echo should work correctly.
15733 lt_compile=`echo "$ac_compile" | $SED \
15734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15736 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015738 (eval "$lt_compile" 2>out/conftest.err)
15739 ac_status=$?
15740 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743 then
15744 # The compiler can only warn and ignore the option if not recognized
15745 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15749 lt_cv_prog_compiler_c_o=yes
15750 fi
15751 fi
15752 chmod u+w . 2>&5
15753 $RM conftest*
15754 # SGI C++ compiler will create directory out/ii_files/ for
15755 # template instantiation
15756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15757 $RM out/* && rmdir out
15758 cd ..
15759 $RM -r conftest
15760 $RM conftest*
15761
15762fi
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15764$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15765
15766
15767
15768
15769
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015773if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015774 $as_echo_n "(cached) " >&6
15775else
15776 lt_cv_prog_compiler_c_o=no
15777 $RM -r conftest 2>/dev/null
15778 mkdir conftest
15779 cd conftest
15780 mkdir out
15781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15782
15783 lt_compiler_flag="-o out/conftest2.$ac_objext"
15784 # Insert the option either (1) after the last *FLAGS variable, or
15785 # (2) before a word containing "conftest.", or (3) at the end.
15786 # Note that $ac_compile itself does not contain backslashes and begins
15787 # with a dollar sign (not a hyphen), so the echo should work correctly.
15788 lt_compile=`echo "$ac_compile" | $SED \
15789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15791 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015793 (eval "$lt_compile" 2>out/conftest.err)
15794 ac_status=$?
15795 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15798 then
15799 # The compiler can only warn and ignore the option if not recognized
15800 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15804 lt_cv_prog_compiler_c_o=yes
15805 fi
15806 fi
15807 chmod u+w . 2>&5
15808 $RM conftest*
15809 # SGI C++ compiler will create directory out/ii_files/ for
15810 # template instantiation
15811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15812 $RM out/* && rmdir out
15813 cd ..
15814 $RM -r conftest
15815 $RM conftest*
15816
15817fi
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15819$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15820
15821
15822
15823
15824hard_links="nottested"
15825if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15826 # do not overwrite the value of need_locks provided by the user
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15828$as_echo_n "checking if we can lock with hard links... " >&6; }
15829 hard_links=yes
15830 $RM conftest*
15831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15832 touch conftest.a
15833 ln conftest.a conftest.b 2>&5 || hard_links=no
15834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15836$as_echo "$hard_links" >&6; }
15837 if test "$hard_links" = no; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15839$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15840 need_locks=warn
15841 fi
15842else
15843 need_locks=no
15844fi
15845
15846
15847
15848
15849
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15853
15854 runpath_var=
15855 allow_undefined_flag=
15856 always_export_symbols=no
15857 archive_cmds=
15858 archive_expsym_cmds=
15859 compiler_needs_object=no
15860 enable_shared_with_static_runtimes=no
15861 export_dynamic_flag_spec=
15862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15863 hardcode_automatic=no
15864 hardcode_direct=no
15865 hardcode_direct_absolute=no
15866 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015867 hardcode_libdir_separator=
15868 hardcode_minus_L=no
15869 hardcode_shlibpath_var=unsupported
15870 inherit_rpath=no
15871 link_all_deplibs=unknown
15872 module_cmds=
15873 module_expsym_cmds=
15874 old_archive_from_new_cmds=
15875 old_archive_from_expsyms_cmds=
15876 thread_safe_flag_spec=
15877 whole_archive_flag_spec=
15878 # include_expsyms should be a list of space-separated symbols to be *always*
15879 # included in the symbol list
15880 include_expsyms=
15881 # exclude_expsyms can be an extended regexp of symbols to exclude
15882 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15883 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15884 # as well as any symbol that contains `d'.
15885 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15887 # platforms (ab)use it in PIC code, but their linkers get confused if
15888 # the symbol is explicitly referenced. Since portable code cannot
15889 # rely on this symbol name, it's probably fine to never include it in
15890 # preloaded symbol tables.
15891 # Exclude shared library initialization/finalization symbols.
15892 extract_expsyms_cmds=
15893
15894 case $host_os in
15895 cygwin* | mingw* | pw32* | cegcc*)
15896 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15897 # When not using gcc, we currently assume that we are using
15898 # Microsoft Visual C++.
15899 if test "$GCC" != yes; then
15900 with_gnu_ld=no
15901 fi
15902 ;;
15903 interix*)
15904 # we just hope/assume this is gcc and not c89 (= MSVC++)
15905 with_gnu_ld=yes
15906 ;;
15907 openbsd*)
15908 with_gnu_ld=no
15909 ;;
15910 esac
15911
15912 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015913
15914 # On some targets, GNU ld is compatible enough with the native linker
15915 # that we're better off using the native interface for both.
15916 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015917 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015918 case $host_os in
15919 aix*)
15920 # The AIX port of GNU ld has always aspired to compatibility
15921 # with the native linker. However, as the warning in the GNU ld
15922 # block says, versions before 2.19.5* couldn't really create working
15923 # shared libraries, regardless of the interface used.
15924 case `$LD -v 2>&1` in
15925 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15926 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15927 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15928 *)
15929 lt_use_gnu_ld_interface=yes
15930 ;;
15931 esac
15932 ;;
15933 *)
15934 lt_use_gnu_ld_interface=yes
15935 ;;
15936 esac
15937 fi
15938
15939 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015940 # If archive_cmds runs LD, not CC, wlarc should be empty
15941 wlarc='${wl}'
15942
15943 # Set some defaults for GNU ld with shared library support. These
15944 # are reset later if shared libraries are not supported. Putting them
15945 # here allows them to be overridden if necessary.
15946 runpath_var=LD_RUN_PATH
15947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15948 export_dynamic_flag_spec='${wl}--export-dynamic'
15949 # ancient GNU ld didn't support --whole-archive et. al.
15950 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15951 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15952 else
15953 whole_archive_flag_spec=
15954 fi
15955 supports_anon_versioning=no
15956 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015957 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15961 *\ 2.11.*) ;; # other 2.11 versions
15962 *) supports_anon_versioning=yes ;;
15963 esac
15964
15965 # See if GNU ld supports shared libraries.
15966 case $host_os in
15967 aix[3-9]*)
15968 # On AIX/PPC, the GNU linker is very broken
15969 if test "$host_cpu" != ia64; then
15970 ld_shlibs=no
15971 cat <<_LT_EOF 1>&2
15972
cristy0c60a692010-11-04 01:09:47 +000015973*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015974*** to be unable to reliably create shared libraries on AIX.
15975*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015976*** really care for shared libraries, you may want to install binutils
15977*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15978*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015979
15980_LT_EOF
15981 fi
15982 ;;
15983
15984 amigaos*)
15985 case $host_cpu in
15986 powerpc)
15987 # see comment about AmigaOS4 .so support
15988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds=''
15990 ;;
15991 m68k)
15992 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)'
15993 hardcode_libdir_flag_spec='-L$libdir'
15994 hardcode_minus_L=yes
15995 ;;
15996 esac
15997 ;;
15998
15999 beos*)
16000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16001 allow_undefined_flag=unsupported
16002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16003 # support --undefined. This deserves some investigation. FIXME
16004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 else
16006 ld_shlibs=no
16007 fi
16008 ;;
16009
16010 cygwin* | mingw* | pw32* | cegcc*)
16011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16012 # as there is no search path for DLLs.
16013 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000016014 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000016015 allow_undefined_flag=unsupported
16016 always_export_symbols=no
16017 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000016018 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'
16019 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 +000016020
16021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16023 # If the export-symbols file already is a .def file (1st line
16024 # is EXPORTS), use it as is; otherwise, prepend...
16025 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16026 cp $export_symbols $output_objdir/$soname.def;
16027 else
16028 echo EXPORTS > $output_objdir/$soname.def;
16029 cat $export_symbols >> $output_objdir/$soname.def;
16030 fi~
16031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16032 else
16033 ld_shlibs=no
16034 fi
16035 ;;
16036
cristy0c60a692010-11-04 01:09:47 +000016037 haiku*)
16038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 link_all_deplibs=yes
16040 ;;
16041
cristy73bd4a52010-10-05 11:24:23 +000016042 interix[3-9]*)
16043 hardcode_direct=no
16044 hardcode_shlibpath_var=no
16045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16046 export_dynamic_flag_spec='${wl}-E'
16047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16048 # Instead, shared libraries are loaded at an image base (0x10000000 by
16049 # default) and relocated if they conflict, which is a slow very memory
16050 # consuming and fragmenting process. To avoid this, we pick a random,
16051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16052 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16054 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'
16055 ;;
16056
cristy0c60a692010-11-04 01:09:47 +000016057 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000016058 tmp_diet=no
16059 if test "$host_os" = linux-dietlibc; then
16060 case $cc_basename in
16061 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16062 esac
16063 fi
16064 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16065 && test "$tmp_diet" = no
16066 then
cristyda16f162011-02-19 23:52:17 +000016067 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000016068 tmp_sharedflag='-shared'
16069 case $cc_basename,$host_cpu in
16070 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000016071 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 +000016072 tmp_addflag=' $pic_flag'
16073 ;;
cristy0c60a692010-11-04 01:09:47 +000016074 pgf77* | pgf90* | pgf95* | pgfortran*)
16075 # Portland Group f77 and f90 compilers
16076 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 +000016077 tmp_addflag=' $pic_flag -Mnomain' ;;
16078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16079 tmp_addflag=' -i_dynamic' ;;
16080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16081 tmp_addflag=' -i_dynamic -nofor_main' ;;
16082 ifc* | ifort*) # Intel Fortran compiler
16083 tmp_addflag=' -nofor_main' ;;
16084 lf95*) # Lahey Fortran 8.1
16085 whole_archive_flag_spec=
16086 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000016087 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000016088 tmp_sharedflag='-qmkshrobj'
16089 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000016090 nvcc*) # Cuda Compiler Driver 2.2
16091 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'
16092 compiler_needs_object=yes
16093 ;;
cristy73bd4a52010-10-05 11:24:23 +000016094 esac
16095 case `$CC -V 2>&1 | sed 5q` in
16096 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000016097 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 +000016098 compiler_needs_object=yes
16099 tmp_sharedflag='-G' ;;
16100 *Sun\ F*) # Sun Fortran 8.3
16101 tmp_sharedflag='-G' ;;
16102 esac
16103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16104
16105 if test "x$supports_anon_versioning" = xyes; then
16106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16108 echo "local: *; };" >> $output_objdir/$libname.ver~
16109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16110 fi
16111
16112 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000016113 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000016114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000016116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000016117 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016118 if test "x$supports_anon_versioning" = xyes; then
16119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16121 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000016122 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016123 fi
16124 ;;
16125 esac
16126 else
16127 ld_shlibs=no
16128 fi
16129 ;;
16130
16131 netbsd*)
16132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16134 wlarc=
16135 else
cristyda16f162011-02-19 23:52:17 +000016136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 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 +000016138 fi
16139 ;;
16140
16141 solaris*)
16142 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16143 ld_shlibs=no
16144 cat <<_LT_EOF 1>&2
16145
16146*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16147*** create shared libraries on Solaris systems. Therefore, libtool
16148*** is disabling shared libraries support. We urge you to upgrade GNU
16149*** binutils to release 2.9.1 or newer. Another option is to modify
16150*** your PATH or compiler configuration so that the native linker is
16151*** used, and then restart.
16152
16153_LT_EOF
16154 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000016155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 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 +000016157 else
16158 ld_shlibs=no
16159 fi
16160 ;;
16161
16162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16163 case `$LD -v 2>&1` in
16164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16165 ld_shlibs=no
16166 cat <<_LT_EOF 1>&2
16167
16168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16169*** reliably create shared libraries on SCO systems. Therefore, libtool
16170*** is disabling shared libraries support. We urge you to upgrade GNU
16171*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16172*** your PATH or compiler configuration so that the native linker is
16173*** used, and then restart.
16174
16175_LT_EOF
16176 ;;
16177 *)
16178 # For security reasons, it is highly recommended that you always
16179 # use absolute paths for naming shared libraries, and exclude the
16180 # DT_RUNPATH tag from executables and libraries. But doing so
16181 # requires that you compile everything twice, which is a pain.
16182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16186 else
16187 ld_shlibs=no
16188 fi
16189 ;;
16190 esac
16191 ;;
16192
16193 sunos4*)
16194 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16195 wlarc=
16196 hardcode_direct=yes
16197 hardcode_shlibpath_var=no
16198 ;;
16199
16200 *)
16201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000016202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16203 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 +000016204 else
16205 ld_shlibs=no
16206 fi
16207 ;;
16208 esac
16209
16210 if test "$ld_shlibs" = no; then
16211 runpath_var=
16212 hardcode_libdir_flag_spec=
16213 export_dynamic_flag_spec=
16214 whole_archive_flag_spec=
16215 fi
16216 else
16217 # PORTME fill in a description of your system's linker (not GNU ld)
16218 case $host_os in
16219 aix3*)
16220 allow_undefined_flag=unsupported
16221 always_export_symbols=yes
16222 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'
16223 # Note: this linker hardcodes the directories in LIBPATH if there
16224 # are no directories specified by -L.
16225 hardcode_minus_L=yes
16226 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16227 # Neither direct hardcoding nor static linking is supported with a
16228 # broken collect2.
16229 hardcode_direct=unsupported
16230 fi
16231 ;;
16232
16233 aix[4-9]*)
16234 if test "$host_cpu" = ia64; then
16235 # On IA64, the linker does run time linking by default, so we don't
16236 # have to do anything special.
16237 aix_use_runtimelinking=no
16238 exp_sym_flag='-Bexport'
16239 no_entry_flag=""
16240 else
16241 # If we're using GNU nm, then we don't want the "-C" option.
16242 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000016243 # Also, AIX nm treats weak defined symbols like other global
16244 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000016245 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000016246 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 +000016247 else
16248 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'
16249 fi
16250 aix_use_runtimelinking=no
16251
16252 # Test if we are trying to use run time linking or normal
16253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254 # need to do runtime linking.
16255 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16256 for ld_flag in $LDFLAGS; do
16257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16258 aix_use_runtimelinking=yes
16259 break
16260 fi
16261 done
16262 ;;
16263 esac
16264
16265 exp_sym_flag='-bexport'
16266 no_entry_flag='-bnoentry'
16267 fi
16268
16269 # When large executables or shared objects are built, AIX ld can
16270 # have problems creating the table of contents. If linking a library
16271 # or program results in "error TOC overflow" add -mminimal-toc to
16272 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16273 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16274
16275 archive_cmds=''
16276 hardcode_direct=yes
16277 hardcode_direct_absolute=yes
16278 hardcode_libdir_separator=':'
16279 link_all_deplibs=yes
16280 file_list_spec='${wl}-f,'
16281
16282 if test "$GCC" = yes; then
16283 case $host_os in aix4.[012]|aix4.[012].*)
16284 # We only want to do this on AIX 4.2 and lower, the check
16285 # below for broken collect2 doesn't work under 4.3+
16286 collect2name=`${CC} -print-prog-name=collect2`
16287 if test -f "$collect2name" &&
16288 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16289 then
16290 # We have reworked collect2
16291 :
16292 else
16293 # We have old collect2
16294 hardcode_direct=unsupported
16295 # It fails to find uninstalled libraries when the uninstalled
16296 # path is not listed in the libpath. Setting hardcode_minus_L
16297 # to unsupported forces relinking
16298 hardcode_minus_L=yes
16299 hardcode_libdir_flag_spec='-L$libdir'
16300 hardcode_libdir_separator=
16301 fi
16302 ;;
16303 esac
16304 shared_flag='-shared'
16305 if test "$aix_use_runtimelinking" = yes; then
16306 shared_flag="$shared_flag "'${wl}-G'
16307 fi
16308 else
16309 # not using gcc
16310 if test "$host_cpu" = ia64; then
16311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16312 # chokes on -Wl,-G. The following line is correct:
16313 shared_flag='-G'
16314 else
16315 if test "$aix_use_runtimelinking" = yes; then
16316 shared_flag='${wl}-G'
16317 else
16318 shared_flag='${wl}-bM:SRE'
16319 fi
16320 fi
16321 fi
16322
16323 export_dynamic_flag_spec='${wl}-bexpall'
16324 # It seems that -bexpall does not export symbols beginning with
16325 # underscore (_), so it is better to generate a list of symbols to export.
16326 always_export_symbols=yes
16327 if test "$aix_use_runtimelinking" = yes; then
16328 # Warning - without using the other runtime loading flags (-brtl),
16329 # -berok will link without error, but may produce a broken library.
16330 allow_undefined_flag='-berok'
16331 # Determine the default libpath from the value encoded in an
16332 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016333 if test "${lt_cv_aix_libpath+set}" = set; then
16334 aix_libpath=$lt_cv_aix_libpath
16335else
16336 if ${lt_cv_aix_libpath_+:} false; then :
16337 $as_echo_n "(cached) " >&6
16338else
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016340/* end confdefs.h. */
16341
16342int
16343main ()
16344{
16345
16346 ;
16347 return 0;
16348}
16349_ACEOF
16350if ac_fn_c_try_link "$LINENO"; then :
16351
cristyda16f162011-02-19 23:52:17 +000016352 lt_aix_libpath_sed='
16353 /Import File Strings/,/^$/ {
16354 /^0/ {
16355 s/^0 *\([^ ]*\) *$/\1/
16356 p
16357 }
16358 }'
16359 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16360 # Check for a 64-bit object if we didn't find anything.
16361 if test -z "$lt_cv_aix_libpath_"; then
16362 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16363 fi
cristy73bd4a52010-10-05 11:24:23 +000016364fi
16365rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016367 if test -z "$lt_cv_aix_libpath_"; then
16368 lt_cv_aix_libpath_="/usr/lib:/lib"
16369 fi
16370
16371fi
16372
16373 aix_libpath=$lt_cv_aix_libpath_
16374fi
cristy73bd4a52010-10-05 11:24:23 +000016375
16376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000016377 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 +000016378 else
16379 if test "$host_cpu" = ia64; then
16380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16381 allow_undefined_flag="-z nodefs"
16382 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"
16383 else
16384 # Determine the default libpath from the value encoded in an
16385 # empty executable.
cristyda16f162011-02-19 23:52:17 +000016386 if test "${lt_cv_aix_libpath+set}" = set; then
16387 aix_libpath=$lt_cv_aix_libpath
16388else
16389 if ${lt_cv_aix_libpath_+:} false; then :
16390 $as_echo_n "(cached) " >&6
16391else
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016393/* end confdefs.h. */
16394
16395int
16396main ()
16397{
16398
16399 ;
16400 return 0;
16401}
16402_ACEOF
16403if ac_fn_c_try_link "$LINENO"; then :
16404
cristyda16f162011-02-19 23:52:17 +000016405 lt_aix_libpath_sed='
16406 /Import File Strings/,/^$/ {
16407 /^0/ {
16408 s/^0 *\([^ ]*\) *$/\1/
16409 p
16410 }
16411 }'
16412 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16413 # Check for a 64-bit object if we didn't find anything.
16414 if test -z "$lt_cv_aix_libpath_"; then
16415 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16416 fi
cristy73bd4a52010-10-05 11:24:23 +000016417fi
16418rm -f core conftest.err conftest.$ac_objext \
16419 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016420 if test -z "$lt_cv_aix_libpath_"; then
16421 lt_cv_aix_libpath_="/usr/lib:/lib"
16422 fi
16423
16424fi
16425
16426 aix_libpath=$lt_cv_aix_libpath_
16427fi
cristy73bd4a52010-10-05 11:24:23 +000016428
16429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16430 # Warning - without using the other run time loading flags,
16431 # -berok will link without error, but may produce a broken library.
16432 no_undefined_flag=' ${wl}-bernotok'
16433 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016434 if test "$with_gnu_ld" = yes; then
16435 # We only use this code for GNU lds that support --whole-archive.
16436 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16437 else
16438 # Exported symbols can be pulled into shared objects from archives
16439 whole_archive_flag_spec='$convenience'
16440 fi
cristy73bd4a52010-10-05 11:24:23 +000016441 archive_cmds_need_lc=yes
16442 # This is similar to how AIX traditionally builds its shared libraries.
16443 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'
16444 fi
16445 fi
16446 ;;
16447
16448 amigaos*)
16449 case $host_cpu in
16450 powerpc)
16451 # see comment about AmigaOS4 .so support
16452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16453 archive_expsym_cmds=''
16454 ;;
16455 m68k)
16456 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)'
16457 hardcode_libdir_flag_spec='-L$libdir'
16458 hardcode_minus_L=yes
16459 ;;
16460 esac
16461 ;;
16462
16463 bsdi[45]*)
16464 export_dynamic_flag_spec=-rdynamic
16465 ;;
16466
16467 cygwin* | mingw* | pw32* | cegcc*)
16468 # When not using gcc, we currently assume that we are using
16469 # Microsoft Visual C++.
16470 # hardcode_libdir_flag_spec is actually meaningless, as there is
16471 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016472 case $cc_basename in
16473 cl*)
16474 # Native MSVC
16475 hardcode_libdir_flag_spec=' '
16476 allow_undefined_flag=unsupported
16477 always_export_symbols=yes
16478 file_list_spec='@'
16479 # Tell ltmain to make .lib files, not .a files.
16480 libext=lib
16481 # Tell ltmain to make .dll files, not .so files.
16482 shrext_cmds=".dll"
16483 # FIXME: Setting linknames here is a bad hack.
16484 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16485 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16486 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16487 else
16488 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16489 fi~
16490 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16491 linknames='
16492 # The linker will not automatically build a static lib if we build a DLL.
16493 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16494 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016495 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016496 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16497 # Don't use ranlib
16498 old_postinstall_cmds='chmod 644 $oldlib'
16499 postlink_cmds='lt_outputfile="@OUTPUT@"~
16500 lt_tool_outputfile="@TOOL_OUTPUT@"~
16501 case $lt_outputfile in
16502 *.exe|*.EXE) ;;
16503 *)
16504 lt_outputfile="$lt_outputfile.exe"
16505 lt_tool_outputfile="$lt_tool_outputfile.exe"
16506 ;;
16507 esac~
16508 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16509 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16510 $RM "$lt_outputfile.manifest";
16511 fi'
16512 ;;
16513 *)
16514 # Assume MSVC wrapper
16515 hardcode_libdir_flag_spec=' '
16516 allow_undefined_flag=unsupported
16517 # Tell ltmain to make .lib files, not .a files.
16518 libext=lib
16519 # Tell ltmain to make .dll files, not .so files.
16520 shrext_cmds=".dll"
16521 # FIXME: Setting linknames here is a bad hack.
16522 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16523 # The linker will automatically build a .lib file if we build a DLL.
16524 old_archive_from_new_cmds='true'
16525 # FIXME: Should let the user specify the lib program.
16526 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16527 enable_shared_with_static_runtimes=yes
16528 ;;
16529 esac
cristy73bd4a52010-10-05 11:24:23 +000016530 ;;
16531
16532 darwin* | rhapsody*)
16533
16534
16535 archive_cmds_need_lc=no
16536 hardcode_direct=no
16537 hardcode_automatic=yes
16538 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016539 if test "$lt_cv_ld_force_load" = "yes"; then
16540 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 +000016541
cristy0c60a692010-11-04 01:09:47 +000016542 else
16543 whole_archive_flag_spec=''
16544 fi
cristy73bd4a52010-10-05 11:24:23 +000016545 link_all_deplibs=yes
16546 allow_undefined_flag="$_lt_dar_allow_undefined"
16547 case $cc_basename in
16548 ifort*) _lt_dar_can_shared=yes ;;
16549 *) _lt_dar_can_shared=$GCC ;;
16550 esac
16551 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016552 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016553 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16554 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16555 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}"
16556 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}"
16557
16558 else
16559 ld_shlibs=no
16560 fi
16561
16562 ;;
16563
16564 dgux*)
16565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_libdir_flag_spec='-L$libdir'
16567 hardcode_shlibpath_var=no
16568 ;;
16569
cristy73bd4a52010-10-05 11:24:23 +000016570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16571 # support. Future versions do this automatically, but an explicit c++rt0.o
16572 # does not break anything, and helps significantly (at the cost of a little
16573 # extra space).
16574 freebsd2.2*)
16575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16576 hardcode_libdir_flag_spec='-R$libdir'
16577 hardcode_direct=yes
16578 hardcode_shlibpath_var=no
16579 ;;
16580
16581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016582 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_direct=yes
16585 hardcode_minus_L=yes
16586 hardcode_shlibpath_var=no
16587 ;;
16588
16589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16590 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016592 hardcode_libdir_flag_spec='-R$libdir'
16593 hardcode_direct=yes
16594 hardcode_shlibpath_var=no
16595 ;;
16596
16597 hpux9*)
16598 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016599 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 +000016600 else
16601 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'
16602 fi
16603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16604 hardcode_libdir_separator=:
16605 hardcode_direct=yes
16606
16607 # hardcode_minus_L: Not really in the search PATH,
16608 # but as the default location of the library.
16609 hardcode_minus_L=yes
16610 export_dynamic_flag_spec='${wl}-E'
16611 ;;
16612
16613 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016615 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 +000016616 else
16617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16618 fi
16619 if test "$with_gnu_ld" = no; then
16620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016621 hardcode_libdir_separator=:
16622 hardcode_direct=yes
16623 hardcode_direct_absolute=yes
16624 export_dynamic_flag_spec='${wl}-E'
16625 # hardcode_minus_L: Not really in the search PATH,
16626 # but as the default location of the library.
16627 hardcode_minus_L=yes
16628 fi
16629 ;;
16630
16631 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016632 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016633 case $host_cpu in
16634 hppa*64*)
16635 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 ;;
16637 ia64*)
cristyda16f162011-02-19 23:52:17 +000016638 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016639 ;;
16640 *)
cristyda16f162011-02-19 23:52:17 +000016641 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 +000016642 ;;
16643 esac
16644 else
16645 case $host_cpu in
16646 hppa*64*)
16647 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16648 ;;
16649 ia64*)
16650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16651 ;;
16652 *)
cristy0c60a692010-11-04 01:09:47 +000016653
16654 # Older versions of the 11.00 compiler do not understand -b yet
16655 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16657$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016658if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016659 $as_echo_n "(cached) " >&6
16660else
16661 lt_cv_prog_compiler__b=no
16662 save_LDFLAGS="$LDFLAGS"
16663 LDFLAGS="$LDFLAGS -b"
16664 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16666 # The linker can only warn and ignore the option if not recognized
16667 # So say no if there are warnings
16668 if test -s conftest.err; then
16669 # Append any errors to the config.log.
16670 cat conftest.err 1>&5
16671 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16673 if diff conftest.exp conftest.er2 >/dev/null; then
16674 lt_cv_prog_compiler__b=yes
16675 fi
16676 else
16677 lt_cv_prog_compiler__b=yes
16678 fi
16679 fi
16680 $RM -r conftest*
16681 LDFLAGS="$save_LDFLAGS"
16682
16683fi
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16685$as_echo "$lt_cv_prog_compiler__b" >&6; }
16686
16687if test x"$lt_cv_prog_compiler__b" = xyes; then
16688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16689else
16690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16691fi
16692
cristy73bd4a52010-10-05 11:24:23 +000016693 ;;
16694 esac
16695 fi
16696 if test "$with_gnu_ld" = no; then
16697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16698 hardcode_libdir_separator=:
16699
16700 case $host_cpu in
16701 hppa*64*|ia64*)
16702 hardcode_direct=no
16703 hardcode_shlibpath_var=no
16704 ;;
16705 *)
16706 hardcode_direct=yes
16707 hardcode_direct_absolute=yes
16708 export_dynamic_flag_spec='${wl}-E'
16709
16710 # hardcode_minus_L: Not really in the search PATH,
16711 # but as the default location of the library.
16712 hardcode_minus_L=yes
16713 ;;
16714 esac
16715 fi
16716 ;;
16717
16718 irix5* | irix6* | nonstopux*)
16719 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016720 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 +000016721 # Try to use the -exported_symbol ld option, if it does not
16722 # work, assume that -exports_file does not work either and
16723 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016724 # This should be the same for all languages, so no per-tag cache variable.
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16726$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16727if ${lt_cv_irix_exported_symbol+:} false; then :
16728 $as_echo_n "(cached) " >&6
16729else
16730 save_LDFLAGS="$LDFLAGS"
16731 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016733/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016734int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016735_ACEOF
16736if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016737 lt_cv_irix_exported_symbol=yes
16738else
16739 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016740fi
16741rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016743 LDFLAGS="$save_LDFLAGS"
16744fi
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16746$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16747 if test "$lt_cv_irix_exported_symbol" = yes; then
16748 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'
16749 fi
cristy73bd4a52010-10-05 11:24:23 +000016750 else
cristy0c60a692010-11-04 01:09:47 +000016751 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'
16752 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 +000016753 fi
16754 archive_cmds_need_lc='no'
16755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16756 hardcode_libdir_separator=:
16757 inherit_rpath=yes
16758 link_all_deplibs=yes
16759 ;;
16760
16761 netbsd*)
16762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16764 else
16765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16766 fi
16767 hardcode_libdir_flag_spec='-R$libdir'
16768 hardcode_direct=yes
16769 hardcode_shlibpath_var=no
16770 ;;
16771
16772 newsos6)
16773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_direct=yes
16775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16776 hardcode_libdir_separator=:
16777 hardcode_shlibpath_var=no
16778 ;;
16779
16780 *nto* | *qnx*)
16781 ;;
16782
16783 openbsd*)
16784 if test -f /usr/libexec/ld.so; then
16785 hardcode_direct=yes
16786 hardcode_shlibpath_var=no
16787 hardcode_direct_absolute=yes
16788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16792 export_dynamic_flag_spec='${wl}-E'
16793 else
16794 case $host_os in
16795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16797 hardcode_libdir_flag_spec='-R$libdir'
16798 ;;
16799 *)
16800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16802 ;;
16803 esac
16804 fi
16805 else
16806 ld_shlibs=no
16807 fi
16808 ;;
16809
16810 os2*)
16811 hardcode_libdir_flag_spec='-L$libdir'
16812 hardcode_minus_L=yes
16813 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016814 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 +000016815 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16816 ;;
16817
16818 osf3*)
16819 if test "$GCC" = yes; then
16820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016821 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 +000016822 else
16823 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016824 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 +000016825 fi
16826 archive_cmds_need_lc='no'
16827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16828 hardcode_libdir_separator=:
16829 ;;
16830
16831 osf4* | osf5*) # as osf3* with the addition of -msym flag
16832 if test "$GCC" = yes; then
16833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016834 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 +000016835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16836 else
16837 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016838 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 +000016839 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 +000016840 $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 +000016841
16842 # Both c and cxx compiler support -rpath directly
16843 hardcode_libdir_flag_spec='-rpath $libdir'
16844 fi
16845 archive_cmds_need_lc='no'
16846 hardcode_libdir_separator=:
16847 ;;
16848
16849 solaris*)
16850 no_undefined_flag=' -z defs'
16851 if test "$GCC" = yes; then
16852 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016853 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 +000016854 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 +000016855 $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 +000016856 else
16857 case `$CC -V 2>&1` in
16858 *"Compilers 5.0"*)
16859 wlarc=''
16860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16863 ;;
16864 *)
16865 wlarc='${wl}'
16866 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16868 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16869 ;;
16870 esac
16871 fi
16872 hardcode_libdir_flag_spec='-R$libdir'
16873 hardcode_shlibpath_var=no
16874 case $host_os in
16875 solaris2.[0-5] | solaris2.[0-5].*) ;;
16876 *)
16877 # The compiler driver will combine and reorder linker options,
16878 # but understands `-z linker_flag'. GCC discards it without `$wl',
16879 # but is careful enough not to reorder.
16880 # Supported since Solaris 2.6 (maybe 2.5.1?)
16881 if test "$GCC" = yes; then
16882 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16883 else
16884 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16885 fi
16886 ;;
16887 esac
16888 link_all_deplibs=yes
16889 ;;
16890
16891 sunos4*)
16892 if test "x$host_vendor" = xsequent; then
16893 # Use $CC to link under sequent, because it throws in some extra .o
16894 # files that make .init and .fini sections work.
16895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16896 else
16897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16898 fi
16899 hardcode_libdir_flag_spec='-L$libdir'
16900 hardcode_direct=yes
16901 hardcode_minus_L=yes
16902 hardcode_shlibpath_var=no
16903 ;;
16904
16905 sysv4)
16906 case $host_vendor in
16907 sni)
16908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16909 hardcode_direct=yes # is this really true???
16910 ;;
16911 siemens)
16912 ## LD is ld it makes a PLAMLIB
16913 ## CC just makes a GrossModule.
16914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16915 reload_cmds='$CC -r -o $output$reload_objs'
16916 hardcode_direct=no
16917 ;;
16918 motorola)
16919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16921 ;;
16922 esac
16923 runpath_var='LD_RUN_PATH'
16924 hardcode_shlibpath_var=no
16925 ;;
16926
16927 sysv4.3*)
16928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16929 hardcode_shlibpath_var=no
16930 export_dynamic_flag_spec='-Bexport'
16931 ;;
16932
16933 sysv4*MP*)
16934 if test -d /usr/nec; then
16935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_shlibpath_var=no
16937 runpath_var=LD_RUN_PATH
16938 hardcode_runpath_var=yes
16939 ld_shlibs=yes
16940 fi
16941 ;;
16942
16943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16944 no_undefined_flag='${wl}-z,text'
16945 archive_cmds_need_lc=no
16946 hardcode_shlibpath_var=no
16947 runpath_var='LD_RUN_PATH'
16948
16949 if test "$GCC" = yes; then
16950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 else
16953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 fi
16956 ;;
16957
16958 sysv5* | sco3.2v5* | sco5v6*)
16959 # Note: We can NOT use -z defs as we might desire, because we do not
16960 # link with -lc, and that would cause any symbols used from libc to
16961 # always be unresolved, which means just about no library would
16962 # ever link correctly. If we're not using GNU ld we use -z text
16963 # though, which does catch some bad symbols but isn't as heavy-handed
16964 # as -z defs.
16965 no_undefined_flag='${wl}-z,text'
16966 allow_undefined_flag='${wl}-z,nodefs'
16967 archive_cmds_need_lc=no
16968 hardcode_shlibpath_var=no
16969 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16970 hardcode_libdir_separator=':'
16971 link_all_deplibs=yes
16972 export_dynamic_flag_spec='${wl}-Bexport'
16973 runpath_var='LD_RUN_PATH'
16974
16975 if test "$GCC" = yes; then
16976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 else
16979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 fi
16982 ;;
16983
16984 uts4*)
16985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_libdir_flag_spec='-L$libdir'
16987 hardcode_shlibpath_var=no
16988 ;;
16989
16990 *)
16991 ld_shlibs=no
16992 ;;
16993 esac
16994
16995 if test x$host_vendor = xsni; then
16996 case $host in
16997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16998 export_dynamic_flag_spec='${wl}-Blargedynsym'
16999 ;;
17000 esac
17001 fi
17002 fi
17003
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17005$as_echo "$ld_shlibs" >&6; }
17006test "$ld_shlibs" = no && can_build_shared=no
17007
17008with_gnu_ld=$with_gnu_ld
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024#
17025# Do we need to explicitly link libc?
17026#
17027case "x$archive_cmds_need_lc" in
17028x|xyes)
17029 # Assume -lc should be added
17030 archive_cmds_need_lc=yes
17031
17032 if test "$enable_shared" = yes && test "$GCC" = yes; then
17033 case $archive_cmds in
17034 *'~'*)
17035 # FIXME: we may have to deal with multi-command sequences.
17036 ;;
17037 '$CC '*)
17038 # Test whether the compiler implicitly links with -lc since on some
17039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17040 # to ld, don't add -lc before -lgcc.
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17042$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017043if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017044 $as_echo_n "(cached) " >&6
17045else
17046 $RM conftest*
17047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017048
cristy0c60a692010-11-04 01:09:47 +000017049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017050 (eval $ac_compile) 2>&5
17051 ac_status=$?
17052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17053 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017054 soname=conftest
17055 lib=conftest
17056 libobjs=conftest.$ac_objext
17057 deplibs=
17058 wl=$lt_prog_compiler_wl
17059 pic_flag=$lt_prog_compiler_pic
17060 compiler_flags=-v
17061 linker_flags=-v
17062 verstring=
17063 output_objdir=.
17064 libname=conftest
17065 lt_save_allow_undefined_flag=$allow_undefined_flag
17066 allow_undefined_flag=
17067 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 +000017068 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17069 ac_status=$?
17070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17071 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000017072 then
17073 lt_cv_archive_cmds_need_lc=no
17074 else
17075 lt_cv_archive_cmds_need_lc=yes
17076 fi
17077 allow_undefined_flag=$lt_save_allow_undefined_flag
17078 else
17079 cat conftest.err 1>&5
17080 fi
17081 $RM conftest*
17082
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17085$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17086 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000017087 ;;
17088 esac
17089 fi
17090 ;;
17091esac
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
cristy73bd4a52010-10-05 11:24:23 +000017244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17245$as_echo_n "checking dynamic linker characteristics... " >&6; }
17246
17247if test "$GCC" = yes; then
17248 case $host_os in
17249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17250 *) lt_awk_arg="/^libraries:/" ;;
17251 esac
cristy0c60a692010-11-04 01:09:47 +000017252 case $host_os in
17253 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17254 *) lt_sed_strip_eq="s,=/,/,g" ;;
17255 esac
17256 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17257 case $lt_search_path_spec in
17258 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000017259 # if the path contains ";" then we assume it to be the separator
17260 # otherwise default to the standard path separator (i.e. ":") - it is
17261 # assumed that no part of a normal pathname contains ";" but that should
17262 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000017263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17264 ;;
17265 *)
17266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17267 ;;
17268 esac
cristy73bd4a52010-10-05 11:24:23 +000017269 # Ok, now we have the path, separated by spaces, we can step through it
17270 # and add multilib dir if necessary.
17271 lt_tmp_lt_search_path_spec=
17272 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17273 for lt_sys_path in $lt_search_path_spec; do
17274 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17275 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17276 else
17277 test -d "$lt_sys_path" && \
17278 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17279 fi
17280 done
cristy0c60a692010-11-04 01:09:47 +000017281 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000017282BEGIN {RS=" "; FS="/|\n";} {
17283 lt_foo="";
17284 lt_count=0;
17285 for (lt_i = NF; lt_i > 0; lt_i--) {
17286 if ($lt_i != "" && $lt_i != ".") {
17287 if ($lt_i == "..") {
17288 lt_count++;
17289 } else {
17290 if (lt_count == 0) {
17291 lt_foo="/" $lt_i lt_foo;
17292 } else {
17293 lt_count--;
17294 }
17295 }
17296 }
17297 }
17298 if (lt_foo != "") { lt_freq[lt_foo]++; }
17299 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17300}'`
cristy0c60a692010-11-04 01:09:47 +000017301 # AWK program above erroneously prepends '/' to C:/dos/paths
17302 # for these hosts.
17303 case $host_os in
17304 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17305 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17306 esac
17307 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000017308else
17309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17310fi
17311library_names_spec=
17312libname_spec='lib$name'
17313soname_spec=
17314shrext_cmds=".so"
17315postinstall_cmds=
17316postuninstall_cmds=
17317finish_cmds=
17318finish_eval=
17319shlibpath_var=
17320shlibpath_overrides_runpath=unknown
17321version_type=none
17322dynamic_linker="$host_os ld.so"
17323sys_lib_dlsearch_path_spec="/lib /usr/lib"
17324need_lib_prefix=unknown
17325hardcode_into_libs=no
17326
17327# when you set need_version to no, make sure it does not cause -set_version
17328# flags to be left without arguments
17329need_version=unknown
17330
17331case $host_os in
17332aix3*)
cristy99bd5232011-12-07 14:38:20 +000017333 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17335 shlibpath_var=LIBPATH
17336
17337 # AIX 3 has no versioning support, so we append a major version to the name.
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 ;;
17340
17341aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000017342 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017343 need_lib_prefix=no
17344 need_version=no
17345 hardcode_into_libs=yes
17346 if test "$host_cpu" = ia64; then
17347 # AIX 5 supports IA64
17348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 else
17351 # With GCC up to 2.95.x, collect2 would create an import file
17352 # for dependence libraries. The import file would start with
17353 # the line `#! .'. This would cause the generated library to
17354 # depend on `.', always an invalid library. This was fixed in
17355 # development snapshots of GCC prior to 3.0.
17356 case $host_os in
17357 aix4 | aix4.[01] | aix4.[01].*)
17358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17359 echo ' yes '
17360 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17361 :
17362 else
17363 can_build_shared=no
17364 fi
17365 ;;
17366 esac
17367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17368 # soname into executable. Probably we can add versioning support to
17369 # collect2, so additional links can be useful in future.
17370 if test "$aix_use_runtimelinking" = yes; then
17371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17372 # instead of lib<name>.a to let people know that these are not
17373 # typical AIX shared libraries.
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 else
17376 # We preserve .a as extension for shared libraries through AIX4.2
17377 # and later when we are not doing run time linking.
17378 library_names_spec='${libname}${release}.a $libname.a'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 fi
17381 shlibpath_var=LIBPATH
17382 fi
17383 ;;
17384
17385amigaos*)
17386 case $host_cpu in
17387 powerpc)
17388 # Since July 2007 AmigaOS4 officially supports .so libraries.
17389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 ;;
17392 m68k)
17393 library_names_spec='$libname.ixlibrary $libname.a'
17394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000017395 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 +000017396 ;;
17397 esac
17398 ;;
17399
17400beos*)
17401 library_names_spec='${libname}${shared_ext}'
17402 dynamic_linker="$host_os ld.so"
17403 shlibpath_var=LIBRARY_PATH
17404 ;;
17405
17406bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017407 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017408 need_version=no
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17415 # the default ld.so.conf also contains /usr/contrib/lib and
17416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17417 # libtool to hard-code these into programs
17418 ;;
17419
17420cygwin* | mingw* | pw32* | cegcc*)
17421 version_type=windows
17422 shrext_cmds=".dll"
17423 need_version=no
17424 need_lib_prefix=no
17425
cristyda16f162011-02-19 23:52:17 +000017426 case $GCC,$cc_basename in
17427 yes,*)
17428 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017429 library_names_spec='$libname.dll.a'
17430 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17431 postinstall_cmds='base_file=`basename \${file}`~
17432 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17433 dldir=$destdir/`dirname \$dlpath`~
17434 test -d \$dldir || mkdir -p \$dldir~
17435 $install_prog $dir/$dlname \$dldir/$dlname~
17436 chmod a+x \$dldir/$dlname~
17437 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17438 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17439 fi'
17440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17441 dlpath=$dir/\$dldll~
17442 $RM \$dlpath'
17443 shlibpath_overrides_runpath=yes
17444
17445 case $host_os in
17446 cygwin*)
17447 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17448 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017449
17450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017451 ;;
17452 mingw* | cegcc*)
17453 # MinGW DLLs use traditional 'lib' prefix
17454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017455 ;;
17456 pw32*)
17457 # pw32 DLLs use 'pw' prefix rather than 'lib'
17458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17459 ;;
17460 esac
cristyda16f162011-02-19 23:52:17 +000017461 dynamic_linker='Win32 ld.exe'
17462 ;;
17463
17464 *,cl*)
17465 # Native MSVC
17466 libname_spec='$name'
17467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17468 library_names_spec='${libname}.dll.lib'
17469
17470 case $build_os in
17471 mingw*)
17472 sys_lib_search_path_spec=
17473 lt_save_ifs=$IFS
17474 IFS=';'
17475 for lt_path in $LIB
17476 do
17477 IFS=$lt_save_ifs
17478 # Let DOS variable expansion print the short 8.3 style file name.
17479 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17480 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17481 done
17482 IFS=$lt_save_ifs
17483 # Convert to MSYS style.
17484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17485 ;;
17486 cygwin*)
17487 # Convert to unix form, then to dos form, then back to unix form
17488 # but this time dos style (no spaces!) so that the unix form looks
17489 # like /cygdrive/c/PROGRA~1:/cygdr...
17490 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17491 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17492 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17493 ;;
17494 *)
17495 sys_lib_search_path_spec="$LIB"
17496 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17497 # It is most probably a Windows format PATH.
17498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17499 else
17500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17501 fi
17502 # FIXME: find the short name or the path components, as spaces are
17503 # common. (e.g. "Program Files" -> "PROGRA~1")
17504 ;;
17505 esac
17506
17507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17508 postinstall_cmds='base_file=`basename \${file}`~
17509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17510 dldir=$destdir/`dirname \$dlpath`~
17511 test -d \$dldir || mkdir -p \$dldir~
17512 $install_prog $dir/$dlname \$dldir/$dlname'
17513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17514 dlpath=$dir/\$dldll~
17515 $RM \$dlpath'
17516 shlibpath_overrides_runpath=yes
17517 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017518 ;;
17519
17520 *)
cristyda16f162011-02-19 23:52:17 +000017521 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017523 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017524 ;;
17525 esac
cristy73bd4a52010-10-05 11:24:23 +000017526 # FIXME: first we should search . and the directory the executable is in
17527 shlibpath_var=PATH
17528 ;;
17529
17530darwin* | rhapsody*)
17531 dynamic_linker="$host_os dyld"
17532 version_type=darwin
17533 need_lib_prefix=no
17534 need_version=no
17535 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17536 soname_spec='${libname}${release}${major}$shared_ext'
17537 shlibpath_overrides_runpath=yes
17538 shlibpath_var=DYLD_LIBRARY_PATH
17539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17540
17541 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17542 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17543 ;;
17544
17545dgux*)
cristy99bd5232011-12-07 14:38:20 +000017546 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 ;;
17553
cristy73bd4a52010-10-05 11:24:23 +000017554freebsd* | dragonfly*)
17555 # DragonFly does not have aout. When/if they implement a new
17556 # versioning mechanism, adjust this.
17557 if test -x /usr/bin/objformat; then
17558 objformat=`/usr/bin/objformat`
17559 else
17560 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017561 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017562 *) objformat=elf ;;
17563 esac
17564 fi
17565 version_type=freebsd-$objformat
17566 case $version_type in
17567 freebsd-elf*)
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17569 need_version=no
17570 need_lib_prefix=no
17571 ;;
17572 freebsd-*)
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17574 need_version=yes
17575 ;;
17576 esac
17577 shlibpath_var=LD_LIBRARY_PATH
17578 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017579 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017580 shlibpath_overrides_runpath=yes
17581 ;;
17582 freebsd3.[01]* | freebsdelf3.[01]*)
17583 shlibpath_overrides_runpath=yes
17584 hardcode_into_libs=yes
17585 ;;
17586 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17587 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17588 shlibpath_overrides_runpath=no
17589 hardcode_into_libs=yes
17590 ;;
17591 *) # from 4.6 on, and DragonFly
17592 shlibpath_overrides_runpath=yes
17593 hardcode_into_libs=yes
17594 ;;
17595 esac
17596 ;;
17597
17598gnu*)
cristy99bd5232011-12-07 14:38:20 +000017599 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017600 need_lib_prefix=no
17601 need_version=no
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017605 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017606 hardcode_into_libs=yes
17607 ;;
17608
cristy0c60a692010-11-04 01:09:47 +000017609haiku*)
cristy99bd5232011-12-07 14:38:20 +000017610 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017611 need_lib_prefix=no
17612 need_version=no
17613 dynamic_linker="$host_os runtime_loader"
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LIBRARY_PATH
17617 shlibpath_overrides_runpath=yes
17618 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17619 hardcode_into_libs=yes
17620 ;;
17621
cristy73bd4a52010-10-05 11:24:23 +000017622hpux9* | hpux10* | hpux11*)
17623 # Give a soname corresponding to the major version so that dld.sl refuses to
17624 # link against other versions.
17625 version_type=sunos
17626 need_lib_prefix=no
17627 need_version=no
17628 case $host_cpu in
17629 ia64*)
17630 shrext_cmds='.so'
17631 hardcode_into_libs=yes
17632 dynamic_linker="$host_os dld.so"
17633 shlibpath_var=LD_LIBRARY_PATH
17634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 if test "X$HPUX_IA64_MODE" = X32; then
17638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17639 else
17640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17641 fi
17642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17643 ;;
17644 hppa*64*)
17645 shrext_cmds='.sl'
17646 hardcode_into_libs=yes
17647 dynamic_linker="$host_os dld.sl"
17648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17654 ;;
17655 *)
17656 shrext_cmds='.sl'
17657 dynamic_linker="$host_os dld.sl"
17658 shlibpath_var=SHLIB_PATH
17659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661 soname_spec='${libname}${release}${shared_ext}$major'
17662 ;;
17663 esac
cristy0c60a692010-11-04 01:09:47 +000017664 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017665 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017666 # or fails outright, so override atomically:
17667 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017668 ;;
17669
17670interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017671 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=no
17679 hardcode_into_libs=yes
17680 ;;
17681
17682irix5* | irix6* | nonstopux*)
17683 case $host_os in
17684 nonstopux*) version_type=nonstopux ;;
17685 *)
17686 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017687 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017688 else
17689 version_type=irix
17690 fi ;;
17691 esac
17692 need_lib_prefix=no
17693 need_version=no
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17696 case $host_os in
17697 irix5* | nonstopux*)
17698 libsuff= shlibsuff=
17699 ;;
17700 *)
17701 case $LD in # libtool.m4 will add one of these switches to LD
17702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17703 libsuff= shlibsuff= libmagic=32-bit;;
17704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17705 libsuff=32 shlibsuff=N32 libmagic=N32;;
17706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17708 *) libsuff= shlibsuff= libmagic=never-match;;
17709 esac
17710 ;;
17711 esac
17712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17713 shlibpath_overrides_runpath=no
17714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17716 hardcode_into_libs=yes
17717 ;;
17718
17719# No shared lib support for Linux oldld, aout, or coff.
17720linux*oldld* | linux*aout* | linux*coff*)
17721 dynamic_linker=no
17722 ;;
17723
cristy99bd5232011-12-07 14:38:20 +000017724# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017725linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017726 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017727 need_lib_prefix=no
17728 need_version=no
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017734
cristy73bd4a52010-10-05 11:24:23 +000017735 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017736 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017737 $as_echo_n "(cached) " >&6
17738else
17739 lt_cv_shlibpath_overrides_runpath=no
17740 save_LDFLAGS=$LDFLAGS
17741 save_libdir=$libdir
17742 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17743 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017745/* end confdefs.h. */
17746
17747int
17748main ()
17749{
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755if ac_fn_c_try_link "$LINENO"; then :
17756 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017757 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017758fi
17759fi
17760rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017762 LDFLAGS=$save_LDFLAGS
17763 libdir=$save_libdir
17764
17765fi
17766
17767 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017768
17769 # This implies no fast_install, which is unacceptable.
17770 # Some rework will be needed to allow for fast_install
17771 # before this can be enabled.
17772 hardcode_into_libs=yes
17773
17774 # Add ABI-specific directories to the system library path.
17775 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17776
17777 # Append ld.so.conf contents to the search path
17778 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017779 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 +000017780 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017781
cristy73bd4a52010-10-05 11:24:23 +000017782 fi
17783
17784 # We used to test for /lib/ld.so.1 and disable shared libraries on
17785 # powerpc, because MkLinux only supported shared libraries with the
17786 # GNU dynamic linker. Since this was broken with cross compilers,
17787 # most powerpc-linux boxes support dynamic linking these days and
17788 # people can always --disable-shared, the test was removed, and we
17789 # assume the GNU/Linux dynamic linker is in use.
17790 dynamic_linker='GNU/Linux ld.so'
17791 ;;
17792
17793netbsd*)
17794 version_type=sunos
17795 need_lib_prefix=no
17796 need_version=no
17797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17800 dynamic_linker='NetBSD (a.out) ld.so'
17801 else
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17803 soname_spec='${libname}${release}${shared_ext}$major'
17804 dynamic_linker='NetBSD ld.elf_so'
17805 fi
17806 shlibpath_var=LD_LIBRARY_PATH
17807 shlibpath_overrides_runpath=yes
17808 hardcode_into_libs=yes
17809 ;;
17810
17811newsos6)
cristy99bd5232011-12-07 14:38:20 +000017812 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 shlibpath_var=LD_LIBRARY_PATH
17815 shlibpath_overrides_runpath=yes
17816 ;;
17817
17818*nto* | *qnx*)
17819 version_type=qnx
17820 need_lib_prefix=no
17821 need_version=no
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 shlibpath_overrides_runpath=no
17826 hardcode_into_libs=yes
17827 dynamic_linker='ldqnx.so'
17828 ;;
17829
17830openbsd*)
17831 version_type=sunos
17832 sys_lib_dlsearch_path_spec="/usr/lib"
17833 need_lib_prefix=no
17834 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17835 case $host_os in
17836 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17837 *) need_version=no ;;
17838 esac
17839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17843 case $host_os in
17844 openbsd2.[89] | openbsd2.[89].*)
17845 shlibpath_overrides_runpath=no
17846 ;;
17847 *)
17848 shlibpath_overrides_runpath=yes
17849 ;;
17850 esac
17851 else
17852 shlibpath_overrides_runpath=yes
17853 fi
17854 ;;
17855
17856os2*)
17857 libname_spec='$name'
17858 shrext_cmds=".dll"
17859 need_lib_prefix=no
17860 library_names_spec='$libname${shared_ext} $libname.a'
17861 dynamic_linker='OS/2 ld.exe'
17862 shlibpath_var=LIBPATH
17863 ;;
17864
17865osf3* | osf4* | osf5*)
17866 version_type=osf
17867 need_lib_prefix=no
17868 need_version=no
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 shlibpath_var=LD_LIBRARY_PATH
17872 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17873 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17874 ;;
17875
17876rdos*)
17877 dynamic_linker=no
17878 ;;
17879
17880solaris*)
cristy99bd5232011-12-07 14:38:20 +000017881 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017882 need_lib_prefix=no
17883 need_version=no
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=yes
17888 hardcode_into_libs=yes
17889 # ldd complains unless libraries are executable
17890 postinstall_cmds='chmod +x $lib'
17891 ;;
17892
17893sunos4*)
17894 version_type=sunos
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17897 shlibpath_var=LD_LIBRARY_PATH
17898 shlibpath_overrides_runpath=yes
17899 if test "$with_gnu_ld" = yes; then
17900 need_lib_prefix=no
17901 fi
17902 need_version=yes
17903 ;;
17904
17905sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017906 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908 soname_spec='${libname}${release}${shared_ext}$major'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 case $host_vendor in
17911 sni)
17912 shlibpath_overrides_runpath=no
17913 need_lib_prefix=no
17914 runpath_var=LD_RUN_PATH
17915 ;;
17916 siemens)
17917 need_lib_prefix=no
17918 ;;
17919 motorola)
17920 need_lib_prefix=no
17921 need_version=no
17922 shlibpath_overrides_runpath=no
17923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17924 ;;
17925 esac
17926 ;;
17927
17928sysv4*MP*)
17929 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017930 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017931 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17932 soname_spec='$libname${shared_ext}.$major'
17933 shlibpath_var=LD_LIBRARY_PATH
17934 fi
17935 ;;
17936
17937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17938 version_type=freebsd-elf
17939 need_lib_prefix=no
17940 need_version=no
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=yes
17945 hardcode_into_libs=yes
17946 if test "$with_gnu_ld" = yes; then
17947 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17948 else
17949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17950 case $host_os in
17951 sco3.2v5*)
17952 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17953 ;;
17954 esac
17955 fi
17956 sys_lib_dlsearch_path_spec='/usr/lib'
17957 ;;
17958
17959tpf*)
17960 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017961 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=no
17967 hardcode_into_libs=yes
17968 ;;
17969
17970uts4*)
cristy99bd5232011-12-07 14:38:20 +000017971 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17973 soname_spec='${libname}${release}${shared_ext}$major'
17974 shlibpath_var=LD_LIBRARY_PATH
17975 ;;
17976
17977*)
17978 dynamic_linker=no
17979 ;;
17980esac
17981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17982$as_echo "$dynamic_linker" >&6; }
17983test "$dynamic_linker" = no && can_build_shared=no
17984
17985variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17986if test "$GCC" = yes; then
17987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17988fi
17989
17990if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17991 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17992fi
17993if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17994 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17995fi
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
cristy0c60a692010-11-04 01:09:47 +000018083
18084
18085
18086
18087
cristy73bd4a52010-10-05 11:24:23 +000018088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18089$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18090hardcode_action=
18091if test -n "$hardcode_libdir_flag_spec" ||
18092 test -n "$runpath_var" ||
18093 test "X$hardcode_automatic" = "Xyes" ; then
18094
18095 # We can hardcode non-existent directories.
18096 if test "$hardcode_direct" != no &&
18097 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18098 # have to relink, otherwise we might link with an installed library
18099 # when we should be linking with a yet-to-be-installed one
18100 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18101 test "$hardcode_minus_L" != no; then
18102 # Linking always hardcodes the temporary library directory.
18103 hardcode_action=relink
18104 else
18105 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18106 hardcode_action=immediate
18107 fi
18108else
18109 # We cannot hardcode anything, or else we can only hardcode existing
18110 # directories.
18111 hardcode_action=unsupported
18112fi
18113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18114$as_echo "$hardcode_action" >&6; }
18115
18116if test "$hardcode_action" = relink ||
18117 test "$inherit_rpath" = yes; then
18118 # Fast installation is not supported
18119 enable_fast_install=no
18120elif test "$shlibpath_overrides_runpath" = yes ||
18121 test "$enable_shared" = no; then
18122 # Fast installation is not necessary
18123 enable_fast_install=needless
18124fi
18125
18126
18127
18128
18129
18130
18131 if test "x$enable_dlopen" != xyes; then
18132 enable_dlopen=unknown
18133 enable_dlopen_self=unknown
18134 enable_dlopen_self_static=unknown
18135else
18136 lt_cv_dlopen=no
18137 lt_cv_dlopen_libs=
18138
18139 case $host_os in
18140 beos*)
18141 lt_cv_dlopen="load_add_on"
18142 lt_cv_dlopen_libs=
18143 lt_cv_dlopen_self=yes
18144 ;;
18145
18146 mingw* | pw32* | cegcc*)
18147 lt_cv_dlopen="LoadLibrary"
18148 lt_cv_dlopen_libs=
18149 ;;
18150
18151 cygwin*)
18152 lt_cv_dlopen="dlopen"
18153 lt_cv_dlopen_libs=
18154 ;;
18155
18156 darwin*)
18157 # if libdl is installed we need to link against it
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18159$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018160if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018161 $as_echo_n "(cached) " >&6
18162else
18163 ac_check_lib_save_LIBS=$LIBS
18164LIBS="-ldl $LIBS"
18165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166/* end confdefs.h. */
18167
18168/* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18171#ifdef __cplusplus
18172extern "C"
18173#endif
18174char dlopen ();
18175int
18176main ()
18177{
18178return dlopen ();
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183if ac_fn_c_try_link "$LINENO"; then :
18184 ac_cv_lib_dl_dlopen=yes
18185else
18186 ac_cv_lib_dl_dlopen=no
18187fi
18188rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18190LIBS=$ac_check_lib_save_LIBS
18191fi
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18193$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018194if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18196else
18197
18198 lt_cv_dlopen="dyld"
18199 lt_cv_dlopen_libs=
18200 lt_cv_dlopen_self=yes
18201
18202fi
18203
18204 ;;
18205
18206 *)
18207 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000018208if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018209 lt_cv_dlopen="shl_load"
18210else
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18212$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018213if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018214 $as_echo_n "(cached) " >&6
18215else
18216 ac_check_lib_save_LIBS=$LIBS
18217LIBS="-ldld $LIBS"
18218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219/* end confdefs.h. */
18220
18221/* Override any GCC internal prototype to avoid an error.
18222 Use char because int might match the return type of a GCC
18223 builtin and then its argument prototype would still apply. */
18224#ifdef __cplusplus
18225extern "C"
18226#endif
18227char shl_load ();
18228int
18229main ()
18230{
18231return shl_load ();
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236if ac_fn_c_try_link "$LINENO"; then :
18237 ac_cv_lib_dld_shl_load=yes
18238else
18239 ac_cv_lib_dld_shl_load=no
18240fi
18241rm -f core conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243LIBS=$ac_check_lib_save_LIBS
18244fi
18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18246$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000018247if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18249else
18250 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000018251if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018252 lt_cv_dlopen="dlopen"
18253else
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18255$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018256if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018257 $as_echo_n "(cached) " >&6
18258else
18259 ac_check_lib_save_LIBS=$LIBS
18260LIBS="-ldl $LIBS"
18261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262/* end confdefs.h. */
18263
18264/* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18267#ifdef __cplusplus
18268extern "C"
18269#endif
18270char dlopen ();
18271int
18272main ()
18273{
18274return dlopen ();
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279if ac_fn_c_try_link "$LINENO"; then :
18280 ac_cv_lib_dl_dlopen=yes
18281else
18282 ac_cv_lib_dl_dlopen=no
18283fi
18284rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286LIBS=$ac_check_lib_save_LIBS
18287fi
18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18289$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018290if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18292else
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18294$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018295if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018296 $as_echo_n "(cached) " >&6
18297else
18298 ac_check_lib_save_LIBS=$LIBS
18299LIBS="-lsvld $LIBS"
18300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301/* end confdefs.h. */
18302
18303/* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char dlopen ();
18310int
18311main ()
18312{
18313return dlopen ();
18314 ;
18315 return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_link "$LINENO"; then :
18319 ac_cv_lib_svld_dlopen=yes
18320else
18321 ac_cv_lib_svld_dlopen=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325LIBS=$ac_check_lib_save_LIBS
18326fi
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18328$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018329if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18331else
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18333$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018334if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018335 $as_echo_n "(cached) " >&6
18336else
18337 ac_check_lib_save_LIBS=$LIBS
18338LIBS="-ldld $LIBS"
18339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340/* end confdefs.h. */
18341
18342/* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18345#ifdef __cplusplus
18346extern "C"
18347#endif
18348char dld_link ();
18349int
18350main ()
18351{
18352return dld_link ();
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357if ac_fn_c_try_link "$LINENO"; then :
18358 ac_cv_lib_dld_dld_link=yes
18359else
18360 ac_cv_lib_dld_dld_link=no
18361fi
18362rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364LIBS=$ac_check_lib_save_LIBS
18365fi
18366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18367$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000018368if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000018369 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18370fi
18371
18372
18373fi
18374
18375
18376fi
18377
18378
18379fi
18380
18381
18382fi
18383
18384
18385fi
18386
18387 ;;
18388 esac
18389
18390 if test "x$lt_cv_dlopen" != xno; then
18391 enable_dlopen=yes
18392 else
18393 enable_dlopen=no
18394 fi
18395
18396 case $lt_cv_dlopen in
18397 dlopen)
18398 save_CPPFLAGS="$CPPFLAGS"
18399 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18400
18401 save_LDFLAGS="$LDFLAGS"
18402 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18403
18404 save_LIBS="$LIBS"
18405 LIBS="$lt_cv_dlopen_libs $LIBS"
18406
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18408$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018409if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018410 $as_echo_n "(cached) " >&6
18411else
18412 if test "$cross_compiling" = yes; then :
18413 lt_cv_dlopen_self=cross
18414else
18415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18416 lt_status=$lt_dlunknown
18417 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018418#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018419#include "confdefs.h"
18420
18421#if HAVE_DLFCN_H
18422#include <dlfcn.h>
18423#endif
18424
18425#include <stdio.h>
18426
18427#ifdef RTLD_GLOBAL
18428# define LT_DLGLOBAL RTLD_GLOBAL
18429#else
18430# ifdef DL_GLOBAL
18431# define LT_DLGLOBAL DL_GLOBAL
18432# else
18433# define LT_DLGLOBAL 0
18434# endif
18435#endif
18436
18437/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18438 find out it does not work in some platform. */
18439#ifndef LT_DLLAZY_OR_NOW
18440# ifdef RTLD_LAZY
18441# define LT_DLLAZY_OR_NOW RTLD_LAZY
18442# else
18443# ifdef DL_LAZY
18444# define LT_DLLAZY_OR_NOW DL_LAZY
18445# else
18446# ifdef RTLD_NOW
18447# define LT_DLLAZY_OR_NOW RTLD_NOW
18448# else
18449# ifdef DL_NOW
18450# define LT_DLLAZY_OR_NOW DL_NOW
18451# else
18452# define LT_DLLAZY_OR_NOW 0
18453# endif
18454# endif
18455# endif
18456# endif
18457#endif
18458
cristy0c60a692010-11-04 01:09:47 +000018459/* When -fvisbility=hidden is used, assume the code has been annotated
18460 correspondingly for the symbols needed. */
18461#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018462int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018463#endif
18464
cristyda16f162011-02-19 23:52:17 +000018465int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018466int main ()
18467{
18468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18469 int status = $lt_dlunknown;
18470
18471 if (self)
18472 {
18473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018474 else
18475 {
18476 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18477 else puts (dlerror ());
18478 }
cristy73bd4a52010-10-05 11:24:23 +000018479 /* dlclose (self); */
18480 }
18481 else
18482 puts (dlerror ());
18483
18484 return status;
18485}
18486_LT_EOF
18487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18488 (eval $ac_link) 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18491 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18492 (./conftest; exit; ) >&5 2>/dev/null
18493 lt_status=$?
18494 case x$lt_status in
18495 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18496 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18497 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18498 esac
18499 else :
18500 # compilation failed
18501 lt_cv_dlopen_self=no
18502 fi
18503fi
18504rm -fr conftest*
18505
18506
18507fi
18508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18509$as_echo "$lt_cv_dlopen_self" >&6; }
18510
18511 if test "x$lt_cv_dlopen_self" = xyes; then
18512 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18514$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018515if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018516 $as_echo_n "(cached) " >&6
18517else
18518 if test "$cross_compiling" = yes; then :
18519 lt_cv_dlopen_self_static=cross
18520else
18521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18522 lt_status=$lt_dlunknown
18523 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018524#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018525#include "confdefs.h"
18526
18527#if HAVE_DLFCN_H
18528#include <dlfcn.h>
18529#endif
18530
18531#include <stdio.h>
18532
18533#ifdef RTLD_GLOBAL
18534# define LT_DLGLOBAL RTLD_GLOBAL
18535#else
18536# ifdef DL_GLOBAL
18537# define LT_DLGLOBAL DL_GLOBAL
18538# else
18539# define LT_DLGLOBAL 0
18540# endif
18541#endif
18542
18543/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18544 find out it does not work in some platform. */
18545#ifndef LT_DLLAZY_OR_NOW
18546# ifdef RTLD_LAZY
18547# define LT_DLLAZY_OR_NOW RTLD_LAZY
18548# else
18549# ifdef DL_LAZY
18550# define LT_DLLAZY_OR_NOW DL_LAZY
18551# else
18552# ifdef RTLD_NOW
18553# define LT_DLLAZY_OR_NOW RTLD_NOW
18554# else
18555# ifdef DL_NOW
18556# define LT_DLLAZY_OR_NOW DL_NOW
18557# else
18558# define LT_DLLAZY_OR_NOW 0
18559# endif
18560# endif
18561# endif
18562# endif
18563#endif
18564
cristy0c60a692010-11-04 01:09:47 +000018565/* When -fvisbility=hidden is used, assume the code has been annotated
18566 correspondingly for the symbols needed. */
18567#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018568int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018569#endif
18570
cristyda16f162011-02-19 23:52:17 +000018571int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018572int main ()
18573{
18574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18575 int status = $lt_dlunknown;
18576
18577 if (self)
18578 {
18579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018580 else
18581 {
18582 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18583 else puts (dlerror ());
18584 }
cristy73bd4a52010-10-05 11:24:23 +000018585 /* dlclose (self); */
18586 }
18587 else
18588 puts (dlerror ());
18589
18590 return status;
18591}
18592_LT_EOF
18593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18594 (eval $ac_link) 2>&5
18595 ac_status=$?
18596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18597 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18598 (./conftest; exit; ) >&5 2>/dev/null
18599 lt_status=$?
18600 case x$lt_status in
18601 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18602 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18603 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18604 esac
18605 else :
18606 # compilation failed
18607 lt_cv_dlopen_self_static=no
18608 fi
18609fi
18610rm -fr conftest*
18611
18612
18613fi
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18615$as_echo "$lt_cv_dlopen_self_static" >&6; }
18616 fi
18617
18618 CPPFLAGS="$save_CPPFLAGS"
18619 LDFLAGS="$save_LDFLAGS"
18620 LIBS="$save_LIBS"
18621 ;;
18622 esac
18623
18624 case $lt_cv_dlopen_self in
18625 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18626 *) enable_dlopen_self=unknown ;;
18627 esac
18628
18629 case $lt_cv_dlopen_self_static in
18630 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18631 *) enable_dlopen_self_static=unknown ;;
18632 esac
18633fi
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651striplib=
18652old_striplib=
18653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18654$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18655if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18656 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18657 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18659$as_echo "yes" >&6; }
18660else
18661# FIXME - insert some real tests, host_os isn't really good enough
18662 case $host_os in
18663 darwin*)
18664 if test -n "$STRIP" ; then
18665 striplib="$STRIP -x"
18666 old_striplib="$STRIP -S"
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18668$as_echo "yes" >&6; }
18669 else
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671$as_echo "no" >&6; }
18672 fi
18673 ;;
18674 *)
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676$as_echo "no" >&6; }
18677 ;;
18678 esac
18679fi
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692 # Report which library types will actually be built
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18694$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18696$as_echo "$can_build_shared" >&6; }
18697
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18699$as_echo_n "checking whether to build shared libraries... " >&6; }
18700 test "$can_build_shared" = "no" && enable_shared=no
18701
18702 # On AIX, shared libraries and static libraries use the same namespace, and
18703 # are all built from PIC.
18704 case $host_os in
18705 aix3*)
18706 test "$enable_shared" = yes && enable_static=no
18707 if test -n "$RANLIB"; then
18708 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18709 postinstall_cmds='$RANLIB $lib'
18710 fi
18711 ;;
18712
18713 aix[4-9]*)
18714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18715 test "$enable_shared" = yes && enable_static=no
18716 fi
18717 ;;
18718 esac
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18720$as_echo "$enable_shared" >&6; }
18721
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18723$as_echo_n "checking whether to build static libraries... " >&6; }
18724 # Make sure either enable_shared or enable_static is yes.
18725 test "$enable_shared" = yes || enable_static=yes
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18727$as_echo "$enable_static" >&6; }
18728
18729
18730
18731
18732fi
18733ac_ext=c
18734ac_cpp='$CPP $CPPFLAGS'
18735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738
18739CC="$lt_save_CC"
18740
cristy0c60a692010-11-04 01:09:47 +000018741 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18742 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18743 (test "X$CXX" != "Xg++"))) ; then
18744 ac_ext=cpp
18745ac_cpp='$CXXCPP $CPPFLAGS'
18746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18750$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18751if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018752 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018753 $as_echo_n "(cached) " >&6
18754else
18755 # Double quotes because CXXCPP needs to be expanded
18756 for CXXCPP in "$CXX -E" "/lib/cpp"
18757 do
18758 ac_preproc_ok=false
18759for ac_cxx_preproc_warn_flag in '' yes
18760do
18761 # Use a header file that comes with gcc, so configuring glibc
18762 # with a fresh cross-compiler works.
18763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18764 # <limits.h> exists even on freestanding compilers.
18765 # On the NeXT, cc -E runs the code through the compiler's parser,
18766 # not just through cpp. "Syntax error" is here to catch this case.
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768/* end confdefs.h. */
18769#ifdef __STDC__
18770# include <limits.h>
18771#else
18772# include <assert.h>
18773#endif
18774 Syntax error
18775_ACEOF
18776if ac_fn_cxx_try_cpp "$LINENO"; then :
18777
18778else
18779 # Broken: fails on valid input.
18780continue
18781fi
cristyda16f162011-02-19 23:52:17 +000018782rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018783
18784 # OK, works on sane cases. Now check whether nonexistent headers
18785 # can be detected and how.
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787/* end confdefs.h. */
18788#include <ac_nonexistent.h>
18789_ACEOF
18790if ac_fn_cxx_try_cpp "$LINENO"; then :
18791 # Broken: success on invalid input.
18792continue
18793else
18794 # Passes both tests.
18795ac_preproc_ok=:
18796break
18797fi
cristyda16f162011-02-19 23:52:17 +000018798rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018799
18800done
18801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018802rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018803if $ac_preproc_ok; then :
18804 break
18805fi
18806
18807 done
18808 ac_cv_prog_CXXCPP=$CXXCPP
18809
18810fi
18811 CXXCPP=$ac_cv_prog_CXXCPP
18812else
18813 ac_cv_prog_CXXCPP=$CXXCPP
18814fi
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18816$as_echo "$CXXCPP" >&6; }
18817ac_preproc_ok=false
18818for ac_cxx_preproc_warn_flag in '' yes
18819do
18820 # Use a header file that comes with gcc, so configuring glibc
18821 # with a fresh cross-compiler works.
18822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 # <limits.h> exists even on freestanding compilers.
18824 # On the NeXT, cc -E runs the code through the compiler's parser,
18825 # not just through cpp. "Syntax error" is here to catch this case.
18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827/* end confdefs.h. */
18828#ifdef __STDC__
18829# include <limits.h>
18830#else
18831# include <assert.h>
18832#endif
18833 Syntax error
18834_ACEOF
18835if ac_fn_cxx_try_cpp "$LINENO"; then :
18836
18837else
18838 # Broken: fails on valid input.
18839continue
18840fi
cristyda16f162011-02-19 23:52:17 +000018841rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018842
18843 # OK, works on sane cases. Now check whether nonexistent headers
18844 # can be detected and how.
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846/* end confdefs.h. */
18847#include <ac_nonexistent.h>
18848_ACEOF
18849if ac_fn_cxx_try_cpp "$LINENO"; then :
18850 # Broken: success on invalid input.
18851continue
18852else
18853 # Passes both tests.
18854ac_preproc_ok=:
18855break
18856fi
cristyda16f162011-02-19 23:52:17 +000018857rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018858
18859done
18860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018861rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018862if $ac_preproc_ok; then :
18863
18864else
18865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18867as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18868See \`config.log' for more details" "$LINENO" 5; }
18869fi
18870
18871ac_ext=c
18872ac_cpp='$CPP $CPPFLAGS'
18873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875ac_compiler_gnu=$ac_cv_c_compiler_gnu
18876
18877else
18878 _lt_caught_CXX_error=yes
18879fi
cristy73bd4a52010-10-05 11:24:23 +000018880
18881ac_ext=cpp
18882ac_cpp='$CXXCPP $CPPFLAGS'
18883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18886
18887archive_cmds_need_lc_CXX=no
18888allow_undefined_flag_CXX=
18889always_export_symbols_CXX=no
18890archive_expsym_cmds_CXX=
18891compiler_needs_object_CXX=no
18892export_dynamic_flag_spec_CXX=
18893hardcode_direct_CXX=no
18894hardcode_direct_absolute_CXX=no
18895hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018896hardcode_libdir_separator_CXX=
18897hardcode_minus_L_CXX=no
18898hardcode_shlibpath_var_CXX=unsupported
18899hardcode_automatic_CXX=no
18900inherit_rpath_CXX=no
18901module_cmds_CXX=
18902module_expsym_cmds_CXX=
18903link_all_deplibs_CXX=unknown
18904old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018905reload_flag_CXX=$reload_flag
18906reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018907no_undefined_flag_CXX=
18908whole_archive_flag_spec_CXX=
18909enable_shared_with_static_runtimes_CXX=no
18910
18911# Source file extension for C++ test sources.
18912ac_ext=cpp
18913
18914# Object file extension for compiled C++ test sources.
18915objext=o
18916objext_CXX=$objext
18917
18918# No sense in running all these tests if we already determined that
18919# the CXX compiler isn't working. Some variables (like enable_shared)
18920# are currently assumed to apply to all compilers on this platform,
18921# and will be corrupted by setting them based on a non-working compiler.
18922if test "$_lt_caught_CXX_error" != yes; then
18923 # Code to be used in simple compile tests
18924 lt_simple_compile_test_code="int some_variable = 0;"
18925
18926 # Code to be used in simple link tests
18927 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18928
18929 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18930
18931
18932
18933
18934
18935
18936# If no C compiler was specified, use CC.
18937LTCC=${LTCC-"$CC"}
18938
18939# If no C compiler flags were specified, use CFLAGS.
18940LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18941
18942# Allow CC to be a program name with arguments.
18943compiler=$CC
18944
18945
18946 # save warnings/boilerplate of simple test code
18947 ac_outfile=conftest.$ac_objext
18948echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18950_lt_compiler_boilerplate=`cat conftest.err`
18951$RM conftest*
18952
18953 ac_outfile=conftest.$ac_objext
18954echo "$lt_simple_link_test_code" >conftest.$ac_ext
18955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18956_lt_linker_boilerplate=`cat conftest.err`
18957$RM -r conftest*
18958
18959
18960 # Allow CC to be a program name with arguments.
18961 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018962 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018963 lt_save_LD=$LD
18964 lt_save_GCC=$GCC
18965 GCC=$GXX
18966 lt_save_with_gnu_ld=$with_gnu_ld
18967 lt_save_path_LD=$lt_cv_path_LD
18968 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18969 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18970 else
18971 $as_unset lt_cv_prog_gnu_ld
18972 fi
18973 if test -n "${lt_cv_path_LDCXX+set}"; then
18974 lt_cv_path_LD=$lt_cv_path_LDCXX
18975 else
18976 $as_unset lt_cv_path_LD
18977 fi
18978 test -z "${LDCXX+set}" || LD=$LDCXX
18979 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018980 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018981 compiler=$CC
18982 compiler_CXX=$CC
18983 for cc_temp in $compiler""; do
18984 case $cc_temp in
18985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18987 \-*) ;;
18988 *) break;;
18989 esac
18990done
cristy0c60a692010-11-04 01:09:47 +000018991cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018992
18993
18994 if test -n "$compiler"; then
18995 # We don't want -fno-exception when compiling C++ code, so set the
18996 # no_builtin_flag separately
18997 if test "$GXX" = yes; then
18998 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18999 else
19000 lt_prog_compiler_no_builtin_flag_CXX=
19001 fi
19002
19003 if test "$GXX" = yes; then
19004 # Set up default GNU C++ configuration
19005
19006
19007
19008# Check whether --with-gnu-ld was given.
19009if test "${with_gnu_ld+set}" = set; then :
19010 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19011else
19012 with_gnu_ld=no
19013fi
19014
19015ac_prog=ld
19016if test "$GCC" = yes; then
19017 # Check if gcc -print-prog-name=ld gives a path.
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19019$as_echo_n "checking for ld used by $CC... " >&6; }
19020 case $host in
19021 *-*-mingw*)
19022 # gcc leaves a trailing carriage return which upsets mingw
19023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19024 *)
19025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19026 esac
19027 case $ac_prog in
19028 # Accept absolute paths.
19029 [\\/]* | ?:[\\/]*)
19030 re_direlt='/[^/][^/]*/\.\./'
19031 # Canonicalize the pathname of ld
19032 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19033 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19034 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19035 done
19036 test -z "$LD" && LD="$ac_prog"
19037 ;;
19038 "")
19039 # If it fails, then pretend we aren't using GCC.
19040 ac_prog=ld
19041 ;;
19042 *)
19043 # If it is relative, then search for the first ld in PATH.
19044 with_gnu_ld=unknown
19045 ;;
19046 esac
19047elif test "$with_gnu_ld" = yes; then
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19049$as_echo_n "checking for GNU ld... " >&6; }
19050else
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19052$as_echo_n "checking for non-GNU ld... " >&6; }
19053fi
cristyda16f162011-02-19 23:52:17 +000019054if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019055 $as_echo_n "(cached) " >&6
19056else
19057 if test -z "$LD"; then
19058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19059 for ac_dir in $PATH; do
19060 IFS="$lt_save_ifs"
19061 test -z "$ac_dir" && ac_dir=.
19062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19063 lt_cv_path_LD="$ac_dir/$ac_prog"
19064 # Check to see if the program is GNU ld. I'd rather use --version,
19065 # but apparently some variants of GNU ld only accept -v.
19066 # Break only if it was the GNU/non-GNU ld that we prefer.
19067 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19068 *GNU* | *'with BFD'*)
19069 test "$with_gnu_ld" != no && break
19070 ;;
19071 *)
19072 test "$with_gnu_ld" != yes && break
19073 ;;
19074 esac
19075 fi
19076 done
19077 IFS="$lt_save_ifs"
19078else
19079 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19080fi
19081fi
19082
19083LD="$lt_cv_path_LD"
19084if test -n "$LD"; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19086$as_echo "$LD" >&6; }
19087else
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089$as_echo "no" >&6; }
19090fi
cristy98dddb52010-11-04 00:30:15 +000019091test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19093$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019094if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019095 $as_echo_n "(cached) " >&6
19096else
19097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19098case `$LD -v 2>&1 </dev/null` in
19099*GNU* | *'with BFD'*)
19100 lt_cv_prog_gnu_ld=yes
19101 ;;
19102*)
19103 lt_cv_prog_gnu_ld=no
19104 ;;
19105esac
19106fi
19107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19108$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19109with_gnu_ld=$lt_cv_prog_gnu_ld
19110
19111
19112
19113
19114
19115
19116
19117 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19118 # archiving commands below assume that GNU ld is being used.
19119 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000019120 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19121 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 +000019122
19123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19124 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19125
19126 # If archive_cmds runs LD, not CC, wlarc should be empty
19127 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19128 # investigate it a little bit more. (MM)
19129 wlarc='${wl}'
19130
19131 # ancient GNU ld didn't support --whole-archive et. al.
19132 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19133 $GREP 'no-whole-archive' > /dev/null; then
19134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19135 else
19136 whole_archive_flag_spec_CXX=
19137 fi
19138 else
19139 with_gnu_ld=no
19140 wlarc=
19141
19142 # A generic and very simple default shared library creation
19143 # command for GNU C++ for the case where it uses the native
19144 # linker, instead of GNU ld. If possible, this setting should
19145 # overridden to take advantage of the native linker features on
19146 # the platform it is being used on.
19147 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19148 fi
19149
19150 # Commands to make compiler produce verbose output that lists
19151 # what "hidden" libraries, object files and flags are used when
19152 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019154
19155 else
19156 GXX=no
19157 with_gnu_ld=no
19158 wlarc=
19159 fi
19160
19161 # PORTME: fill in a description of your system's C++ link characteristics
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19163$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19164 ld_shlibs_CXX=yes
19165 case $host_os in
19166 aix3*)
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 ;;
19170 aix[4-9]*)
19171 if test "$host_cpu" = ia64; then
19172 # On IA64, the linker does run time linking by default, so we don't
19173 # have to do anything special.
19174 aix_use_runtimelinking=no
19175 exp_sym_flag='-Bexport'
19176 no_entry_flag=""
19177 else
19178 aix_use_runtimelinking=no
19179
19180 # Test if we are trying to use run time linking or normal
19181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19182 # need to do runtime linking.
19183 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19184 for ld_flag in $LDFLAGS; do
19185 case $ld_flag in
19186 *-brtl*)
19187 aix_use_runtimelinking=yes
19188 break
19189 ;;
19190 esac
19191 done
19192 ;;
19193 esac
19194
19195 exp_sym_flag='-bexport'
19196 no_entry_flag='-bnoentry'
19197 fi
19198
19199 # When large executables or shared objects are built, AIX ld can
19200 # have problems creating the table of contents. If linking a library
19201 # or program results in "error TOC overflow" add -mminimal-toc to
19202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19204
19205 archive_cmds_CXX=''
19206 hardcode_direct_CXX=yes
19207 hardcode_direct_absolute_CXX=yes
19208 hardcode_libdir_separator_CXX=':'
19209 link_all_deplibs_CXX=yes
19210 file_list_spec_CXX='${wl}-f,'
19211
19212 if test "$GXX" = yes; then
19213 case $host_os in aix4.[012]|aix4.[012].*)
19214 # We only want to do this on AIX 4.2 and lower, the check
19215 # below for broken collect2 doesn't work under 4.3+
19216 collect2name=`${CC} -print-prog-name=collect2`
19217 if test -f "$collect2name" &&
19218 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19219 then
19220 # We have reworked collect2
19221 :
19222 else
19223 # We have old collect2
19224 hardcode_direct_CXX=unsupported
19225 # It fails to find uninstalled libraries when the uninstalled
19226 # path is not listed in the libpath. Setting hardcode_minus_L
19227 # to unsupported forces relinking
19228 hardcode_minus_L_CXX=yes
19229 hardcode_libdir_flag_spec_CXX='-L$libdir'
19230 hardcode_libdir_separator_CXX=
19231 fi
19232 esac
19233 shared_flag='-shared'
19234 if test "$aix_use_runtimelinking" = yes; then
19235 shared_flag="$shared_flag "'${wl}-G'
19236 fi
19237 else
19238 # not using gcc
19239 if test "$host_cpu" = ia64; then
19240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19241 # chokes on -Wl,-G. The following line is correct:
19242 shared_flag='-G'
19243 else
19244 if test "$aix_use_runtimelinking" = yes; then
19245 shared_flag='${wl}-G'
19246 else
19247 shared_flag='${wl}-bM:SRE'
19248 fi
19249 fi
19250 fi
19251
19252 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19253 # It seems that -bexpall does not export symbols beginning with
19254 # underscore (_), so it is better to generate a list of symbols to
19255 # export.
19256 always_export_symbols_CXX=yes
19257 if test "$aix_use_runtimelinking" = yes; then
19258 # Warning - without using the other runtime loading flags (-brtl),
19259 # -berok will link without error, but may produce a broken library.
19260 allow_undefined_flag_CXX='-berok'
19261 # Determine the default libpath from the value encoded in an empty
19262 # executable.
cristyda16f162011-02-19 23:52:17 +000019263 if test "${lt_cv_aix_libpath+set}" = set; then
19264 aix_libpath=$lt_cv_aix_libpath
19265else
19266 if ${lt_cv_aix_libpath__CXX+:} false; then :
19267 $as_echo_n "(cached) " >&6
19268else
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019270/* end confdefs.h. */
19271
19272int
19273main ()
19274{
19275
19276 ;
19277 return 0;
19278}
19279_ACEOF
19280if ac_fn_cxx_try_link "$LINENO"; then :
19281
cristyda16f162011-02-19 23:52:17 +000019282 lt_aix_libpath_sed='
19283 /Import File Strings/,/^$/ {
19284 /^0/ {
19285 s/^0 *\([^ ]*\) *$/\1/
19286 p
19287 }
19288 }'
19289 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19290 # Check for a 64-bit object if we didn't find anything.
19291 if test -z "$lt_cv_aix_libpath__CXX"; then
19292 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19293 fi
cristy73bd4a52010-10-05 11:24:23 +000019294fi
19295rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019297 if test -z "$lt_cv_aix_libpath__CXX"; then
19298 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19299 fi
19300
19301fi
19302
19303 aix_libpath=$lt_cv_aix_libpath__CXX
19304fi
cristy73bd4a52010-10-05 11:24:23 +000019305
19306 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19307
cristy0c60a692010-11-04 01:09:47 +000019308 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 +000019309 else
19310 if test "$host_cpu" = ia64; then
19311 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19312 allow_undefined_flag_CXX="-z nodefs"
19313 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"
19314 else
19315 # Determine the default libpath from the value encoded in an
19316 # empty executable.
cristyda16f162011-02-19 23:52:17 +000019317 if test "${lt_cv_aix_libpath+set}" = set; then
19318 aix_libpath=$lt_cv_aix_libpath
19319else
19320 if ${lt_cv_aix_libpath__CXX+:} false; then :
19321 $as_echo_n "(cached) " >&6
19322else
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019324/* end confdefs.h. */
19325
19326int
19327main ()
19328{
19329
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334if ac_fn_cxx_try_link "$LINENO"; then :
19335
cristyda16f162011-02-19 23:52:17 +000019336 lt_aix_libpath_sed='
19337 /Import File Strings/,/^$/ {
19338 /^0/ {
19339 s/^0 *\([^ ]*\) *$/\1/
19340 p
19341 }
19342 }'
19343 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19344 # Check for a 64-bit object if we didn't find anything.
19345 if test -z "$lt_cv_aix_libpath__CXX"; then
19346 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 fi
cristy73bd4a52010-10-05 11:24:23 +000019348fi
19349rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019351 if test -z "$lt_cv_aix_libpath__CXX"; then
19352 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
19353 fi
19354
19355fi
19356
19357 aix_libpath=$lt_cv_aix_libpath__CXX
19358fi
cristy73bd4a52010-10-05 11:24:23 +000019359
19360 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19361 # Warning - without using the other run time loading flags,
19362 # -berok will link without error, but may produce a broken library.
19363 no_undefined_flag_CXX=' ${wl}-bernotok'
19364 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000019365 if test "$with_gnu_ld" = yes; then
19366 # We only use this code for GNU lds that support --whole-archive.
19367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19368 else
19369 # Exported symbols can be pulled into shared objects from archives
19370 whole_archive_flag_spec_CXX='$convenience'
19371 fi
cristy73bd4a52010-10-05 11:24:23 +000019372 archive_cmds_need_lc_CXX=yes
19373 # This is similar to how AIX traditionally builds its shared
19374 # libraries.
19375 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'
19376 fi
19377 fi
19378 ;;
19379
19380 beos*)
19381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19382 allow_undefined_flag_CXX=unsupported
19383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19384 # support --undefined. This deserves some investigation. FIXME
19385 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19386 else
19387 ld_shlibs_CXX=no
19388 fi
19389 ;;
19390
19391 chorus*)
19392 case $cc_basename in
19393 *)
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19396 ;;
19397 esac
19398 ;;
19399
19400 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019401 case $GXX,$cc_basename in
19402 ,cl* | no,cl*)
19403 # Native MSVC
19404 # hardcode_libdir_flag_spec is actually meaningless, as there is
19405 # no search path for DLLs.
19406 hardcode_libdir_flag_spec_CXX=' '
19407 allow_undefined_flag_CXX=unsupported
19408 always_export_symbols_CXX=yes
19409 file_list_spec_CXX='@'
19410 # Tell ltmain to make .lib files, not .a files.
19411 libext=lib
19412 # Tell ltmain to make .dll files, not .so files.
19413 shrext_cmds=".dll"
19414 # FIXME: Setting linknames here is a bad hack.
19415 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19416 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19417 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19418 else
19419 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19420 fi~
19421 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19422 linknames='
19423 # The linker will not automatically build a static lib if we build a DLL.
19424 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19425 enable_shared_with_static_runtimes_CXX=yes
19426 # Don't use ranlib
19427 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19428 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19429 lt_tool_outputfile="@TOOL_OUTPUT@"~
19430 case $lt_outputfile in
19431 *.exe|*.EXE) ;;
19432 *)
19433 lt_outputfile="$lt_outputfile.exe"
19434 lt_tool_outputfile="$lt_tool_outputfile.exe"
19435 ;;
19436 esac~
19437 func_to_tool_file "$lt_outputfile"~
19438 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19439 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19440 $RM "$lt_outputfile.manifest";
19441 fi'
19442 ;;
19443 *)
19444 # g++
19445 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19446 # as there is no search path for DLLs.
19447 hardcode_libdir_flag_spec_CXX='-L$libdir'
19448 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19449 allow_undefined_flag_CXX=unsupported
19450 always_export_symbols_CXX=no
19451 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019452
cristyda16f162011-02-19 23:52:17 +000019453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19454 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'
19455 # If the export-symbols file already is a .def file (1st line
19456 # is EXPORTS), use it as is; otherwise, prepend...
19457 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19458 cp $export_symbols $output_objdir/$soname.def;
19459 else
19460 echo EXPORTS > $output_objdir/$soname.def;
19461 cat $export_symbols >> $output_objdir/$soname.def;
19462 fi~
19463 $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'
19464 else
19465 ld_shlibs_CXX=no
19466 fi
19467 ;;
19468 esac
19469 ;;
cristy73bd4a52010-10-05 11:24:23 +000019470 darwin* | rhapsody*)
19471
19472
19473 archive_cmds_need_lc_CXX=no
19474 hardcode_direct_CXX=no
19475 hardcode_automatic_CXX=yes
19476 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019477 if test "$lt_cv_ld_force_load" = "yes"; then
19478 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 +000019479
cristy0c60a692010-11-04 01:09:47 +000019480 else
19481 whole_archive_flag_spec_CXX=''
19482 fi
cristy73bd4a52010-10-05 11:24:23 +000019483 link_all_deplibs_CXX=yes
19484 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19485 case $cc_basename in
19486 ifort*) _lt_dar_can_shared=yes ;;
19487 *) _lt_dar_can_shared=$GCC ;;
19488 esac
19489 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019490 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019491 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}"
19492 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19493 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}"
19494 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}"
19495 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19496 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}"
19497 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}"
19498 fi
19499
19500 else
19501 ld_shlibs_CXX=no
19502 fi
19503
19504 ;;
19505
19506 dgux*)
19507 case $cc_basename in
19508 ec++*)
19509 # FIXME: insert proper C++ library support
19510 ld_shlibs_CXX=no
19511 ;;
19512 ghcx*)
19513 # Green Hills C++ Compiler
19514 # FIXME: insert proper C++ library support
19515 ld_shlibs_CXX=no
19516 ;;
19517 *)
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19520 ;;
19521 esac
19522 ;;
19523
cristy99bd5232011-12-07 14:38:20 +000019524 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019525 # C++ shared libraries reported to be fairly broken before
19526 # switch to ELF
19527 ld_shlibs_CXX=no
19528 ;;
19529
19530 freebsd-elf*)
19531 archive_cmds_need_lc_CXX=no
19532 ;;
19533
19534 freebsd* | dragonfly*)
19535 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19536 # conventions
19537 ld_shlibs_CXX=yes
19538 ;;
19539
19540 gnu*)
19541 ;;
19542
cristy0c60a692010-11-04 01:09:47 +000019543 haiku*)
19544 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19545 link_all_deplibs_CXX=yes
19546 ;;
19547
cristy73bd4a52010-10-05 11:24:23 +000019548 hpux9*)
19549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19550 hardcode_libdir_separator_CXX=:
19551 export_dynamic_flag_spec_CXX='${wl}-E'
19552 hardcode_direct_CXX=yes
19553 hardcode_minus_L_CXX=yes # Not in the search PATH,
19554 # but as the default
19555 # location of the library.
19556
19557 case $cc_basename in
19558 CC*)
19559 # FIXME: insert proper C++ library support
19560 ld_shlibs_CXX=no
19561 ;;
19562 aCC*)
19563 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'
19564 # Commands to make compiler produce verbose output that lists
19565 # what "hidden" libraries, object files and flags are used when
19566 # linking a shared library.
19567 #
19568 # There doesn't appear to be a way to prevent this compiler from
19569 # explicitly linking system object files so we need to strip them
19570 # from the output so that they don't get included in the library
19571 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019572 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 +000019573 ;;
19574 *)
19575 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019576 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 +000019577 else
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19580 fi
19581 ;;
19582 esac
19583 ;;
19584
19585 hpux10*|hpux11*)
19586 if test $with_gnu_ld = no; then
19587 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19588 hardcode_libdir_separator_CXX=:
19589
19590 case $host_cpu in
19591 hppa*64*|ia64*)
19592 ;;
19593 *)
19594 export_dynamic_flag_spec_CXX='${wl}-E'
19595 ;;
19596 esac
19597 fi
19598 case $host_cpu in
19599 hppa*64*|ia64*)
19600 hardcode_direct_CXX=no
19601 hardcode_shlibpath_var_CXX=no
19602 ;;
19603 *)
19604 hardcode_direct_CXX=yes
19605 hardcode_direct_absolute_CXX=yes
19606 hardcode_minus_L_CXX=yes # Not in the search PATH,
19607 # but as the default
19608 # location of the library.
19609 ;;
19610 esac
19611
19612 case $cc_basename in
19613 CC*)
19614 # FIXME: insert proper C++ library support
19615 ld_shlibs_CXX=no
19616 ;;
19617 aCC*)
19618 case $host_cpu in
19619 hppa*64*)
19620 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19621 ;;
19622 ia64*)
19623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19624 ;;
19625 *)
19626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19627 ;;
19628 esac
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19632 #
19633 # There doesn't appear to be a way to prevent this compiler from
19634 # explicitly linking system object files so we need to strip them
19635 # from the output so that they don't get included in the library
19636 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019637 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 +000019638 ;;
19639 *)
19640 if test "$GXX" = yes; then
19641 if test $with_gnu_ld = no; then
19642 case $host_cpu in
19643 hppa*64*)
19644 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19645 ;;
19646 ia64*)
cristyda16f162011-02-19 23:52:17 +000019647 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 +000019648 ;;
19649 *)
cristyda16f162011-02-19 23:52:17 +000019650 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 +000019651 ;;
19652 esac
19653 fi
19654 else
19655 # FIXME: insert proper C++ library support
19656 ld_shlibs_CXX=no
19657 fi
19658 ;;
19659 esac
19660 ;;
19661
19662 interix[3-9]*)
19663 hardcode_direct_CXX=no
19664 hardcode_shlibpath_var_CXX=no
19665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19666 export_dynamic_flag_spec_CXX='${wl}-E'
19667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19668 # Instead, shared libraries are loaded at an image base (0x10000000 by
19669 # default) and relocated if they conflict, which is a slow very memory
19670 # consuming and fragmenting process. To avoid this, we pick a random,
19671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19673 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'
19674 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'
19675 ;;
19676 irix5* | irix6*)
19677 case $cc_basename in
19678 CC*)
19679 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019680 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 +000019681
19682 # Archives containing C++ object files must be created using
19683 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19684 # necessary to make sure instantiated templates are included
19685 # in the archive.
19686 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19687 ;;
19688 *)
19689 if test "$GXX" = yes; then
19690 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019691 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 +000019692 else
cristyda16f162011-02-19 23:52:17 +000019693 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 +000019694 fi
19695 fi
19696 link_all_deplibs_CXX=yes
19697 ;;
19698 esac
19699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19700 hardcode_libdir_separator_CXX=:
19701 inherit_rpath_CXX=yes
19702 ;;
19703
cristy0c60a692010-11-04 01:09:47 +000019704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019705 case $cc_basename in
19706 KCC*)
19707 # Kuck and Associates, Inc. (KAI) C++ Compiler
19708
19709 # KCC will only create a shared library if the output file
19710 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19711 # to its proper name (with version) after linking.
19712 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'
19713 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'
19714 # Commands to make compiler produce verbose output that lists
19715 # what "hidden" libraries, object files and flags are used when
19716 # linking a shared library.
19717 #
19718 # There doesn't appear to be a way to prevent this compiler from
19719 # explicitly linking system object files so we need to strip them
19720 # from the output so that they don't get included in the library
19721 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019722 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 +000019723
19724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19726
19727 # Archives containing C++ object files must be created using
19728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19730 ;;
19731 icpc* | ecpc* )
19732 # Intel C++
19733 with_gnu_ld=yes
19734 # version 8.0 and above of icpc choke on multiply defined symbols
19735 # if we add $predep_objects and $postdep_objects, however 7.1 and
19736 # earlier do not add the objects themselves.
19737 case `$CC -V 2>&1` in
19738 *"Version 7."*)
19739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19740 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'
19741 ;;
19742 *) # Version 8.0 or newer
19743 tmp_idyn=
19744 case $host_cpu in
19745 ia64*) tmp_idyn=' -i_dynamic';;
19746 esac
19747 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19748 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'
19749 ;;
19750 esac
19751 archive_cmds_need_lc_CXX=no
19752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19754 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19755 ;;
19756 pgCC* | pgcpp*)
19757 # Portland Group C++ compiler
19758 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019759 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019760 prelink_cmds_CXX='tpldir=Template.dir~
19761 rm -rf $tpldir~
19762 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019763 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019764 old_archive_cmds_CXX='tpldir=Template.dir~
19765 rm -rf $tpldir~
19766 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019767 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019768 $RANLIB $oldlib'
19769 archive_cmds_CXX='tpldir=Template.dir~
19770 rm -rf $tpldir~
19771 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019772 $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 +000019773 archive_expsym_cmds_CXX='tpldir=Template.dir~
19774 rm -rf $tpldir~
19775 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019776 $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 +000019777 ;;
cristy0c60a692010-11-04 01:09:47 +000019778 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019779 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19780 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'
19781 ;;
19782 esac
19783
19784 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19785 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019786 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 +000019787 ;;
19788 cxx*)
19789 # Compaq C++
19790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19791 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'
19792
19793 runpath_var=LD_RUN_PATH
19794 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19795 hardcode_libdir_separator_CXX=:
19796
19797 # Commands to make compiler produce verbose output that lists
19798 # what "hidden" libraries, object files and flags are used when
19799 # linking a shared library.
19800 #
19801 # There doesn't appear to be a way to prevent this compiler from
19802 # explicitly linking system object files so we need to strip them
19803 # from the output so that they don't get included in the library
19804 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019805 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 +000019806 ;;
cristy0c60a692010-11-04 01:09:47 +000019807 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019808 # IBM XL 8.0 on PPC, with GNU ld
19809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19810 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19811 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19812 if test "x$supports_anon_versioning" = xyes; then
19813 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19815 echo "local: *; };" >> $output_objdir/$libname.ver~
19816 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19817 fi
19818 ;;
19819 *)
19820 case `$CC -V 2>&1 | sed 5q` in
19821 *Sun\ C*)
19822 # Sun C++ 5.9
19823 no_undefined_flag_CXX=' -zdefs'
19824 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19825 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'
19826 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019827 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 +000019828 compiler_needs_object_CXX=yes
19829
19830 # Not sure whether something based on
19831 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19832 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019833 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019834
19835 # Archives containing C++ object files must be created using
19836 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19837 # necessary to make sure instantiated templates are included
19838 # in the archive.
19839 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19840 ;;
19841 esac
19842 ;;
19843 esac
19844 ;;
19845
19846 lynxos*)
19847 # FIXME: insert proper C++ library support
19848 ld_shlibs_CXX=no
19849 ;;
19850
19851 m88k*)
19852 # FIXME: insert proper C++ library support
19853 ld_shlibs_CXX=no
19854 ;;
19855
19856 mvs*)
19857 case $cc_basename in
19858 cxx*)
19859 # FIXME: insert proper C++ library support
19860 ld_shlibs_CXX=no
19861 ;;
19862 *)
19863 # FIXME: insert proper C++ library support
19864 ld_shlibs_CXX=no
19865 ;;
19866 esac
19867 ;;
19868
19869 netbsd*)
19870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19871 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19872 wlarc=
19873 hardcode_libdir_flag_spec_CXX='-R$libdir'
19874 hardcode_direct_CXX=yes
19875 hardcode_shlibpath_var_CXX=no
19876 fi
19877 # Workaround some broken pre-1.5 toolchains
19878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19879 ;;
19880
19881 *nto* | *qnx*)
19882 ld_shlibs_CXX=yes
19883 ;;
19884
19885 openbsd2*)
19886 # C++ shared libraries are fairly broken
19887 ld_shlibs_CXX=no
19888 ;;
19889
19890 openbsd*)
19891 if test -f /usr/libexec/ld.so; then
19892 hardcode_direct_CXX=yes
19893 hardcode_shlibpath_var_CXX=no
19894 hardcode_direct_absolute_CXX=yes
19895 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19899 export_dynamic_flag_spec_CXX='${wl}-E'
19900 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19901 fi
cristy0c60a692010-11-04 01:09:47 +000019902 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019903 else
19904 ld_shlibs_CXX=no
19905 fi
19906 ;;
19907
19908 osf3* | osf4* | osf5*)
19909 case $cc_basename in
19910 KCC*)
19911 # Kuck and Associates, Inc. (KAI) C++ Compiler
19912
19913 # KCC will only create a shared library if the output file
19914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19915 # to its proper name (with version) after linking.
19916 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'
19917
19918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19919 hardcode_libdir_separator_CXX=:
19920
19921 # Archives containing C++ object files must be created using
19922 # the KAI C++ compiler.
19923 case $host in
19924 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19925 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19926 esac
19927 ;;
19928 RCC*)
19929 # Rational C++ 2.4.1
19930 # FIXME: insert proper C++ library support
19931 ld_shlibs_CXX=no
19932 ;;
19933 cxx*)
19934 case $host in
19935 osf3*)
19936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019937 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 +000019938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19939 ;;
19940 *)
19941 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019942 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 +000019943 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19944 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019945 $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 +000019946 $RM $lib.exp'
19947 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19948 ;;
19949 esac
19950
19951 hardcode_libdir_separator_CXX=:
19952
19953 # Commands to make compiler produce verbose output that lists
19954 # what "hidden" libraries, object files and flags are used when
19955 # linking a shared library.
19956 #
19957 # There doesn't appear to be a way to prevent this compiler from
19958 # explicitly linking system object files so we need to strip them
19959 # from the output so that they don't get included in the library
19960 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019961 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 +000019962 ;;
19963 *)
19964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19965 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19966 case $host in
19967 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019968 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 +000019969 ;;
19970 *)
cristyda16f162011-02-19 23:52:17 +000019971 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 +000019972 ;;
19973 esac
19974
19975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19976 hardcode_libdir_separator_CXX=:
19977
19978 # Commands to make compiler produce verbose output that lists
19979 # what "hidden" libraries, object files and flags are used when
19980 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019982
19983 else
19984 # FIXME: insert proper C++ library support
19985 ld_shlibs_CXX=no
19986 fi
19987 ;;
19988 esac
19989 ;;
19990
19991 psos*)
19992 # FIXME: insert proper C++ library support
19993 ld_shlibs_CXX=no
19994 ;;
19995
19996 sunos4*)
19997 case $cc_basename in
19998 CC*)
19999 # Sun C++ 4.x
20000 # FIXME: insert proper C++ library support
20001 ld_shlibs_CXX=no
20002 ;;
20003 lcc*)
20004 # Lucid
20005 # FIXME: insert proper C++ library support
20006 ld_shlibs_CXX=no
20007 ;;
20008 *)
20009 # FIXME: insert proper C++ library support
20010 ld_shlibs_CXX=no
20011 ;;
20012 esac
20013 ;;
20014
20015 solaris*)
20016 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020017 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020018 # Sun C++ 4.2, 5.x and Centerline C++
20019 archive_cmds_need_lc_CXX=yes
20020 no_undefined_flag_CXX=' -zdefs'
20021 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20022 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20023 $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'
20024
20025 hardcode_libdir_flag_spec_CXX='-R$libdir'
20026 hardcode_shlibpath_var_CXX=no
20027 case $host_os in
20028 solaris2.[0-5] | solaris2.[0-5].*) ;;
20029 *)
20030 # The compiler driver will combine and reorder linker options,
20031 # but understands `-z linker_flag'.
20032 # Supported since Solaris 2.6 (maybe 2.5.1?)
20033 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20034 ;;
20035 esac
20036 link_all_deplibs_CXX=yes
20037
cristy0c60a692010-11-04 01:09:47 +000020038 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000020039
20040 # Archives containing C++ object files must be created using
20041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20042 # necessary to make sure instantiated templates are included
20043 # in the archive.
20044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20045 ;;
20046 gcx*)
20047 # Green Hills C++ Compiler
20048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20049
20050 # The C++ compiler must be used to create the archive.
20051 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20052 ;;
20053 *)
20054 # GNU C++ compiler with Solaris linker
20055 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20056 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20057 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000020058 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 +000020059 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 +000020060 $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 +000020061
20062 # Commands to make compiler produce verbose output that lists
20063 # what "hidden" libraries, object files and flags are used when
20064 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020066 else
20067 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20068 # platform.
20069 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20070 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20071 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20072
20073 # Commands to make compiler produce verbose output that lists
20074 # what "hidden" libraries, object files and flags are used when
20075 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020076 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020077 fi
20078
20079 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20080 case $host_os in
20081 solaris2.[0-5] | solaris2.[0-5].*) ;;
20082 *)
20083 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20084 ;;
20085 esac
20086 fi
20087 ;;
20088 esac
20089 ;;
20090
20091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20092 no_undefined_flag_CXX='${wl}-z,text'
20093 archive_cmds_need_lc_CXX=no
20094 hardcode_shlibpath_var_CXX=no
20095 runpath_var='LD_RUN_PATH'
20096
20097 case $cc_basename in
20098 CC*)
20099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 ;;
20102 *)
20103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20105 ;;
20106 esac
20107 ;;
20108
20109 sysv5* | sco3.2v5* | sco5v6*)
20110 # Note: We can NOT use -z defs as we might desire, because we do not
20111 # link with -lc, and that would cause any symbols used from libc to
20112 # always be unresolved, which means just about no library would
20113 # ever link correctly. If we're not using GNU ld we use -z text
20114 # though, which does catch some bad symbols but isn't as heavy-handed
20115 # as -z defs.
20116 no_undefined_flag_CXX='${wl}-z,text'
20117 allow_undefined_flag_CXX='${wl}-z,nodefs'
20118 archive_cmds_need_lc_CXX=no
20119 hardcode_shlibpath_var_CXX=no
20120 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20121 hardcode_libdir_separator_CXX=':'
20122 link_all_deplibs_CXX=yes
20123 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20124 runpath_var='LD_RUN_PATH'
20125
20126 case $cc_basename in
20127 CC*)
20128 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20129 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 +000020130 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20131 '"$old_archive_cmds_CXX"
20132 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20133 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000020134 ;;
20135 *)
20136 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20137 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20138 ;;
20139 esac
20140 ;;
20141
20142 tandem*)
20143 case $cc_basename in
20144 NCC*)
20145 # NonStop-UX NCC 3.20
20146 # FIXME: insert proper C++ library support
20147 ld_shlibs_CXX=no
20148 ;;
20149 *)
20150 # FIXME: insert proper C++ library support
20151 ld_shlibs_CXX=no
20152 ;;
20153 esac
20154 ;;
20155
20156 vxworks*)
20157 # FIXME: insert proper C++ library support
20158 ld_shlibs_CXX=no
20159 ;;
20160
20161 *)
20162 # FIXME: insert proper C++ library support
20163 ld_shlibs_CXX=no
20164 ;;
20165 esac
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20168$as_echo "$ld_shlibs_CXX" >&6; }
20169 test "$ld_shlibs_CXX" = no && can_build_shared=no
20170
20171 GCC_CXX="$GXX"
20172 LD_CXX="$LD"
20173
20174 ## CAVEAT EMPTOR:
20175 ## There is no encapsulation within the following macros, do not change
20176 ## the running order or otherwise move them around unless you know exactly
20177 ## what you are doing...
20178 # Dependencies to place before and after the object being linked:
20179predep_objects_CXX=
20180postdep_objects_CXX=
20181predeps_CXX=
20182postdeps_CXX=
20183compiler_lib_search_path_CXX=
20184
20185cat > conftest.$ac_ext <<_LT_EOF
20186class Foo
20187{
20188public:
20189 Foo (void) { a = 0; }
20190private:
20191 int a;
20192};
20193_LT_EOF
20194
cristyda16f162011-02-19 23:52:17 +000020195
20196_lt_libdeps_save_CFLAGS=$CFLAGS
20197case "$CC $CFLAGS " in #(
20198*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20199*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000020200*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000020201esac
20202
cristy73bd4a52010-10-05 11:24:23 +000020203if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20204 (eval $ac_compile) 2>&5
20205 ac_status=$?
20206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20207 test $ac_status = 0; }; then
20208 # Parse the compiler output and extract the necessary
20209 # objects, libraries and library flags.
20210
20211 # Sentinel used to keep track of whether or not we are before
20212 # the conftest object file.
20213 pre_test_object_deps_done=no
20214
20215 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000020216 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000020217
20218 -L* | -R* | -l*)
20219 # Some compilers place space between "-{L,R}" and the path.
20220 # Remove the space.
20221 if test $p = "-L" ||
20222 test $p = "-R"; then
20223 prev=$p
20224 continue
cristy73bd4a52010-10-05 11:24:23 +000020225 fi
20226
cristyda16f162011-02-19 23:52:17 +000020227 # Expand the sysroot to ease extracting the directories later.
20228 if test -z "$prev"; then
20229 case $p in
20230 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20231 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20232 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20233 esac
20234 fi
20235 case $p in
20236 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20237 esac
cristy73bd4a52010-10-05 11:24:23 +000020238 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000020239 case ${prev} in
20240 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000020241 # Internal compiler library paths should come after those
20242 # provided the user. The postdeps already come after the
20243 # user supplied libs so there is no need to process them.
20244 if test -z "$compiler_lib_search_path_CXX"; then
20245 compiler_lib_search_path_CXX="${prev}${p}"
20246 else
20247 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20248 fi
20249 ;;
20250 # The "-l" case would never come before the object being
20251 # linked, so don't bother handling this case.
20252 esac
20253 else
20254 if test -z "$postdeps_CXX"; then
20255 postdeps_CXX="${prev}${p}"
20256 else
20257 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20258 fi
20259 fi
cristyda16f162011-02-19 23:52:17 +000020260 prev=
cristy73bd4a52010-10-05 11:24:23 +000020261 ;;
20262
cristyda16f162011-02-19 23:52:17 +000020263 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000020264 *.$objext)
20265 # This assumes that the test object file only shows up
20266 # once in the compiler output.
20267 if test "$p" = "conftest.$objext"; then
20268 pre_test_object_deps_done=yes
20269 continue
20270 fi
20271
20272 if test "$pre_test_object_deps_done" = no; then
20273 if test -z "$predep_objects_CXX"; then
20274 predep_objects_CXX="$p"
20275 else
20276 predep_objects_CXX="$predep_objects_CXX $p"
20277 fi
20278 else
20279 if test -z "$postdep_objects_CXX"; then
20280 postdep_objects_CXX="$p"
20281 else
20282 postdep_objects_CXX="$postdep_objects_CXX $p"
20283 fi
20284 fi
20285 ;;
20286
20287 *) ;; # Ignore the rest.
20288
20289 esac
20290 done
20291
20292 # Clean up.
20293 rm -f a.out a.exe
20294else
20295 echo "libtool.m4: error: problem compiling CXX test program"
20296fi
20297
20298$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000020299CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020300
20301# PORTME: override above test on systems where it is broken
20302case $host_os in
20303interix[3-9]*)
20304 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20305 # hack all around it, let's just trust "g++" to DTRT.
20306 predep_objects_CXX=
20307 postdep_objects_CXX=
20308 postdeps_CXX=
20309 ;;
20310
20311linux*)
20312 case `$CC -V 2>&1 | sed 5q` in
20313 *Sun\ C*)
20314 # Sun C++ 5.9
20315
20316 # The more standards-conforming stlport4 library is
20317 # incompatible with the Cstd library. Avoid specifying
20318 # it if it's in CXXFLAGS. Ignore libCrun as
20319 # -library=stlport4 depends on it.
20320 case " $CXX $CXXFLAGS " in
20321 *" -library=stlport4 "*)
20322 solaris_use_stlport4=yes
20323 ;;
20324 esac
20325
20326 if test "$solaris_use_stlport4" != yes; then
20327 postdeps_CXX='-library=Cstd -library=Crun'
20328 fi
20329 ;;
20330 esac
20331 ;;
20332
20333solaris*)
20334 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020335 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020336 # The more standards-conforming stlport4 library is
20337 # incompatible with the Cstd library. Avoid specifying
20338 # it if it's in CXXFLAGS. Ignore libCrun as
20339 # -library=stlport4 depends on it.
20340 case " $CXX $CXXFLAGS " in
20341 *" -library=stlport4 "*)
20342 solaris_use_stlport4=yes
20343 ;;
20344 esac
20345
20346 # Adding this requires a known-good setup of shared libraries for
20347 # Sun compiler versions before 5.6, else PIC objects from an old
20348 # archive will be linked into the output, leading to subtle bugs.
20349 if test "$solaris_use_stlport4" != yes; then
20350 postdeps_CXX='-library=Cstd -library=Crun'
20351 fi
20352 ;;
20353 esac
20354 ;;
20355esac
20356
20357
20358case " $postdeps_CXX " in
20359*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20360esac
20361 compiler_lib_search_dirs_CXX=
20362if test -n "${compiler_lib_search_path_CXX}"; then
20363 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20364fi
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396 lt_prog_compiler_wl_CXX=
20397lt_prog_compiler_pic_CXX=
20398lt_prog_compiler_static_CXX=
20399
cristy73bd4a52010-10-05 11:24:23 +000020400
20401 # C++ specific cases for pic, static, wl, etc.
20402 if test "$GXX" = yes; then
20403 lt_prog_compiler_wl_CXX='-Wl,'
20404 lt_prog_compiler_static_CXX='-static'
20405
20406 case $host_os in
20407 aix*)
20408 # All AIX code is PIC.
20409 if test "$host_cpu" = ia64; then
20410 # AIX 5 now supports IA64 processor
20411 lt_prog_compiler_static_CXX='-Bstatic'
20412 fi
20413 ;;
20414
20415 amigaos*)
20416 case $host_cpu in
20417 powerpc)
20418 # see comment about AmigaOS4 .so support
20419 lt_prog_compiler_pic_CXX='-fPIC'
20420 ;;
20421 m68k)
20422 # FIXME: we need at least 68020 code to build shared libraries, but
20423 # adding the `-m68020' flag to GCC prevents building anything better,
20424 # like `-m68040'.
20425 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20426 ;;
20427 esac
20428 ;;
20429
20430 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20431 # PIC is the default for these OSes.
20432 ;;
20433 mingw* | cygwin* | os2* | pw32* | cegcc*)
20434 # This hack is so that the source file can tell whether it is being
20435 # built for inclusion in a dll (and should export symbols for example).
20436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20437 # (--disable-auto-import) libraries
20438 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20439 ;;
20440 darwin* | rhapsody*)
20441 # PIC is the default on this platform
20442 # Common symbols not allowed in MH_DYLIB files
20443 lt_prog_compiler_pic_CXX='-fno-common'
20444 ;;
20445 *djgpp*)
20446 # DJGPP does not support shared libraries at all
20447 lt_prog_compiler_pic_CXX=
20448 ;;
cristy0c60a692010-11-04 01:09:47 +000020449 haiku*)
20450 # PIC is the default for Haiku.
20451 # The "-static" flag exists, but is broken.
20452 lt_prog_compiler_static_CXX=
20453 ;;
cristy73bd4a52010-10-05 11:24:23 +000020454 interix[3-9]*)
20455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20456 # Instead, we relocate shared libraries at runtime.
20457 ;;
20458 sysv4*MP*)
20459 if test -d /usr/nec; then
20460 lt_prog_compiler_pic_CXX=-Kconform_pic
20461 fi
20462 ;;
20463 hpux*)
20464 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20465 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20466 # sets the default TLS model and affects inlining.
20467 case $host_cpu in
20468 hppa*64*)
20469 ;;
20470 *)
20471 lt_prog_compiler_pic_CXX='-fPIC'
20472 ;;
20473 esac
20474 ;;
20475 *qnx* | *nto*)
20476 # QNX uses GNU C++, but need to define -shared option too, otherwise
20477 # it will coredump.
20478 lt_prog_compiler_pic_CXX='-fPIC -shared'
20479 ;;
20480 *)
20481 lt_prog_compiler_pic_CXX='-fPIC'
20482 ;;
20483 esac
20484 else
20485 case $host_os in
20486 aix[4-9]*)
20487 # All AIX code is PIC.
20488 if test "$host_cpu" = ia64; then
20489 # AIX 5 now supports IA64 processor
20490 lt_prog_compiler_static_CXX='-Bstatic'
20491 else
20492 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20493 fi
20494 ;;
20495 chorus*)
20496 case $cc_basename in
20497 cxch68*)
20498 # Green Hills C++ Compiler
20499 # _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"
20500 ;;
20501 esac
20502 ;;
cristyda16f162011-02-19 23:52:17 +000020503 mingw* | cygwin* | os2* | pw32* | cegcc*)
20504 # This hack is so that the source file can tell whether it is being
20505 # built for inclusion in a dll (and should export symbols for example).
20506 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20507 ;;
cristy73bd4a52010-10-05 11:24:23 +000020508 dgux*)
20509 case $cc_basename in
20510 ec++*)
20511 lt_prog_compiler_pic_CXX='-KPIC'
20512 ;;
20513 ghcx*)
20514 # Green Hills C++ Compiler
20515 lt_prog_compiler_pic_CXX='-pic'
20516 ;;
20517 *)
20518 ;;
20519 esac
20520 ;;
20521 freebsd* | dragonfly*)
20522 # FreeBSD uses GNU C++
20523 ;;
20524 hpux9* | hpux10* | hpux11*)
20525 case $cc_basename in
20526 CC*)
20527 lt_prog_compiler_wl_CXX='-Wl,'
20528 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20529 if test "$host_cpu" != ia64; then
20530 lt_prog_compiler_pic_CXX='+Z'
20531 fi
20532 ;;
20533 aCC*)
20534 lt_prog_compiler_wl_CXX='-Wl,'
20535 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20536 case $host_cpu in
20537 hppa*64*|ia64*)
20538 # +Z the default
20539 ;;
20540 *)
20541 lt_prog_compiler_pic_CXX='+Z'
20542 ;;
20543 esac
20544 ;;
20545 *)
20546 ;;
20547 esac
20548 ;;
20549 interix*)
20550 # This is c89, which is MS Visual C++ (no shared libs)
20551 # Anyone wants to do a port?
20552 ;;
20553 irix5* | irix6* | nonstopux*)
20554 case $cc_basename in
20555 CC*)
20556 lt_prog_compiler_wl_CXX='-Wl,'
20557 lt_prog_compiler_static_CXX='-non_shared'
20558 # CC pic flag -KPIC is the default.
20559 ;;
20560 *)
20561 ;;
20562 esac
20563 ;;
cristy0c60a692010-11-04 01:09:47 +000020564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020565 case $cc_basename in
20566 KCC*)
20567 # KAI C++ Compiler
20568 lt_prog_compiler_wl_CXX='--backend -Wl,'
20569 lt_prog_compiler_pic_CXX='-fPIC'
20570 ;;
20571 ecpc* )
20572 # old Intel C++ for x86_64 which still supported -KPIC.
20573 lt_prog_compiler_wl_CXX='-Wl,'
20574 lt_prog_compiler_pic_CXX='-KPIC'
20575 lt_prog_compiler_static_CXX='-static'
20576 ;;
20577 icpc* )
20578 # Intel C++, used to be incompatible with GCC.
20579 # ICC 10 doesn't accept -KPIC any more.
20580 lt_prog_compiler_wl_CXX='-Wl,'
20581 lt_prog_compiler_pic_CXX='-fPIC'
20582 lt_prog_compiler_static_CXX='-static'
20583 ;;
20584 pgCC* | pgcpp*)
20585 # Portland Group C++ compiler
20586 lt_prog_compiler_wl_CXX='-Wl,'
20587 lt_prog_compiler_pic_CXX='-fpic'
20588 lt_prog_compiler_static_CXX='-Bstatic'
20589 ;;
20590 cxx*)
20591 # Compaq C++
20592 # Make sure the PIC flag is empty. It appears that all Alpha
20593 # Linux and Compaq Tru64 Unix objects are PIC.
20594 lt_prog_compiler_pic_CXX=
20595 lt_prog_compiler_static_CXX='-non_shared'
20596 ;;
cristy0c60a692010-11-04 01:09:47 +000020597 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20598 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020599 lt_prog_compiler_wl_CXX='-Wl,'
20600 lt_prog_compiler_pic_CXX='-qpic'
20601 lt_prog_compiler_static_CXX='-qstaticlink'
20602 ;;
20603 *)
20604 case `$CC -V 2>&1 | sed 5q` in
20605 *Sun\ C*)
20606 # Sun C++ 5.9
20607 lt_prog_compiler_pic_CXX='-KPIC'
20608 lt_prog_compiler_static_CXX='-Bstatic'
20609 lt_prog_compiler_wl_CXX='-Qoption ld '
20610 ;;
20611 esac
20612 ;;
20613 esac
20614 ;;
20615 lynxos*)
20616 ;;
20617 m88k*)
20618 ;;
20619 mvs*)
20620 case $cc_basename in
20621 cxx*)
20622 lt_prog_compiler_pic_CXX='-W c,exportall'
20623 ;;
20624 *)
20625 ;;
20626 esac
20627 ;;
20628 netbsd*)
20629 ;;
20630 *qnx* | *nto*)
20631 # QNX uses GNU C++, but need to define -shared option too, otherwise
20632 # it will coredump.
20633 lt_prog_compiler_pic_CXX='-fPIC -shared'
20634 ;;
20635 osf3* | osf4* | osf5*)
20636 case $cc_basename in
20637 KCC*)
20638 lt_prog_compiler_wl_CXX='--backend -Wl,'
20639 ;;
20640 RCC*)
20641 # Rational C++ 2.4.1
20642 lt_prog_compiler_pic_CXX='-pic'
20643 ;;
20644 cxx*)
20645 # Digital/Compaq C++
20646 lt_prog_compiler_wl_CXX='-Wl,'
20647 # Make sure the PIC flag is empty. It appears that all Alpha
20648 # Linux and Compaq Tru64 Unix objects are PIC.
20649 lt_prog_compiler_pic_CXX=
20650 lt_prog_compiler_static_CXX='-non_shared'
20651 ;;
20652 *)
20653 ;;
20654 esac
20655 ;;
20656 psos*)
20657 ;;
20658 solaris*)
20659 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020660 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020661 # Sun C++ 4.2, 5.x and Centerline C++
20662 lt_prog_compiler_pic_CXX='-KPIC'
20663 lt_prog_compiler_static_CXX='-Bstatic'
20664 lt_prog_compiler_wl_CXX='-Qoption ld '
20665 ;;
20666 gcx*)
20667 # Green Hills C++ Compiler
20668 lt_prog_compiler_pic_CXX='-PIC'
20669 ;;
20670 *)
20671 ;;
20672 esac
20673 ;;
20674 sunos4*)
20675 case $cc_basename in
20676 CC*)
20677 # Sun C++ 4.x
20678 lt_prog_compiler_pic_CXX='-pic'
20679 lt_prog_compiler_static_CXX='-Bstatic'
20680 ;;
20681 lcc*)
20682 # Lucid
20683 lt_prog_compiler_pic_CXX='-pic'
20684 ;;
20685 *)
20686 ;;
20687 esac
20688 ;;
20689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20690 case $cc_basename in
20691 CC*)
20692 lt_prog_compiler_wl_CXX='-Wl,'
20693 lt_prog_compiler_pic_CXX='-KPIC'
20694 lt_prog_compiler_static_CXX='-Bstatic'
20695 ;;
20696 esac
20697 ;;
20698 tandem*)
20699 case $cc_basename in
20700 NCC*)
20701 # NonStop-UX NCC 3.20
20702 lt_prog_compiler_pic_CXX='-KPIC'
20703 ;;
20704 *)
20705 ;;
20706 esac
20707 ;;
20708 vxworks*)
20709 ;;
20710 *)
20711 lt_prog_compiler_can_build_shared_CXX=no
20712 ;;
20713 esac
20714 fi
20715
20716case $host_os in
20717 # For platforms which do not support PIC, -DPIC is meaningless:
20718 *djgpp*)
20719 lt_prog_compiler_pic_CXX=
20720 ;;
20721 *)
20722 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20723 ;;
20724esac
cristy73bd4a52010-10-05 11:24:23 +000020725
cristyda16f162011-02-19 23:52:17 +000020726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20727$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20728if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20729 $as_echo_n "(cached) " >&6
20730else
20731 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20732fi
20733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20734$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20735lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020736
20737#
20738# Check to make sure the PIC flag actually works.
20739#
20740if test -n "$lt_prog_compiler_pic_CXX"; then
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20742$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020743if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020744 $as_echo_n "(cached) " >&6
20745else
20746 lt_cv_prog_compiler_pic_works_CXX=no
20747 ac_outfile=conftest.$ac_objext
20748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20749 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20750 # Insert the option either (1) after the last *FLAGS variable, or
20751 # (2) before a word containing "conftest.", or (3) at the end.
20752 # Note that $ac_compile itself does not contain backslashes and begins
20753 # with a dollar sign (not a hyphen), so the echo should work correctly.
20754 # The option is referenced via a variable to avoid confusing sed.
20755 lt_compile=`echo "$ac_compile" | $SED \
20756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20758 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020760 (eval "$lt_compile" 2>conftest.err)
20761 ac_status=$?
20762 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020764 if (exit $ac_status) && test -s "$ac_outfile"; then
20765 # The compiler can only warn and ignore the option if not recognized
20766 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20769 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20770 lt_cv_prog_compiler_pic_works_CXX=yes
20771 fi
20772 fi
20773 $RM conftest*
20774
20775fi
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20777$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20778
20779if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20780 case $lt_prog_compiler_pic_CXX in
20781 "" | " "*) ;;
20782 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20783 esac
20784else
20785 lt_prog_compiler_pic_CXX=
20786 lt_prog_compiler_can_build_shared_CXX=no
20787fi
20788
20789fi
20790
20791
20792
cristyda16f162011-02-19 23:52:17 +000020793
20794
cristy73bd4a52010-10-05 11:24:23 +000020795#
20796# Check to make sure the static flag actually works.
20797#
20798wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20800$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020801if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020802 $as_echo_n "(cached) " >&6
20803else
20804 lt_cv_prog_compiler_static_works_CXX=no
20805 save_LDFLAGS="$LDFLAGS"
20806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20809 # The linker can only warn and ignore the option if not recognized
20810 # So say no if there are warnings
20811 if test -s conftest.err; then
20812 # Append any errors to the config.log.
20813 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20816 if diff conftest.exp conftest.er2 >/dev/null; then
20817 lt_cv_prog_compiler_static_works_CXX=yes
20818 fi
20819 else
20820 lt_cv_prog_compiler_static_works_CXX=yes
20821 fi
20822 fi
20823 $RM -r conftest*
20824 LDFLAGS="$save_LDFLAGS"
20825
20826fi
20827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20828$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20829
20830if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20831 :
20832else
20833 lt_prog_compiler_static_CXX=
20834fi
20835
20836
20837
20838
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020841if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020842 $as_echo_n "(cached) " >&6
20843else
20844 lt_cv_prog_compiler_c_o_CXX=no
20845 $RM -r conftest 2>/dev/null
20846 mkdir conftest
20847 cd conftest
20848 mkdir out
20849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20850
20851 lt_compiler_flag="-o out/conftest2.$ac_objext"
20852 # Insert the option either (1) after the last *FLAGS variable, or
20853 # (2) before a word containing "conftest.", or (3) at the end.
20854 # Note that $ac_compile itself does not contain backslashes and begins
20855 # with a dollar sign (not a hyphen), so the echo should work correctly.
20856 lt_compile=`echo "$ac_compile" | $SED \
20857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20859 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020861 (eval "$lt_compile" 2>out/conftest.err)
20862 ac_status=$?
20863 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20866 then
20867 # The compiler can only warn and ignore the option if not recognized
20868 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20872 lt_cv_prog_compiler_c_o_CXX=yes
20873 fi
20874 fi
20875 chmod u+w . 2>&5
20876 $RM conftest*
20877 # SGI C++ compiler will create directory out/ii_files/ for
20878 # template instantiation
20879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20880 $RM out/* && rmdir out
20881 cd ..
20882 $RM -r conftest
20883 $RM conftest*
20884
20885fi
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20888
20889
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020893if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020894 $as_echo_n "(cached) " >&6
20895else
20896 lt_cv_prog_compiler_c_o_CXX=no
20897 $RM -r conftest 2>/dev/null
20898 mkdir conftest
20899 cd conftest
20900 mkdir out
20901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20902
20903 lt_compiler_flag="-o out/conftest2.$ac_objext"
20904 # Insert the option either (1) after the last *FLAGS variable, or
20905 # (2) before a word containing "conftest.", or (3) at the end.
20906 # Note that $ac_compile itself does not contain backslashes and begins
20907 # with a dollar sign (not a hyphen), so the echo should work correctly.
20908 lt_compile=`echo "$ac_compile" | $SED \
20909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20911 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020913 (eval "$lt_compile" 2>out/conftest.err)
20914 ac_status=$?
20915 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20918 then
20919 # The compiler can only warn and ignore the option if not recognized
20920 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20924 lt_cv_prog_compiler_c_o_CXX=yes
20925 fi
20926 fi
20927 chmod u+w . 2>&5
20928 $RM conftest*
20929 # SGI C++ compiler will create directory out/ii_files/ for
20930 # template instantiation
20931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20932 $RM out/* && rmdir out
20933 cd ..
20934 $RM -r conftest
20935 $RM conftest*
20936
20937fi
20938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20939$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20940
20941
20942
20943
20944hard_links="nottested"
20945if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20946 # do not overwrite the value of need_locks provided by the user
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20948$as_echo_n "checking if we can lock with hard links... " >&6; }
20949 hard_links=yes
20950 $RM conftest*
20951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20952 touch conftest.a
20953 ln conftest.a conftest.b 2>&5 || hard_links=no
20954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20956$as_echo "$hard_links" >&6; }
20957 if test "$hard_links" = no; then
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20959$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20960 need_locks=warn
20961 fi
20962else
20963 need_locks=no
20964fi
20965
20966
20967
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20969$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20970
20971 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020972 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020973 case $host_os in
20974 aix[4-9]*)
20975 # If we're using GNU nm, then we don't want the "-C" option.
20976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020977 # Also, AIX nm treats weak defined symbols like other global defined
20978 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020980 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 +000020981 else
20982 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'
20983 fi
20984 ;;
20985 pw32*)
20986 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020987 ;;
cristy73bd4a52010-10-05 11:24:23 +000020988 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020989 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020990 cl*)
20991 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20992 ;;
cristyda16f162011-02-19 23:52:17 +000020993 *)
20994 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'
20995 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20996 ;;
20997 esac
20998 ;;
cristy73bd4a52010-10-05 11:24:23 +000020999 *)
21000 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000021001 ;;
cristy73bd4a52010-10-05 11:24:23 +000021002 esac
cristy73bd4a52010-10-05 11:24:23 +000021003
21004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21005$as_echo "$ld_shlibs_CXX" >&6; }
21006test "$ld_shlibs_CXX" = no && can_build_shared=no
21007
21008with_gnu_ld_CXX=$with_gnu_ld
21009
21010
21011
21012
21013
21014
21015#
21016# Do we need to explicitly link libc?
21017#
21018case "x$archive_cmds_need_lc_CXX" in
21019x|xyes)
21020 # Assume -lc should be added
21021 archive_cmds_need_lc_CXX=yes
21022
21023 if test "$enable_shared" = yes && test "$GCC" = yes; then
21024 case $archive_cmds_CXX in
21025 *'~'*)
21026 # FIXME: we may have to deal with multi-command sequences.
21027 ;;
21028 '$CC '*)
21029 # Test whether the compiler implicitly links with -lc since on some
21030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21031 # to ld, don't add -lc before -lgcc.
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21033$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021034if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021035 $as_echo_n "(cached) " >&6
21036else
21037 $RM conftest*
21038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021039
cristy0c60a692010-11-04 01:09:47 +000021040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000021041 (eval $ac_compile) 2>&5
21042 ac_status=$?
21043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21044 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000021045 soname=conftest
21046 lib=conftest
21047 libobjs=conftest.$ac_objext
21048 deplibs=
21049 wl=$lt_prog_compiler_wl_CXX
21050 pic_flag=$lt_prog_compiler_pic_CXX
21051 compiler_flags=-v
21052 linker_flags=-v
21053 verstring=
21054 output_objdir=.
21055 libname=conftest
21056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21057 allow_undefined_flag_CXX=
21058 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 +000021059 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21060 ac_status=$?
21061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000021063 then
21064 lt_cv_archive_cmds_need_lc_CXX=no
21065 else
21066 lt_cv_archive_cmds_need_lc_CXX=yes
21067 fi
21068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21069 else
21070 cat conftest.err 1>&5
21071 fi
21072 $RM conftest*
21073
21074fi
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21076$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21077 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000021078 ;;
21079 esac
21080 fi
21081 ;;
21082esac
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
cristy73bd4a52010-10-05 11:24:23 +000021145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21146$as_echo_n "checking dynamic linker characteristics... " >&6; }
21147
21148library_names_spec=
21149libname_spec='lib$name'
21150soname_spec=
21151shrext_cmds=".so"
21152postinstall_cmds=
21153postuninstall_cmds=
21154finish_cmds=
21155finish_eval=
21156shlibpath_var=
21157shlibpath_overrides_runpath=unknown
21158version_type=none
21159dynamic_linker="$host_os ld.so"
21160sys_lib_dlsearch_path_spec="/lib /usr/lib"
21161need_lib_prefix=unknown
21162hardcode_into_libs=no
21163
21164# when you set need_version to no, make sure it does not cause -set_version
21165# flags to be left without arguments
21166need_version=unknown
21167
21168case $host_os in
21169aix3*)
cristy99bd5232011-12-07 14:38:20 +000021170 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21172 shlibpath_var=LIBPATH
21173
21174 # AIX 3 has no versioning support, so we append a major version to the name.
21175 soname_spec='${libname}${release}${shared_ext}$major'
21176 ;;
21177
21178aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000021179 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021180 need_lib_prefix=no
21181 need_version=no
21182 hardcode_into_libs=yes
21183 if test "$host_cpu" = ia64; then
21184 # AIX 5 supports IA64
21185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 else
21188 # With GCC up to 2.95.x, collect2 would create an import file
21189 # for dependence libraries. The import file would start with
21190 # the line `#! .'. This would cause the generated library to
21191 # depend on `.', always an invalid library. This was fixed in
21192 # development snapshots of GCC prior to 3.0.
21193 case $host_os in
21194 aix4 | aix4.[01] | aix4.[01].*)
21195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21196 echo ' yes '
21197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21198 :
21199 else
21200 can_build_shared=no
21201 fi
21202 ;;
21203 esac
21204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21205 # soname into executable. Probably we can add versioning support to
21206 # collect2, so additional links can be useful in future.
21207 if test "$aix_use_runtimelinking" = yes; then
21208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21209 # instead of lib<name>.a to let people know that these are not
21210 # typical AIX shared libraries.
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 else
21213 # We preserve .a as extension for shared libraries through AIX4.2
21214 # and later when we are not doing run time linking.
21215 library_names_spec='${libname}${release}.a $libname.a'
21216 soname_spec='${libname}${release}${shared_ext}$major'
21217 fi
21218 shlibpath_var=LIBPATH
21219 fi
21220 ;;
21221
21222amigaos*)
21223 case $host_cpu in
21224 powerpc)
21225 # Since July 2007 AmigaOS4 officially supports .so libraries.
21226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21228 ;;
21229 m68k)
21230 library_names_spec='$libname.ixlibrary $libname.a'
21231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000021232 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 +000021233 ;;
21234 esac
21235 ;;
21236
21237beos*)
21238 library_names_spec='${libname}${shared_ext}'
21239 dynamic_linker="$host_os ld.so"
21240 shlibpath_var=LIBRARY_PATH
21241 ;;
21242
21243bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000021244 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021245 need_version=no
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21247 soname_spec='${libname}${release}${shared_ext}$major'
21248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21249 shlibpath_var=LD_LIBRARY_PATH
21250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21252 # the default ld.so.conf also contains /usr/contrib/lib and
21253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21254 # libtool to hard-code these into programs
21255 ;;
21256
21257cygwin* | mingw* | pw32* | cegcc*)
21258 version_type=windows
21259 shrext_cmds=".dll"
21260 need_version=no
21261 need_lib_prefix=no
21262
cristyda16f162011-02-19 23:52:17 +000021263 case $GCC,$cc_basename in
21264 yes,*)
21265 # gcc
cristy73bd4a52010-10-05 11:24:23 +000021266 library_names_spec='$libname.dll.a'
21267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21268 postinstall_cmds='base_file=`basename \${file}`~
21269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21270 dldir=$destdir/`dirname \$dlpath`~
21271 test -d \$dldir || mkdir -p \$dldir~
21272 $install_prog $dir/$dlname \$dldir/$dlname~
21273 chmod a+x \$dldir/$dlname~
21274 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21275 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21276 fi'
21277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21278 dlpath=$dir/\$dldll~
21279 $RM \$dlpath'
21280 shlibpath_overrides_runpath=yes
21281
21282 case $host_os in
21283 cygwin*)
21284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000021286
cristy73bd4a52010-10-05 11:24:23 +000021287 ;;
21288 mingw* | cegcc*)
21289 # MinGW DLLs use traditional 'lib' prefix
21290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000021291 ;;
21292 pw32*)
21293 # pw32 DLLs use 'pw' prefix rather than 'lib'
21294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21295 ;;
21296 esac
cristyda16f162011-02-19 23:52:17 +000021297 dynamic_linker='Win32 ld.exe'
21298 ;;
21299
21300 *,cl*)
21301 # Native MSVC
21302 libname_spec='$name'
21303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21304 library_names_spec='${libname}.dll.lib'
21305
21306 case $build_os in
21307 mingw*)
21308 sys_lib_search_path_spec=
21309 lt_save_ifs=$IFS
21310 IFS=';'
21311 for lt_path in $LIB
21312 do
21313 IFS=$lt_save_ifs
21314 # Let DOS variable expansion print the short 8.3 style file name.
21315 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21316 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21317 done
21318 IFS=$lt_save_ifs
21319 # Convert to MSYS style.
21320 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21321 ;;
21322 cygwin*)
21323 # Convert to unix form, then to dos form, then back to unix form
21324 # but this time dos style (no spaces!) so that the unix form looks
21325 # like /cygdrive/c/PROGRA~1:/cygdr...
21326 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21327 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21328 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21329 ;;
21330 *)
21331 sys_lib_search_path_spec="$LIB"
21332 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21333 # It is most probably a Windows format PATH.
21334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21335 else
21336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21337 fi
21338 # FIXME: find the short name or the path components, as spaces are
21339 # common. (e.g. "Program Files" -> "PROGRA~1")
21340 ;;
21341 esac
21342
21343 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21344 postinstall_cmds='base_file=`basename \${file}`~
21345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21346 dldir=$destdir/`dirname \$dlpath`~
21347 test -d \$dldir || mkdir -p \$dldir~
21348 $install_prog $dir/$dlname \$dldir/$dlname'
21349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21350 dlpath=$dir/\$dldll~
21351 $RM \$dlpath'
21352 shlibpath_overrides_runpath=yes
21353 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000021354 ;;
21355
21356 *)
cristyda16f162011-02-19 23:52:17 +000021357 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000021358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000021359 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000021360 ;;
21361 esac
cristy73bd4a52010-10-05 11:24:23 +000021362 # FIXME: first we should search . and the directory the executable is in
21363 shlibpath_var=PATH
21364 ;;
21365
21366darwin* | rhapsody*)
21367 dynamic_linker="$host_os dyld"
21368 version_type=darwin
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21372 soname_spec='${libname}${release}${major}$shared_ext'
21373 shlibpath_overrides_runpath=yes
21374 shlibpath_var=DYLD_LIBRARY_PATH
21375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21376
21377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21378 ;;
21379
21380dgux*)
cristy99bd5232011-12-07 14:38:20 +000021381 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021382 need_lib_prefix=no
21383 need_version=no
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 shlibpath_var=LD_LIBRARY_PATH
21387 ;;
21388
cristy73bd4a52010-10-05 11:24:23 +000021389freebsd* | dragonfly*)
21390 # DragonFly does not have aout. When/if they implement a new
21391 # versioning mechanism, adjust this.
21392 if test -x /usr/bin/objformat; then
21393 objformat=`/usr/bin/objformat`
21394 else
21395 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021396 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021397 *) objformat=elf ;;
21398 esac
21399 fi
21400 version_type=freebsd-$objformat
21401 case $version_type in
21402 freebsd-elf*)
21403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21404 need_version=no
21405 need_lib_prefix=no
21406 ;;
21407 freebsd-*)
21408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21409 need_version=yes
21410 ;;
21411 esac
21412 shlibpath_var=LD_LIBRARY_PATH
21413 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021414 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021415 shlibpath_overrides_runpath=yes
21416 ;;
21417 freebsd3.[01]* | freebsdelf3.[01]*)
21418 shlibpath_overrides_runpath=yes
21419 hardcode_into_libs=yes
21420 ;;
21421 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21422 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21423 shlibpath_overrides_runpath=no
21424 hardcode_into_libs=yes
21425 ;;
21426 *) # from 4.6 on, and DragonFly
21427 shlibpath_overrides_runpath=yes
21428 hardcode_into_libs=yes
21429 ;;
21430 esac
21431 ;;
21432
21433gnu*)
cristy99bd5232011-12-07 14:38:20 +000021434 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021435 need_lib_prefix=no
21436 need_version=no
21437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21438 soname_spec='${libname}${release}${shared_ext}$major'
21439 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021440 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021441 hardcode_into_libs=yes
21442 ;;
21443
cristy0c60a692010-11-04 01:09:47 +000021444haiku*)
cristy99bd5232011-12-07 14:38:20 +000021445 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021446 need_lib_prefix=no
21447 need_version=no
21448 dynamic_linker="$host_os runtime_loader"
21449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21450 soname_spec='${libname}${release}${shared_ext}$major'
21451 shlibpath_var=LIBRARY_PATH
21452 shlibpath_overrides_runpath=yes
21453 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21454 hardcode_into_libs=yes
21455 ;;
21456
cristy73bd4a52010-10-05 11:24:23 +000021457hpux9* | hpux10* | hpux11*)
21458 # Give a soname corresponding to the major version so that dld.sl refuses to
21459 # link against other versions.
21460 version_type=sunos
21461 need_lib_prefix=no
21462 need_version=no
21463 case $host_cpu in
21464 ia64*)
21465 shrext_cmds='.so'
21466 hardcode_into_libs=yes
21467 dynamic_linker="$host_os dld.so"
21468 shlibpath_var=LD_LIBRARY_PATH
21469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21471 soname_spec='${libname}${release}${shared_ext}$major'
21472 if test "X$HPUX_IA64_MODE" = X32; then
21473 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21474 else
21475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21476 fi
21477 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21478 ;;
21479 hppa*64*)
21480 shrext_cmds='.sl'
21481 hardcode_into_libs=yes
21482 dynamic_linker="$host_os dld.sl"
21483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21486 soname_spec='${libname}${release}${shared_ext}$major'
21487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21489 ;;
21490 *)
21491 shrext_cmds='.sl'
21492 dynamic_linker="$host_os dld.sl"
21493 shlibpath_var=SHLIB_PATH
21494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21496 soname_spec='${libname}${release}${shared_ext}$major'
21497 ;;
21498 esac
cristy0c60a692010-11-04 01:09:47 +000021499 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021500 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021501 # or fails outright, so override atomically:
21502 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021503 ;;
21504
21505interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021506 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021507 need_lib_prefix=no
21508 need_version=no
21509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21510 soname_spec='${libname}${release}${shared_ext}$major'
21511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21512 shlibpath_var=LD_LIBRARY_PATH
21513 shlibpath_overrides_runpath=no
21514 hardcode_into_libs=yes
21515 ;;
21516
21517irix5* | irix6* | nonstopux*)
21518 case $host_os in
21519 nonstopux*) version_type=nonstopux ;;
21520 *)
21521 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021522 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021523 else
21524 version_type=irix
21525 fi ;;
21526 esac
21527 need_lib_prefix=no
21528 need_version=no
21529 soname_spec='${libname}${release}${shared_ext}$major'
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21531 case $host_os in
21532 irix5* | nonstopux*)
21533 libsuff= shlibsuff=
21534 ;;
21535 *)
21536 case $LD in # libtool.m4 will add one of these switches to LD
21537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21538 libsuff= shlibsuff= libmagic=32-bit;;
21539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21540 libsuff=32 shlibsuff=N32 libmagic=N32;;
21541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21543 *) libsuff= shlibsuff= libmagic=never-match;;
21544 esac
21545 ;;
21546 esac
21547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21548 shlibpath_overrides_runpath=no
21549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21551 hardcode_into_libs=yes
21552 ;;
21553
21554# No shared lib support for Linux oldld, aout, or coff.
21555linux*oldld* | linux*aout* | linux*coff*)
21556 dynamic_linker=no
21557 ;;
21558
cristy99bd5232011-12-07 14:38:20 +000021559# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021560linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021561 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021562 need_lib_prefix=no
21563 need_version=no
21564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21565 soname_spec='${libname}${release}${shared_ext}$major'
21566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21567 shlibpath_var=LD_LIBRARY_PATH
21568 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021569
cristy73bd4a52010-10-05 11:24:23 +000021570 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021571 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021572 $as_echo_n "(cached) " >&6
21573else
21574 lt_cv_shlibpath_overrides_runpath=no
21575 save_LDFLAGS=$LDFLAGS
21576 save_libdir=$libdir
21577 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21578 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021580/* end confdefs.h. */
21581
21582int
21583main ()
21584{
21585
21586 ;
21587 return 0;
21588}
21589_ACEOF
21590if ac_fn_cxx_try_link "$LINENO"; then :
21591 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021592 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021593fi
21594fi
21595rm -f core conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021597 LDFLAGS=$save_LDFLAGS
21598 libdir=$save_libdir
21599
21600fi
21601
21602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021603
21604 # This implies no fast_install, which is unacceptable.
21605 # Some rework will be needed to allow for fast_install
21606 # before this can be enabled.
21607 hardcode_into_libs=yes
21608
21609 # Add ABI-specific directories to the system library path.
21610 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21611
21612 # Append ld.so.conf contents to the search path
21613 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021614 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 +000021615 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021616
cristy73bd4a52010-10-05 11:24:23 +000021617 fi
21618
21619 # We used to test for /lib/ld.so.1 and disable shared libraries on
21620 # powerpc, because MkLinux only supported shared libraries with the
21621 # GNU dynamic linker. Since this was broken with cross compilers,
21622 # most powerpc-linux boxes support dynamic linking these days and
21623 # people can always --disable-shared, the test was removed, and we
21624 # assume the GNU/Linux dynamic linker is in use.
21625 dynamic_linker='GNU/Linux ld.so'
21626 ;;
21627
21628netbsd*)
21629 version_type=sunos
21630 need_lib_prefix=no
21631 need_version=no
21632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21635 dynamic_linker='NetBSD (a.out) ld.so'
21636 else
21637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21638 soname_spec='${libname}${release}${shared_ext}$major'
21639 dynamic_linker='NetBSD ld.elf_so'
21640 fi
21641 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=yes
21643 hardcode_into_libs=yes
21644 ;;
21645
21646newsos6)
cristy99bd5232011-12-07 14:38:20 +000021647 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21649 shlibpath_var=LD_LIBRARY_PATH
21650 shlibpath_overrides_runpath=yes
21651 ;;
21652
21653*nto* | *qnx*)
21654 version_type=qnx
21655 need_lib_prefix=no
21656 need_version=no
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec='${libname}${release}${shared_ext}$major'
21659 shlibpath_var=LD_LIBRARY_PATH
21660 shlibpath_overrides_runpath=no
21661 hardcode_into_libs=yes
21662 dynamic_linker='ldqnx.so'
21663 ;;
21664
21665openbsd*)
21666 version_type=sunos
21667 sys_lib_dlsearch_path_spec="/usr/lib"
21668 need_lib_prefix=no
21669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21670 case $host_os in
21671 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21672 *) need_version=no ;;
21673 esac
21674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21676 shlibpath_var=LD_LIBRARY_PATH
21677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21678 case $host_os in
21679 openbsd2.[89] | openbsd2.[89].*)
21680 shlibpath_overrides_runpath=no
21681 ;;
21682 *)
21683 shlibpath_overrides_runpath=yes
21684 ;;
21685 esac
21686 else
21687 shlibpath_overrides_runpath=yes
21688 fi
21689 ;;
21690
21691os2*)
21692 libname_spec='$name'
21693 shrext_cmds=".dll"
21694 need_lib_prefix=no
21695 library_names_spec='$libname${shared_ext} $libname.a'
21696 dynamic_linker='OS/2 ld.exe'
21697 shlibpath_var=LIBPATH
21698 ;;
21699
21700osf3* | osf4* | osf5*)
21701 version_type=osf
21702 need_lib_prefix=no
21703 need_version=no
21704 soname_spec='${libname}${release}${shared_ext}$major'
21705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21706 shlibpath_var=LD_LIBRARY_PATH
21707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21709 ;;
21710
21711rdos*)
21712 dynamic_linker=no
21713 ;;
21714
21715solaris*)
cristy99bd5232011-12-07 14:38:20 +000021716 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021717 need_lib_prefix=no
21718 need_version=no
21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21720 soname_spec='${libname}${release}${shared_ext}$major'
21721 shlibpath_var=LD_LIBRARY_PATH
21722 shlibpath_overrides_runpath=yes
21723 hardcode_into_libs=yes
21724 # ldd complains unless libraries are executable
21725 postinstall_cmds='chmod +x $lib'
21726 ;;
21727
21728sunos4*)
21729 version_type=sunos
21730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21732 shlibpath_var=LD_LIBRARY_PATH
21733 shlibpath_overrides_runpath=yes
21734 if test "$with_gnu_ld" = yes; then
21735 need_lib_prefix=no
21736 fi
21737 need_version=yes
21738 ;;
21739
21740sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021741 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21743 soname_spec='${libname}${release}${shared_ext}$major'
21744 shlibpath_var=LD_LIBRARY_PATH
21745 case $host_vendor in
21746 sni)
21747 shlibpath_overrides_runpath=no
21748 need_lib_prefix=no
21749 runpath_var=LD_RUN_PATH
21750 ;;
21751 siemens)
21752 need_lib_prefix=no
21753 ;;
21754 motorola)
21755 need_lib_prefix=no
21756 need_version=no
21757 shlibpath_overrides_runpath=no
21758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21759 ;;
21760 esac
21761 ;;
21762
21763sysv4*MP*)
21764 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021765 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21767 soname_spec='$libname${shared_ext}.$major'
21768 shlibpath_var=LD_LIBRARY_PATH
21769 fi
21770 ;;
21771
21772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21773 version_type=freebsd-elf
21774 need_lib_prefix=no
21775 need_version=no
21776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21777 soname_spec='${libname}${release}${shared_ext}$major'
21778 shlibpath_var=LD_LIBRARY_PATH
21779 shlibpath_overrides_runpath=yes
21780 hardcode_into_libs=yes
21781 if test "$with_gnu_ld" = yes; then
21782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21783 else
21784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21785 case $host_os in
21786 sco3.2v5*)
21787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21788 ;;
21789 esac
21790 fi
21791 sys_lib_dlsearch_path_spec='/usr/lib'
21792 ;;
21793
21794tpf*)
21795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021796 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021797 need_lib_prefix=no
21798 need_version=no
21799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 shlibpath_overrides_runpath=no
21802 hardcode_into_libs=yes
21803 ;;
21804
21805uts4*)
cristy99bd5232011-12-07 14:38:20 +000021806 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec='${libname}${release}${shared_ext}$major'
21809 shlibpath_var=LD_LIBRARY_PATH
21810 ;;
21811
21812*)
21813 dynamic_linker=no
21814 ;;
21815esac
21816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21817$as_echo "$dynamic_linker" >&6; }
21818test "$dynamic_linker" = no && can_build_shared=no
21819
21820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21821if test "$GCC" = yes; then
21822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21823fi
21824
21825if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21827fi
21828if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21829 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21830fi
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
cristy0c60a692010-11-04 01:09:47 +000021867
21868
cristy73bd4a52010-10-05 11:24:23 +000021869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21870$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21871hardcode_action_CXX=
21872if test -n "$hardcode_libdir_flag_spec_CXX" ||
21873 test -n "$runpath_var_CXX" ||
21874 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21875
21876 # We can hardcode non-existent directories.
21877 if test "$hardcode_direct_CXX" != no &&
21878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21879 # have to relink, otherwise we might link with an installed library
21880 # when we should be linking with a yet-to-be-installed one
21881 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21882 test "$hardcode_minus_L_CXX" != no; then
21883 # Linking always hardcodes the temporary library directory.
21884 hardcode_action_CXX=relink
21885 else
21886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21887 hardcode_action_CXX=immediate
21888 fi
21889else
21890 # We cannot hardcode anything, or else we can only hardcode existing
21891 # directories.
21892 hardcode_action_CXX=unsupported
21893fi
21894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21895$as_echo "$hardcode_action_CXX" >&6; }
21896
21897if test "$hardcode_action_CXX" = relink ||
21898 test "$inherit_rpath_CXX" = yes; then
21899 # Fast installation is not supported
21900 enable_fast_install=no
21901elif test "$shlibpath_overrides_runpath" = yes ||
21902 test "$enable_shared" = no; then
21903 # Fast installation is not necessary
21904 enable_fast_install=needless
21905fi
21906
21907
21908
21909
21910
21911
21912
21913 fi # test -n "$compiler"
21914
21915 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021916 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021917 LDCXX=$LD
21918 LD=$lt_save_LD
21919 GCC=$lt_save_GCC
21920 with_gnu_ld=$lt_save_with_gnu_ld
21921 lt_cv_path_LDCXX=$lt_cv_path_LD
21922 lt_cv_path_LD=$lt_save_path_LD
21923 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21924 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21925fi # test "$_lt_caught_CXX_error" != yes
21926
21927ac_ext=c
21928ac_cpp='$CPP $CPPFLAGS'
21929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21931ac_compiler_gnu=$ac_cv_c_compiler_gnu
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
cristy99bd5232011-12-07 14:38:20 +000021945
21946
cristy73bd4a52010-10-05 11:24:23 +000021947 ac_config_commands="$ac_config_commands libtool"
21948
21949
21950
21951
21952# Only expand once:
21953
21954
21955
cristy3ed852e2009-09-05 21:47:34 +000021956
21957
cristy3ed852e2009-09-05 21:47:34 +000021958# Check to see if building shared libraries
21959libtool_build_shared_libs='no'
21960if test "$enable_shared" = 'yes'; then
21961 libtool_build_shared_libs='yes'
21962fi
21963
21964# Check to see if building static libraries
21965libtool_build_static_libs='no'
21966if test "$enable_static" = 'yes'; then
21967 libtool_build_static_libs='yes'
21968fi
21969
cristy73bd4a52010-10-05 11:24:23 +000021970 if test "${libtool_build_shared_libs}" = 'yes'; then
21971 WITH_SHARED_LIBS_TRUE=
21972 WITH_SHARED_LIBS_FALSE='#'
21973else
21974 WITH_SHARED_LIBS_TRUE='#'
21975 WITH_SHARED_LIBS_FALSE=
21976fi
21977
cristy3ed852e2009-09-05 21:47:34 +000021978#
21979# Enable support for building loadable modules
21980#
cristyaf4cbf32012-10-16 23:47:41 +000021981build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021982
21983# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021984if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 withval=$with_modules; with_modules=$withval
21986else
cristy5a1cefd2010-01-06 20:42:35 +000021987 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021988fi
21989
21990
21991# Only allow building loadable modules if we are building shared libraries
21992if test "$with_modules" != 'no' ; then
21993 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021994 { $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 +000021995$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021996 build_modules='no'
21997 else
21998 build_modules='yes'
21999 fi
cristy3ed852e2009-09-05 21:47:34 +000022000fi
cristyc6722092012-10-14 00:19:31 +000022001if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000022002
cristy8b350f62009-11-15 23:12:43 +000022003$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022004
cristyfa161182012-12-19 15:45:28 +000022005 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000022006fi
cristyc6722092012-10-14 00:19:31 +000022007 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000022008 WITH_MODULES_TRUE=
22009 WITH_MODULES_FALSE='#'
22010else
22011 WITH_MODULES_TRUE='#'
22012 WITH_MODULES_FALSE=
22013fi
22014
cristy3ed852e2009-09-05 21:47:34 +000022015
cristy3ed852e2009-09-05 21:47:34 +000022016# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000022017# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000022018# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000022019if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022020 enableval=$enable_delegate_build; enable_delegate_build=$enableval
22021else
22022 enable_delegate_build='no'
22023fi
22024
22025
22026# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000022027if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 enableval=$enable_deprecated; enable_deprecated=$enableval
22029else
22030 enable_deprecated='no'
22031fi
22032
22033
22034if test "$enable_deprecated" = 'yes'; then
22035
cristy8b350f62009-11-15 23:12:43 +000022036$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022037
22038else
22039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22040fi
22041
22042# Build a version of ImageMagick which operates uninstalled.
22043# Used to build distributions located via MAGICK_HOME / executable path
22044# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000022045if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022046 enableval=$enable_installed; enable_installed=$enableval
22047else
22048 enable_installed='yes'
22049fi
22050
22051
22052if test "$enable_installed" = 'yes'; then
22053
cristy8b350f62009-11-15 23:12:43 +000022054$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022055
22056else
22057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22058fi
22059
22060# Permit enciphering and deciphering image pixels.
22061# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000022062if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022063 enableval=$enable_cipher; enable_cipher=$enableval
22064else
22065 enable_cipher='yes'
22066fi
22067
22068
22069if test "$enable_cipher" = 'yes'; then
22070
cristy8b350f62009-11-15 23:12:43 +000022071$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022072
22073fi
22074
cristy6e3607c2011-09-13 13:59:17 +000022075# Build a zero-configuration version of ImageMagick.
22076# Check whether --enable-zero-configuration was given.
22077if test "${enable_zero_configuration+set}" = set; then :
22078 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000022079else
cristy6e3607c2011-09-13 13:59:17 +000022080 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000022081fi
22082
22083
cristy6e3607c2011-09-13 13:59:17 +000022084if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022085
cristy6e3607c2011-09-13 13:59:17 +000022086$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022087
cristy81af5702011-09-13 14:20:58 +000022088 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000022089fi
22090
22091# Build a high dynamic range version of ImageMagick.
22092# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000022093if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 enableval=$enable_hdri; enable_hdri=$enableval
22095else
cristy191c0b72012-08-12 16:29:52 +000022096 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000022097fi
22098
22099
22100MAGICK_HDRI=""
22101if test "$enable_hdri" = 'yes'; then
22102 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000022103 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000022104 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000022105else
22106 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000022107fi
22108
cristye52f12f2012-12-31 15:32:36 +000022109cat >>confdefs.h <<_ACEOF
22110#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22111_ACEOF
22112
22113MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22114CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000022115CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000022116
cristy3ed852e2009-09-05 21:47:34 +000022117# Build a version of ImageMagick with assert statements.
22118# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000022119if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 enableval=$enable_assert; enable_assert=$enableval
22121else
22122 enable_assert='yes'
22123fi
22124
22125
22126if test "$enable_assert" = 'no'; then
22127
cristy8b350f62009-11-15 23:12:43 +000022128$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022129
22130fi
22131
cristya448bd22011-10-14 12:38:13 +000022132# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000022133
22134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22135$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22136 # Check whether --enable-maintainer-mode was given.
22137if test "${enable_maintainer_mode+set}" = set; then :
22138 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22139else
22140 USE_MAINTAINER_MODE=no
22141fi
22142
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22144$as_echo "$USE_MAINTAINER_MODE" >&6; }
22145 if test $USE_MAINTAINER_MODE = yes; then
22146 MAINTAINER_MODE_TRUE=
22147 MAINTAINER_MODE_FALSE='#'
22148else
22149 MAINTAINER_MODE_TRUE='#'
22150 MAINTAINER_MODE_FALSE=
22151fi
22152
22153 MAINT=$MAINTAINER_MODE_TRUE
22154
22155
cristy3ed852e2009-09-05 21:47:34 +000022156
cristy944e51f2013-04-16 18:45:02 +000022157# Enable hugepages support
22158# Check whether --enable-hugepages was given.
22159if test "${enable_hugepages+set}" = set; then :
22160 enableval=$enable_hugepages; enable_hugepages=$enableval
22161else
22162 enable_hugepages='no'
22163fi
22164
22165
cristy3ed852e2009-09-05 21:47:34 +000022166# Enable ccmalloc memory debugging support
22167# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000022168if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22170else
22171 enable_ccmalloc='no'
22172fi
22173
22174
22175# Enable Electric Fence memory debugging support
22176# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000022177if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 enableval=$enable_efence; enable_efence=$enableval
22179else
22180 enable_efence='no'
22181fi
22182
22183
22184# Enable prof-based profiling support
22185# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000022186if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022187 enableval=$enable_prof; enable_prof=$enableval
22188else
22189 enable_prof='no'
22190fi
22191
22192
22193# Enable gprof-based profiling support
22194# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000022195if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 enableval=$enable_gprof; enable_gprof=$enableval
22197else
22198 enable_gprof='no'
22199fi
22200
22201
22202# Enable gcov-based profiling support
22203# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000022204if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022205 enableval=$enable_gcov; enable_gcov=$enableval
22206else
22207 enable_gcov='no'
22208fi
22209
22210
22211enable_profiling='no'
22212if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22213 enable_profiling='yes'
22214 if test "$libtool_build_shared_libs" = 'yes'; then
22215 echo "Warning: Can not profile code using shared libraries"
22216 fi
22217fi
22218
22219# Magick API method prefix
22220
22221# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000022222if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000022223 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000022224else
cristyfc3d0222012-02-07 15:05:57 +000022225 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000022226fi
22227
22228
cristyfc3d0222012-02-07 15:05:57 +000022229if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000022230
22231cat >>confdefs.h <<_ACEOF
22232#define NAMESPACE_PREFIX $with_method_prefix
22233_ACEOF
22234
cristyfc3d0222012-02-07 15:05:57 +000022235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022236fi
22237
cristy71d8c202012-03-20 17:05:01 +000022238# Enable legacy support (default no)
22239# Check whether --enable-legacy-support was given.
22240if test "${enable_legacy_support+set}" = set; then :
22241 enableval=$enable_legacy_support; with_legacy_support=$enableval
22242else
22243 with_legacy_support='no'
22244fi
22245
22246 if test "$with_legacy_support" != 'no'; then
22247 LEGACY_SUPPORT_TRUE=
22248 LEGACY_SUPPORT_FALSE='#'
22249else
22250 LEGACY_SUPPORT_TRUE='#'
22251 LEGACY_SUPPORT_FALSE=
22252fi
22253
22254
cristy3ed852e2009-09-05 21:47:34 +000022255# Number of bits in a Quantum
22256
22257# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022258if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 withval=$with_quantum_depth; with_quantum_depth=$withval
22260else
22261 with_quantum_depth=16
22262fi
22263
22264
22265if test "$with_quantum_depth" != '8'; then
22266 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22267fi
22268
22269case "${with_quantum_depth}" in
22270 8 ) ;;
22271 16 ) ;;
22272 32 ) ;;
22273 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022274 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022275esac
22276QUANTUM_DEPTH="$with_quantum_depth"
22277
22278cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000022279#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000022280_ACEOF
22281
cristya371edf2013-02-06 13:42:17 +000022282MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000022283CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000022284CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000022285
cristy01ff9f32012-12-01 18:15:29 +000022286# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000022287MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000022288if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000022289 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000022290fi
cristy01ff9f32012-12-01 18:15:29 +000022291
22292
cristy3ed852e2009-09-05 21:47:34 +000022293# Set pixel cache threshold
22294
22295# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022296if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022297 withval=$with_cache; with_cache=$withval
22298else
22299 with_cache=''
22300fi
22301
22302
22303if test "$with_cache" != ''; then
22304
22305cat >>confdefs.h <<_ACEOF
22306#define PixelCacheThreshold $with_cache
22307_ACEOF
22308
22309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22310fi
22311
22312# Disable/Enable support for full delegate paths
22313
22314# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022315if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 withval=$with_frozenpaths; with_frozenpaths=$withval
22317else
22318 with_frozenpaths='no'
22319fi
22320
22321
22322# Enable build/install of Magick++
22323
22324# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022325if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22327else
22328 with_magick_plus_plus='yes'
22329fi
22330
22331
cristy3a75f062012-09-08 23:29:40 +000022332# Encode the this name into the shared library.
22333
22334# Check whether --with-package-release-name was given.
22335if test "${with_package_release_name+set}" = set; then :
22336 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22337fi
22338
22339
22340
cristy3ed852e2009-09-05 21:47:34 +000022341# Disable build/install of PerlMagick.
22342
22343# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022344if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 withval=$with_perl; with_perl=$withval
22346else
cristyb5f4e2f2010-04-25 00:49:11 +000022347 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022348fi
22349
22350
22351# Options to pass when configuring PerlMagick
22352
22353# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022354if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022355 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022356fi
22357
22358
cristy3ed852e2009-09-05 21:47:34 +000022359
22360# Enable umem, object-caching memory allocation library.
22361
22362# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022363if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022364 withval=$with_umem; with_umem=$withval
22365else
22366 with_umem='no'
22367fi
22368
22369if test "$with_umem" != 'yes' ; then
22370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22371fi
22372
22373#
22374# Specify path to shared libstdc++ if not in normal location
22375#
22376
22377# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022378if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 withval=$with_libstdc; with_libstdc=$withval
22380else
22381 with_libstdc=''
22382fi
22383
22384
22385if test "$with_libstdc" != ''; then
22386 if test -d "$with_libstdc"; then
22387 LIBSTDCLDFLAGS="-L$with_libstdc"
22388 fi
22389fi
22390
22391
22392# Does gcc required -traditional?
22393if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022395$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022397 $as_echo_n "(cached) " >&6
22398else
22399 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022401/* end confdefs.h. */
22402#include <sgtty.h>
22403Autoconf TIOCGETP
22404_ACEOF
22405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022406 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022407 ac_cv_prog_gcc_traditional=yes
22408else
22409 ac_cv_prog_gcc_traditional=no
22410fi
22411rm -f conftest*
22412
22413
22414 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022416/* end confdefs.h. */
22417#include <termio.h>
22418Autoconf TCGETA
22419_ACEOF
22420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022421 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022422 ac_cv_prog_gcc_traditional=yes
22423fi
22424rm -f conftest*
22425
22426 fi
22427fi
cristy8b350f62009-11-15 23:12:43 +000022428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022429$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22430 if test $ac_cv_prog_gcc_traditional = yes; then
22431 CC="$CC -traditional"
22432 fi
22433fi
22434
22435
22436########
22437#
22438# Set defines required to build DLLs and modules using MinGW
22439#
22440########
22441# These options are set for multi-thread DLL module build
22442# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22443# module: _DLL
22444# executable/Magick++: _DLL _MAGICKMOD_
22445MODULE_EXTRA_CPPFLAGS=''
22446LIBRARY_EXTRA_CPPFLAGS=''
22447if test "${native_win32_build}" = 'yes'; then
22448 if test "${libtool_build_shared_libs}" = 'yes'; then
22449 CPPFLAGS="$CPPFLAGS -D_DLL"
22450 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22451 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22452 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022453 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022454 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22455 else
22456 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22457 fi
22458 else
22459 CPPFLAGS="$CPPFLAGS -D_LIB"
22460 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22461 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22462 fi
22463 if test "$with_threads" = 'yes'; then
22464 CPPFLAGS="$CPPFLAGS -D_MT"
22465 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22466 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22467 fi
22468fi
22469
22470
22471
22472# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022474$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022475if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022476 $as_echo_n "(cached) " >&6
22477else
cristy8b350f62009-11-15 23:12:43 +000022478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022479/* end confdefs.h. */
22480#include <stdlib.h>
22481#include <stdarg.h>
22482#include <string.h>
22483#include <float.h>
22484
22485int
22486main ()
22487{
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022493if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022494 ac_cv_header_stdc=yes
22495else
cristy8b350f62009-11-15 23:12:43 +000022496 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022497fi
cristy3ed852e2009-09-05 21:47:34 +000022498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499
22500if test $ac_cv_header_stdc = yes; then
22501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022503/* end confdefs.h. */
22504#include <string.h>
22505
22506_ACEOF
22507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022508 $EGREP "memchr" >/dev/null 2>&1; then :
22509
cristy3ed852e2009-09-05 21:47:34 +000022510else
22511 ac_cv_header_stdc=no
22512fi
22513rm -f conftest*
22514
22515fi
22516
22517if test $ac_cv_header_stdc = yes; then
22518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022520/* end confdefs.h. */
22521#include <stdlib.h>
22522
22523_ACEOF
22524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022525 $EGREP "free" >/dev/null 2>&1; then :
22526
cristy3ed852e2009-09-05 21:47:34 +000022527else
22528 ac_cv_header_stdc=no
22529fi
22530rm -f conftest*
22531
22532fi
22533
22534if test $ac_cv_header_stdc = yes; then
22535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022536 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 :
22538else
cristy8b350f62009-11-15 23:12:43 +000022539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022540/* end confdefs.h. */
22541#include <ctype.h>
22542#include <stdlib.h>
22543#if ((' ' & 0x0FF) == 0x020)
22544# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22545# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22546#else
22547# define ISLOWER(c) \
22548 (('a' <= (c) && (c) <= 'i') \
22549 || ('j' <= (c) && (c) <= 'r') \
22550 || ('s' <= (c) && (c) <= 'z'))
22551# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22552#endif
22553
22554#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22555int
22556main ()
22557{
22558 int i;
22559 for (i = 0; i < 256; i++)
22560 if (XOR (islower (i), ISLOWER (i))
22561 || toupper (i) != TOUPPER (i))
22562 return 2;
22563 return 0;
22564}
22565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022566if ac_fn_c_try_run "$LINENO"; then :
22567
cristy3ed852e2009-09-05 21:47:34 +000022568else
cristy8b350f62009-11-15 23:12:43 +000022569 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022570fi
cristy8b350f62009-11-15 23:12:43 +000022571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22572 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573fi
22574
cristy3ed852e2009-09-05 21:47:34 +000022575fi
22576fi
cristy8b350f62009-11-15 23:12:43 +000022577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo "$ac_cv_header_stdc" >&6; }
22579if test $ac_cv_header_stdc = yes; then
22580
cristy8b350f62009-11-15 23:12:43 +000022581$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022582
22583fi
22584
22585if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022586 { $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 +000022587 header files. Compilation cannot proceed. Please install the ANSI C
22588 headers and rerun this script." >&5
22589$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22590 header files. Compilation cannot proceed. Please install the ANSI C
22591 headers and rerun this script." >&2;};
22592fi
cristya0b81c32010-01-22 02:54:33 +000022593
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22595$as_echo_n "checking whether to enable assertions... " >&6; }
22596 # Check whether --enable-assert was given.
22597if test "${enable_assert+set}" = set; then :
22598 enableval=$enable_assert; ac_enable_assert=$enableval
22599 if test "x$enableval" = xno; then :
22600
22601$as_echo "#define NDEBUG 1" >>confdefs.h
22602
22603elif test "x$enableval" != xyes; then :
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22605$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22606 ac_enable_assert=yes
22607fi
22608else
22609 ac_enable_assert=yes
22610fi
22611
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22613$as_echo "$ac_enable_assert" >&6; }
22614
cristy3ed852e2009-09-05 21:47:34 +000022615ac_header_dirent=no
22616for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22617 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022619$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022620if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022621 $as_echo_n "(cached) " >&6
22622else
cristy8b350f62009-11-15 23:12:43 +000022623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022624/* end confdefs.h. */
22625#include <sys/types.h>
22626#include <$ac_hdr>
22627
22628int
22629main ()
22630{
22631if ((DIR *) 0)
22632return 0;
22633 ;
22634 return 0;
22635}
22636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022637if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022638 eval "$as_ac_Header=yes"
22639else
cristy8b350f62009-11-15 23:12:43 +000022640 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022641fi
cristy3ed852e2009-09-05 21:47:34 +000022642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643fi
cristy8b350f62009-11-15 23:12:43 +000022644eval ac_res=\$$as_ac_Header
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022646$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022648 cat >>confdefs.h <<_ACEOF
22649#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22650_ACEOF
22651
22652ac_header_dirent=$ac_hdr; break
22653fi
22654
22655done
22656# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22657if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022659$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022660if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022661 $as_echo_n "(cached) " >&6
22662else
22663 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022665/* end confdefs.h. */
22666
22667/* Override any GCC internal prototype to avoid an error.
22668 Use char because int might match the return type of a GCC
22669 builtin and then its argument prototype would still apply. */
22670#ifdef __cplusplus
22671extern "C"
22672#endif
22673char opendir ();
22674int
22675main ()
22676{
22677return opendir ();
22678 ;
22679 return 0;
22680}
22681_ACEOF
22682for ac_lib in '' dir; do
22683 if test -z "$ac_lib"; then
22684 ac_res="none required"
22685 else
22686 ac_res=-l$ac_lib
22687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22688 fi
cristy8b350f62009-11-15 23:12:43 +000022689 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022690 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022691fi
cristy8b350f62009-11-15 23:12:43 +000022692rm -f core conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022694 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022695 break
22696fi
22697done
cristyda16f162011-02-19 23:52:17 +000022698if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022699
cristy3ed852e2009-09-05 21:47:34 +000022700else
22701 ac_cv_search_opendir=no
22702fi
22703rm conftest.$ac_ext
22704LIBS=$ac_func_search_save_LIBS
22705fi
cristy8b350f62009-11-15 23:12:43 +000022706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022707$as_echo "$ac_cv_search_opendir" >&6; }
22708ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022709if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22711
22712fi
22713
22714else
cristy8b350f62009-11-15 23:12:43 +000022715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022716$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022717if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022718 $as_echo_n "(cached) " >&6
22719else
22720 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022722/* end confdefs.h. */
22723
22724/* Override any GCC internal prototype to avoid an error.
22725 Use char because int might match the return type of a GCC
22726 builtin and then its argument prototype would still apply. */
22727#ifdef __cplusplus
22728extern "C"
22729#endif
22730char opendir ();
22731int
22732main ()
22733{
22734return opendir ();
22735 ;
22736 return 0;
22737}
22738_ACEOF
22739for ac_lib in '' x; do
22740 if test -z "$ac_lib"; then
22741 ac_res="none required"
22742 else
22743 ac_res=-l$ac_lib
22744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22745 fi
cristy8b350f62009-11-15 23:12:43 +000022746 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022747 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022748fi
cristy8b350f62009-11-15 23:12:43 +000022749rm -f core conftest.err conftest.$ac_objext \
22750 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022751 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022752 break
22753fi
22754done
cristyda16f162011-02-19 23:52:17 +000022755if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022756
cristy3ed852e2009-09-05 21:47:34 +000022757else
22758 ac_cv_search_opendir=no
22759fi
22760rm conftest.$ac_ext
22761LIBS=$ac_func_search_save_LIBS
22762fi
cristy8b350f62009-11-15 23:12:43 +000022763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022764$as_echo "$ac_cv_search_opendir" >&6; }
22765ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022766if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22768
22769fi
22770
22771fi
22772
22773
22774# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022775for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022776do :
22777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022780 cat >>confdefs.h <<_ACEOF
22781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22782_ACEOF
22783
22784fi
22785
22786done
22787
22788
22789########
22790#
22791# Checks for typedefs, structures, and compiler characteristics.
22792#
22793########
22794
cristy8b350f62009-11-15 23:12:43 +000022795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022796$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022797if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022798 $as_echo_n "(cached) " >&6
22799else
cristy8b350f62009-11-15 23:12:43 +000022800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022801/* end confdefs.h. */
22802
cristy14fefe52012-05-21 00:59:18 +000022803 #include <stdbool.h>
22804 #ifndef bool
22805 "error: bool is not defined"
22806 #endif
22807 #ifndef false
22808 "error: false is not defined"
22809 #endif
22810 #if false
22811 "error: false is not 0"
22812 #endif
22813 #ifndef true
22814 "error: true is not defined"
22815 #endif
22816 #if true != 1
22817 "error: true is not 1"
22818 #endif
22819 #ifndef __bool_true_false_are_defined
22820 "error: __bool_true_false_are_defined is not defined"
22821 #endif
cristy3ed852e2009-09-05 21:47:34 +000022822
cristy14fefe52012-05-21 00:59:18 +000022823 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022824
cristy14fefe52012-05-21 00:59:18 +000022825 char a[true == 1 ? 1 : -1];
22826 char b[false == 0 ? 1 : -1];
22827 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22828 char d[(bool) 0.5 == true ? 1 : -1];
22829 /* See body of main program for 'e'. */
22830 char f[(_Bool) 0.0 == false ? 1 : -1];
22831 char g[true];
22832 char h[sizeof (_Bool)];
22833 char i[sizeof s.t];
22834 enum { j = false, k = true, l = false * true, m = true * 256 };
22835 /* The following fails for
22836 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22837 _Bool n[m];
22838 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22839 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22840 /* Catch a bug in an HP-UX C compiler. See
22841 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22842 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22843 */
22844 _Bool q = true;
22845 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022846
22847int
22848main ()
22849{
22850
cristy14fefe52012-05-21 00:59:18 +000022851 bool e = &s;
22852 *pq |= q;
22853 *pq |= ! q;
22854 /* Refer to every declared value, to avoid compiler optimizations. */
22855 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22856 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022857
22858 ;
22859 return 0;
22860}
22861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022862if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022863 ac_cv_header_stdbool_h=yes
22864else
cristy8b350f62009-11-15 23:12:43 +000022865 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022866fi
cristy3ed852e2009-09-05 21:47:34 +000022867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868fi
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022871 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022872if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022873
22874cat >>confdefs.h <<_ACEOF
22875#define HAVE__BOOL 1
22876_ACEOF
22877
22878
22879fi
22880
cristy14fefe52012-05-21 00:59:18 +000022881
cristy3ed852e2009-09-05 21:47:34 +000022882if test $ac_cv_header_stdbool_h = yes; then
22883
cristy8b350f62009-11-15 23:12:43 +000022884$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022885
22886fi
22887
cristy8b350f62009-11-15 23:12:43 +000022888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022889$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022890if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022891 $as_echo_n "(cached) " >&6
22892else
cristy8b350f62009-11-15 23:12:43 +000022893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022894/* end confdefs.h. */
22895
22896int
22897main ()
22898{
22899
22900volatile int x;
22901int * volatile y = (int *) 0;
22902return !x && !y;
22903 ;
22904 return 0;
22905}
22906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022907if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022908 ac_cv_c_volatile=yes
22909else
cristy8b350f62009-11-15 23:12:43 +000022910 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022911fi
cristy3ed852e2009-09-05 21:47:34 +000022912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913fi
cristy8b350f62009-11-15 23:12:43 +000022914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022915$as_echo "$ac_cv_c_volatile" >&6; }
22916if test $ac_cv_c_volatile = no; then
22917
cristy8b350f62009-11-15 23:12:43 +000022918$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022919
22920fi
22921
cristy8b350f62009-11-15 23:12:43 +000022922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022923$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022924if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022925 $as_echo_n "(cached) " >&6
22926else
cristy8b350f62009-11-15 23:12:43 +000022927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022928/* end confdefs.h. */
22929#define x(y) #y
22930
22931char *s = x(teststring);
22932_ACEOF
22933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022934 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022935 ac_cv_c_stringize=no
22936else
22937 ac_cv_c_stringize=yes
22938fi
22939rm -f conftest*
22940
22941fi
cristy8b350f62009-11-15 23:12:43 +000022942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022943$as_echo "$ac_cv_c_stringize" >&6; }
22944if test $ac_cv_c_stringize = yes; then
22945
cristy8b350f62009-11-15 23:12:43 +000022946$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022947
22948fi
22949
cristy8b350f62009-11-15 23:12:43 +000022950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022951$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022952if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022953 $as_echo_n "(cached) " >&6
22954else
cristy8b350f62009-11-15 23:12:43 +000022955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022956/* end confdefs.h. */
22957#include <sys/types.h>
22958#include <sys/stat.h>
22959
22960#if defined S_ISBLK && defined S_IFDIR
22961extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22962#endif
22963
22964#if defined S_ISBLK && defined S_IFCHR
22965extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22966#endif
22967
22968#if defined S_ISLNK && defined S_IFREG
22969extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22970#endif
22971
22972#if defined S_ISSOCK && defined S_IFREG
22973extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22974#endif
22975
22976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022978 ac_cv_header_stat_broken=no
22979else
cristy8b350f62009-11-15 23:12:43 +000022980 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022981fi
cristy3ed852e2009-09-05 21:47:34 +000022982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983fi
cristy8b350f62009-11-15 23:12:43 +000022984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022985$as_echo "$ac_cv_header_stat_broken" >&6; }
22986if test $ac_cv_header_stat_broken = yes; then
22987
cristy8b350f62009-11-15 23:12:43 +000022988$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022989
22990fi
22991
cristy8b350f62009-11-15 23:12:43 +000022992{ $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 +000022993$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022994if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022995 $as_echo_n "(cached) " >&6
22996else
cristy8b350f62009-11-15 23:12:43 +000022997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022998/* end confdefs.h. */
22999#include <sys/types.h>
23000#include <sys/time.h>
23001#include <time.h>
23002
23003int
23004main ()
23005{
23006if ((struct tm *) 0)
23007return 0;
23008 ;
23009 return 0;
23010}
23011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023012if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023013 ac_cv_header_time=yes
23014else
cristy8b350f62009-11-15 23:12:43 +000023015 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000023016fi
cristy3ed852e2009-09-05 21:47:34 +000023017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018fi
cristy8b350f62009-11-15 23:12:43 +000023019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000023020$as_echo "$ac_cv_header_time" >&6; }
23021if test $ac_cv_header_time = yes; then
23022
cristy8b350f62009-11-15 23:12:43 +000023023$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023024
23025fi
23026
cristy8b350f62009-11-15 23:12:43 +000023027{ $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 +000023028$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023029if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 $as_echo_n "(cached) " >&6
23031else
cristy8b350f62009-11-15 23:12:43 +000023032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023033/* end confdefs.h. */
23034#include <sys/types.h>
23035#include <time.h>
23036
23037int
23038main ()
23039{
23040struct tm tm;
23041 int *p = &tm.tm_sec;
23042 return !p;
23043 ;
23044 return 0;
23045}
23046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023047if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023048 ac_cv_struct_tm=time.h
23049else
cristy8b350f62009-11-15 23:12:43 +000023050 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000023051fi
cristy3ed852e2009-09-05 21:47:34 +000023052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053fi
cristy8b350f62009-11-15 23:12:43 +000023054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023055$as_echo "$ac_cv_struct_tm" >&6; }
23056if test $ac_cv_struct_tm = sys/time.h; then
23057
cristy8b350f62009-11-15 23:12:43 +000023058$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023059
23060fi
23061
cristy92703d82010-04-26 00:18:18 +000023062ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23063#include <$ac_cv_struct_tm>
23064
23065"
cristyda16f162011-02-19 23:52:17 +000023066if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023067
23068cat >>confdefs.h <<_ACEOF
23069#define HAVE_STRUCT_TM_TM_ZONE 1
23070_ACEOF
23071
23072
23073fi
23074
23075if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23076
23077$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23078
23079else
23080 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23081"
cristyda16f162011-02-19 23:52:17 +000023082if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023083 ac_have_decl=1
23084else
23085 ac_have_decl=0
23086fi
23087
23088cat >>confdefs.h <<_ACEOF
23089#define HAVE_DECL_TZNAME $ac_have_decl
23090_ACEOF
23091
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23093$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023094if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000023095 $as_echo_n "(cached) " >&6
23096else
23097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23098/* end confdefs.h. */
23099#include <time.h>
23100#if !HAVE_DECL_TZNAME
23101extern char *tzname[];
23102#endif
23103
23104int
23105main ()
23106{
23107return tzname[0][0];
23108 ;
23109 return 0;
23110}
23111_ACEOF
23112if ac_fn_c_try_link "$LINENO"; then :
23113 ac_cv_var_tzname=yes
23114else
23115 ac_cv_var_tzname=no
23116fi
23117rm -f core conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
23119fi
23120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23121$as_echo "$ac_cv_var_tzname" >&6; }
23122 if test $ac_cv_var_tzname = yes; then
23123
23124$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23125
23126 fi
23127fi
23128
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000023130$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023131if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023132 $as_echo_n "(cached) " >&6
23133else
23134 echo '#! /bin/cat
23135exit 69
23136' >conftest
23137chmod u+x conftest
23138(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23139if test $? -ne 69; then
23140 ac_cv_sys_interpreter=yes
23141else
23142 ac_cv_sys_interpreter=no
23143fi
23144rm -f conftest
23145fi
cristy8b350f62009-11-15 23:12:43 +000023146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000023147$as_echo "$ac_cv_sys_interpreter" >&6; }
23148interpval=$ac_cv_sys_interpreter
23149
23150
cristye80f9cb2013-01-09 01:09:31 +000023151#
23152# Checks for language qualifiers and semantics.
23153#
23154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23155$as_echo_n "checking whether char is unsigned... " >&6; }
23156if ${ac_cv_c_char_unsigned+:} false; then :
23157 $as_echo_n "(cached) " >&6
23158else
23159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160/* end confdefs.h. */
23161$ac_includes_default
23162int
23163main ()
23164{
23165static int test_array [1 - 2 * !(((char) -1) < 0)];
23166test_array [0] = 0;
23167return test_array [0];
23168
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173if ac_fn_c_try_compile "$LINENO"; then :
23174 ac_cv_c_char_unsigned=no
23175else
23176 ac_cv_c_char_unsigned=yes
23177fi
23178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23179fi
23180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23181$as_echo "$ac_cv_c_char_unsigned" >&6; }
23182if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23183 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23184
23185fi
23186
23187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23188$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23189if ${ac_cv_c_const+:} false; then :
23190 $as_echo_n "(cached) " >&6
23191else
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193/* end confdefs.h. */
23194
23195int
23196main ()
23197{
23198
23199#ifndef __cplusplus
23200 /* Ultrix mips cc rejects this sort of thing. */
23201 typedef int charset[2];
23202 const charset cs = { 0, 0 };
23203 /* SunOS 4.1.1 cc rejects this. */
23204 char const *const *pcpcc;
23205 char **ppc;
23206 /* NEC SVR4.0.2 mips cc rejects this. */
23207 struct point {int x, y;};
23208 static struct point const zero = {0,0};
23209 /* AIX XL C 1.02.0.0 rejects this.
23210 It does not let you subtract one const X* pointer from another in
23211 an arm of an if-expression whose if-part is not a constant
23212 expression */
23213 const char *g = "string";
23214 pcpcc = &g + (g ? g-g : 0);
23215 /* HPUX 7.0 cc rejects these. */
23216 ++pcpcc;
23217 ppc = (char**) pcpcc;
23218 pcpcc = (char const *const *) ppc;
23219 { /* SCO 3.2v4 cc rejects this sort of thing. */
23220 char tx;
23221 char *t = &tx;
23222 char const *s = 0 ? (char *) 0 : (char const *) 0;
23223
23224 *t++ = 0;
23225 if (s) return 0;
23226 }
23227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23228 int x[] = {25, 17};
23229 const int *foo = &x[0];
23230 ++foo;
23231 }
23232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23233 typedef const int *iptr;
23234 iptr p = 0;
23235 ++p;
23236 }
23237 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23239 struct s { int j; const int *ap[3]; } bx;
23240 struct s *b = &bx; b->j = 5;
23241 }
23242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23243 const int foo = 10;
23244 if (!foo) return 0;
23245 }
23246 return !cs[0] && !zero.x;
23247#endif
23248
23249 ;
23250 return 0;
23251}
23252_ACEOF
23253if ac_fn_c_try_compile "$LINENO"; then :
23254 ac_cv_c_const=yes
23255else
23256 ac_cv_c_const=no
23257fi
23258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259fi
23260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23261$as_echo "$ac_cv_c_const" >&6; }
23262if test $ac_cv_c_const = no; then
23263
23264$as_echo "#define const /**/" >>confdefs.h
23265
23266fi
23267
cristy8b350f62009-11-15 23:12:43 +000023268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023269$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023270if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023271 $as_echo_n "(cached) " >&6
23272else
23273 ac_cv_c_inline=no
23274for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000023275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023276/* end confdefs.h. */
23277#ifndef __cplusplus
23278typedef int foo_t;
23279static $ac_kw foo_t static_foo () {return 0; }
23280$ac_kw foo_t foo () {return 0; }
23281#endif
23282
23283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023286fi
cristy3ed852e2009-09-05 21:47:34 +000023287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 test "$ac_cv_c_inline" != no && break
23289done
23290
23291fi
cristy8b350f62009-11-15 23:12:43 +000023292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023293$as_echo "$ac_cv_c_inline" >&6; }
23294
cristy3ed852e2009-09-05 21:47:34 +000023295case $ac_cv_c_inline in
23296 inline | yes) ;;
23297 *)
23298 case $ac_cv_c_inline in
23299 no) ac_val=;;
23300 *) ac_val=$ac_cv_c_inline;;
23301 esac
23302 cat >>confdefs.h <<_ACEOF
23303#ifndef __cplusplus
23304#define inline $ac_val
23305#endif
23306_ACEOF
23307 ;;
23308esac
23309
cristy8b350f62009-11-15 23:12:43 +000023310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000023311$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023312if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023313 $as_echo_n "(cached) " >&6
23314else
23315 ac_cv_c_restrict=no
23316 # The order here caters to the fact that C++ does not require restrict.
23317 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000023318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023319/* end confdefs.h. */
23320typedef int * int_ptr;
23321 int foo (int_ptr $ac_kw ip) {
23322 return ip[0];
23323 }
23324int
23325main ()
23326{
23327int s[1];
23328 int * $ac_kw t = s;
23329 t[0] = 0;
23330 return foo(t)
23331 ;
23332 return 0;
23333}
23334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023335if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023336 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023337fi
cristy3ed852e2009-09-05 21:47:34 +000023338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 test "$ac_cv_c_restrict" != no && break
23340 done
23341
23342fi
cristy8b350f62009-11-15 23:12:43 +000023343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000023344$as_echo "$ac_cv_c_restrict" >&6; }
23345
cristy3ed852e2009-09-05 21:47:34 +000023346 case $ac_cv_c_restrict in
23347 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000023348 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023349 ;;
23350 *) cat >>confdefs.h <<_ACEOF
23351#define restrict $ac_cv_c_restrict
23352_ACEOF
23353 ;;
23354 esac
23355
cristye80f9cb2013-01-09 01:09:31 +000023356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23357$as_echo_n "checking for working volatile... " >&6; }
23358if ${ac_cv_c_volatile+:} false; then :
23359 $as_echo_n "(cached) " >&6
23360else
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362/* end confdefs.h. */
23363
23364int
23365main ()
23366{
23367
23368volatile int x;
23369int * volatile y = (int *) 0;
23370return !x && !y;
23371 ;
23372 return 0;
23373}
23374_ACEOF
23375if ac_fn_c_try_compile "$LINENO"; then :
23376 ac_cv_c_volatile=yes
23377else
23378 ac_cv_c_volatile=no
23379fi
23380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23381fi
23382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23383$as_echo "$ac_cv_c_volatile" >&6; }
23384if test $ac_cv_c_volatile = no; then
23385
23386$as_echo "#define volatile /**/" >>confdefs.h
23387
23388fi
23389
cristy3ed852e2009-09-05 21:47:34 +000023390
23391# If words are stored with the most significant byte first (like
23392# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023395if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023396 $as_echo_n "(cached) " >&6
23397else
23398 ac_cv_c_bigendian=unknown
23399 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023401/* end confdefs.h. */
23402#ifndef __APPLE_CC__
23403 not a universal capable compiler
23404 #endif
23405 typedef int dummy;
23406
23407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409
23410 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023411 # there are at least two -arch flags with different values.
23412 ac_arch=
23413 ac_prev=
23414 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23415 if test -n "$ac_prev"; then
23416 case $ac_word in
23417 i?86 | x86_64 | ppc | ppc64)
23418 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23419 ac_arch=$ac_word
23420 else
23421 ac_cv_c_bigendian=universal
23422 break
23423 fi
23424 ;;
23425 esac
23426 ac_prev=
23427 elif test "x$ac_word" = "x-arch"; then
23428 ac_prev=arch
23429 fi
23430 done
cristy3ed852e2009-09-05 21:47:34 +000023431fi
cristy3ed852e2009-09-05 21:47:34 +000023432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 if test $ac_cv_c_bigendian = unknown; then
23434 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023436/* end confdefs.h. */
23437#include <sys/types.h>
23438 #include <sys/param.h>
23439
23440int
23441main ()
23442{
23443#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23444 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23445 && LITTLE_ENDIAN)
23446 bogus endian macros
23447 #endif
23448
23449 ;
23450 return 0;
23451}
23452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023453if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023454 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023456/* end confdefs.h. */
23457#include <sys/types.h>
23458 #include <sys/param.h>
23459
23460int
23461main ()
23462{
23463#if BYTE_ORDER != BIG_ENDIAN
23464 not big endian
23465 #endif
23466
23467 ;
23468 return 0;
23469}
23470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023472 ac_cv_c_bigendian=yes
23473else
cristy8b350f62009-11-15 23:12:43 +000023474 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023475fi
cristy3ed852e2009-09-05 21:47:34 +000023476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023477fi
cristy3ed852e2009-09-05 21:47:34 +000023478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23479 fi
23480 if test $ac_cv_c_bigendian = unknown; then
23481 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023483/* end confdefs.h. */
23484#include <limits.h>
23485
23486int
23487main ()
23488{
23489#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23490 bogus endian macros
23491 #endif
23492
23493 ;
23494 return 0;
23495}
23496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023497if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023498 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023500/* end confdefs.h. */
23501#include <limits.h>
23502
23503int
23504main ()
23505{
23506#ifndef _BIG_ENDIAN
23507 not big endian
23508 #endif
23509
23510 ;
23511 return 0;
23512}
23513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023514if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023515 ac_cv_c_bigendian=yes
23516else
cristy8b350f62009-11-15 23:12:43 +000023517 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023518fi
cristy3ed852e2009-09-05 21:47:34 +000023519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023520fi
cristy3ed852e2009-09-05 21:47:34 +000023521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 fi
23523 if test $ac_cv_c_bigendian = unknown; then
23524 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023525 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023526 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023528/* end confdefs.h. */
23529short int ascii_mm[] =
23530 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23531 short int ascii_ii[] =
23532 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23533 int use_ascii (int i) {
23534 return ascii_mm[i] + ascii_ii[i];
23535 }
23536 short int ebcdic_ii[] =
23537 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23538 short int ebcdic_mm[] =
23539 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23540 int use_ebcdic (int i) {
23541 return ebcdic_mm[i] + ebcdic_ii[i];
23542 }
23543 extern int foo;
23544
23545int
23546main ()
23547{
23548return use_ascii (foo) == use_ebcdic (foo);
23549 ;
23550 return 0;
23551}
23552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023554 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23555 ac_cv_c_bigendian=yes
23556 fi
23557 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23558 if test "$ac_cv_c_bigendian" = unknown; then
23559 ac_cv_c_bigendian=no
23560 else
23561 # finding both strings is unlikely to happen, but who knows?
23562 ac_cv_c_bigendian=unknown
23563 fi
23564 fi
cristy3ed852e2009-09-05 21:47:34 +000023565fi
cristy3ed852e2009-09-05 21:47:34 +000023566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567else
cristy8b350f62009-11-15 23:12:43 +000023568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023569/* end confdefs.h. */
23570$ac_includes_default
23571int
23572main ()
23573{
23574
23575 /* Are we little or big endian? From Harbison&Steele. */
23576 union
23577 {
23578 long int l;
23579 char c[sizeof (long int)];
23580 } u;
23581 u.l = 1;
23582 return u.c[sizeof (long int) - 1] == 1;
23583
23584 ;
23585 return 0;
23586}
23587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023588if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023589 ac_cv_c_bigendian=no
23590else
cristy8b350f62009-11-15 23:12:43 +000023591 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023592fi
cristy8b350f62009-11-15 23:12:43 +000023593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23594 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023595fi
23596
cristy3ed852e2009-09-05 21:47:34 +000023597 fi
23598fi
cristy8b350f62009-11-15 23:12:43 +000023599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023600$as_echo "$ac_cv_c_bigendian" >&6; }
23601 case $ac_cv_c_bigendian in #(
23602 yes)
cristy8b350f62009-11-15 23:12:43 +000023603 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023604;; #(
23605 no)
23606 ;; #(
23607 universal)
23608
cristy8b350f62009-11-15 23:12:43 +000023609$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023610
23611 ;; #(
23612 *)
cristy98dddb52010-11-04 00:30:15 +000023613 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023614 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023615 esac
23616
23617
cristy501c8042011-05-26 17:46:28 +000023618# Define to a suitable type, if standard headers do not define it.
23619ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23620case $ac_cv_c_int8_t in #(
23621 no|yes) ;; #(
23622 *)
cristy3ed852e2009-09-05 21:47:34 +000023623
23624cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023625#define int8_t $ac_cv_c_int8_t
23626_ACEOF
23627;;
23628esac
23629
23630ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23631case $ac_cv_c_int16_t in #(
23632 no|yes) ;; #(
23633 *)
23634
23635cat >>confdefs.h <<_ACEOF
23636#define int16_t $ac_cv_c_int16_t
23637_ACEOF
23638;;
23639esac
23640
23641ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23642case $ac_cv_c_int32_t in #(
23643 no|yes) ;; #(
23644 *)
23645
23646cat >>confdefs.h <<_ACEOF
23647#define int32_t $ac_cv_c_int32_t
23648_ACEOF
23649;;
23650esac
23651
23652ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23653case $ac_cv_c_int64_t in #(
23654 no|yes) ;; #(
23655 *)
23656
23657cat >>confdefs.h <<_ACEOF
23658#define int64_t $ac_cv_c_int64_t
23659_ACEOF
23660;;
23661esac
23662
23663
cristy045228a2013-06-23 11:00:16 +000023664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23665$as_echo_n "checking for unsigned long long int... " >&6; }
23666if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023667 $as_echo_n "(cached) " >&6
23668else
cristy045228a2013-06-23 11:00:16 +000023669 ac_cv_type_unsigned_long_long_int=yes
23670 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023672/* end confdefs.h. */
23673
23674 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023675 implementations with broken preprocessors. Perhaps this can
23676 be revisited in 2012. In the meantime, code should not expect
23677 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023678 /* Test literals. */
23679 long long int ll = 9223372036854775807ll;
23680 long long int nll = -9223372036854775807LL;
23681 unsigned long long int ull = 18446744073709551615ULL;
23682 /* Test constant expressions. */
23683 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023684 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023685 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023686 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023687 int i = 63;
23688int
23689main ()
23690{
23691/* Test availability of runtime routines for shift and division. */
23692 long long int llmax = 9223372036854775807ll;
23693 unsigned long long int ullmax = 18446744073709551615ull;
23694 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023695 | (llmax / ll) | (llmax % ll)
23696 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23697 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023698 ;
23699 return 0;
23700}
23701
23702_ACEOF
23703if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023704
23705else
23706 ac_cv_type_unsigned_long_long_int=no
23707fi
23708rm -f core conftest.err conftest.$ac_objext \
23709 conftest$ac_exeext conftest.$ac_ext
23710 fi
23711fi
23712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23713$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23714 if test $ac_cv_type_unsigned_long_long_int = yes; then
23715
23716$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23717
23718 fi
23719
23720
23721
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23723$as_echo_n "checking for long long int... " >&6; }
23724if ${ac_cv_type_long_long_int+:} false; then :
23725 $as_echo_n "(cached) " >&6
23726else
cristy501c8042011-05-26 17:46:28 +000023727 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023728 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023729 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23730 if test $ac_cv_type_long_long_int = yes; then
23731 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023732 :
cristy501c8042011-05-26 17:46:28 +000023733else
23734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735/* end confdefs.h. */
23736#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023737 #ifndef LLONG_MAX
23738 # define HALF \
23739 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23740 # define LLONG_MAX (HALF - 1 + HALF)
23741 #endif
cristy501c8042011-05-26 17:46:28 +000023742int
23743main ()
23744{
23745long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023746 int i;
23747 for (i = 0; ; i++)
23748 {
23749 long long int m = n << i;
23750 if (m >> i != n)
23751 return 1;
23752 if (LLONG_MAX / 2 < m)
23753 break;
23754 }
23755 return 0;
cristy501c8042011-05-26 17:46:28 +000023756 ;
23757 return 0;
23758}
23759_ACEOF
23760if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023761
cristy501c8042011-05-26 17:46:28 +000023762else
23763 ac_cv_type_long_long_int=no
23764fi
23765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23766 conftest.$ac_objext conftest.beam conftest.$ac_ext
23767fi
23768
cristy5ed9c6e2013-07-14 21:20:31 +000023769 fi
cristy045228a2013-06-23 11:00:16 +000023770 fi
cristy501c8042011-05-26 17:46:28 +000023771fi
23772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23773$as_echo "$ac_cv_type_long_long_int" >&6; }
23774 if test $ac_cv_type_long_long_int = yes; then
23775
23776$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23777
23778 fi
23779
23780
23781
23782 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23783if test "x$ac_cv_type_intmax_t" = xyes; then :
23784
23785$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23786
23787else
23788 test $ac_cv_type_long_long_int = yes \
23789 && ac_type='long long int' \
23790 || ac_type='long int'
23791
23792cat >>confdefs.h <<_ACEOF
23793#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023794_ACEOF
23795
23796fi
23797
23798
cristy501c8042011-05-26 17:46:28 +000023799
23800 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23801if test "x$ac_cv_type_intptr_t" = xyes; then :
23802
23803$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023804
cristy3ed852e2009-09-05 21:47:34 +000023805else
cristy501c8042011-05-26 17:46:28 +000023806 for ac_type in 'int' 'long int' 'long long int'; do
23807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23808/* end confdefs.h. */
23809$ac_includes_default
23810int
23811main ()
23812{
23813static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023814test_array [0] = 0;
23815return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023816
23817 ;
23818 return 0;
23819}
23820_ACEOF
23821if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023822
23823cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023824#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023825_ACEOF
23826
cristy501c8042011-05-26 17:46:28 +000023827 ac_type=
23828fi
23829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23830 test -z "$ac_type" && break
23831 done
cristy3ed852e2009-09-05 21:47:34 +000023832fi
23833
23834
cristy3ed852e2009-09-05 21:47:34 +000023835
cristy501c8042011-05-26 17:46:28 +000023836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23837$as_echo_n "checking for long double... " >&6; }
23838if ${ac_cv_type_long_double+:} false; then :
23839 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023840else
cristy501c8042011-05-26 17:46:28 +000023841 if test "$GCC" = yes; then
23842 ac_cv_type_long_double=yes
23843 else
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845/* end confdefs.h. */
23846/* The Stardent Vistra knows sizeof (long double), but does
23847 not support it. */
23848 long double foo = 0.0L;
23849int
23850main ()
23851{
23852static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23853 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023854test_array [0] = 0;
23855return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023856
cristy501c8042011-05-26 17:46:28 +000023857 ;
23858 return 0;
23859}
cristy3ed852e2009-09-05 21:47:34 +000023860_ACEOF
cristy501c8042011-05-26 17:46:28 +000023861if ac_fn_c_try_compile "$LINENO"; then :
23862 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023863else
cristy501c8042011-05-26 17:46:28 +000023864 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023865fi
cristy501c8042011-05-26 17:46:28 +000023866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23867 fi
cristy3ed852e2009-09-05 21:47:34 +000023868fi
cristy501c8042011-05-26 17:46:28 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23870$as_echo "$ac_cv_type_long_double" >&6; }
23871 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023872
cristy501c8042011-05-26 17:46:28 +000023873$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023874
cristy501c8042011-05-26 17:46:28 +000023875 fi
23876
cristy3ed852e2009-09-05 21:47:34 +000023877
cristy8b350f62009-11-15 23:12:43 +000023878 { $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 +000023879$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023880if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 $as_echo_n "(cached) " >&6
23882else
cristy8b350f62009-11-15 23:12:43 +000023883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023884/* end confdefs.h. */
23885#include <float.h>
23886 long double const a[] =
23887 {
23888 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23889 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23890 };
23891 long double
23892 f (long double x)
23893 {
23894 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23895 + (x ? f (x) : 'c'));
23896 }
23897
23898int
23899main ()
23900{
23901static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23902 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23903 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23904 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23905 && (int) LDBL_EPSILON == 0
23906 )];
cristy14fefe52012-05-21 00:59:18 +000023907test_array [0] = 0;
23908return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023909
23910 ;
23911 return 0;
23912}
23913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023914if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023915 ac_cv_type_long_double_wider=yes
23916else
cristy8b350f62009-11-15 23:12:43 +000023917 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023918fi
cristy3ed852e2009-09-05 21:47:34 +000023919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920fi
cristy8b350f62009-11-15 23:12:43 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023922$as_echo "$ac_cv_type_long_double_wider" >&6; }
23923 if test $ac_cv_type_long_double_wider = yes; then
23924
cristy8b350f62009-11-15 23:12:43 +000023925$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023926
23927 fi
23928
23929
cristy045228a2013-06-23 11:00:16 +000023930
cristy501c8042011-05-26 17:46:28 +000023931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23932$as_echo_n "checking for long long int... " >&6; }
23933if ${ac_cv_type_long_long_int+:} false; then :
23934 $as_echo_n "(cached) " >&6
23935else
cristy501c8042011-05-26 17:46:28 +000023936 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023937 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023938 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23939 if test $ac_cv_type_long_long_int = yes; then
23940 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023941 :
cristy501c8042011-05-26 17:46:28 +000023942else
23943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944/* end confdefs.h. */
23945#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023946 #ifndef LLONG_MAX
23947 # define HALF \
23948 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23949 # define LLONG_MAX (HALF - 1 + HALF)
23950 #endif
cristy501c8042011-05-26 17:46:28 +000023951int
23952main ()
23953{
23954long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023955 int i;
23956 for (i = 0; ; i++)
23957 {
23958 long long int m = n << i;
23959 if (m >> i != n)
23960 return 1;
23961 if (LLONG_MAX / 2 < m)
23962 break;
23963 }
23964 return 0;
cristy501c8042011-05-26 17:46:28 +000023965 ;
23966 return 0;
23967}
23968_ACEOF
23969if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023970
cristy501c8042011-05-26 17:46:28 +000023971else
23972 ac_cv_type_long_long_int=no
23973fi
23974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23975 conftest.$ac_objext conftest.beam conftest.$ac_ext
23976fi
23977
cristy5ed9c6e2013-07-14 21:20:31 +000023978 fi
cristy045228a2013-06-23 11:00:16 +000023979 fi
cristy501c8042011-05-26 17:46:28 +000023980fi
23981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23982$as_echo "$ac_cv_type_long_long_int" >&6; }
23983 if test $ac_cv_type_long_long_int = yes; then
23984
23985$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23986
23987 fi
23988
23989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23990$as_echo_n "checking for mbstate_t... " >&6; }
23991if ${ac_cv_type_mbstate_t+:} false; then :
23992 $as_echo_n "(cached) " >&6
23993else
23994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h. */
23996$ac_includes_default
23997# include <wchar.h>
23998int
23999main ()
24000{
24001mbstate_t x; return sizeof x;
24002 ;
24003 return 0;
24004}
24005_ACEOF
24006if ac_fn_c_try_compile "$LINENO"; then :
24007 ac_cv_type_mbstate_t=yes
24008else
24009 ac_cv_type_mbstate_t=no
24010fi
24011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012fi
24013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24014$as_echo "$ac_cv_type_mbstate_t" >&6; }
24015 if test $ac_cv_type_mbstate_t = yes; then
24016
24017$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24018
24019 else
24020
24021$as_echo "#define mbstate_t int" >>confdefs.h
24022
24023 fi
24024ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24025if test "x$ac_cv_type_mode_t" = xyes; then :
24026
24027else
24028
24029cat >>confdefs.h <<_ACEOF
24030#define mode_t int
24031_ACEOF
24032
24033fi
24034
24035ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24036if test "x$ac_cv_type_off_t" = xyes; then :
24037
24038else
24039
24040cat >>confdefs.h <<_ACEOF
24041#define off_t long int
24042_ACEOF
24043
24044fi
24045
24046ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24047if test "x$ac_cv_type_pid_t" = xyes; then :
24048
24049else
24050
24051cat >>confdefs.h <<_ACEOF
24052#define pid_t int
24053_ACEOF
24054
24055fi
24056
24057ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24058if test "x$ac_cv_type_size_t" = xyes; then :
24059
24060else
24061
24062cat >>confdefs.h <<_ACEOF
24063#define size_t unsigned int
24064_ACEOF
24065
24066fi
24067
24068ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24069if test "x$ac_cv_type_ssize_t" = xyes; then :
24070
24071else
24072
24073cat >>confdefs.h <<_ACEOF
24074#define ssize_t int
24075_ACEOF
24076
24077fi
24078
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24080$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24081if ${ac_cv_type_uid_t+:} false; then :
24082 $as_echo_n "(cached) " >&6
24083else
24084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24085/* end confdefs.h. */
24086#include <sys/types.h>
24087
24088_ACEOF
24089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24090 $EGREP "uid_t" >/dev/null 2>&1; then :
24091 ac_cv_type_uid_t=yes
24092else
24093 ac_cv_type_uid_t=no
24094fi
24095rm -f conftest*
24096
24097fi
24098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24099$as_echo "$ac_cv_type_uid_t" >&6; }
24100if test $ac_cv_type_uid_t = no; then
24101
24102$as_echo "#define uid_t int" >>confdefs.h
24103
24104
24105$as_echo "#define gid_t int" >>confdefs.h
24106
24107fi
24108
24109ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24110case $ac_cv_c_uint8_t in #(
24111 no|yes) ;; #(
24112 *)
24113
24114$as_echo "#define _UINT8_T 1" >>confdefs.h
24115
24116
24117cat >>confdefs.h <<_ACEOF
24118#define uint8_t $ac_cv_c_uint8_t
24119_ACEOF
24120;;
24121 esac
24122
24123ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24124case $ac_cv_c_uint16_t in #(
24125 no|yes) ;; #(
24126 *)
24127
24128
24129cat >>confdefs.h <<_ACEOF
24130#define uint16_t $ac_cv_c_uint16_t
24131_ACEOF
24132;;
24133 esac
24134
24135ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24136case $ac_cv_c_uint32_t in #(
24137 no|yes) ;; #(
24138 *)
24139
24140$as_echo "#define _UINT32_T 1" >>confdefs.h
24141
24142
24143cat >>confdefs.h <<_ACEOF
24144#define uint32_t $ac_cv_c_uint32_t
24145_ACEOF
24146;;
24147 esac
24148
24149ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24150case $ac_cv_c_uint64_t in #(
24151 no|yes) ;; #(
24152 *)
24153
24154$as_echo "#define _UINT64_T 1" >>confdefs.h
24155
24156
24157cat >>confdefs.h <<_ACEOF
24158#define uint64_t $ac_cv_c_uint64_t
24159_ACEOF
24160;;
24161 esac
24162
24163
cristy501c8042011-05-26 17:46:28 +000024164
24165 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24166if test "x$ac_cv_type_uintmax_t" = xyes; then :
24167
24168$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24169
24170else
24171 test $ac_cv_type_unsigned_long_long_int = yes \
24172 && ac_type='unsigned long long int' \
24173 || ac_type='unsigned long int'
24174
24175cat >>confdefs.h <<_ACEOF
24176#define uintmax_t $ac_type
24177_ACEOF
24178
24179fi
24180
24181
24182
24183 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24184if test "x$ac_cv_type_uintptr_t" = xyes; then :
24185
24186$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24187
24188else
24189 for ac_type in 'unsigned int' 'unsigned long int' \
24190 'unsigned long long int'; do
24191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192/* end confdefs.h. */
24193$ac_includes_default
24194int
24195main ()
24196{
24197static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000024198test_array [0] = 0;
24199return test_array [0];
cristy501c8042011-05-26 17:46:28 +000024200
24201 ;
24202 return 0;
24203}
24204_ACEOF
24205if ac_fn_c_try_compile "$LINENO"; then :
24206
24207cat >>confdefs.h <<_ACEOF
24208#define uintptr_t $ac_type
24209_ACEOF
24210
24211 ac_type=
24212fi
24213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214 test -z "$ac_type" && break
24215 done
24216fi
24217
24218
24219
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24221$as_echo_n "checking for unsigned long long int... " >&6; }
24222if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24223 $as_echo_n "(cached) " >&6
24224else
cristy045228a2013-06-23 11:00:16 +000024225 ac_cv_type_unsigned_long_long_int=yes
24226 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000024228/* end confdefs.h. */
24229
24230 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000024231 implementations with broken preprocessors. Perhaps this can
24232 be revisited in 2012. In the meantime, code should not expect
24233 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000024234 /* Test literals. */
24235 long long int ll = 9223372036854775807ll;
24236 long long int nll = -9223372036854775807LL;
24237 unsigned long long int ull = 18446744073709551615ULL;
24238 /* Test constant expressions. */
24239 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000024240 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024241 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000024242 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024243 int i = 63;
24244int
24245main ()
24246{
24247/* Test availability of runtime routines for shift and division. */
24248 long long int llmax = 9223372036854775807ll;
24249 unsigned long long int ullmax = 18446744073709551615ull;
24250 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000024251 | (llmax / ll) | (llmax % ll)
24252 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24253 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000024254 ;
24255 return 0;
24256}
24257
24258_ACEOF
24259if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024260
cristy501c8042011-05-26 17:46:28 +000024261else
24262 ac_cv_type_unsigned_long_long_int=no
24263fi
24264rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000024266 fi
cristy501c8042011-05-26 17:46:28 +000024267fi
24268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24269$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24270 if test $ac_cv_type_unsigned_long_long_int = yes; then
24271
24272$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24273
24274 fi
24275
24276
cristyfec31822013-05-23 12:32:12 +000024277# Float_t and double_t are intended to be the the most efficient type.
24278ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
24279"
24280if test "x$ac_cv_type_float_t" = xyes; then :
24281
24282cat >>confdefs.h <<_ACEOF
24283#define HAVE_FLOAT_T 1
24284_ACEOF
24285
24286
24287fi
24288
24289ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
24290"
24291if test "x$ac_cv_type_double_t" = xyes; then :
24292
24293cat >>confdefs.h <<_ACEOF
24294#define HAVE_DOUBLE_T 1
24295_ACEOF
24296
24297
24298fi
24299
24300# The cast to long int works around a bug in the HP C Compiler
24301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24303# This bug is HP SR number 8606223364.
24304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
24305$as_echo_n "checking size of float_t... " >&6; }
24306if ${ac_cv_sizeof_float_t+:} false; then :
24307 $as_echo_n "(cached) " >&6
24308else
24309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
24310"; then :
24311
24312else
24313 if test "$ac_cv_type_float_t" = yes; then
24314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24316as_fn_error 77 "cannot compute sizeof (float_t)
24317See \`config.log' for more details" "$LINENO" 5; }
24318 else
24319 ac_cv_sizeof_float_t=0
24320 fi
24321fi
24322
24323fi
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
24325$as_echo "$ac_cv_sizeof_float_t" >&6; }
24326
24327
24328
24329cat >>confdefs.h <<_ACEOF
24330#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
24331_ACEOF
24332
24333
24334# The cast to long int works around a bug in the HP C Compiler
24335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24337# This bug is HP SR number 8606223364.
24338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
24339$as_echo_n "checking size of double_t... " >&6; }
24340if ${ac_cv_sizeof_double_t+:} false; then :
24341 $as_echo_n "(cached) " >&6
24342else
24343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
24344"; then :
24345
24346else
24347 if test "$ac_cv_type_double_t" = yes; then
24348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24350as_fn_error 77 "cannot compute sizeof (double_t)
24351See \`config.log' for more details" "$LINENO" 5; }
24352 else
24353 ac_cv_sizeof_double_t=0
24354 fi
24355fi
24356
24357fi
24358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24359$as_echo "$ac_cv_sizeof_double_t" >&6; }
24360
24361
24362
24363cat >>confdefs.h <<_ACEOF
24364#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24365_ACEOF
24366
24367
24368
cristy9b86f202012-11-28 21:55:35 +000024369# Get size of float, double and long double for comparaison.
24370# The cast to long int works around a bug in the HP C Compiler
24371# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24372# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24373# This bug is HP SR number 8606223364.
24374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24375$as_echo_n "checking size of float... " >&6; }
24376if ${ac_cv_sizeof_float+:} false; then :
24377 $as_echo_n "(cached) " >&6
24378else
24379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24380
24381else
24382 if test "$ac_cv_type_float" = yes; then
24383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24385as_fn_error 77 "cannot compute sizeof (float)
24386See \`config.log' for more details" "$LINENO" 5; }
24387 else
24388 ac_cv_sizeof_float=0
24389 fi
24390fi
24391
24392fi
24393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24394$as_echo "$ac_cv_sizeof_float" >&6; }
24395
24396
24397
24398cat >>confdefs.h <<_ACEOF
24399#define SIZEOF_FLOAT $ac_cv_sizeof_float
24400_ACEOF
24401
24402
24403# The cast to long int works around a bug in the HP C Compiler
24404# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24405# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24406# This bug is HP SR number 8606223364.
24407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24408$as_echo_n "checking size of double... " >&6; }
24409if ${ac_cv_sizeof_double+:} false; then :
24410 $as_echo_n "(cached) " >&6
24411else
24412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24413
24414else
24415 if test "$ac_cv_type_double" = yes; then
24416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24418as_fn_error 77 "cannot compute sizeof (double)
24419See \`config.log' for more details" "$LINENO" 5; }
24420 else
24421 ac_cv_sizeof_double=0
24422 fi
24423fi
24424
24425fi
24426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24427$as_echo "$ac_cv_sizeof_double" >&6; }
24428
24429
24430
24431cat >>confdefs.h <<_ACEOF
24432#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24433_ACEOF
24434
24435
cristyfec31822013-05-23 12:32:12 +000024436# The cast to long int works around a bug in the HP C Compiler
24437# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24438# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24439# This bug is HP SR number 8606223364.
24440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24441$as_echo_n "checking size of long double... " >&6; }
24442if ${ac_cv_sizeof_long_double+:} false; then :
24443 $as_echo_n "(cached) " >&6
24444else
24445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24446
24447else
24448 if test "$ac_cv_type_long_double" = yes; then
24449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24451as_fn_error 77 "cannot compute sizeof (long double)
24452See \`config.log' for more details" "$LINENO" 5; }
24453 else
24454 ac_cv_sizeof_long_double=0
24455 fi
24456fi
24457
24458fi
24459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24460$as_echo "$ac_cv_sizeof_long_double" >&6; }
24461
24462
24463
24464cat >>confdefs.h <<_ACEOF
24465#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24466_ACEOF
24467
24468
cristyf0cf9a22012-10-24 12:05:01 +000024469
cristy3ed852e2009-09-05 21:47:34 +000024470# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24471# The cast to long int works around a bug in the HP C Compiler
24472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24474# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024477if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 $as_echo_n "(cached) " >&6
24479else
cristy8b350f62009-11-15 23:12:43 +000024480 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 +000024481
cristy3ed852e2009-09-05 21:47:34 +000024482else
cristy8b350f62009-11-15 23:12:43 +000024483 if test "$ac_cv_type_signed_short" = yes; then
24484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024486as_fn_error 77 "cannot compute sizeof (signed short)
24487See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024488 else
24489 ac_cv_sizeof_signed_short=0
24490 fi
24491fi
cristy8b350f62009-11-15 23:12:43 +000024492
cristy3ed852e2009-09-05 21:47:34 +000024493fi
cristy8b350f62009-11-15 23:12:43 +000024494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024495$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24496
24497
24498
24499cat >>confdefs.h <<_ACEOF
24500#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24501_ACEOF
24502
24503
24504
24505# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24506# The cast to long int works around a bug in the HP C Compiler
24507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24509# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024512if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 $as_echo_n "(cached) " >&6
24514else
cristy8b350f62009-11-15 23:12:43 +000024515 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 +000024516
cristy3ed852e2009-09-05 21:47:34 +000024517else
cristy8b350f62009-11-15 23:12:43 +000024518 if test "$ac_cv_type_unsigned_short" = yes; then
24519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024521as_fn_error 77 "cannot compute sizeof (unsigned short)
24522See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024523 else
24524 ac_cv_sizeof_unsigned_short=0
24525 fi
24526fi
cristy8b350f62009-11-15 23:12:43 +000024527
cristy3ed852e2009-09-05 21:47:34 +000024528fi
cristy8b350f62009-11-15 23:12:43 +000024529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024530$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24531
24532
24533
24534cat >>confdefs.h <<_ACEOF
24535#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24536_ACEOF
24537
24538
24539
24540# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24541# The cast to long int works around a bug in the HP C Compiler
24542# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24543# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24544# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024547if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024548 $as_echo_n "(cached) " >&6
24549else
cristy8b350f62009-11-15 23:12:43 +000024550 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 +000024551
cristy3ed852e2009-09-05 21:47:34 +000024552else
cristy8b350f62009-11-15 23:12:43 +000024553 if test "$ac_cv_type_signed_int" = yes; then
24554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024556as_fn_error 77 "cannot compute sizeof (signed int)
24557See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024558 else
24559 ac_cv_sizeof_signed_int=0
24560 fi
24561fi
cristy8b350f62009-11-15 23:12:43 +000024562
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24566
24567
24568
24569cat >>confdefs.h <<_ACEOF
24570#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24571_ACEOF
24572
24573
24574
24575# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24576# The cast to long int works around a bug in the HP C Compiler
24577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24579# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024581$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024582if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024583 $as_echo_n "(cached) " >&6
24584else
cristy8b350f62009-11-15 23:12:43 +000024585 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 +000024586
cristy3ed852e2009-09-05 21:47:34 +000024587else
cristy8b350f62009-11-15 23:12:43 +000024588 if test "$ac_cv_type_unsigned_int" = yes; then
24589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024591as_fn_error 77 "cannot compute sizeof (unsigned int)
24592See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024593 else
24594 ac_cv_sizeof_unsigned_int=0
24595 fi
24596fi
cristy8b350f62009-11-15 23:12:43 +000024597
cristy3ed852e2009-09-05 21:47:34 +000024598fi
cristy8b350f62009-11-15 23:12:43 +000024599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024600$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24601
24602
24603
24604cat >>confdefs.h <<_ACEOF
24605#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24606_ACEOF
24607
24608
24609
24610# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24611# The cast to long int works around a bug in the HP C Compiler
24612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24614# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024616$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024617if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024618 $as_echo_n "(cached) " >&6
24619else
cristy8b350f62009-11-15 23:12:43 +000024620 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 +000024621
cristy3ed852e2009-09-05 21:47:34 +000024622else
cristy8b350f62009-11-15 23:12:43 +000024623 if test "$ac_cv_type_signed_long" = yes; then
24624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024626as_fn_error 77 "cannot compute sizeof (signed long)
24627See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024628 else
24629 ac_cv_sizeof_signed_long=0
24630 fi
24631fi
cristy8b350f62009-11-15 23:12:43 +000024632
cristy3ed852e2009-09-05 21:47:34 +000024633fi
cristy8b350f62009-11-15 23:12:43 +000024634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024635$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24636
24637
24638
24639cat >>confdefs.h <<_ACEOF
24640#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24641_ACEOF
24642
24643
24644
24645# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24646# The cast to long int works around a bug in the HP C Compiler
24647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24649# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024651$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024652if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024653 $as_echo_n "(cached) " >&6
24654else
cristy8b350f62009-11-15 23:12:43 +000024655 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 +000024656
cristy3ed852e2009-09-05 21:47:34 +000024657else
cristy8b350f62009-11-15 23:12:43 +000024658 if test "$ac_cv_type_unsigned_long" = yes; then
24659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024661as_fn_error 77 "cannot compute sizeof (unsigned long)
24662See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024663 else
24664 ac_cv_sizeof_unsigned_long=0
24665 fi
24666fi
cristy8b350f62009-11-15 23:12:43 +000024667
cristy3ed852e2009-09-05 21:47:34 +000024668fi
cristy8b350f62009-11-15 23:12:43 +000024669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024670$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24671
24672
24673
24674cat >>confdefs.h <<_ACEOF
24675#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24676_ACEOF
24677
24678
24679
24680# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24681# 'signed long long' is not supported then the value defined is zero.
24682# The cast to long int works around a bug in the HP C Compiler
24683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24685# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024687$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024688if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024689 $as_echo_n "(cached) " >&6
24690else
cristy8b350f62009-11-15 23:12:43 +000024691 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 +000024692
cristy3ed852e2009-09-05 21:47:34 +000024693else
cristy8b350f62009-11-15 23:12:43 +000024694 if test "$ac_cv_type_signed_long_long" = yes; then
24695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024697as_fn_error 77 "cannot compute sizeof (signed long long)
24698See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024699 else
24700 ac_cv_sizeof_signed_long_long=0
24701 fi
24702fi
cristy8b350f62009-11-15 23:12:43 +000024703
cristy3ed852e2009-09-05 21:47:34 +000024704fi
cristy8b350f62009-11-15 23:12:43 +000024705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024706$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24707
24708
24709
24710cat >>confdefs.h <<_ACEOF
24711#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24712_ACEOF
24713
24714
24715
24716# Obtain size of a 'unsigned long long' and define as
24717# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24718# supported then the value defined is zero.
24719# The cast to long int works around a bug in the HP C Compiler
24720# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24721# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24722# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024725if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024726 $as_echo_n "(cached) " >&6
24727else
cristy8b350f62009-11-15 23:12:43 +000024728 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 +000024729
cristy3ed852e2009-09-05 21:47:34 +000024730else
cristy8b350f62009-11-15 23:12:43 +000024731 if test "$ac_cv_type_unsigned_long_long" = yes; then
24732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024734as_fn_error 77 "cannot compute sizeof (unsigned long long)
24735See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024736 else
24737 ac_cv_sizeof_unsigned_long_long=0
24738 fi
24739fi
cristy8b350f62009-11-15 23:12:43 +000024740
cristy3ed852e2009-09-05 21:47:34 +000024741fi
cristy8b350f62009-11-15 23:12:43 +000024742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24744
24745
24746
24747cat >>confdefs.h <<_ACEOF
24748#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24749_ACEOF
24750
24751
24752
cristyfec31822013-05-23 12:32:12 +000024753# Obtain size of off_t and define as SIZEOF_OFF_T
24754# The cast to long int works around a bug in the HP C Compiler
24755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24757# This bug is HP SR number 8606223364.
24758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24759$as_echo_n "checking size of off_t... " >&6; }
24760if ${ac_cv_sizeof_off_t+:} false; then :
24761 $as_echo_n "(cached) " >&6
24762else
24763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24764
24765else
24766 if test "$ac_cv_type_off_t" = yes; then
24767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24769as_fn_error 77 "cannot compute sizeof (off_t)
24770See \`config.log' for more details" "$LINENO" 5; }
24771 else
24772 ac_cv_sizeof_off_t=0
24773 fi
24774fi
24775
24776fi
24777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24778$as_echo "$ac_cv_sizeof_off_t" >&6; }
24779
24780
24781
24782cat >>confdefs.h <<_ACEOF
24783#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24784_ACEOF
24785
24786
24787
24788# Obtain size of size_t and define as SIZEOF_SIZE_T
24789# The cast to long int works around a bug in the HP C Compiler
24790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24792# This bug is HP SR number 8606223364.
24793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24794$as_echo_n "checking size of size_t... " >&6; }
24795if ${ac_cv_sizeof_size_t+:} false; then :
24796 $as_echo_n "(cached) " >&6
24797else
24798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24799
24800else
24801 if test "$ac_cv_type_size_t" = yes; then
24802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24804as_fn_error 77 "cannot compute sizeof (size_t)
24805See \`config.log' for more details" "$LINENO" 5; }
24806 else
24807 ac_cv_sizeof_size_t=0
24808 fi
24809fi
24810
24811fi
24812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24813$as_echo "$ac_cv_sizeof_size_t" >&6; }
24814
24815
24816
24817cat >>confdefs.h <<_ACEOF
24818#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24819_ACEOF
24820
24821
24822
24823# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24824# The cast to long int works around a bug in the HP C Compiler
24825# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24826# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24827# This bug is HP SR number 8606223364.
24828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24829$as_echo_n "checking size of ssize_t... " >&6; }
24830if ${ac_cv_sizeof_ssize_t+:} false; then :
24831 $as_echo_n "(cached) " >&6
24832else
24833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24834
24835else
24836 if test "$ac_cv_type_ssize_t" = yes; then
24837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24839as_fn_error 77 "cannot compute sizeof (ssize_t)
24840See \`config.log' for more details" "$LINENO" 5; }
24841 else
24842 ac_cv_sizeof_ssize_t=0
24843 fi
24844fi
24845
24846fi
24847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24848$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24849
24850
24851
24852cat >>confdefs.h <<_ACEOF
24853#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24854_ACEOF
24855
24856
24857
cristy3ed852e2009-09-05 21:47:34 +000024858# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24859# The cast to long int works around a bug in the HP C Compiler
24860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24862# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024864$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024865if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024866 $as_echo_n "(cached) " >&6
24867else
cristy8b350f62009-11-15 23:12:43 +000024868 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 +000024869
cristy3ed852e2009-09-05 21:47:34 +000024870else
cristy8b350f62009-11-15 23:12:43 +000024871 if test "$ac_cv_type_unsigned_intp" = yes; then
24872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024874as_fn_error 77 "cannot compute sizeof (unsigned int*)
24875See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024876 else
24877 ac_cv_sizeof_unsigned_intp=0
24878 fi
24879fi
cristy8b350f62009-11-15 23:12:43 +000024880
cristy3ed852e2009-09-05 21:47:34 +000024881fi
cristy8b350f62009-11-15 23:12:43 +000024882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024883$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24884
24885
24886
24887cat >>confdefs.h <<_ACEOF
24888#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24889_ACEOF
24890
24891
24892
24893#
24894# Compute sized types for current CPU and compiler options.
24895#
24896
cristy8b350f62009-11-15 23:12:43 +000024897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024898$as_echo_n "checking for signed 8-bit type... " >&6; }
24899INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24901$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024902
24903
cristy8b350f62009-11-15 23:12:43 +000024904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024905$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24906UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24908$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024909
24910
cristy8b350f62009-11-15 23:12:43 +000024911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo_n "checking for signed 16-bit type... " >&6; }
24913INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24915$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024916
24917
cristy8b350f62009-11-15 23:12:43 +000024918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024919$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24920UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24922$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024923
24924
cristy8b350f62009-11-15 23:12:43 +000024925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo_n "checking for signed 32-bit type... " >&6; }
24927INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024928INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024929if test $ac_cv_sizeof_signed_int -eq 4; then
24930 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024931 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024932elif test $ac_cv_sizeof_signed_long -eq 4; then
24933 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024934 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024935fi
cristyad38abe2012-12-23 23:03:21 +000024936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24937$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024938
24939
cristy6d5e20f2011-04-25 13:48:54 +000024940
cristy8b350f62009-11-15 23:12:43 +000024941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024942$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24943UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024944UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024945if test $ac_cv_sizeof_unsigned_int -eq 4; then
24946 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024947 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024948elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24949 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024950 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024951fi
cristyad38abe2012-12-23 23:03:21 +000024952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24953$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024954
24955
cristy6d5e20f2011-04-25 13:48:54 +000024956
cristy8b350f62009-11-15 23:12:43 +000024957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024958$as_echo_n "checking for signed 64-bit type... " >&6; }
24959INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024960INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024961if test $ac_cv_sizeof_signed_long -eq 8; then
24962 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024963 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024964elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24965 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024966 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024967fi
cristy3a99dcf2011-12-17 01:29:40 +000024968case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024969 mingw* )
24970 INT64_F='"I64"'
24971 ;;
24972esac
cristyad38abe2012-12-23 23:03:21 +000024973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24974$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024975
24976
cristy6d5e20f2011-04-25 13:48:54 +000024977
cristy8b350f62009-11-15 23:12:43 +000024978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024979$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24980UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024981UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024982if test $ac_cv_sizeof_unsigned_long -eq 8; then
24983 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024984 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024985elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24986 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024987 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024988fi
cristy3a99dcf2011-12-17 01:29:40 +000024989case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024990 mingw* )
24991 UINT64_F='"I64"'
24992 ;;
24993esac
cristyad38abe2012-12-23 23:03:21 +000024994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24995$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024996
24997
cristy6d5e20f2011-04-25 13:48:54 +000024998
cristy8b350f62009-11-15 23:12:43 +000024999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo_n "checking for unsigned maximum type... " >&6; }
25001UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025002UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025003if test "$UINT64_T" != 'none'; then
25004 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000025005 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000025006elif test "$UINT32_T" != 'none'; then
25007 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000025008 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000025009fi
cristyad38abe2012-12-23 23:03:21 +000025010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
25011$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025012
25013
cristy6d5e20f2011-04-25 13:48:54 +000025014
cristy8b350f62009-11-15 23:12:43 +000025015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025016$as_echo_n "checking for pointer difference type... " >&6; }
25017UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025018UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025019if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
25020 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025021 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025022elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
25023 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000025024 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025025fi
cristyad38abe2012-12-23 23:03:21 +000025026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
25027$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025028
25029
cristy6d5e20f2011-04-25 13:48:54 +000025030
cristy8b350f62009-11-15 23:12:43 +000025031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025034/* end confdefs.h. */
25035
25036int
25037main ()
25038{
25039{ const char *func = __func__; return(func != 0 ? 0 : 1); }
25040 ;
25041 return 0;
25042}
25043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025044if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25046$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025047else
cristyad38abe2012-12-23 23:03:21 +000025048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25049$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025051$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025053/* end confdefs.h. */
25054
25055int
25056main ()
25057{
25058{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
25059 ;
25060 return 0;
25061}
25062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025063if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25065$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025066
cristy8b350f62009-11-15 23:12:43 +000025067$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025068
25069else
cristyad38abe2012-12-23 23:03:21 +000025070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25071$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025072
cristy8b350f62009-11-15 23:12:43 +000025073$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025074
25075fi
cristy3ed852e2009-09-05 21:47:34 +000025076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077fi
cristy3ed852e2009-09-05 21:47:34 +000025078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25079
25080########
25081#
25082# Check for functions
25083#
25084########
cristy8b350f62009-11-15 23:12:43 +000025085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025086$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025087if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 $as_echo_n "(cached) " >&6
25089else
cristy8b350f62009-11-15 23:12:43 +000025090 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025091 ac_cv_func_closedir_void=yes
25092else
cristy8b350f62009-11-15 23:12:43 +000025093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025094/* end confdefs.h. */
25095$ac_includes_default
25096#include <$ac_header_dirent>
25097#ifndef __cplusplus
25098int closedir ();
25099#endif
25100
25101int
25102main ()
25103{
25104return closedir (opendir (".")) != 0;
25105 ;
25106 return 0;
25107}
25108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025109if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 ac_cv_func_closedir_void=no
25111else
cristy8b350f62009-11-15 23:12:43 +000025112 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000025113fi
cristy8b350f62009-11-15 23:12:43 +000025114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25115 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025116fi
25117
cristy3ed852e2009-09-05 21:47:34 +000025118fi
cristy8b350f62009-11-15 23:12:43 +000025119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo "$ac_cv_func_closedir_void" >&6; }
25121if test $ac_cv_func_closedir_void = yes; then
25122
cristy8b350f62009-11-15 23:12:43 +000025123$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025124
25125fi
25126
cristycd4c5312009-11-22 01:19:08 +000025127
25128
25129
25130 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000025131do :
25132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000025133ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25134"
cristy98dddb52010-11-04 00:30:15 +000025135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025136 cat >>confdefs.h <<_ACEOF
25137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25138_ACEOF
25139
25140fi
25141
25142done
25143
cristycd4c5312009-11-22 01:19:08 +000025144
25145
25146
25147
25148
25149
25150
cristy3ed852e2009-09-05 21:47:34 +000025151for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000025152do :
25153 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000025154if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025155 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025156#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000025157_ACEOF
25158
25159fi
25160done
25161
cristy8b350f62009-11-15 23:12:43 +000025162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025164if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025165 $as_echo_n "(cached) " >&6
25166else
cristy8b350f62009-11-15 23:12:43 +000025167 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025168 ac_cv_func_mmap_fixed_mapped=no
25169else
cristy8b350f62009-11-15 23:12:43 +000025170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025171/* end confdefs.h. */
25172$ac_includes_default
25173/* malloc might have been renamed as rpl_malloc. */
25174#undef malloc
25175
25176/* Thanks to Mike Haertel and Jim Avera for this test.
25177 Here is a matrix of mmap possibilities:
25178 mmap private not fixed
25179 mmap private fixed at somewhere currently unmapped
25180 mmap private fixed at somewhere already mapped
25181 mmap shared not fixed
25182 mmap shared fixed at somewhere currently unmapped
25183 mmap shared fixed at somewhere already mapped
25184 For private mappings, we should verify that changes cannot be read()
25185 back from the file, nor mmap's back from the file at a different
25186 address. (There have been systems where private was not correctly
25187 implemented like the infamous i386 svr4.0, and systems where the
25188 VM page cache was not coherent with the file system buffer cache
25189 like early versions of FreeBSD and possibly contemporary NetBSD.)
25190 For shared mappings, we should conversely verify that changes get
25191 propagated back to all the places they're supposed to be.
25192
25193 Grep wants private fixed already mapped.
25194 The main things grep needs to know about mmap are:
25195 * does it exist and is it safe to write into the mmap'd area
25196 * how to use it (BSD variants) */
25197
25198#include <fcntl.h>
25199#include <sys/mman.h>
25200
25201#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25202char *malloc ();
25203#endif
25204
25205/* This mess was copied from the GNU getpagesize.h. */
25206#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000025207# ifdef _SC_PAGESIZE
25208# define getpagesize() sysconf(_SC_PAGESIZE)
25209# else /* no _SC_PAGESIZE */
25210# ifdef HAVE_SYS_PARAM_H
25211# include <sys/param.h>
25212# ifdef EXEC_PAGESIZE
25213# define getpagesize() EXEC_PAGESIZE
25214# else /* no EXEC_PAGESIZE */
25215# ifdef NBPG
25216# define getpagesize() NBPG * CLSIZE
25217# ifndef CLSIZE
25218# define CLSIZE 1
25219# endif /* no CLSIZE */
25220# else /* no NBPG */
25221# ifdef NBPC
25222# define getpagesize() NBPC
25223# else /* no NBPC */
25224# ifdef PAGESIZE
25225# define getpagesize() PAGESIZE
25226# endif /* PAGESIZE */
25227# endif /* no NBPC */
25228# endif /* no NBPG */
25229# endif /* no EXEC_PAGESIZE */
25230# else /* no HAVE_SYS_PARAM_H */
25231# define getpagesize() 8192 /* punt totally */
25232# endif /* no HAVE_SYS_PARAM_H */
25233# endif /* no _SC_PAGESIZE */
25234
25235#endif /* no HAVE_GETPAGESIZE */
25236
25237int
25238main ()
25239{
25240 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000025241 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000025242 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000025243 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000025244
25245 pagesize = getpagesize ();
25246
25247 /* First, make a file with some known garbage in it. */
25248 data = (char *) malloc (pagesize);
25249 if (!data)
25250 return 1;
25251 for (i = 0; i < pagesize; ++i)
25252 *(data + i) = rand ();
25253 umask (0);
25254 fd = creat ("conftest.mmap", 0600);
25255 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025256 return 2;
cristy3ed852e2009-09-05 21:47:34 +000025257 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025258 return 3;
cristy3ed852e2009-09-05 21:47:34 +000025259 close (fd);
25260
cristycd4c5312009-11-22 01:19:08 +000025261 /* Next, check that the tail of a page is zero-filled. File must have
25262 non-zero length, otherwise we risk SIGBUS for entire page. */
25263 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25264 if (fd2 < 0)
25265 return 4;
cristyc54f5d42009-11-27 21:36:31 +000025266 cdata2 = "";
25267 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000025268 return 5;
cristyc54f5d42009-11-27 21:36:31 +000025269 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000025270 if (data2 == MAP_FAILED)
25271 return 6;
25272 for (i = 0; i < pagesize; ++i)
25273 if (*(data2 + i))
25274 return 7;
25275 close (fd2);
25276 if (munmap (data2, pagesize))
25277 return 8;
25278
cristy3ed852e2009-09-05 21:47:34 +000025279 /* Next, try to mmap the file at a fixed address which already has
25280 something else allocated at it. If we can, also make sure that
25281 we see the same garbage. */
25282 fd = open ("conftest.mmap", O_RDWR);
25283 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025284 return 9;
cristy3ed852e2009-09-05 21:47:34 +000025285 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25286 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000025287 return 10;
cristy3ed852e2009-09-05 21:47:34 +000025288 for (i = 0; i < pagesize; ++i)
25289 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000025290 return 11;
cristy3ed852e2009-09-05 21:47:34 +000025291
25292 /* Finally, make sure that changes to the mapped area do not
25293 percolate back to the file as seen by read(). (This is a bug on
25294 some variants of i386 svr4.0.) */
25295 for (i = 0; i < pagesize; ++i)
25296 *(data2 + i) = *(data2 + i) + 1;
25297 data3 = (char *) malloc (pagesize);
25298 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000025299 return 12;
cristy3ed852e2009-09-05 21:47:34 +000025300 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025301 return 13;
cristy3ed852e2009-09-05 21:47:34 +000025302 for (i = 0; i < pagesize; ++i)
25303 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000025304 return 14;
cristy3ed852e2009-09-05 21:47:34 +000025305 close (fd);
25306 return 0;
25307}
25308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025309if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025310 ac_cv_func_mmap_fixed_mapped=yes
25311else
cristy8b350f62009-11-15 23:12:43 +000025312 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000025313fi
cristy8b350f62009-11-15 23:12:43 +000025314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25315 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025316fi
25317
cristy3ed852e2009-09-05 21:47:34 +000025318fi
cristy8b350f62009-11-15 23:12:43 +000025319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000025320$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25321if test $ac_cv_func_mmap_fixed_mapped = yes; then
25322
cristy8b350f62009-11-15 23:12:43 +000025323$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025324
25325fi
cristycd4c5312009-11-22 01:19:08 +000025326rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025327
cristy3ed852e2009-09-05 21:47:34 +000025328for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025329do :
25330 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025331if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025333#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025334_ACEOF
25335
25336fi
25337
25338done
25339
cristy3ed852e2009-09-05 21:47:34 +000025340for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025341do :
25342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25343ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025344if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 cat >>confdefs.h <<_ACEOF
25346#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25347_ACEOF
25348
25349fi
25350done
25351
25352if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025355if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 $as_echo_n "(cached) " >&6
25357else
cristy8b350f62009-11-15 23:12:43 +000025358 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025359 ac_cv_func_fork_works=cross
25360else
cristy8b350f62009-11-15 23:12:43 +000025361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362/* end confdefs.h. */
25363$ac_includes_default
25364int
25365main ()
25366{
25367
25368 /* By Ruediger Kuhlmann. */
25369 return fork () < 0;
25370
25371 ;
25372 return 0;
25373}
25374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025375if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025376 ac_cv_func_fork_works=yes
25377else
cristy8b350f62009-11-15 23:12:43 +000025378 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025379fi
cristy8b350f62009-11-15 23:12:43 +000025380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25381 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025382fi
25383
cristy3ed852e2009-09-05 21:47:34 +000025384fi
cristy8b350f62009-11-15 23:12:43 +000025385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025386$as_echo "$ac_cv_func_fork_works" >&6; }
25387
25388else
25389 ac_cv_func_fork_works=$ac_cv_func_fork
25390fi
25391if test "x$ac_cv_func_fork_works" = xcross; then
25392 case $host in
25393 *-*-amigaos* | *-*-msdosdjgpp*)
25394 # Override, as these systems have only a dummy fork() stub
25395 ac_cv_func_fork_works=no
25396 ;;
25397 *)
25398 ac_cv_func_fork_works=yes
25399 ;;
25400 esac
cristy8b350f62009-11-15 23:12:43 +000025401 { $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 +000025402$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25403fi
25404ac_cv_func_vfork_works=$ac_cv_func_vfork
25405if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025408if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 $as_echo_n "(cached) " >&6
25410else
cristy8b350f62009-11-15 23:12:43 +000025411 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025412 ac_cv_func_vfork_works=cross
25413else
cristy8b350f62009-11-15 23:12:43 +000025414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025415/* end confdefs.h. */
25416/* Thanks to Paul Eggert for this test. */
25417$ac_includes_default
25418#include <sys/wait.h>
25419#ifdef HAVE_VFORK_H
25420# include <vfork.h>
25421#endif
25422/* On some sparc systems, changes by the child to local and incoming
25423 argument registers are propagated back to the parent. The compiler
25424 is told about this with #include <vfork.h>, but some compilers
25425 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25426 static variable whose address is put into a register that is
25427 clobbered by the vfork. */
25428static void
25429#ifdef __cplusplus
25430sparc_address_test (int arg)
25431# else
25432sparc_address_test (arg) int arg;
25433#endif
25434{
25435 static pid_t child;
25436 if (!child) {
25437 child = vfork ();
25438 if (child < 0) {
25439 perror ("vfork");
25440 _exit(2);
25441 }
25442 if (!child) {
25443 arg = getpid();
25444 write(-1, "", 0);
25445 _exit (arg);
25446 }
25447 }
25448}
25449
25450int
25451main ()
25452{
25453 pid_t parent = getpid ();
25454 pid_t child;
25455
25456 sparc_address_test (0);
25457
25458 child = vfork ();
25459
25460 if (child == 0) {
25461 /* Here is another test for sparc vfork register problems. This
25462 test uses lots of local variables, at least as many local
25463 variables as main has allocated so far including compiler
25464 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25465 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25466 reuse the register of parent for one of the local variables,
25467 since it will think that parent can't possibly be used any more
25468 in this routine. Assigning to the local variable will thus
25469 munge parent in the parent process. */
25470 pid_t
25471 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25472 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25473 /* Convince the compiler that p..p7 are live; otherwise, it might
25474 use the same hardware register for all 8 local variables. */
25475 if (p != p1 || p != p2 || p != p3 || p != p4
25476 || p != p5 || p != p6 || p != p7)
25477 _exit(1);
25478
25479 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25480 from child file descriptors. If the child closes a descriptor
25481 before it execs or exits, this munges the parent's descriptor
25482 as well. Test for this by closing stdout in the child. */
25483 _exit(close(fileno(stdout)) != 0);
25484 } else {
25485 int status;
25486 struct stat st;
25487
25488 while (wait(&status) != child)
25489 ;
25490 return (
25491 /* Was there some problem with vforking? */
25492 child < 0
25493
25494 /* Did the child fail? (This shouldn't happen.) */
25495 || status
25496
25497 /* Did the vfork/compiler bug occur? */
25498 || parent != getpid()
25499
25500 /* Did the file descriptor bug occur? */
25501 || fstat(fileno(stdout), &st) != 0
25502 );
25503 }
25504}
25505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025506if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025507 ac_cv_func_vfork_works=yes
25508else
cristy8b350f62009-11-15 23:12:43 +000025509 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025510fi
cristy8b350f62009-11-15 23:12:43 +000025511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25512 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025513fi
25514
cristy3ed852e2009-09-05 21:47:34 +000025515fi
cristy8b350f62009-11-15 23:12:43 +000025516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025517$as_echo "$ac_cv_func_vfork_works" >&6; }
25518
25519fi;
25520if test "x$ac_cv_func_fork_works" = xcross; then
25521 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025522 { $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 +000025523$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25524fi
25525
25526if test "x$ac_cv_func_vfork_works" = xyes; then
25527
cristy8b350f62009-11-15 23:12:43 +000025528$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025529
25530else
25531
cristy8b350f62009-11-15 23:12:43 +000025532$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025533
25534fi
25535if test "x$ac_cv_func_fork_works" = xyes; then
25536
cristy8b350f62009-11-15 23:12:43 +000025537$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025538
25539fi
25540
cristy8b350f62009-11-15 23:12:43 +000025541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025543if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025544 $as_echo_n "(cached) " >&6
25545else
cristy8b350f62009-11-15 23:12:43 +000025546 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025547 ac_cv_func_memcmp_working=no
25548else
cristy8b350f62009-11-15 23:12:43 +000025549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025550/* end confdefs.h. */
25551$ac_includes_default
25552int
25553main ()
25554{
25555
25556 /* Some versions of memcmp are not 8-bit clean. */
25557 char c0 = '\100', c1 = '\200', c2 = '\201';
25558 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25559 return 1;
25560
25561 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25562 or more and with at least one buffer not starting on a 4-byte boundary.
25563 William Lewis provided this test program. */
25564 {
25565 char foo[21];
25566 char bar[21];
25567 int i;
25568 for (i = 0; i < 4; i++)
25569 {
25570 char *a = foo + i;
25571 char *b = bar + i;
25572 strcpy (a, "--------01111111");
25573 strcpy (b, "--------10000000");
25574 if (memcmp (a, b, 16) >= 0)
25575 return 1;
25576 }
25577 return 0;
25578 }
25579
25580 ;
25581 return 0;
25582}
25583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025584if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025585 ac_cv_func_memcmp_working=yes
25586else
cristy8b350f62009-11-15 23:12:43 +000025587 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025588fi
cristy8b350f62009-11-15 23:12:43 +000025589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25590 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025591fi
25592
cristy3ed852e2009-09-05 21:47:34 +000025593fi
cristy8b350f62009-11-15 23:12:43 +000025594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$ac_cv_func_memcmp_working" >&6; }
25596test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25597 *" memcmp.$ac_objext "* ) ;;
25598 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25599 ;;
25600esac
25601
25602
cristy3ed852e2009-09-05 21:47:34 +000025603for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025604do :
25605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25606ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025607if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025608 cat >>confdefs.h <<_ACEOF
25609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25610_ACEOF
25611
25612fi
25613
25614done
25615
cristy8b350f62009-11-15 23:12:43 +000025616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025617$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025618if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025619 $as_echo_n "(cached) " >&6
25620else
25621 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25622 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25623 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025625/* end confdefs.h. */
25626$ac_includes_default
25627#ifdef HAVE_SYS_SELECT_H
25628# include <sys/select.h>
25629#endif
25630#ifdef HAVE_SYS_SOCKET_H
25631# include <sys/socket.h>
25632#endif
25633
25634int
25635main ()
25636{
25637extern int select ($ac_arg1,
25638 $ac_arg234, $ac_arg234, $ac_arg234,
25639 $ac_arg5);
25640 ;
25641 return 0;
25642}
25643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025646fi
cristy3ed852e2009-09-05 21:47:34 +000025647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648 done
25649 done
25650done
25651# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025652: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025653
25654fi
cristy8b350f62009-11-15 23:12:43 +000025655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo "$ac_cv_func_select_args" >&6; }
25657ac_save_IFS=$IFS; IFS=','
25658set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25659IFS=$ac_save_IFS
25660shift
25661
25662cat >>confdefs.h <<_ACEOF
25663#define SELECT_TYPE_ARG1 $1
25664_ACEOF
25665
25666
25667cat >>confdefs.h <<_ACEOF
25668#define SELECT_TYPE_ARG234 ($2)
25669_ACEOF
25670
25671
25672cat >>confdefs.h <<_ACEOF
25673#define SELECT_TYPE_ARG5 ($3)
25674_ACEOF
25675
25676rm -f conftest*
25677
cristyda16f162011-02-19 23:52:17 +000025678if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025679 $as_echo_n "(cached) " >&6
25680else
25681 ac_cv_func_setvbuf_reversed=no
25682fi
25683
25684
cristy8b350f62009-11-15 23:12:43 +000025685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025686$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025687if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025688 $as_echo_n "(cached) " >&6
25689else
cristy8b350f62009-11-15 23:12:43 +000025690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025691/* end confdefs.h. */
25692#include <sys/types.h>
25693#include <signal.h>
25694
25695int
25696main ()
25697{
25698return *(signal (0, 0)) (0) == 1;
25699 ;
25700 return 0;
25701}
25702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025703if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 ac_cv_type_signal=int
25705else
cristy8b350f62009-11-15 23:12:43 +000025706 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025707fi
cristy3ed852e2009-09-05 21:47:34 +000025708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709fi
cristy8b350f62009-11-15 23:12:43 +000025710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025711$as_echo "$ac_cv_type_signal" >&6; }
25712
25713cat >>confdefs.h <<_ACEOF
25714#define RETSIGTYPE $ac_cv_type_signal
25715_ACEOF
25716
25717
cristy8b350f62009-11-15 23:12:43 +000025718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025719$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025720if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025721 $as_echo_n "(cached) " >&6
25722else
cristy8b350f62009-11-15 23:12:43 +000025723 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025724 ac_cv_func_strtod=no
25725else
cristy8b350f62009-11-15 23:12:43 +000025726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025727/* end confdefs.h. */
25728
25729$ac_includes_default
25730#ifndef strtod
25731double strtod ();
25732#endif
25733int
25734main()
25735{
25736 {
25737 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25738 char *string = " +69";
25739 char *term;
25740 double value;
25741 value = strtod (string, &term);
25742 if (value != 69 || term != (string + 4))
25743 return 1;
25744 }
25745
25746 {
25747 /* Under Solaris 2.4, strtod returns the wrong value for the
25748 terminating character under some conditions. */
25749 char *string = "NaN";
25750 char *term;
25751 strtod (string, &term);
25752 if (term != string && *(term - 1) == 0)
25753 return 1;
25754 }
25755 return 0;
25756}
25757
25758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025759if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025760 ac_cv_func_strtod=yes
25761else
cristy8b350f62009-11-15 23:12:43 +000025762 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025763fi
cristy8b350f62009-11-15 23:12:43 +000025764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25765 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025766fi
25767
cristy3ed852e2009-09-05 21:47:34 +000025768fi
cristy8b350f62009-11-15 23:12:43 +000025769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025770$as_echo "$ac_cv_func_strtod" >&6; }
25771if test $ac_cv_func_strtod = no; then
25772 case " $LIBOBJS " in
25773 *" strtod.$ac_objext "* ) ;;
25774 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25775 ;;
25776esac
25777
cristy8b350f62009-11-15 23:12:43 +000025778ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025779if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025780
cristy3ed852e2009-09-05 21:47:34 +000025781fi
25782
cristy3ed852e2009-09-05 21:47:34 +000025783if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025785$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025786if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 $as_echo_n "(cached) " >&6
25788else
25789 ac_check_lib_save_LIBS=$LIBS
25790LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025792/* end confdefs.h. */
25793
25794/* Override any GCC internal prototype to avoid an error.
25795 Use char because int might match the return type of a GCC
25796 builtin and then its argument prototype would still apply. */
25797#ifdef __cplusplus
25798extern "C"
25799#endif
25800char pow ();
25801int
25802main ()
25803{
25804return pow ();
25805 ;
25806 return 0;
25807}
25808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 ac_cv_lib_m_pow=yes
25811else
cristy8b350f62009-11-15 23:12:43 +000025812 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025813fi
cristy8b350f62009-11-15 23:12:43 +000025814rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025816LIBS=$ac_check_lib_save_LIBS
25817fi
cristy8b350f62009-11-15 23:12:43 +000025818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025819$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025820if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025821 POW_LIB=-lm
25822else
cristy8b350f62009-11-15 23:12:43 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25825fi
25826
25827fi
25828
25829fi
25830
cristy7d4a1d62011-10-13 15:54:12 +000025831ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25832if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25833 ac_have_decl=1
25834else
25835 ac_have_decl=0
25836fi
25837
25838cat >>confdefs.h <<_ACEOF
25839#define HAVE_DECL_STRERROR_R $ac_have_decl
25840_ACEOF
25841
25842for ac_func in strerror_r
25843do :
25844 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25845if test "x$ac_cv_func_strerror_r" = xyes; then :
25846 cat >>confdefs.h <<_ACEOF
25847#define HAVE_STRERROR_R 1
25848_ACEOF
25849
25850fi
25851done
25852
25853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25854$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25855if ${ac_cv_func_strerror_r_char_p+:} false; then :
25856 $as_echo_n "(cached) " >&6
25857else
25858
25859 ac_cv_func_strerror_r_char_p=no
25860 if test $ac_cv_have_decl_strerror_r = yes; then
25861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25862/* end confdefs.h. */
25863$ac_includes_default
25864int
25865main ()
25866{
25867
25868 char buf[100];
25869 char x = *strerror_r (0, buf, sizeof buf);
25870 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025871 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025872
25873 ;
25874 return 0;
25875}
25876_ACEOF
25877if ac_fn_c_try_compile "$LINENO"; then :
25878 ac_cv_func_strerror_r_char_p=yes
25879fi
25880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881 else
25882 # strerror_r is not declared. Choose between
25883 # systems that have relatively inaccessible declarations for the
25884 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25885 # former has a strerror_r that returns char*, while the latter
25886 # has a strerror_r that returns `int'.
25887 # This test should segfault on the DEC system.
25888 if test "$cross_compiling" = yes; then :
25889 :
25890else
25891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25892/* end confdefs.h. */
25893$ac_includes_default
25894 extern char *strerror_r ();
25895int
25896main ()
25897{
25898char buf[100];
25899 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025900 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025901 ;
25902 return 0;
25903}
25904_ACEOF
25905if ac_fn_c_try_run "$LINENO"; then :
25906 ac_cv_func_strerror_r_char_p=yes
25907fi
25908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25909 conftest.$ac_objext conftest.beam conftest.$ac_ext
25910fi
25911
25912 fi
25913
25914fi
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25916$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25917if test $ac_cv_func_strerror_r_char_p = yes; then
25918
25919$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25920
25921fi
25922
cristy3ed852e2009-09-05 21:47:34 +000025923for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025924do :
25925 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025926if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025928#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025929_ACEOF
25930
cristy8b350f62009-11-15 23:12:43 +000025931ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025932if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025933
cristy8b350f62009-11-15 23:12:43 +000025934$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025935
25936fi
25937
25938fi
25939done
25940
25941
25942
cristy161b9262010-03-20 19:34:32 +000025943#
25944# Find math library
25945#
25946MATH_LIBS=''
25947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25948$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025949if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025950 $as_echo_n "(cached) " >&6
25951else
25952 ac_check_lib_save_LIBS=$LIBS
25953LIBS="-lm $LIBS"
25954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955/* end confdefs.h. */
25956
25957/* Override any GCC internal prototype to avoid an error.
25958 Use char because int might match the return type of a GCC
25959 builtin and then its argument prototype would still apply. */
25960#ifdef __cplusplus
25961extern "C"
25962#endif
25963char sqrt ();
25964int
25965main ()
25966{
25967return sqrt ();
25968 ;
25969 return 0;
25970}
25971_ACEOF
25972if ac_fn_c_try_link "$LINENO"; then :
25973 ac_cv_lib_m_sqrt=yes
25974else
25975 ac_cv_lib_m_sqrt=no
25976fi
25977rm -f core conftest.err conftest.$ac_objext \
25978 conftest$ac_exeext conftest.$ac_ext
25979LIBS=$ac_check_lib_save_LIBS
25980fi
25981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25982$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025983if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025984 MATH_LIBS="-lm"
25985fi
25986
25987LIBS="$MATH_LIBS $LIBS"
25988
25989
cristy85572162013-01-04 19:19:32 +000025990#
25991# Find socket library
25992#
cristy8a5d7f42013-01-06 15:24:33 +000025993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25994$as_echo_n "checking for library containing gethostbyname... " >&6; }
25995if ${ac_cv_search_gethostbyname+:} false; then :
25996 $as_echo_n "(cached) " >&6
25997else
25998 ac_func_search_save_LIBS=$LIBS
25999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000/* end confdefs.h. */
26001
26002/* Override any GCC internal prototype to avoid an error.
26003 Use char because int might match the return type of a GCC
26004 builtin and then its argument prototype would still apply. */
26005#ifdef __cplusplus
26006extern "C"
26007#endif
26008char gethostbyname ();
26009int
26010main ()
26011{
26012return gethostbyname ();
26013 ;
26014 return 0;
26015}
26016_ACEOF
26017for ac_lib in '' resolv nsl; do
26018 if test -z "$ac_lib"; then
26019 ac_res="none required"
26020 else
26021 ac_res=-l$ac_lib
26022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26023 fi
26024 if ac_fn_c_try_link "$LINENO"; then :
26025 ac_cv_search_gethostbyname=$ac_res
26026fi
26027rm -f core conftest.err conftest.$ac_objext \
26028 conftest$ac_exeext
26029 if ${ac_cv_search_gethostbyname+:} false; then :
26030 break
26031fi
26032done
26033if ${ac_cv_search_gethostbyname+:} false; then :
26034
26035else
26036 ac_cv_search_gethostbyname=no
26037fi
26038rm conftest.$ac_ext
26039LIBS=$ac_func_search_save_LIBS
26040fi
26041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26042$as_echo "$ac_cv_search_gethostbyname" >&6; }
26043ac_res=$ac_cv_search_gethostbyname
26044if test "$ac_res" != no; then :
26045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26046
26047fi
26048
cristy85572162013-01-04 19:19:32 +000026049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26050$as_echo_n "checking for library containing socket... " >&6; }
26051if ${ac_cv_search_socket+:} false; then :
26052 $as_echo_n "(cached) " >&6
26053else
26054 ac_func_search_save_LIBS=$LIBS
26055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056/* end confdefs.h. */
26057
26058/* Override any GCC internal prototype to avoid an error.
26059 Use char because int might match the return type of a GCC
26060 builtin and then its argument prototype would still apply. */
26061#ifdef __cplusplus
26062extern "C"
26063#endif
26064char socket ();
26065int
26066main ()
26067{
26068return socket ();
26069 ;
26070 return 0;
26071}
26072_ACEOF
26073for ac_lib in '' socket; do
26074 if test -z "$ac_lib"; then
26075 ac_res="none required"
26076 else
26077 ac_res=-l$ac_lib
26078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26079 fi
26080 if ac_fn_c_try_link "$LINENO"; then :
26081 ac_cv_search_socket=$ac_res
26082fi
26083rm -f core conftest.err conftest.$ac_objext \
26084 conftest$ac_exeext
26085 if ${ac_cv_search_socket+:} false; then :
26086 break
26087fi
26088done
26089if ${ac_cv_search_socket+:} false; then :
26090
26091else
26092 ac_cv_search_socket=no
26093fi
26094rm conftest.$ac_ext
26095LIBS=$ac_func_search_save_LIBS
26096fi
26097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26098$as_echo "$ac_cv_search_socket" >&6; }
26099ac_res=$ac_cv_search_socket
26100if test "$ac_res" != no; then :
26101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26102
cristy85572162013-01-04 19:19:32 +000026103
cristy8a5d7f42013-01-06 15:24:33 +000026104$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000026105
cristy03f187e2013-01-24 00:22:19 +000026106 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000026107
26108fi
26109
26110
26111for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000026112do :
26113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26114ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026115if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 cat >>confdefs.h <<_ACEOF
26117#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26118_ACEOF
26119
26120fi
26121done
26122
26123
cristye43a45e2009-09-28 14:49:00 +000026124#
26125# Check for clock_gettime().
26126#
cristy8b350f62009-11-15 23:12:43 +000026127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026128$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026129if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026130 $as_echo_n "(cached) " >&6
26131else
26132 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000026133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026134/* end confdefs.h. */
26135
26136/* Override any GCC internal prototype to avoid an error.
26137 Use char because int might match the return type of a GCC
26138 builtin and then its argument prototype would still apply. */
26139#ifdef __cplusplus
26140extern "C"
26141#endif
26142char clock_gettime ();
26143int
26144main ()
26145{
26146return clock_gettime ();
26147 ;
26148 return 0;
26149}
26150_ACEOF
26151for ac_lib in '' rt; do
26152 if test -z "$ac_lib"; then
26153 ac_res="none required"
26154 else
26155 ac_res=-l$ac_lib
26156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26157 fi
cristy8b350f62009-11-15 23:12:43 +000026158 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026159 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000026160fi
cristy8b350f62009-11-15 23:12:43 +000026161rm -f core conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000026163 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026164 break
26165fi
26166done
cristyda16f162011-02-19 23:52:17 +000026167if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000026168
cristye43a45e2009-09-28 14:49:00 +000026169else
26170 ac_cv_search_clock_gettime=no
26171fi
26172rm conftest.$ac_ext
26173LIBS=$ac_func_search_save_LIBS
26174fi
cristy8b350f62009-11-15 23:12:43 +000026175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026176$as_echo "$ac_cv_search_clock_gettime" >&6; }
26177ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000026178if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000026179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26180
26181
cristy8b350f62009-11-15 23:12:43 +000026182$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026183
cristy8b350f62009-11-15 23:12:43 +000026184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000026185$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026187/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000026188
26189 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000026190int
26191main ()
26192{
26193clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000026194 ;
26195 return 0;
26196}
26197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026198if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026199
cristyad38abe2012-12-23 23:03:21 +000026200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26201$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026202
cristy8b350f62009-11-15 23:12:43 +000026203$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026204
26205
26206else
cristyad38abe2012-12-23 23:03:21 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26208$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026209
26210fi
cristye43a45e2009-09-28 14:49:00 +000026211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212
26213else
26214
cristy8b350f62009-11-15 23:12:43 +000026215 for ac_func in gettimeofday ftime
26216do :
26217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26218ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026219if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000026220 cat >>confdefs.h <<_ACEOF
26221#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26222_ACEOF
26223 break
26224fi
26225done
26226
26227
26228
26229fi
26230
26231
cristy3ed852e2009-09-05 21:47:34 +000026232########
26233#
26234# Check for function prototypes
26235#
26236########
26237
cristy8b350f62009-11-15 23:12:43 +000026238ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000026239#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026240"
cristyda16f162011-02-19 23:52:17 +000026241if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026242 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026243else
cristy8b350f62009-11-15 23:12:43 +000026244 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026245fi
26246
cristy3ed852e2009-09-05 21:47:34 +000026247cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026248#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026250ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000026251#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026252"
cristyda16f162011-02-19 23:52:17 +000026253if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026254 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026255else
cristy8b350f62009-11-15 23:12:43 +000026256 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026257fi
26258
cristy3ed852e2009-09-05 21:47:34 +000026259cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026260#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026261_ACEOF
26262
26263
cristy8b350f62009-11-15 23:12:43 +000026264ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000026265#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000026266"
cristyda16f162011-02-19 23:52:17 +000026267if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026268 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026269else
cristy8b350f62009-11-15 23:12:43 +000026270 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026271fi
26272
cristy3ed852e2009-09-05 21:47:34 +000026273cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026274#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026275_ACEOF
26276
26277
cristy8b350f62009-11-15 23:12:43 +000026278ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000026279#include <stdio.h>
26280#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000026281"
cristyda16f162011-02-19 23:52:17 +000026282if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026283 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026284else
cristy8b350f62009-11-15 23:12:43 +000026285 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026286fi
26287
cristy3ed852e2009-09-05 21:47:34 +000026288cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026289#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026290_ACEOF
26291
26292
cristy3ed852e2009-09-05 21:47:34 +000026293########
26294#
26295# C++ Support Tests (For Magick++)
26296#
26297########
26298have_magick_plus_plus='no'
26299if test "$with_magick_plus_plus" = 'yes'; then
26300 OLIBS="$LIBS"
26301 LIBS=''
26302 ac_ext=cpp
26303ac_cpp='$CXXCPP $CPPFLAGS'
26304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26307
26308
26309 # Full set of headers used...
26310 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
26311 # functional iomanip iosfwd iostream iterator list string strstream utility
26312 ac_ext=cpp
26313ac_cpp='$CXXCPP $CPPFLAGS'
26314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26317
26318 ac_ext=cpp
26319ac_cpp='$CXXCPP $CPPFLAGS'
26320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26323if test -z "$CXX"; then
26324 if test -n "$CCC"; then
26325 CXX=$CCC
26326 else
26327 if test -n "$ac_tool_prefix"; then
26328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26329 do
26330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026334if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026335 $as_echo_n "(cached) " >&6
26336else
26337 if test -n "$CXX"; then
26338 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26339else
26340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26341for as_dir in $PATH
26342do
26343 IFS=$as_save_IFS
26344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026347 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349 break 2
26350 fi
26351done
cristy8b350f62009-11-15 23:12:43 +000026352 done
cristy3ed852e2009-09-05 21:47:34 +000026353IFS=$as_save_IFS
26354
26355fi
26356fi
26357CXX=$ac_cv_prog_CXX
26358if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "$CXX" >&6; }
26361else
cristy8b350f62009-11-15 23:12:43 +000026362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026363$as_echo "no" >&6; }
26364fi
26365
26366
26367 test -n "$CXX" && break
26368 done
26369fi
26370if test -z "$CXX"; then
26371 ac_ct_CXX=$CXX
26372 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26373do
26374 # Extract the first word of "$ac_prog", so it can be a program name with args.
26375set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026378if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 $as_echo_n "(cached) " >&6
26380else
26381 if test -n "$ac_ct_CXX"; then
26382 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26383else
26384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26385for as_dir in $PATH
26386do
26387 IFS=$as_save_IFS
26388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026391 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393 break 2
26394 fi
26395done
cristy8b350f62009-11-15 23:12:43 +000026396 done
cristy3ed852e2009-09-05 21:47:34 +000026397IFS=$as_save_IFS
26398
26399fi
26400fi
26401ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26402if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026404$as_echo "$ac_ct_CXX" >&6; }
26405else
cristy8b350f62009-11-15 23:12:43 +000026406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026407$as_echo "no" >&6; }
26408fi
26409
26410
26411 test -n "$ac_ct_CXX" && break
26412done
26413
26414 if test "x$ac_ct_CXX" = x; then
26415 CXX="g++"
26416 else
26417 case $cross_compiling:$ac_tool_warned in
26418yes:)
cristy8b350f62009-11-15 23:12:43 +000026419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26421ac_tool_warned=yes ;;
26422esac
26423 CXX=$ac_ct_CXX
26424 fi
26425fi
26426
26427 fi
26428fi
26429# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026430$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026431set X $ac_compile
26432ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026433for ac_option in --version -v -V -qversion; do
26434 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026435case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26438esac
cristy8b350f62009-11-15 23:12:43 +000026439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26440$as_echo "$ac_try_echo"; } >&5
26441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026442 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026443 if test -s conftest.err; then
26444 sed '10a\
26445... rest of stderr output deleted ...
26446 10q' conftest.err >conftest.er1
26447 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026448 fi
cristycd4c5312009-11-22 01:19:08 +000026449 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451 test $ac_status = 0; }
26452done
cristy3ed852e2009-09-05 21:47:34 +000026453
cristy8b350f62009-11-15 23:12:43 +000026454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026456if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 $as_echo_n "(cached) " >&6
26458else
cristy8b350f62009-11-15 23:12:43 +000026459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026460/* end confdefs.h. */
26461
26462int
26463main ()
26464{
26465#ifndef __GNUC__
26466 choke me
26467#endif
26468
26469 ;
26470 return 0;
26471}
26472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026473if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 ac_compiler_gnu=yes
26475else
cristy8b350f62009-11-15 23:12:43 +000026476 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026477fi
cristy3ed852e2009-09-05 21:47:34 +000026478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26479ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26480
26481fi
cristy8b350f62009-11-15 23:12:43 +000026482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026483$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26484if test $ac_compiler_gnu = yes; then
26485 GXX=yes
26486else
26487 GXX=
26488fi
26489ac_test_CXXFLAGS=${CXXFLAGS+set}
26490ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026492$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026493if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026494 $as_echo_n "(cached) " >&6
26495else
26496 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26497 ac_cxx_werror_flag=yes
26498 ac_cv_prog_cxx_g=no
26499 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026501/* end confdefs.h. */
26502
26503int
26504main ()
26505{
26506
26507 ;
26508 return 0;
26509}
26510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026511if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026512 ac_cv_prog_cxx_g=yes
26513else
cristy8b350f62009-11-15 23:12:43 +000026514 CXXFLAGS=""
26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518int
26519main ()
26520{
26521
26522 ;
26523 return 0;
26524}
26525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026526if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026527
cristy8b350f62009-11-15 23:12:43 +000026528else
26529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026530 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026532/* end confdefs.h. */
26533
26534int
26535main ()
26536{
26537
26538 ;
26539 return 0;
26540}
26541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026542if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026544fi
cristy3ed852e2009-09-05 21:47:34 +000026545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546fi
cristy3ed852e2009-09-05 21:47:34 +000026547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548fi
cristy3ed852e2009-09-05 21:47:34 +000026549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26551fi
cristy8b350f62009-11-15 23:12:43 +000026552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "$ac_cv_prog_cxx_g" >&6; }
26554if test "$ac_test_CXXFLAGS" = set; then
26555 CXXFLAGS=$ac_save_CXXFLAGS
26556elif test $ac_cv_prog_cxx_g = yes; then
26557 if test "$GXX" = yes; then
26558 CXXFLAGS="-g -O2"
26559 else
26560 CXXFLAGS="-g"
26561 fi
26562else
26563 if test "$GXX" = yes; then
26564 CXXFLAGS="-O2"
26565 else
26566 CXXFLAGS=
26567 fi
26568fi
26569ac_ext=cpp
26570ac_cpp='$CXXCPP $CPPFLAGS'
26571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26574
cristy73bd4a52010-10-05 11:24:23 +000026575depcc="$CXX" am_compiler_list=
26576
26577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26578$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026579if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026580 $as_echo_n "(cached) " >&6
26581else
26582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26583 # We make a subdir and do the tests there. Otherwise we can end up
26584 # making bogus files that we don't know about and never remove. For
26585 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026586 # making a dummy file named 'D' -- because '-MD' means "put the output
26587 # in D".
cristy7247bba2012-02-05 16:37:27 +000026588 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026589 mkdir conftest.dir
26590 # Copy depcomp to subdir because otherwise we won't find it if we're
26591 # using a relative directory.
26592 cp "$am_depcomp" conftest.dir
26593 cd conftest.dir
26594 # We will build objects and dependencies in a subdirectory because
26595 # it helps to detect inapplicable dependency modes. For instance
26596 # both Tru64's cc and ICC support -MD to output dependencies as a
26597 # side effect of compilation, but ICC will put the dependencies in
26598 # the current directory while Tru64 will put them in the object
26599 # directory.
26600 mkdir sub
26601
26602 am_cv_CXX_dependencies_compiler_type=none
26603 if test "$am_compiler_list" = ""; then
26604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26605 fi
26606 am__universal=false
26607 case " $depcc " in #(
26608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26609 esac
26610
26611 for depmode in $am_compiler_list; do
26612 # Setup a source with many dependencies, because some compilers
26613 # like to wrap large dependency lists on column 80 (with \), and
26614 # we should not choose a depcomp mode which is confused by this.
26615 #
26616 # We need to recreate these files for each test, as the compiler may
26617 # overwrite some of them when testing with obscure command lines.
26618 # This happens at least with the AIX C compiler.
26619 : > sub/conftest.c
26620 for i in 1 2 3 4 5 6; do
26621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26623 # Solaris 10 /bin/sh.
26624 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026625 done
26626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26627
cristyc0890a62012-07-19 00:18:20 +000026628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026629 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026630 # handle '-M -o', and we need to detect this. Also, some Intel
26631 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026632 am__obj=sub/conftest.${OBJEXT-o}
26633 am__minus_obj="-o $am__obj"
26634 case $depmode in
26635 gcc)
26636 # This depmode causes a compiler race in universal mode.
26637 test "$am__universal" = false || continue
26638 ;;
26639 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026640 # After this tag, mechanisms are not by side-effect, so they'll
26641 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026642 if test "x$enable_dependency_tracking" = xyes; then
26643 continue
26644 else
26645 break
26646 fi
26647 ;;
cristy7247bba2012-02-05 16:37:27 +000026648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026649 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026650 # not run yet. These depmodes are late enough in the game, and
26651 # so weak that their functioning should not be impacted.
26652 am__obj=conftest.${OBJEXT-o}
26653 am__minus_obj=
26654 ;;
26655 none) break ;;
26656 esac
26657 if depmode=$depmode \
26658 source=sub/conftest.c object=$am__obj \
26659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26661 >/dev/null 2>conftest.err &&
26662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26666 # icc doesn't choke on unknown options, it will just issue warnings
26667 # or remarks (even with -Werror). So we grep stderr for any message
26668 # that says an option was ignored or not supported.
26669 # When given -MP, icc 7.0 and 7.1 complain thusly:
26670 # icc: Command line warning: ignoring option '-M'; no argument required
26671 # The diagnosis changed in icc 8.0:
26672 # icc: Command line remark: option '-MP' not supported
26673 if (grep 'ignoring option' conftest.err ||
26674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26675 am_cv_CXX_dependencies_compiler_type=$depmode
26676 break
26677 fi
26678 fi
26679 done
26680
26681 cd ..
26682 rm -rf conftest.dir
26683else
26684 am_cv_CXX_dependencies_compiler_type=none
26685fi
26686
26687fi
26688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26689$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26690CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26691
26692 if
26693 test "x$enable_dependency_tracking" != xno \
26694 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26695 am__fastdepCXX_TRUE=
26696 am__fastdepCXX_FALSE='#'
26697else
26698 am__fastdepCXX_TRUE='#'
26699 am__fastdepCXX_FALSE=
26700fi
26701
26702
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26704$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026705if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026706 $as_echo_n "(cached) " >&6
26707else
26708
26709 ac_ext=cpp
26710ac_cpp='$CXXCPP $CPPFLAGS'
26711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26714
26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716/* end confdefs.h. */
26717
26718int f(int x){return 1;}
26719int f(char x){return 1;}
26720int f(bool x){return 1;}
26721
26722int
26723main ()
26724{
26725bool b = true; return f(b);
26726 ;
26727 return 0;
26728}
26729_ACEOF
26730if ac_fn_cxx_try_compile "$LINENO"; then :
26731 ax_cv_cxx_bool=yes
26732else
26733 ax_cv_cxx_bool=no
26734fi
26735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 ac_ext=cpp
26737ac_cpp='$CXXCPP $CPPFLAGS'
26738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26741
26742
26743fi
26744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26745$as_echo "$ax_cv_cxx_bool" >&6; }
26746if test "$ax_cv_cxx_bool" = yes; then
26747
26748$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26749
26750fi
26751
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26753$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026754if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026755 $as_echo_n "(cached) " >&6
26756else
26757
26758 ac_ext=cpp
26759ac_cpp='$CXXCPP $CPPFLAGS'
26760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26763
26764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765/* end confdefs.h. */
26766namespace Outer { namespace Inner { int i = 0; }}
26767int
26768main ()
26769{
26770using namespace Outer::Inner; return i;
26771 ;
26772 return 0;
26773}
26774_ACEOF
26775if ac_fn_cxx_try_compile "$LINENO"; then :
26776 ax_cv_cxx_namespaces=yes
26777else
26778 ax_cv_cxx_namespaces=no
26779fi
26780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781 ac_ext=cpp
26782ac_cpp='$CXXCPP $CPPFLAGS'
26783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26786
26787
26788fi
26789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26790$as_echo "$ax_cv_cxx_namespaces" >&6; }
26791if test "$ax_cv_cxx_namespaces" = yes; then
26792
26793$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26794
26795fi
26796
26797
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26799$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026800if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026801 $as_echo_n "(cached) " >&6
26802else
26803
26804 ac_ext=cpp
26805ac_cpp='$CXXCPP $CPPFLAGS'
26806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26809
26810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26811/* end confdefs.h. */
26812#include <iostream>
26813 std::istream& is = std::cin;
26814int
26815main ()
26816{
26817
26818 ;
26819 return 0;
26820}
26821_ACEOF
26822if ac_fn_cxx_try_compile "$LINENO"; then :
26823 ax_cv_cxx_have_std_namespace=yes
26824else
26825 ax_cv_cxx_have_std_namespace=no
26826fi
26827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26828 ac_ext=cpp
26829ac_cpp='$CXXCPP $CPPFLAGS'
26830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26833
26834
26835fi
26836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26837$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26838 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26839
26840$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26841
26842 fi
26843
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26845$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026846if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026847 $as_echo_n "(cached) " >&6
26848else
26849
26850
26851 ac_ext=cpp
26852ac_cpp='$CXXCPP $CPPFLAGS'
26853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26856
26857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26858/* end confdefs.h. */
26859#include <iostream>
26860#include <map>
26861#include <iomanip>
26862#include <cmath>
26863#ifdef HAVE_NAMESPACES
26864using namespace std;
26865#endif
26866int
26867main ()
26868{
26869return 0;
26870 ;
26871 return 0;
26872}
26873_ACEOF
26874if ac_fn_cxx_try_compile "$LINENO"; then :
26875 ac_cv_cxx_have_std_libs=yes
26876else
26877 ac_cv_cxx_have_std_libs=no
26878fi
26879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 ac_ext=cpp
26881ac_cpp='$CXXCPP $CPPFLAGS'
26882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26885
26886
26887fi
26888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26889$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26890if test "$ac_cv_cxx_have_std_libs" = yes; then
26891
26892$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26893
26894fi
26895
cristy3ed852e2009-09-05 21:47:34 +000026896
26897 OPENMP_CXXFLAGS=
26898 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026899if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026900 enableval=$enable_openmp;
26901fi
26902
26903 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26905$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 $as_echo_n "(cached) " >&6
26908else
cristy8b350f62009-11-15 23:12:43 +000026909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026911
26912#ifndef _OPENMP
26913 choke me
26914#endif
26915#include <omp.h>
26916int main () { return omp_get_num_threads (); }
26917
26918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026919if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 ac_cv_prog_cxx_openmp='none needed'
26921else
cristy8b350f62009-11-15 23:12:43 +000026922 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026923 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26924 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026925 ac_save_CXXFLAGS=$CXXFLAGS
26926 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26928/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026929
26930#ifndef _OPENMP
26931 choke me
26932#endif
26933#include <omp.h>
26934int main () { return omp_get_num_threads (); }
26935
26936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026937if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026938 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026939fi
cristy8b350f62009-11-15 23:12:43 +000026940rm -f core conftest.err conftest.$ac_objext \
26941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026942 CXXFLAGS=$ac_save_CXXFLAGS
26943 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26944 break
26945 fi
26946 done
26947fi
cristy8b350f62009-11-15 23:12:43 +000026948rm -f core conftest.err conftest.$ac_objext \
26949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026950fi
cristy8b350f62009-11-15 23:12:43 +000026951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026952$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26953 case $ac_cv_prog_cxx_openmp in #(
26954 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026955 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026956 *)
cristy8b350f62009-11-15 23:12:43 +000026957 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026958 esac
26959 fi
26960
26961
26962 ac_ext=c
26963ac_cpp='$CPP $CPPFLAGS'
26964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966ac_compiler_gnu=$ac_cv_c_compiler_gnu
26967
26968
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26971 if \
cristy964cb7f2010-04-25 23:18:00 +000026972 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026973 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026974 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026975 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026976 have_magick_plus_plus='yes'
26977 else
26978 have_magick_plus_plus='no (failed tests)'
26979 fi
cristyad38abe2012-12-23 23:03:21 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26981$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026982 LIBS="$OLIBS"
26983fi
cristy73bd4a52010-10-05 11:24:23 +000026984 if test "$have_magick_plus_plus" = 'yes'; then
26985 WITH_MAGICK_PLUS_PLUS_TRUE=
26986 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26987else
26988 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26989 WITH_MAGICK_PLUS_PLUS_FALSE=
26990fi
26991
cristy3ed852e2009-09-05 21:47:34 +000026992
26993# Only check for delegate libraries in subdirectories if requested.
26994if test "$enable_delegate_build" != 'no'; then
26995 # Check for delegate sub-directories and add -I & -L options as required.
26996 # This presumes that delegates are installed as detailed in the ImageMagick
26997 # README. If delegates are installed in a standard location where the
26998 # compiler will automatically find them then these options should not be
26999 # required.
27000
27001 #
27002 # Most delegates have includes in the same directory as the library, but not all...
27003 #
27004 # Includes
cristyfdc7d122013-08-17 20:46:45 +000027005 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000027006 if test -d "$builddir/$dir"; then
27007 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
27008 else
27009 if test -d "$srcdirfull/$dir"; then
27010 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
27011 fi
27012 fi
27013 done
27014
27015 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000027016 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000027017 if test -d "$builddir/$dir/.libs"; then
27018 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
27019 else
27020 if test -d "$srcdirfull/$dir/.libs"; then
27021 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
27022 fi
27023 fi
27024 if test -d "$builddir/$dir"; then
27025 LDFLAGS="$LDFLAGS -L$builddir/$dir"
27026 else
27027 if test -d "$srcdirfull/$dir"; then
27028 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
27029 fi
27030 fi
27031 done
27032fi
27033
27034# Assume that delegate headers reside under same directory as ImageMagick
27035# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000027036MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027037
27038#
27039# Find the X11 RGB database
27040#
cristy8b350f62009-11-15 23:12:43 +000027041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000027042$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027043if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027044 $as_echo_n "(cached) " >&6
27045else
27046 # Look for the header file in a standard set of common directories.
27047# Check X11 before X11Rn because it is often a symlink to the current release.
27048 for ac_dir in \
27049 /lib/usr/lib/X11 \
27050 /usr/X11/lib \
27051 /usr/X11R4/lib \
27052 /usr/X11R5/lib \
27053 /usr/X11R6/lib \
27054 /usr/X11R7/lib \
27055 /usr/X386/lib \
27056 /usr/XFree86/lib/X11 \
27057 /usr/athena/lib \
27058 /usr/lib \
27059 /usr/lib/X11 \
27060 /usr/lib/X11R4 \
27061 /usr/lib/X11R5 \
27062 /usr/lib/X11R6 \
27063 /usr/lib/X11R7 \
27064 /usr/local/X11/lib \
27065 /usr/local/X11R4/lib \
27066 /usr/local/X11R5/lib \
27067 /usr/local/X11R6/lib \
27068 /usr/local/lib \
27069 /usr/local/lib/X11 \
27070 /usr/local/lib/X11R4 \
27071 /usr/local/lib/X11R5 \
27072 /usr/local/lib/X11R6 \
27073 /usr/local/lib/X11R7 \
27074 /usr/local/x11r5/lib \
27075 /usr/lpp/Xamples/lib \
27076 /usr/openwin/lib \
27077 /usr/openwin/share/lib \
27078 /usr/unsupported/lib \
27079 /usr/x386/lib \
27080 ; do
27081 if test -f "$ac_dir/X11/rgb.txt"; then
27082 im_cv_x_configure="$ac_dir/X11/"
27083 break
27084 elif test -f "$ac_dir/rgb.txt"; then
27085 im_cv_x_configure="$ac_dir/"
27086 break
27087 fi
27088
27089 done
27090fi
cristy8b350f62009-11-15 23:12:43 +000027091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo "$im_cv_x_configure" >&6; }
27093X11_CONFIGURE_PATH="$im_cv_x_configure"
27094case "${build_os}" in
27095 mingw* )
27096 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
27097 ;;
27098esac
27099
27100cat >>confdefs.h <<_ACEOF
27101#define X11_CONFIGURE_PATH "$X11ConfigurePath"
27102_ACEOF
27103
27104
27105#
27106# Find OpenMP library
27107#
27108GOMP_LIBS=''
27109if test "$enable_openmp" != 'no'; then
27110 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000027111 # Open64 (passes for GCC but uses different OpenMP implementation)
27112 if test "x$GOMP_LIBS" = x ; then
27113 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
27115$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
27116if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
27117 $as_echo_n "(cached) " >&6
27118else
27119 ac_check_lib_save_LIBS=$LIBS
27120LIBS="-lopenmp $LIBS"
27121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27122/* end confdefs.h. */
27123
27124/* Override any GCC internal prototype to avoid an error.
27125 Use char because int might match the return type of a GCC
27126 builtin and then its argument prototype would still apply. */
27127#ifdef __cplusplus
27128extern "C"
27129#endif
27130char omp_get_num_procs ();
27131int
27132main ()
27133{
27134return omp_get_num_procs ();
27135 ;
27136 return 0;
27137}
27138_ACEOF
27139if ac_fn_c_try_link "$LINENO"; then :
27140 ac_cv_lib_openmp_omp_get_num_procs=yes
27141else
27142 ac_cv_lib_openmp_omp_get_num_procs=no
27143fi
27144rm -f core conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext conftest.$ac_ext
27146LIBS=$ac_check_lib_save_LIBS
27147fi
27148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
27149$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
27150if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
27151 GOMP_LIBS="-lopenmp"
27152fi
27153
27154 fi
27155 fi
27156 # GCC
27157 if test "x$GOMP_LIBS" = x ; then
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027160if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 $as_echo_n "(cached) " >&6
27162else
27163 ac_check_lib_save_LIBS=$LIBS
27164LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027166/* end confdefs.h. */
27167
27168/* Override any GCC internal prototype to avoid an error.
27169 Use char because int might match the return type of a GCC
27170 builtin and then its argument prototype would still apply. */
27171#ifdef __cplusplus
27172extern "C"
27173#endif
27174char GOMP_parallel_start ();
27175int
27176main ()
27177{
27178return GOMP_parallel_start ();
27179 ;
27180 return 0;
27181}
27182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 ac_cv_lib_gomp_GOMP_parallel_start=yes
27185else
cristy8b350f62009-11-15 23:12:43 +000027186 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000027187fi
cristy8b350f62009-11-15 23:12:43 +000027188rm -f core conftest.err conftest.$ac_objext \
27189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027190LIBS=$ac_check_lib_save_LIBS
27191fi
cristy8b350f62009-11-15 23:12:43 +000027192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000027194if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027195 GOMP_LIBS="-lgomp"
27196fi
cristy18307f12011-12-30 01:20:16 +000027197
27198 fi
cristy3ed852e2009-09-05 21:47:34 +000027199 else
cristy18307f12011-12-30 01:20:16 +000027200 # Sun CC
27201 if test "x$GOMP_LIBS" = x ; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027204if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 $as_echo_n "(cached) " >&6
27206else
27207 ac_check_lib_save_LIBS=$LIBS
27208LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210/* end confdefs.h. */
27211
27212/* Override any GCC internal prototype to avoid an error.
27213 Use char because int might match the return type of a GCC
27214 builtin and then its argument prototype would still apply. */
27215#ifdef __cplusplus
27216extern "C"
27217#endif
27218char sunw_mp_register_warn ();
27219int
27220main ()
27221{
27222return sunw_mp_register_warn ();
27223 ;
27224 return 0;
27225}
27226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
27229else
cristy8b350f62009-11-15 23:12:43 +000027230 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000027231fi
cristy8b350f62009-11-15 23:12:43 +000027232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234LIBS=$ac_check_lib_save_LIBS
27235fi
cristy8b350f62009-11-15 23:12:43 +000027236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000027238if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 GOMP_LIBS="-lmtsk"
27240fi
cristy18307f12011-12-30 01:20:16 +000027241
27242 fi
27243 # AIX xlc
27244 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027246$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027247if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 $as_echo_n "(cached) " >&6
27249else
27250 ac_check_lib_save_LIBS=$LIBS
27251LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253/* end confdefs.h. */
27254
27255/* Override any GCC internal prototype to avoid an error.
27256 Use char because int might match the return type of a GCC
27257 builtin and then its argument prototype would still apply. */
27258#ifdef __cplusplus
27259extern "C"
27260#endif
27261char _xlsmpFlush ();
27262int
27263main ()
27264{
27265return _xlsmpFlush ();
27266 ;
27267 return 0;
27268}
27269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027271 ac_cv_lib_xlsmp__xlsmpFlush=yes
27272else
cristy8b350f62009-11-15 23:12:43 +000027273 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000027274fi
cristy8b350f62009-11-15 23:12:43 +000027275rm -f core conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027277LIBS=$ac_check_lib_save_LIBS
27278fi
cristy8b350f62009-11-15 23:12:43 +000027279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000027281if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 GOMP_LIBS="-lxlsmp"
27283fi
cristy18307f12011-12-30 01:20:16 +000027284
27285 fi
27286 # SGI IRIX 6.5 MIPSpro C/C++
27287 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027290if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027291 $as_echo_n "(cached) " >&6
27292else
27293 ac_check_lib_save_LIBS=$LIBS
27294LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027296/* end confdefs.h. */
27297
27298/* Override any GCC internal prototype to avoid an error.
27299 Use char because int might match the return type of a GCC
27300 builtin and then its argument prototype would still apply. */
27301#ifdef __cplusplus
27302extern "C"
27303#endif
27304char mp_destroy ();
27305int
27306main ()
27307{
27308return mp_destroy ();
27309 ;
27310 return 0;
27311}
27312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 ac_cv_lib_mp_mp_destroy=yes
27315else
cristy8b350f62009-11-15 23:12:43 +000027316 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000027317fi
cristy8b350f62009-11-15 23:12:43 +000027318rm -f core conftest.err conftest.$ac_objext \
27319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027320LIBS=$ac_check_lib_save_LIBS
27321fi
cristy8b350f62009-11-15 23:12:43 +000027322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000027323$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000027324if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027325 GOMP_LIBS="-lmp"
27326fi
cristy18307f12011-12-30 01:20:16 +000027327
27328 fi
cristy3ed852e2009-09-05 21:47:34 +000027329 fi
27330 LIBS="$GOMP_LIBS $LIBS"
27331fi
27332
27333
cristy3ed852e2009-09-05 21:47:34 +000027334
27335
27336#
27337# Check for umem.
27338#
27339have_umem='no'
27340UMEM_LIBS=''
27341if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027343$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27345$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027346 failed=0
27347 passed=0
cristy8b350f62009-11-15 23:12:43 +000027348 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027349if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 passed=`expr $passed + 1`
27351else
27352 failed=`expr $failed + 1`
27353fi
27354
27355
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027358if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 $as_echo_n "(cached) " >&6
27360else
27361 ac_check_lib_save_LIBS=$LIBS
27362LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027364/* end confdefs.h. */
27365
27366/* Override any GCC internal prototype to avoid an error.
27367 Use char because int might match the return type of a GCC
27368 builtin and then its argument prototype would still apply. */
27369#ifdef __cplusplus
27370extern "C"
27371#endif
27372char umem_alloc ();
27373int
27374main ()
27375{
27376return umem_alloc ();
27377 ;
27378 return 0;
27379}
27380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 ac_cv_lib_umem_umem_alloc=yes
27383else
cristy8b350f62009-11-15 23:12:43 +000027384 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027385fi
cristy8b350f62009-11-15 23:12:43 +000027386rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388LIBS=$ac_check_lib_save_LIBS
27389fi
cristy8b350f62009-11-15 23:12:43 +000027390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027392if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027393 passed=`expr $passed + 1`
27394else
27395 failed=`expr $failed + 1`
27396fi
27397
cristy8b350f62009-11-15 23:12:43 +000027398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027399$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027400if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 $as_echo_n "(cached) " >&6
27402else
27403 ac_check_lib_save_LIBS=$LIBS
27404LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027406/* end confdefs.h. */
27407
27408/* Override any GCC internal prototype to avoid an error.
27409 Use char because int might match the return type of a GCC
27410 builtin and then its argument prototype would still apply. */
27411#ifdef __cplusplus
27412extern "C"
27413#endif
27414char umem_free ();
27415int
27416main ()
27417{
27418return umem_free ();
27419 ;
27420 return 0;
27421}
27422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 ac_cv_lib_umem_umem_free=yes
27425else
cristy8b350f62009-11-15 23:12:43 +000027426 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027427fi
cristy8b350f62009-11-15 23:12:43 +000027428rm -f core conftest.err conftest.$ac_objext \
27429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027430LIBS=$ac_check_lib_save_LIBS
27431fi
cristy8b350f62009-11-15 23:12:43 +000027432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027433$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027434if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027435 passed=`expr $passed + 1`
27436else
27437 failed=`expr $failed + 1`
27438fi
27439
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27442 if test $passed -gt 0; then
27443 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27445$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027446 have_umem='no (failed tests)'
27447 else
27448 UMEM_LIBS='-lumem'
27449 LIBS="$UMEM_LIBS $LIBS"
27450
cristy8b350f62009-11-15 23:12:43 +000027451$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027452
cristyad38abe2012-12-23 23:03:21 +000027453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27454$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027455 have_umem='yes'
27456 fi
27457 else
cristyad38abe2012-12-23 23:03:21 +000027458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27459$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027460 fi
27461fi
cristy73bd4a52010-10-05 11:24:23 +000027462 if test "$have_umem" = 'yes'; then
27463 HasUMEM_TRUE=
27464 HasUMEM_FALSE='#'
27465else
27466 HasUMEM_TRUE='#'
27467 HasUMEM_FALSE=
27468fi
27469
cristy3ed852e2009-09-05 21:47:34 +000027470
27471
27472#
27473# Add support for ccmalloc memory debugging library if requested
27474#
27475have_ccmalloc='no'
27476CCMALLOC_LIBS=''
27477if test "$enable_ccmalloc" = 'yes'; then
27478 # Extract the first word of "ccmalloc", so it can be a program name with args.
27479set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027482if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 $as_echo_n "(cached) " >&6
27484else
27485 case $CCMALLOCDelegate in
27486 [\\/]* | ?:[\\/]*)
27487 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27488 ;;
27489 *)
27490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27491for as_dir in $PATH
27492do
27493 IFS=$as_save_IFS
27494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027497 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027499 break 2
27500 fi
27501done
cristy8b350f62009-11-15 23:12:43 +000027502 done
cristy3ed852e2009-09-05 21:47:34 +000027503IFS=$as_save_IFS
27504
27505 ;;
27506esac
27507fi
27508CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27509if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027511$as_echo "$CCMALLOCDelegate" >&6; }
27512else
cristy8b350f62009-11-15 23:12:43 +000027513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027514$as_echo "no" >&6; }
27515fi
27516
27517
27518 if test -n "$CCMALLOCDelegate"; then
27519 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27520 OLIBS="$LIBS"
27521 # Assume that gcc is used with ccmalloc.
27522 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027525if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 $as_echo_n "(cached) " >&6
27527else
27528 ac_check_lib_save_LIBS=$LIBS
27529LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027531/* end confdefs.h. */
27532
27533/* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27536#ifdef __cplusplus
27537extern "C"
27538#endif
27539char ccmalloc_malloc ();
27540int
27541main ()
27542{
27543return ccmalloc_malloc ();
27544 ;
27545 return 0;
27546}
27547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027549 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27550else
cristy8b350f62009-11-15 23:12:43 +000027551 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027552fi
cristy8b350f62009-11-15 23:12:43 +000027553rm -f core conftest.err conftest.$ac_objext \
27554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027555LIBS=$ac_check_lib_save_LIBS
27556fi
cristy8b350f62009-11-15 23:12:43 +000027557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027559if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27561fi
27562
27563 if test -n "$CCMALLOC_LIBS"; then
27564 LIBS="$OLIBS"
27565 LIBS="$LIBS $CCMALLOC_LIBS"
27566 have_ccmalloc='yes'
27567 else
27568 LIBS="$OLIBS"
27569 fi
27570 fi
27571fi
27572
27573#
cristy944e51f2013-04-16 18:45:02 +000027574# Add support for 'huge pages' if requested
27575#
27576if test "x$enable_hugepages" != "xno"; then :
27577
27578
27579$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27580
27581
27582fi
27583
27584#
cristy3ed852e2009-09-05 21:47:34 +000027585# Add support for efence memory debugging library if requested
27586#
27587if test "$enable_efence" = 'yes'; then
27588 EFENCE_LIBS='-lefence'
27589 LIBS="$EFENCE_LIBS $LIBS"
27590fi
27591
cristy3ed852e2009-09-05 21:47:34 +000027592
27593#
27594# Check for BZLIB
27595#
27596
27597
27598# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027599if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 withval=$with_bzlib; with_bzlib=$withval
27601else
27602 with_bzlib='yes'
27603fi
27604
27605
27606if test "$with_bzlib" != 'yes'; then
27607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27608fi
27609
27610have_bzlib='no'
27611if test "$with_bzlib" != 'no'; then
27612 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27614$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27618$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027619 failed=0
27620 passed=0
27621 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027622 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027623if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027624 passed=`expr $passed + 1`
27625else
27626 failed=`expr $failed + 1`
27627fi
27628
27629
cristy8b350f62009-11-15 23:12:43 +000027630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027631$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027632if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 $as_echo_n "(cached) " >&6
27634else
27635 ac_check_lib_save_LIBS=$LIBS
27636LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027638/* end confdefs.h. */
27639
27640/* Override any GCC internal prototype to avoid an error.
27641 Use char because int might match the return type of a GCC
27642 builtin and then its argument prototype would still apply. */
27643#ifdef __cplusplus
27644extern "C"
27645#endif
27646char BZ2_bzDecompress ();
27647int
27648main ()
27649{
27650return BZ2_bzDecompress ();
27651 ;
27652 return 0;
27653}
27654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27657else
cristy8b350f62009-11-15 23:12:43 +000027658 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027659fi
cristy8b350f62009-11-15 23:12:43 +000027660rm -f core conftest.err conftest.$ac_objext \
27661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027662LIBS=$ac_check_lib_save_LIBS
27663fi
cristy8b350f62009-11-15 23:12:43 +000027664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027665$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027666if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027667 found_libbz=`expr $found_libbz + 1`
27668fi
27669
27670 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027672$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027673if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 $as_echo_n "(cached) " >&6
27675else
27676 ac_check_lib_save_LIBS=$LIBS
27677LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027679/* end confdefs.h. */
27680
27681/* Override any GCC internal prototype to avoid an error.
27682 Use char because int might match the return type of a GCC
27683 builtin and then its argument prototype would still apply. */
27684#ifdef __cplusplus
27685extern "C"
27686#endif
27687char _imp__BZ2_decompress ();
27688int
27689main ()
27690{
27691return _imp__BZ2_decompress ();
27692 ;
27693 return 0;
27694}
27695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27698else
cristy8b350f62009-11-15 23:12:43 +000027699 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027700fi
cristy8b350f62009-11-15 23:12:43 +000027701rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027703LIBS=$ac_check_lib_save_LIBS
27704fi
cristy8b350f62009-11-15 23:12:43 +000027705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027706$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027707if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 found_libbz=`expr $found_libbz + 1`
27709fi
27710
27711 fi
27712 if test $found_libbz -gt 0; then
27713 passed=`expr $passed + 1`
27714 else
27715 failed=`expr $failed + 1`
27716 fi
cristy8b350f62009-11-15 23:12:43 +000027717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo_n "checking if BZLIB package is complete... " >&6; }
27719 if test $passed -gt 0; then
27720 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27722$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027723 have_bzlib='no (failed tests)'
27724 else
27725 BZLIB_LIBS='-lbz2'
27726 LIBS="$BZLIB_LIBS $LIBS"
27727
cristy8b350f62009-11-15 23:12:43 +000027728$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027729
cristyad38abe2012-12-23 23:03:21 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27731$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027732 have_bzlib='yes'
27733 fi
27734 else
cristyad38abe2012-12-23 23:03:21 +000027735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27736$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027737 fi
27738fi
cristy73bd4a52010-10-05 11:24:23 +000027739 if test "$have_bzlib" = 'yes'; then
27740 BZLIB_DELEGATE_TRUE=
27741 BZLIB_DELEGATE_FALSE='#'
27742else
27743 BZLIB_DELEGATE_TRUE='#'
27744 BZLIB_DELEGATE_FALSE=
27745fi
27746
cristy3ed852e2009-09-05 21:47:34 +000027747
27748
27749#
27750# Find the X11 include and library directories.
27751#
27752IPC_LIBS=''
27753X11_LIBS=''
27754XEXT_LIBS=''
27755XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027757$as_echo_n "checking for X... " >&6; }
27758
27759
27760# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027761if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027762 withval=$with_x;
27763fi
27764
27765# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27766if test "x$with_x" = xno; then
27767 # The user explicitly disabled X.
27768 have_x=disabled
27769else
27770 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027771 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027772 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027773 $as_echo_n "(cached) " >&6
27774else
27775 # One or both of the vars are not set, and there is no cached value.
27776ac_x_includes=no ac_x_libraries=no
27777rm -f -r conftest.dir
27778if mkdir conftest.dir; then
27779 cd conftest.dir
27780 cat >Imakefile <<'_ACEOF'
27781incroot:
27782 @echo incroot='${INCROOT}'
27783usrlibdir:
27784 @echo usrlibdir='${USRLIBDIR}'
27785libdir:
27786 @echo libdir='${LIBDIR}'
27787_ACEOF
27788 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027789 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027790 for ac_var in incroot usrlibdir libdir; do
27791 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27792 done
27793 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27794 for ac_extension in a so sl dylib la dll; do
27795 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27796 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27797 ac_im_usrlibdir=$ac_im_libdir; break
27798 fi
27799 done
27800 # Screen out bogus values from the imake configuration. They are
27801 # bogus both because they are the default anyway, and because
27802 # using them would break gcc on systems where it needs fixed includes.
27803 case $ac_im_incroot in
27804 /usr/include) ac_x_includes= ;;
27805 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27806 esac
27807 case $ac_im_usrlibdir in
27808 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27809 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27810 esac
27811 fi
27812 cd ..
27813 rm -f -r conftest.dir
27814fi
27815
27816# Standard set of common directories for X headers.
27817# Check X11 before X11Rn because it is often a symlink to the current release.
27818ac_x_header_dirs='
27819/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027820/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027821/usr/X11R6/include
27822/usr/X11R5/include
27823/usr/X11R4/include
27824
27825/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027826/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027827/usr/include/X11R6
27828/usr/include/X11R5
27829/usr/include/X11R4
27830
27831/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027832/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027833/usr/local/X11R6/include
27834/usr/local/X11R5/include
27835/usr/local/X11R4/include
27836
27837/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027838/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027839/usr/local/include/X11R6
27840/usr/local/include/X11R5
27841/usr/local/include/X11R4
27842
27843/usr/X386/include
27844/usr/x386/include
27845/usr/XFree86/include/X11
27846
27847/usr/include
27848/usr/local/include
27849/usr/unsupported/include
27850/usr/athena/include
27851/usr/local/x11r5/include
27852/usr/lpp/Xamples/include
27853
27854/usr/openwin/include
27855/usr/openwin/share/include'
27856
27857if test "$ac_x_includes" = no; then
27858 # Guess where to find include files, by looking for Xlib.h.
27859 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027861/* end confdefs.h. */
27862#include <X11/Xlib.h>
27863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027864if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027865 # We can compile using X headers with no special include directory.
27866ac_x_includes=
27867else
cristyc7083c12009-10-14 03:16:55 +000027868 for ac_dir in $ac_x_header_dirs; do
27869 if test -r "$ac_dir/X11/Xlib.h"; then
27870 ac_x_includes=$ac_dir
27871 break
27872 fi
27873done
27874fi
cristyda16f162011-02-19 23:52:17 +000027875rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027876fi # $ac_x_includes = no
27877
27878if test "$ac_x_libraries" = no; then
27879 # Check for the libraries.
27880 # See if we find them without any special options.
27881 # Don't add to $LIBS permanently.
27882 ac_save_LIBS=$LIBS
27883 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027885/* end confdefs.h. */
27886#include <X11/Xlib.h>
27887int
27888main ()
27889{
27890XrmInitialize ()
27891 ;
27892 return 0;
27893}
27894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027895if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027896 LIBS=$ac_save_LIBS
27897# We can link X programs with no special library path.
27898ac_x_libraries=
27899else
cristy8b350f62009-11-15 23:12:43 +000027900 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027901for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27902do
27903 # Don't even attempt the hair of trying to link an X program!
27904 for ac_extension in a so sl dylib la dll; do
27905 if test -r "$ac_dir/libX11.$ac_extension"; then
27906 ac_x_libraries=$ac_dir
27907 break 2
27908 fi
27909 done
27910done
27911fi
cristy8b350f62009-11-15 23:12:43 +000027912rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027914fi # $ac_x_libraries = no
27915
27916case $ac_x_includes,$ac_x_libraries in #(
27917 no,* | *,no | *\'*)
27918 # Didn't find X, or a directory has "'" in its name.
27919 ac_cv_have_x="have_x=no";; #(
27920 *)
27921 # Record where we found X for the cache.
27922 ac_cv_have_x="have_x=yes\
27923 ac_x_includes='$ac_x_includes'\
27924 ac_x_libraries='$ac_x_libraries'"
27925esac
27926fi
27927;; #(
27928 *) have_x=yes;;
27929 esac
27930 eval "$ac_cv_have_x"
27931fi # $with_x != no
27932
27933if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027935$as_echo "$have_x" >&6; }
27936 no_x=yes
27937else
27938 # If each of the values was on the command line, it overrides each guess.
27939 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27940 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27941 # Update the cache value to reflect the command line values.
27942 ac_cv_have_x="have_x=yes\
27943 ac_x_includes='$x_includes'\
27944 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027946$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27947fi
27948
cristy3ed852e2009-09-05 21:47:34 +000027949if test "$no_x" = yes; then
27950 # Not all programs may use this symbol, but it does not hurt to define it.
27951
cristy8b350f62009-11-15 23:12:43 +000027952$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027953
27954 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27955else
27956 if test -n "$x_includes"; then
27957 X_CFLAGS="$X_CFLAGS -I$x_includes"
27958 fi
27959
27960 # It would also be nice to do this for all -L options, not just this one.
27961 if test -n "$x_libraries"; then
27962 X_LIBS="$X_LIBS -L$x_libraries"
27963 # For Solaris; some versions of Sun CC require a space after -R and
27964 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027966$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27967 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27968 ac_xsave_c_werror_flag=$ac_c_werror_flag
27969 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027971/* end confdefs.h. */
27972
27973int
27974main ()
27975{
27976
27977 ;
27978 return 0;
27979}
27980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027981if ac_fn_c_try_link "$LINENO"; then :
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027983$as_echo "no" >&6; }
27984 X_LIBS="$X_LIBS -R$x_libraries"
27985else
cristy8b350f62009-11-15 23:12:43 +000027986 LIBS="$ac_xsave_LIBS -R $x_libraries"
27987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988/* end confdefs.h. */
27989
27990int
27991main ()
27992{
27993
27994 ;
27995 return 0;
27996}
27997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027998if ac_fn_c_try_link "$LINENO"; then :
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028000$as_echo "yes" >&6; }
28001 X_LIBS="$X_LIBS -R $x_libraries"
28002else
cristy8b350f62009-11-15 23:12:43 +000028003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000028004$as_echo "neither works" >&6; }
28005fi
cristy8b350f62009-11-15 23:12:43 +000028006rm -f core conftest.err conftest.$ac_objext \
28007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028008fi
cristy8b350f62009-11-15 23:12:43 +000028009rm -f core conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028011 ac_c_werror_flag=$ac_xsave_c_werror_flag
28012 LIBS=$ac_xsave_LIBS
28013 fi
28014
28015 # Check for system-dependent libraries X programs must link with.
28016 # Do this before checking for the system-independent R6 libraries
28017 # (-lICE), since we may need -lsocket or whatever for X linking.
28018
28019 if test "$ISC" = yes; then
28020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28021 else
28022 # Martyn Johnson says this is needed for Ultrix, if the X
28023 # libraries were built with DECnet support. And Karl Berry says
28024 # the Alpha needs dnet_stub (dnet does not exist).
28025 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000028026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028027/* end confdefs.h. */
28028
28029/* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035char XOpenDisplay ();
28036int
28037main ()
28038{
28039return XOpenDisplay ();
28040 ;
28041 return 0;
28042}
28043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028044if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028045
cristy8b350f62009-11-15 23:12:43 +000028046else
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000028048$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028049if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 $as_echo_n "(cached) " >&6
28051else
28052 ac_check_lib_save_LIBS=$LIBS
28053LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028055/* end confdefs.h. */
28056
28057/* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
28060#ifdef __cplusplus
28061extern "C"
28062#endif
28063char dnet_ntoa ();
28064int
28065main ()
28066{
28067return dnet_ntoa ();
28068 ;
28069 return 0;
28070}
28071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 ac_cv_lib_dnet_dnet_ntoa=yes
28074else
cristy8b350f62009-11-15 23:12:43 +000028075 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028076fi
cristy8b350f62009-11-15 23:12:43 +000028077rm -f core conftest.err conftest.$ac_objext \
28078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028079LIBS=$ac_check_lib_save_LIBS
28080fi
cristy8b350f62009-11-15 23:12:43 +000028081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028082$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028083if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028084 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28085fi
28086
28087 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000028088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000028089$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028090if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 $as_echo_n "(cached) " >&6
28092else
28093 ac_check_lib_save_LIBS=$LIBS
28094LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028096/* end confdefs.h. */
28097
28098/* Override any GCC internal prototype to avoid an error.
28099 Use char because int might match the return type of a GCC
28100 builtin and then its argument prototype would still apply. */
28101#ifdef __cplusplus
28102extern "C"
28103#endif
28104char dnet_ntoa ();
28105int
28106main ()
28107{
28108return dnet_ntoa ();
28109 ;
28110 return 0;
28111}
28112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28115else
cristy8b350f62009-11-15 23:12:43 +000028116 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028117fi
cristy8b350f62009-11-15 23:12:43 +000028118rm -f core conftest.err conftest.$ac_objext \
28119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028120LIBS=$ac_check_lib_save_LIBS
28121fi
cristy8b350f62009-11-15 23:12:43 +000028122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028123$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028124if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28126fi
28127
28128 fi
28129fi
cristy8b350f62009-11-15 23:12:43 +000028130rm -f core conftest.err conftest.$ac_objext \
28131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028132 LIBS="$ac_xsave_LIBS"
28133
28134 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28135 # to get the SysV transport functions.
28136 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28137 # needs -lnsl.
28138 # The nsl library prevents programs from opening the X display
28139 # on Irix 5.2, according to T.E. Dickey.
28140 # The functions gethostbyname, getservbyname, and inet_addr are
28141 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000028142 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000028143if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028144
cristy3ed852e2009-09-05 21:47:34 +000028145fi
28146
cristy3ed852e2009-09-05 21:47:34 +000028147 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028149$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028150if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 $as_echo_n "(cached) " >&6
28152else
28153 ac_check_lib_save_LIBS=$LIBS
28154LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028156/* end confdefs.h. */
28157
28158/* Override any GCC internal prototype to avoid an error.
28159 Use char because int might match the return type of a GCC
28160 builtin and then its argument prototype would still apply. */
28161#ifdef __cplusplus
28162extern "C"
28163#endif
28164char gethostbyname ();
28165int
28166main ()
28167{
28168return gethostbyname ();
28169 ;
28170 return 0;
28171}
28172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028174 ac_cv_lib_nsl_gethostbyname=yes
28175else
cristy8b350f62009-11-15 23:12:43 +000028176 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028177fi
cristy8b350f62009-11-15 23:12:43 +000028178rm -f core conftest.err conftest.$ac_objext \
28179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028180LIBS=$ac_check_lib_save_LIBS
28181fi
cristy8b350f62009-11-15 23:12:43 +000028182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028183$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028184if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28186fi
28187
28188 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028191if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028192 $as_echo_n "(cached) " >&6
28193else
28194 ac_check_lib_save_LIBS=$LIBS
28195LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028197/* end confdefs.h. */
28198
28199/* Override any GCC internal prototype to avoid an error.
28200 Use char because int might match the return type of a GCC
28201 builtin and then its argument prototype would still apply. */
28202#ifdef __cplusplus
28203extern "C"
28204#endif
28205char gethostbyname ();
28206int
28207main ()
28208{
28209return gethostbyname ();
28210 ;
28211 return 0;
28212}
28213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028215 ac_cv_lib_bsd_gethostbyname=yes
28216else
cristy8b350f62009-11-15 23:12:43 +000028217 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028218fi
cristy8b350f62009-11-15 23:12:43 +000028219rm -f core conftest.err conftest.$ac_objext \
28220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028221LIBS=$ac_check_lib_save_LIBS
28222fi
cristy8b350f62009-11-15 23:12:43 +000028223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028224$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028225if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28227fi
28228
28229 fi
28230 fi
28231
28232 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28233 # socket/setsockopt and other routines are undefined under SCO ODT
28234 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28235 # on later versions), says Simon Leinen: it contains gethostby*
28236 # variants that don't use the name server (or something). -lsocket
28237 # must be given before -lnsl if both are needed. We assume that
28238 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000028239 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000028240if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028241
cristy3ed852e2009-09-05 21:47:34 +000028242fi
28243
cristy3ed852e2009-09-05 21:47:34 +000028244 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000028245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000028246$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028247if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028248 $as_echo_n "(cached) " >&6
28249else
28250 ac_check_lib_save_LIBS=$LIBS
28251LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028253/* end confdefs.h. */
28254
28255/* Override any GCC internal prototype to avoid an error.
28256 Use char because int might match the return type of a GCC
28257 builtin and then its argument prototype would still apply. */
28258#ifdef __cplusplus
28259extern "C"
28260#endif
28261char connect ();
28262int
28263main ()
28264{
28265return connect ();
28266 ;
28267 return 0;
28268}
28269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028271 ac_cv_lib_socket_connect=yes
28272else
cristy8b350f62009-11-15 23:12:43 +000028273 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028274fi
cristy8b350f62009-11-15 23:12:43 +000028275rm -f core conftest.err conftest.$ac_objext \
28276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028277LIBS=$ac_check_lib_save_LIBS
28278fi
cristy8b350f62009-11-15 23:12:43 +000028279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028281if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28283fi
28284
28285 fi
28286
28287 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028288 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028289if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028290
cristy3ed852e2009-09-05 21:47:34 +000028291fi
28292
cristy3ed852e2009-09-05 21:47:34 +000028293 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028295$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028296if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 $as_echo_n "(cached) " >&6
28298else
28299 ac_check_lib_save_LIBS=$LIBS
28300LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028302/* end confdefs.h. */
28303
28304/* Override any GCC internal prototype to avoid an error.
28305 Use char because int might match the return type of a GCC
28306 builtin and then its argument prototype would still apply. */
28307#ifdef __cplusplus
28308extern "C"
28309#endif
28310char remove ();
28311int
28312main ()
28313{
28314return remove ();
28315 ;
28316 return 0;
28317}
28318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 ac_cv_lib_posix_remove=yes
28321else
cristy8b350f62009-11-15 23:12:43 +000028322 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028323fi
cristy8b350f62009-11-15 23:12:43 +000028324rm -f core conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028326LIBS=$ac_check_lib_save_LIBS
28327fi
cristy8b350f62009-11-15 23:12:43 +000028328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028329$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028330if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28332fi
28333
28334 fi
28335
28336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028337 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028338if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028339
cristy3ed852e2009-09-05 21:47:34 +000028340fi
28341
cristy3ed852e2009-09-05 21:47:34 +000028342 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028344$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028345if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028346 $as_echo_n "(cached) " >&6
28347else
28348 ac_check_lib_save_LIBS=$LIBS
28349LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028351/* end confdefs.h. */
28352
28353/* Override any GCC internal prototype to avoid an error.
28354 Use char because int might match the return type of a GCC
28355 builtin and then its argument prototype would still apply. */
28356#ifdef __cplusplus
28357extern "C"
28358#endif
28359char shmat ();
28360int
28361main ()
28362{
28363return shmat ();
28364 ;
28365 return 0;
28366}
28367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 ac_cv_lib_ipc_shmat=yes
28370else
cristy8b350f62009-11-15 23:12:43 +000028371 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028372fi
cristy8b350f62009-11-15 23:12:43 +000028373rm -f core conftest.err conftest.$ac_objext \
28374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028375LIBS=$ac_check_lib_save_LIBS
28376fi
cristy8b350f62009-11-15 23:12:43 +000028377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028378$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028379if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28381fi
28382
28383 fi
28384 fi
28385
28386 # Check for libraries that X11R6 Xt/Xaw programs need.
28387 ac_save_LDFLAGS=$LDFLAGS
28388 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28389 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28390 # check for ICE first), but we must link in the order -lSM -lICE or
28391 # we get undefined symbols. So assume we have SM if we have ICE.
28392 # These have to be linked with before -lX11, unlike the other
28393 # libraries we check for below, so use a different variable.
28394 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028396$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028397if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028398 $as_echo_n "(cached) " >&6
28399else
28400 ac_check_lib_save_LIBS=$LIBS
28401LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028403/* end confdefs.h. */
28404
28405/* Override any GCC internal prototype to avoid an error.
28406 Use char because int might match the return type of a GCC
28407 builtin and then its argument prototype would still apply. */
28408#ifdef __cplusplus
28409extern "C"
28410#endif
28411char IceConnectionNumber ();
28412int
28413main ()
28414{
28415return IceConnectionNumber ();
28416 ;
28417 return 0;
28418}
28419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028420if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028421 ac_cv_lib_ICE_IceConnectionNumber=yes
28422else
cristy8b350f62009-11-15 23:12:43 +000028423 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028424fi
cristy8b350f62009-11-15 23:12:43 +000028425rm -f core conftest.err conftest.$ac_objext \
28426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028427LIBS=$ac_check_lib_save_LIBS
28428fi
cristy8b350f62009-11-15 23:12:43 +000028429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028430$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028431if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028432 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28433fi
28434
28435 LDFLAGS=$ac_save_LDFLAGS
28436
28437fi
28438
28439if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28441$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28445$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028446 LDFLAGS="$LDFLAGS $X_LIBS"
28447 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28448 LIBS="$X11_LIBS $LIBS"
28449 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28450
28451
cristy8b350f62009-11-15 23:12:43 +000028452$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028453
28454 #
28455 # Check for X11 shared memory extension
28456 #
28457 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028458 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028459if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028460 have_shmctl='yes'
28461fi
28462
28463 if test "$have_shmctl" != 'yes'; then
28464 PERSIST_LIBS=$LIBS
28465 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028467/* end confdefs.h. */
28468
28469/* Override any GCC internal prototype to avoid an error.
28470 Use char because int might match the return type of a GCC
28471 builtin and then its argument prototype would still apply. */
28472#ifdef __cplusplus
28473extern "C"
28474#endif
28475char shmctl ();
28476int
28477main ()
28478{
28479return shmctl ();
28480 ;
28481 return 0;
28482}
28483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028486fi
cristy8b350f62009-11-15 23:12:43 +000028487rm -f core conftest.err conftest.$ac_objext \
28488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028489 LIBS=$PERSIST_LIBS
28490 fi
28491
28492 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028494$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028495if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028496 $as_echo_n "(cached) " >&6
28497else
28498 ac_check_lib_save_LIBS=$LIBS
28499LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028501/* end confdefs.h. */
28502
28503/* Override any GCC internal prototype to avoid an error.
28504 Use char because int might match the return type of a GCC
28505 builtin and then its argument prototype would still apply. */
28506#ifdef __cplusplus
28507extern "C"
28508#endif
28509char XShmAttach ();
28510int
28511main ()
28512{
28513return XShmAttach ();
28514 ;
28515 return 0;
28516}
28517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 ac_cv_lib_Xext_XShmAttach=yes
28520else
cristy8b350f62009-11-15 23:12:43 +000028521 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028522fi
cristy8b350f62009-11-15 23:12:43 +000028523rm -f core conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028525LIBS=$ac_check_lib_save_LIBS
28526fi
cristy8b350f62009-11-15 23:12:43 +000028527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028529if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028531$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028532
28533fi
28534
28535 fi
28536
28537 #
28538 # Check for X11 shape extension
28539 #
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028542if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028543 $as_echo_n "(cached) " >&6
28544else
28545 ac_check_lib_save_LIBS=$LIBS
28546LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548/* end confdefs.h. */
28549
28550/* Override any GCC internal prototype to avoid an error.
28551 Use char because int might match the return type of a GCC
28552 builtin and then its argument prototype would still apply. */
28553#ifdef __cplusplus
28554extern "C"
28555#endif
28556char XShapeCombineMask ();
28557int
28558main ()
28559{
28560return XShapeCombineMask ();
28561 ;
28562 return 0;
28563}
28564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028566 ac_cv_lib_Xext_XShapeCombineMask=yes
28567else
cristy8b350f62009-11-15 23:12:43 +000028568 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028569fi
cristy8b350f62009-11-15 23:12:43 +000028570rm -f core conftest.err conftest.$ac_objext \
28571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028572LIBS=$ac_check_lib_save_LIBS
28573fi
cristy8b350f62009-11-15 23:12:43 +000028574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028576if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028578$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028579
28580fi
28581
cristy8b350f62009-11-15 23:12:43 +000028582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028583$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028584if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 $as_echo_n "(cached) " >&6
28586else
28587 ac_check_lib_save_LIBS=$LIBS
28588LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028590/* end confdefs.h. */
28591
28592/* Override any GCC internal prototype to avoid an error.
28593 Use char because int might match the return type of a GCC
28594 builtin and then its argument prototype would still apply. */
28595#ifdef __cplusplus
28596extern "C"
28597#endif
28598char XtSetEventDispatcher ();
28599int
28600main ()
28601{
28602return XtSetEventDispatcher ();
28603 ;
28604 return 0;
28605}
28606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028608 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28609else
cristy8b350f62009-11-15 23:12:43 +000028610 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028611fi
cristy8b350f62009-11-15 23:12:43 +000028612rm -f core conftest.err conftest.$ac_objext \
28613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028614LIBS=$ac_check_lib_save_LIBS
28615fi
cristy8b350f62009-11-15 23:12:43 +000028616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028618if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028619 XT_LIBS='-lXt'
28620fi
28621
28622 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28623fi
28624if test "$no_x" != 'yes'; then
28625 have_x='yes'
28626else
28627 have_x='no'
28628fi
cristy73bd4a52010-10-05 11:24:23 +000028629 if test "$have_x" = 'yes'; then
28630 X11_DELEGATE_TRUE=
28631 X11_DELEGATE_FALSE='#'
28632else
28633 X11_DELEGATE_TRUE='#'
28634 X11_DELEGATE_FALSE=
28635fi
28636
cristy3ed852e2009-09-05 21:47:34 +000028637
28638
28639
28640
28641#
28642# Check for ZLIB
28643#
28644
28645# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028646if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028647 withval=$with_zlib; with_zlib=$withval
28648else
28649 with_zlib='yes'
28650fi
28651
28652
28653if test "$with_zlib" != 'yes'; then
28654 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28655fi
28656
28657have_zlib='no'
28658ZLIB_LIBS=''
28659if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28661$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028663$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28665$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028666 ZLIB_LIBS=''
28667 failed=0
28668 passed=0
cristy8b350f62009-11-15 23:12:43 +000028669 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028670if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028671 passed=`expr $passed + 1`
28672else
28673 failed=`expr $failed + 1`
28674fi
28675
28676
cristy8b350f62009-11-15 23:12:43 +000028677 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028678if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 passed=`expr $passed + 1`
28680else
28681 failed=`expr $failed + 1`
28682fi
28683
28684
cristy8b350f62009-11-15 23:12:43 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028686$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028687if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028688 $as_echo_n "(cached) " >&6
28689else
28690 ac_check_lib_save_LIBS=$LIBS
28691LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028693/* end confdefs.h. */
28694
28695/* Override any GCC internal prototype to avoid an error.
28696 Use char because int might match the return type of a GCC
28697 builtin and then its argument prototype would still apply. */
28698#ifdef __cplusplus
28699extern "C"
28700#endif
28701char compress ();
28702int
28703main ()
28704{
28705return compress ();
28706 ;
28707 return 0;
28708}
28709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028711 ac_cv_lib_z_compress=yes
28712else
cristy8b350f62009-11-15 23:12:43 +000028713 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028714fi
cristy8b350f62009-11-15 23:12:43 +000028715rm -f core conftest.err conftest.$ac_objext \
28716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028717LIBS=$ac_check_lib_save_LIBS
28718fi
cristy8b350f62009-11-15 23:12:43 +000028719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028720$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028721if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028722 passed=`expr $passed + 1`
28723else
28724 failed=`expr $failed + 1`
28725fi
28726
cristy8b350f62009-11-15 23:12:43 +000028727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028729if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028730 $as_echo_n "(cached) " >&6
28731else
28732 ac_check_lib_save_LIBS=$LIBS
28733LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028735/* end confdefs.h. */
28736
28737/* Override any GCC internal prototype to avoid an error.
28738 Use char because int might match the return type of a GCC
28739 builtin and then its argument prototype would still apply. */
28740#ifdef __cplusplus
28741extern "C"
28742#endif
28743char uncompress ();
28744int
28745main ()
28746{
28747return uncompress ();
28748 ;
28749 return 0;
28750}
28751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028753 ac_cv_lib_z_uncompress=yes
28754else
cristy8b350f62009-11-15 23:12:43 +000028755 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028756fi
cristy8b350f62009-11-15 23:12:43 +000028757rm -f core conftest.err conftest.$ac_objext \
28758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028759LIBS=$ac_check_lib_save_LIBS
28760fi
cristy8b350f62009-11-15 23:12:43 +000028761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028762$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028763if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028764 passed=`expr $passed + 1`
28765else
28766 failed=`expr $failed + 1`
28767fi
28768
cristy8b350f62009-11-15 23:12:43 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028770$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028771if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028772 $as_echo_n "(cached) " >&6
28773else
28774 ac_check_lib_save_LIBS=$LIBS
28775LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028777/* end confdefs.h. */
28778
28779/* Override any GCC internal prototype to avoid an error.
28780 Use char because int might match the return type of a GCC
28781 builtin and then its argument prototype would still apply. */
28782#ifdef __cplusplus
28783extern "C"
28784#endif
28785char deflate ();
28786int
28787main ()
28788{
28789return deflate ();
28790 ;
28791 return 0;
28792}
28793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028795 ac_cv_lib_z_deflate=yes
28796else
cristy8b350f62009-11-15 23:12:43 +000028797 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028798fi
cristy8b350f62009-11-15 23:12:43 +000028799rm -f core conftest.err conftest.$ac_objext \
28800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028801LIBS=$ac_check_lib_save_LIBS
28802fi
cristy8b350f62009-11-15 23:12:43 +000028803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028804$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028805if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 passed=`expr $passed + 1`
28807else
28808 failed=`expr $failed + 1`
28809fi
28810
cristy8b350f62009-11-15 23:12:43 +000028811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028812$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028813if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028814 $as_echo_n "(cached) " >&6
28815else
28816 ac_check_lib_save_LIBS=$LIBS
28817LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028819/* end confdefs.h. */
28820
28821/* Override any GCC internal prototype to avoid an error.
28822 Use char because int might match the return type of a GCC
28823 builtin and then its argument prototype would still apply. */
28824#ifdef __cplusplus
28825extern "C"
28826#endif
28827char inflate ();
28828int
28829main ()
28830{
28831return inflate ();
28832 ;
28833 return 0;
28834}
28835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028836if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028837 ac_cv_lib_z_inflate=yes
28838else
cristy8b350f62009-11-15 23:12:43 +000028839 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028840fi
cristy8b350f62009-11-15 23:12:43 +000028841rm -f core conftest.err conftest.$ac_objext \
28842 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028843LIBS=$ac_check_lib_save_LIBS
28844fi
cristy8b350f62009-11-15 23:12:43 +000028845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028846$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028847if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028848 passed=`expr $passed + 1`
28849else
28850 failed=`expr $failed + 1`
28851fi
28852
cristy8b350f62009-11-15 23:12:43 +000028853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028854$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028855if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028856 $as_echo_n "(cached) " >&6
28857else
28858 ac_check_lib_save_LIBS=$LIBS
28859LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028861/* end confdefs.h. */
28862
28863/* Override any GCC internal prototype to avoid an error.
28864 Use char because int might match the return type of a GCC
28865 builtin and then its argument prototype would still apply. */
28866#ifdef __cplusplus
28867extern "C"
28868#endif
28869char gzseek ();
28870int
28871main ()
28872{
28873return gzseek ();
28874 ;
28875 return 0;
28876}
28877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 ac_cv_lib_z_gzseek=yes
28880else
cristy8b350f62009-11-15 23:12:43 +000028881 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028882fi
cristy8b350f62009-11-15 23:12:43 +000028883rm -f core conftest.err conftest.$ac_objext \
28884 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028885LIBS=$ac_check_lib_save_LIBS
28886fi
cristy8b350f62009-11-15 23:12:43 +000028887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028888$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028889if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028890 passed=`expr $passed + 1`
28891else
28892 failed=`expr $failed + 1`
28893fi
28894
cristy8b350f62009-11-15 23:12:43 +000028895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028896$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028897if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028898 $as_echo_n "(cached) " >&6
28899else
28900 ac_check_lib_save_LIBS=$LIBS
28901LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028903/* end confdefs.h. */
28904
28905/* Override any GCC internal prototype to avoid an error.
28906 Use char because int might match the return type of a GCC
28907 builtin and then its argument prototype would still apply. */
28908#ifdef __cplusplus
28909extern "C"
28910#endif
28911char gztell ();
28912int
28913main ()
28914{
28915return gztell ();
28916 ;
28917 return 0;
28918}
28919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028920if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028921 ac_cv_lib_z_gztell=yes
28922else
cristy8b350f62009-11-15 23:12:43 +000028923 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028924fi
cristy8b350f62009-11-15 23:12:43 +000028925rm -f core conftest.err conftest.$ac_objext \
28926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028927LIBS=$ac_check_lib_save_LIBS
28928fi
cristy8b350f62009-11-15 23:12:43 +000028929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028930$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028931if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028932 passed=`expr $passed + 1`
28933else
28934 failed=`expr $failed + 1`
28935fi
28936
cristy8b350f62009-11-15 23:12:43 +000028937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo_n "checking if ZLIB package is complete... " >&6; }
28939 if test $passed -gt 0; then
28940 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28942$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028943 have_zlib='no (failed tests)'
28944 else
28945 ZLIB_LIBS='-lz'
28946 LIBS="$ZLIB_LIBS $LIBS"
28947
cristy8b350f62009-11-15 23:12:43 +000028948$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028949
cristyad38abe2012-12-23 23:03:21 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28951$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028952 have_zlib='yes'
28953 fi
28954 else
cristyad38abe2012-12-23 23:03:21 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28956$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028957 fi
28958fi
cristy73bd4a52010-10-05 11:24:23 +000028959 if test "$have_zlib" = 'yes'; then
28960 ZLIB_DELEGATE_TRUE=
28961 ZLIB_DELEGATE_FALSE='#'
28962else
28963 ZLIB_DELEGATE_TRUE='#'
28964 ZLIB_DELEGATE_FALSE=
28965fi
28966
cristy3ed852e2009-09-05 21:47:34 +000028967
28968
cristy5eef09f2012-10-16 12:08:28 +000028969# whether modules are built or not.
28970with_ltdl='yes'
28971have_ltdl='no'
28972LTDL_LIBS=''
28973if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28975$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28977$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28979$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028980 failed=0
28981 passed=0
28982 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28983if test "x$ac_cv_header_ltdl_h" = xyes; then :
28984 passed=`expr $passed + 1`
28985else
28986 failed=`expr $failed + 1`
28987fi
28988
28989
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28991$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28992if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28993 $as_echo_n "(cached) " >&6
28994else
28995 ac_check_lib_save_LIBS=$LIBS
28996LIBS="-lltdl $LIBS"
28997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998/* end confdefs.h. */
28999
29000/* Override any GCC internal prototype to avoid an error.
29001 Use char because int might match the return type of a GCC
29002 builtin and then its argument prototype would still apply. */
29003#ifdef __cplusplus
29004extern "C"
29005#endif
29006char lt_dlinit ();
29007int
29008main ()
29009{
29010return lt_dlinit ();
29011 ;
29012 return 0;
29013}
29014_ACEOF
29015if ac_fn_c_try_link "$LINENO"; then :
29016 ac_cv_lib_ltdl_lt_dlinit=yes
29017else
29018 ac_cv_lib_ltdl_lt_dlinit=no
29019fi
29020rm -f core conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
29022LIBS=$ac_check_lib_save_LIBS
29023fi
29024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
29025$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
29026if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
29027 passed=`expr $passed + 1`
29028else
29029 failed=`expr $failed + 1`
29030fi
29031
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
29033$as_echo_n "checking if libltdl package is complete... " >&6; }
29034 if test $passed -gt 0 ; then
29035 if test $failed -gt 0 ; then
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29037$as_echo "no -- some components failed test" >&6; }
29038 have_ltdl='no (failed tests)'
29039 else
29040 LTDL_LIBS='-lltdl'
29041 LIBS="$LTDL_LIBS $LIBS"
29042
29043$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
29044
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29046$as_echo "yes" >&6; }
29047 have_ltdl='yes'
29048 fi
29049 else
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29051$as_echo "no" >&6; }
29052 fi
cristyaf4cbf32012-10-16 23:47:41 +000029053 if test "$have_ltdl" != 'yes' ; then
29054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29056as_fn_error 1 "libltdl is required for modules build
29057See \`config.log' for more details" "$LINENO" 5; }
29058 fi
cristy5eef09f2012-10-16 12:08:28 +000029059fi
29060 if test "$have_ltdl" != 'no'; then
29061 WITH_LTDL_TRUE=
29062 WITH_LTDL_FALSE='#'
29063else
29064 WITH_LTDL_TRUE='#'
29065 WITH_LTDL_FALSE=
29066fi
29067
29068
cristy3ed852e2009-09-05 21:47:34 +000029069#
29070# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
29071#
29072LIB_DL=''
29073if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000029075$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029076if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029077 $as_echo_n "(cached) " >&6
29078else
29079 ac_check_lib_save_LIBS=$LIBS
29080LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029082/* end confdefs.h. */
29083
29084/* Override any GCC internal prototype to avoid an error.
29085 Use char because int might match the return type of a GCC
29086 builtin and then its argument prototype would still apply. */
29087#ifdef __cplusplus
29088extern "C"
29089#endif
29090char dlopen ();
29091int
29092main ()
29093{
29094return dlopen ();
29095 ;
29096 return 0;
29097}
29098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 ac_cv_lib_dl_dlopen=yes
29101else
cristy8b350f62009-11-15 23:12:43 +000029102 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000029103fi
cristy8b350f62009-11-15 23:12:43 +000029104rm -f core conftest.err conftest.$ac_objext \
29105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029106LIBS=$ac_check_lib_save_LIBS
29107fi
cristy8b350f62009-11-15 23:12:43 +000029108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029109$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029110if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029111 LIB_DL='-ldl'
29112fi
29113
29114 LIBS="$LIB_DL $LIBS"
29115fi
29116
29117
29118
29119#
29120# Check for Autotrace delegate library.
29121#
29122
29123# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000029124if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029125 withval=$with_autotrace; with_autotrace=$withval
29126else
29127 with_autotrace='no'
29128fi
29129
29130
29131if test "$with_autotrace" != 'yes'; then
29132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
29133fi
29134
29135have_autotrace='no'
29136AUTOTRACE_CFLAGS=""
29137AUTOTRACE_LIBS=""
29138AUTOTRACE_PKG=""
29139if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29141$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029142
29143pkg_failed=no
29144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
29145$as_echo_n "checking for AUTOTRACE... " >&6; }
29146
29147if test -n "$AUTOTRACE_CFLAGS"; then
29148 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
29149 elif test -n "$PKG_CONFIG"; then
29150 if test -n "$PKG_CONFIG" && \
29151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29152 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29153 ac_status=$?
29154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29155 test $ac_status = 0; }; then
29156 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
29157else
29158 pkg_failed=yes
29159fi
29160 else
29161 pkg_failed=untried
29162fi
29163if test -n "$AUTOTRACE_LIBS"; then
29164 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
29165 elif test -n "$PKG_CONFIG"; then
29166 if test -n "$PKG_CONFIG" && \
29167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29168 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29169 ac_status=$?
29170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29171 test $ac_status = 0; }; then
29172 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
29173else
29174 pkg_failed=yes
29175fi
29176 else
29177 pkg_failed=untried
29178fi
29179
29180
29181
29182if test $pkg_failed = yes; then
29183
29184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29185 _pkg_short_errors_supported=yes
29186else
29187 _pkg_short_errors_supported=no
29188fi
29189 if test $_pkg_short_errors_supported = yes; then
29190 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
29191 else
29192 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
29193 fi
29194 # Put the nasty error message in config.log where it belongs
29195 echo "$AUTOTRACE_PKG_ERRORS" >&5
29196
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198$as_echo "no" >&6; }
29199 have_autotrace=no
29200elif test $pkg_failed = untried; then
29201 have_autotrace=no
29202else
29203 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
29204 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29206$as_echo "yes" >&6; }
29207 have_autotrace=yes
29208fi
cristyad38abe2012-12-23 23:03:21 +000029209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29210$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029211fi
29212
29213if test "$have_autotrace" = 'yes'; then
29214 failed=0
29215
cristy8b350f62009-11-15 23:12:43 +000029216$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029217
cristyc6722092012-10-14 00:19:31 +000029218 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000029219 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029220 fi
29221fi
29222
cristy73bd4a52010-10-05 11:24:23 +000029223 if test "$have_autotrace" = 'yes'; then
29224 AUTOTRACE_DELEGATE_TRUE=
29225 AUTOTRACE_DELEGATE_FALSE='#'
29226else
29227 AUTOTRACE_DELEGATE_TRUE='#'
29228 AUTOTRACE_DELEGATE_FALSE=
29229fi
29230
cristy3ed852e2009-09-05 21:47:34 +000029231
29232
29233
29234
29235#
29236# Check for Display Postscript delegate library.
29237#
29238
29239# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000029240if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029241 withval=$with_dps; with_dps=$withval
29242else
29243 with_dps='yes'
29244fi
29245
29246
29247if test "$with_dps" != 'yes'; then
29248 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
29249fi
29250
29251have_dps='no'
29252DPS_LIBS=''
29253if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29255$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000029257$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29259$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029260 failed=0
29261 passed=0
29262 PERSIST_CPPFLAGS="$CPPFLAGS"
29263 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000029264 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 +000029265if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029266 passed=`expr $passed + 1`
29267else
29268 failed=`expr $failed + 1`
29269fi
29270
29271
29272 # DPS issues:
29273 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
29274 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
29275 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
29276 # ImageMagick itself doesn't use -lXt.
29277 have_libdps='no'
29278 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029281if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029282 $as_echo_n "(cached) " >&6
29283else
29284 ac_check_lib_save_LIBS=$LIBS
29285LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029287/* end confdefs.h. */
29288
29289/* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
29295char DPSInitialize ();
29296int
29297main ()
29298{
29299return DPSInitialize ();
29300 ;
29301 return 0;
29302}
29303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 ac_cv_lib_dps_DPSInitialize=yes
29306else
cristy8b350f62009-11-15 23:12:43 +000029307 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029308fi
cristy8b350f62009-11-15 23:12:43 +000029309rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029311LIBS=$ac_check_lib_save_LIBS
29312fi
cristy8b350f62009-11-15 23:12:43 +000029313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029315if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 have_libdps='yes'
29317else
29318 have_libdps='no'
29319fi
29320
29321 if test "$have_libdps" != 'yes'; then
29322 # Unset cache variable so we can try again.
29323 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029326if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029327 $as_echo_n "(cached) " >&6
29328else
29329 ac_check_lib_save_LIBS=$LIBS
29330LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029332/* end confdefs.h. */
29333
29334/* Override any GCC internal prototype to avoid an error.
29335 Use char because int might match the return type of a GCC
29336 builtin and then its argument prototype would still apply. */
29337#ifdef __cplusplus
29338extern "C"
29339#endif
29340char DPSInitialize ();
29341int
29342main ()
29343{
29344return DPSInitialize ();
29345 ;
29346 return 0;
29347}
29348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029350 ac_cv_lib_dps_DPSInitialize=yes
29351else
cristy8b350f62009-11-15 23:12:43 +000029352 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029353fi
cristy8b350f62009-11-15 23:12:43 +000029354rm -f core conftest.err conftest.$ac_objext \
29355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029356LIBS=$ac_check_lib_save_LIBS
29357fi
cristy8b350f62009-11-15 23:12:43 +000029358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029360if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029361 have_libdps='yes'
29362else
29363 have_libdps='no'
29364fi
29365
29366 if test "$have_libdps" = 'yes'; then
29367 LIBDPS_XT='-lXt'
29368 fi
29369 fi
29370 if test "$have_libdps" = 'yes'; then
29371 passed=`expr $passed + 1`
29372 else
29373 failed=`expr $failed + 1`
29374 fi
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029377if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 $as_echo_n "(cached) " >&6
29379else
29380 ac_check_lib_save_LIBS=$LIBS
29381LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029383/* end confdefs.h. */
29384
29385/* Override any GCC internal prototype to avoid an error.
29386 Use char because int might match the return type of a GCC
29387 builtin and then its argument prototype would still apply. */
29388#ifdef __cplusplus
29389extern "C"
29390#endif
29391char XDPSPixelsPerPoint ();
29392int
29393main ()
29394{
29395return XDPSPixelsPerPoint ();
29396 ;
29397 return 0;
29398}
29399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029401 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29402else
cristy8b350f62009-11-15 23:12:43 +000029403 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029404fi
cristy8b350f62009-11-15 23:12:43 +000029405rm -f core conftest.err conftest.$ac_objext \
29406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029407LIBS=$ac_check_lib_save_LIBS
29408fi
cristy8b350f62009-11-15 23:12:43 +000029409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029410$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029411if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029412 passed=`expr $passed + 1`
29413else
29414 failed=`expr $failed + 1`
29415fi
29416
cristy8b350f62009-11-15 23:12:43 +000029417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029418$as_echo_n "checking if DPS package is complete... " >&6; }
29419 if test $passed -gt 0; then
29420 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29422$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029423 have_dps='no (failed tests)'
29424 CPPFLAGS="$PERSIST_CPPFLAGS"
29425 else
29426 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29427 LIBS="$DPS_LIBS $LIBS"
29428
cristy8b350f62009-11-15 23:12:43 +000029429$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029430
cristyad38abe2012-12-23 23:03:21 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29432$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029433 have_dps='yes'
29434 fi
29435 else
cristyad38abe2012-12-23 23:03:21 +000029436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29437$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029438 CPPFLAGS=$PERSIST_CPPFLAGS
29439 fi
29440fi
cristy73bd4a52010-10-05 11:24:23 +000029441 if test "$have_dps" = 'yes'; then
29442 DPS_DELEGATE_TRUE=
29443 DPS_DELEGATE_FALSE='#'
29444else
29445 DPS_DELEGATE_TRUE='#'
29446 DPS_DELEGATE_FALSE=
29447fi
29448
cristy3ed852e2009-09-05 21:47:34 +000029449
29450
29451
29452#
29453# Check for DJVU delegate library.
29454#
29455
29456# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029457if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029458 withval=$with_djvu; with_djvu=$withval
29459else
29460 with_djvu='yes'
29461fi
29462
29463
29464if test "$with_djvu" != 'yes'; then
29465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29466fi
29467
29468have_djvu='no'
29469DJVU_LIBS=''
29470if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29472$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029474$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29476$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029477 failed=0
29478 passed=0
cristy8b350f62009-11-15 23:12:43 +000029479 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029480if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029481 passed=`expr $passed + 1`
29482else
29483 failed=`expr $failed + 1`
29484fi
29485
29486
cristy8b350f62009-11-15 23:12:43 +000029487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029488$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029489if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029490 $as_echo_n "(cached) " >&6
29491else
29492 ac_check_lib_save_LIBS=$LIBS
29493LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029495/* end confdefs.h. */
29496
29497/* Override any GCC internal prototype to avoid an error.
29498 Use char because int might match the return type of a GCC
29499 builtin and then its argument prototype would still apply. */
29500#ifdef __cplusplus
29501extern "C"
29502#endif
29503char ddjvu_context_create ();
29504int
29505main ()
29506{
29507return ddjvu_context_create ();
29508 ;
29509 return 0;
29510}
29511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029513 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29514else
cristy8b350f62009-11-15 23:12:43 +000029515 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029516fi
cristy8b350f62009-11-15 23:12:43 +000029517rm -f core conftest.err conftest.$ac_objext \
29518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029519LIBS=$ac_check_lib_save_LIBS
29520fi
cristy8b350f62009-11-15 23:12:43 +000029521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029522$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029523if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029524 passed=`expr $passed + 1`
29525else
29526 failed=`expr $failed + 1`
29527fi
29528
cristy8b350f62009-11-15 23:12:43 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029530$as_echo_n "checking if DJVU package is complete... " >&6; }
29531 if test $passed -gt 0; then
29532 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29534$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029535 have_djvu='no (failed tests)'
29536 else
29537 DJVU_LIBS='-ldjvulibre'
29538 LIBS="$DJVU_LIBS $LIBS"
29539
cristy8b350f62009-11-15 23:12:43 +000029540$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029541
cristyad38abe2012-12-23 23:03:21 +000029542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029544 have_djvu='yes'
29545 fi
29546 else
cristyad38abe2012-12-23 23:03:21 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29548$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029549 fi
29550fi
cristy73bd4a52010-10-05 11:24:23 +000029551 if test "$have_djvu" = 'yes'; then
29552 DJVU_DELEGATE_TRUE=
29553 DJVU_DELEGATE_FALSE='#'
29554else
29555 DJVU_DELEGATE_TRUE='#'
29556 DJVU_DELEGATE_FALSE=
29557fi
29558
cristy3ed852e2009-09-05 21:47:34 +000029559
29560
29561
29562#
cristy430a7312010-01-21 20:44:04 +000029563# Set DejaVu font directory.
29564#
29565
29566# Check whether --with-dejavu-font-dir was given.
29567if test "${with_dejavu_font_dir+set}" = set; then :
29568 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29569else
29570 with_dejavu_font_dir='default'
29571fi
29572
29573
29574if test "$with_dejavu_font_dir" != 'default'; then
29575 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29576fi
29577
29578
29579#
cristy3ed852e2009-09-05 21:47:34 +000029580# Check for FFTW delegate library.
29581#
29582
29583# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029584if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029585 withval=$with_fftw; with_fftw=$withval
29586else
29587 with_fftw='yes'
29588fi
29589
29590
29591if test "$with_fftw" != 'yes'; then
29592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29593fi
29594
cristy81beccd2011-10-03 18:17:24 +000029595have_fftw='no'
29596FFTW_LIBS=''
29597if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29599$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29601$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29603$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029604 failed=0
29605 passed=0
29606 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29607if test "x$ac_cv_header_fftw3_h" = xyes; then :
29608 passed=`expr $passed + 1`
29609else
29610 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029611fi
29612
cristy81beccd2011-10-03 18:17:24 +000029613
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29615$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29616if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29617 $as_echo_n "(cached) " >&6
29618else
29619 ac_check_lib_save_LIBS=$LIBS
29620LIBS="-lfftw3 $LIBS"
29621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622/* end confdefs.h. */
29623
29624/* Override any GCC internal prototype to avoid an error.
29625 Use char because int might match the return type of a GCC
29626 builtin and then its argument prototype would still apply. */
29627#ifdef __cplusplus
29628extern "C"
29629#endif
29630char fftw_execute ();
29631int
29632main ()
29633{
29634return fftw_execute ();
29635 ;
29636 return 0;
29637}
29638_ACEOF
29639if ac_fn_c_try_link "$LINENO"; then :
29640 ac_cv_lib_fftw3_fftw_execute=yes
29641else
29642 ac_cv_lib_fftw3_fftw_execute=no
29643fi
29644rm -f core conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
29646LIBS=$ac_check_lib_save_LIBS
29647fi
29648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29649$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29650if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29651 passed=`expr $passed + 1`
29652else
29653 failed=`expr $failed + 1`
29654fi
29655
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29657$as_echo_n "checking if FFTW package is complete... " >&6; }
29658 if test $passed -gt 0; then
29659 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29661$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029662 have_fftw='no (failed tests)'
29663 else
29664 FFTW_LIBS='-lfftw3'
29665 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029666
cristy8b350f62009-11-15 23:12:43 +000029667$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029668
cristyad38abe2012-12-23 23:03:21 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029671 have_fftw='yes'
29672 fi
29673 else
cristyad38abe2012-12-23 23:03:21 +000029674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29675$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029676 fi
29677fi
cristy73bd4a52010-10-05 11:24:23 +000029678 if test "$have_fftw" = 'yes'; then
29679 FFTW_DELEGATE_TRUE=
29680 FFTW_DELEGATE_FALSE='#'
29681else
29682 FFTW_DELEGATE_TRUE='#'
29683 FFTW_DELEGATE_FALSE=
29684fi
29685
cristy3ed852e2009-09-05 21:47:34 +000029686
29687
29688
29689#
29690# Check for FlashPIX delegate library.
29691#
29692
29693# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029694if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029695 withval=$with_fpx; with_fpx=$withval
29696else
29697 with_fpx='yes'
29698fi
29699
29700
29701if test "$with_fpx" != 'yes'; then
29702 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29703fi
29704
29705have_fpx='no'
29706FPX_LIBS=''
29707if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29709$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29713$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029714 failed=0
29715 passed=0
29716 ac_ext=cpp
29717ac_cpp='$CXXCPP $CPPFLAGS'
29718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29721
29722
cristy8b350f62009-11-15 23:12:43 +000029723ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029724if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029725 passed=`expr $passed + 1`
29726else
29727 failed=`expr $failed + 1`
29728fi
29729
29730
cristy8b350f62009-11-15 23:12:43 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029732$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029733if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029734 $as_echo_n "(cached) " >&6
29735else
29736 ac_check_lib_save_LIBS=$LIBS
29737LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029739/* end confdefs.h. */
29740
29741/* Override any GCC internal prototype to avoid an error.
29742 Use char because int might match the return type of a GCC
29743 builtin and then its argument prototype would still apply. */
29744#ifdef __cplusplus
29745extern "C"
29746#endif
29747char FPX_OpenImageByFilename ();
29748int
29749main ()
29750{
29751return FPX_OpenImageByFilename ();
29752 ;
29753 return 0;
29754}
29755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029756if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029757 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29758else
cristy8b350f62009-11-15 23:12:43 +000029759 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029760fi
cristy8b350f62009-11-15 23:12:43 +000029761rm -f core conftest.err conftest.$ac_objext \
29762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029763LIBS=$ac_check_lib_save_LIBS
29764fi
cristy8b350f62009-11-15 23:12:43 +000029765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029767if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029768 passed=`expr $passed + 1`
29769else
29770 failed=`expr $failed + 1`
29771fi
29772
29773 ac_ext=c
29774ac_cpp='$CPP $CPPFLAGS'
29775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29777ac_compiler_gnu=$ac_cv_c_compiler_gnu
29778
cristy8b350f62009-11-15 23:12:43 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29781 if test $passed -gt 0; then
29782 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29784$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029785 have_fpx='no (failed tests)'
29786 else
29787 FPX_LIBS='-lfpx'
29788
cristy8b350f62009-11-15 23:12:43 +000029789$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029790
cristyad38abe2012-12-23 23:03:21 +000029791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29792$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029793 have_fpx='yes'
29794 PERLMAINCC="$CXX"
29795 fi
29796 else
cristyad38abe2012-12-23 23:03:21 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29798$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029799 fi
29800fi
cristy73bd4a52010-10-05 11:24:23 +000029801 if test "$have_fpx" = 'yes'; then
29802 FPX_DELEGATE_TRUE=
29803 FPX_DELEGATE_FALSE='#'
29804else
29805 FPX_DELEGATE_TRUE='#'
29806 FPX_DELEGATE_FALSE=
29807fi
29808
cristy3ed852e2009-09-05 21:47:34 +000029809
29810
29811
29812#
29813# Check for fontconfig delegate library.
29814#
29815
29816# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029817if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029818 withval=$with_fontconfig; with_fontconfig=$withval
29819else
cristyfc3d0222012-02-07 15:05:57 +000029820 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029821fi
29822
29823
29824if test "$with_fontconfig" != 'yes'; then
29825 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29826fi
29827
29828have_fontconfig='no'
29829FONTCONFIG_CFLAGS=""
29830FONTCONFIG_LIBS=""
29831FONTCONFIG_PKG=""
29832if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29834$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029835
29836pkg_failed=no
29837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29838$as_echo_n "checking for FONTCONFIG... " >&6; }
29839
29840if test -n "$FONTCONFIG_CFLAGS"; then
29841 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_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 \"fontconfig >= 2.1.0\""; } >&5
29845 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.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_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29850else
29851 pkg_failed=yes
29852fi
29853 else
29854 pkg_failed=untried
29855fi
29856if test -n "$FONTCONFIG_LIBS"; then
29857 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29858 elif test -n "$PKG_CONFIG"; then
29859 if test -n "$PKG_CONFIG" && \
29860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29861 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29862 ac_status=$?
29863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29864 test $ac_status = 0; }; then
29865 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29866else
29867 pkg_failed=yes
29868fi
29869 else
29870 pkg_failed=untried
29871fi
29872
29873
29874
29875if test $pkg_failed = yes; then
29876
29877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29878 _pkg_short_errors_supported=yes
29879else
29880 _pkg_short_errors_supported=no
29881fi
29882 if test $_pkg_short_errors_supported = yes; then
29883 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29884 else
29885 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29886 fi
29887 # Put the nasty error message in config.log where it belongs
29888 echo "$FONTCONFIG_PKG_ERRORS" >&5
29889
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29891$as_echo "no" >&6; }
29892 have_fontconfig=no
29893elif test $pkg_failed = untried; then
29894 have_fontconfig=no
29895else
29896 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29897 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29899$as_echo "yes" >&6; }
29900 have_fontconfig=yes
29901fi
cristyad38abe2012-12-23 23:03:21 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29903$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029904fi
29905
29906if test "$have_fontconfig" = 'yes'; then
29907
cristy8b350f62009-11-15 23:12:43 +000029908$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029909
cristyc6722092012-10-14 00:19:31 +000029910 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029911 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029912 fi
cristy3ed852e2009-09-05 21:47:34 +000029913fi
29914
cristy73bd4a52010-10-05 11:24:23 +000029915 if test "$have_fontconfig" = 'yes'; then
29916 FONTCONFIG_DELEGATE_TRUE=
29917 FONTCONFIG_DELEGATE_FALSE='#'
29918else
29919 FONTCONFIG_DELEGATE_TRUE='#'
29920 FONTCONFIG_DELEGATE_FALSE=
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926
29927#
cristy03f187e2013-01-24 00:22:19 +000029928# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029929#
29930
29931# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029932if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029933 withval=$with_freetype; with_freetype=$withval
29934else
29935 with_freetype='yes'
29936fi
29937
29938
cristy3ed852e2009-09-05 21:47:34 +000029939if test "$with_freetype" != 'yes'; then
29940 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29941fi
29942
cristy81beccd2011-10-03 18:17:24 +000029943have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029944FREETYPE_CFLAGS=""
29945FREETYPE_LIBS=""
29946FREETYPE_PKG=""
29947if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29949$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029950
29951pkg_failed=no
29952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29953$as_echo_n "checking for FREETYPE... " >&6; }
29954
29955if test -n "$FREETYPE_CFLAGS"; then
29956 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29957 elif test -n "$PKG_CONFIG"; then
29958 if test -n "$PKG_CONFIG" && \
29959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29960 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29961 ac_status=$?
29962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29963 test $ac_status = 0; }; then
29964 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29965else
29966 pkg_failed=yes
29967fi
29968 else
29969 pkg_failed=untried
29970fi
29971if test -n "$FREETYPE_LIBS"; then
29972 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29973 elif test -n "$PKG_CONFIG"; then
29974 if test -n "$PKG_CONFIG" && \
29975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29976 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29977 ac_status=$?
29978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29979 test $ac_status = 0; }; then
29980 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29981else
29982 pkg_failed=yes
29983fi
29984 else
29985 pkg_failed=untried
29986fi
29987
29988
29989
29990if test $pkg_failed = yes; then
29991
29992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29993 _pkg_short_errors_supported=yes
29994else
29995 _pkg_short_errors_supported=no
29996fi
29997 if test $_pkg_short_errors_supported = yes; then
29998 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29999 else
30000 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
30001 fi
30002 # Put the nasty error message in config.log where it belongs
30003 echo "$FREETYPE_PKG_ERRORS" >&5
30004
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30006$as_echo "no" >&6; }
30007 have_freetype=no
30008elif test $pkg_failed = untried; then
30009 have_freetype=no
30010else
30011 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
30012 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30014$as_echo "yes" >&6; }
30015 have_freetype=yes
30016fi
cristyad38abe2012-12-23 23:03:21 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30018$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030019fi
30020
cristy03f187e2013-01-24 00:22:19 +000030021if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030022
cristy8b350f62009-11-15 23:12:43 +000030023$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030024
cristy03f187e2013-01-24 00:22:19 +000030025 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030026fi
cristy03f187e2013-01-24 00:22:19 +000030027
cristy73bd4a52010-10-05 11:24:23 +000030028 if test "$have_freetype" = 'yes'; then
30029 FREETYPE_DELEGATE_TRUE=
30030 FREETYPE_DELEGATE_FALSE='#'
30031else
30032 FREETYPE_DELEGATE_TRUE='#'
30033 FREETYPE_DELEGATE_FALSE=
30034fi
30035
cristy3ed852e2009-09-05 21:47:34 +000030036
30037
30038
cristy03f187e2013-01-24 00:22:19 +000030039
cristy3ed852e2009-09-05 21:47:34 +000030040#
30041# Check for Ghostscript library or framework.
30042#
30043# Test for iapi.h & test for gsapi_new_instance in -lgs
30044# or -framework Ghostscript
30045
30046
30047# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000030048if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030049 withval=$with_gslib; with_gslib=$withval
30050else
30051 with_gslib='no'
30052fi
30053
30054
cristyb7931f12009-09-25 10:22:21 +000030055gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000030056if test "$with_gslib" != 'yes'; then
30057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
30058fi
30059
30060have_gslib='no'
30061GS_LIBS=''
30062if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30064$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030066$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30068$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000030069 framework=0
cristy3ed852e2009-09-05 21:47:34 +000030070 failed=0
30071 passed=0
cristy8b350f62009-11-15 23:12:43 +000030072 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 +000030073if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030074 passed=`expr $passed + 1`
30075else
30076 failed=`expr $failed + 1`
30077fi
30078
30079
cristy8b350f62009-11-15 23:12:43 +000030080 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 +000030081if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 passed=`expr $passed + 1`
30083else
30084 failed=`expr $failed + 1`
30085fi
30086
30087
cristy73bd4a52010-10-05 11:24:23 +000030088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
30089$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030090if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000030091 $as_echo_n "(cached) " >&6
30092else
30093 ac_check_framework_save_LIBS=$LIBS
30094LIBS="-framework Ghostscript $LIBS"
30095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30096/* end confdefs.h. */
30097
30098/* Override any GCC internal prototype to avoid an error.
30099 Use char because int might match the return type of a GCC
30100 builtin and then its argument prototype would still apply. */
30101#ifdef __cplusplus
30102extern "C"
30103#endif
30104char gsapi_new_instance ();
30105int
30106main ()
30107{
30108return gsapi_new_instance ();
30109 ;
30110 return 0;
30111}
30112_ACEOF
30113if ac_fn_c_try_link "$LINENO"; then :
30114 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
30115else
30116 ac_cv_framework_Ghostscript_gsapi_new_instance=no
30117fi
30118rm -f core conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
30120LIBS=$ac_check_framework_save_LIBS
30121fi
30122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
30123$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
30124if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
30125 framework=`expr $framework + 1`
30126else
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 $as_echo_n "(cached) " >&6
30131else
30132 ac_check_lib_save_LIBS=$LIBS
30133LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030135/* end confdefs.h. */
30136
30137/* Override any GCC internal prototype to avoid an error.
30138 Use char because int might match the return type of a GCC
30139 builtin and then its argument prototype would still apply. */
30140#ifdef __cplusplus
30141extern "C"
30142#endif
30143char gsapi_new_instance ();
30144int
30145main ()
30146{
30147return gsapi_new_instance ();
30148 ;
30149 return 0;
30150}
30151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 ac_cv_lib_gs_gsapi_new_instance=yes
30154else
cristy8b350f62009-11-15 23:12:43 +000030155 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000030156fi
cristy8b350f62009-11-15 23:12:43 +000030157rm -f core conftest.err conftest.$ac_objext \
30158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030159LIBS=$ac_check_lib_save_LIBS
30160fi
cristy8b350f62009-11-15 23:12:43 +000030161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000030163if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030164 passed=`expr $passed + 1`
30165else
30166 failed=`expr $failed + 1`
30167fi
cristy73bd4a52010-10-05 11:24:23 +000030168
30169fi
cristy8b350f62009-11-15 23:12:43 +000030170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030171$as_echo_n "checking if Ghostscript package is complete... " >&6; }
30172 if test $passed -gt 0; then
30173 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30175$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030176 have_gslib='no (failed tests)'
30177 else
30178 if test $framework -gt 0; then
30179 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000030180 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
30182$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030183 else
cristyad38abe2012-12-23 23:03:21 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
30185$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030186 GS_LIBS='-lgs'
30187 fi
30188 LIBS="$GS_LIBS $LIBS"
30189
cristy8b350f62009-11-15 23:12:43 +000030190$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030191
30192 have_gslib='yes'
30193 fi
30194 else
cristyad38abe2012-12-23 23:03:21 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30196$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030197 fi
30198fi
cristy73bd4a52010-10-05 11:24:23 +000030199 if test "$have_gslib" = 'yes'; then
30200 GS_DELEGATE_TRUE=
30201 GS_DELEGATE_FALSE='#'
30202else
30203 GS_DELEGATE_TRUE='#'
30204 GS_DELEGATE_FALSE=
30205fi
30206
cristy3ed852e2009-09-05 21:47:34 +000030207
30208
30209# Set default font search path
30210
30211# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000030212if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030213 withval=$with_fontpath; with_fontpath=$withval
30214else
30215 with_fontpath=''
30216fi
30217
30218
30219if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
30220 with_fontpath=''
30221else
30222
30223cat >>confdefs.h <<_ACEOF
30224#define MAGICK_FONT_PATH "$with_fontpath"
30225_ACEOF
30226
30227fi
30228if test "$with_fontpath=" != ''; then
30229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
30230fi
30231
30232# Set Ghostscript font directory
30233
30234# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030235if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030236 withval=$with_gs_font_dir; with_gs_font_dir=$withval
30237else
30238 with_gs_font_dir='default'
30239fi
30240
30241
30242if test "$with_gs_font_dir" != 'default'; then
30243 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
30244fi
30245
30246
30247#
30248# Check for GVC delegate library.
30249#
30250
30251# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000030252if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 withval=$with_gvc; with_gvc=$withval
30254else
cristy1b70dc82012-07-01 23:15:05 +000030255 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000030256fi
30257
30258
30259if test "$with_gvc" != 'yes'; then
30260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
30261fi
30262
30263GVC_PKG=""
30264if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30266$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030267
30268pkg_failed=no
30269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
30270$as_echo_n "checking for GVC... " >&6; }
30271
30272if test -n "$GVC_CFLAGS"; then
30273 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30274 elif test -n "$PKG_CONFIG"; then
30275 if test -n "$PKG_CONFIG" && \
30276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30277 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30278 ac_status=$?
30279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30280 test $ac_status = 0; }; then
30281 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
30282else
30283 pkg_failed=yes
30284fi
30285 else
30286 pkg_failed=untried
30287fi
30288if test -n "$GVC_LIBS"; then
30289 pkg_cv_GVC_LIBS="$GVC_LIBS"
30290 elif test -n "$PKG_CONFIG"; then
30291 if test -n "$PKG_CONFIG" && \
30292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30293 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30294 ac_status=$?
30295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30296 test $ac_status = 0; }; then
30297 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
30298else
30299 pkg_failed=yes
30300fi
30301 else
30302 pkg_failed=untried
30303fi
30304
30305
30306
30307if test $pkg_failed = yes; then
30308
30309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30310 _pkg_short_errors_supported=yes
30311else
30312 _pkg_short_errors_supported=no
30313fi
30314 if test $_pkg_short_errors_supported = yes; then
30315 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
30316 else
30317 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
30318 fi
30319 # Put the nasty error message in config.log where it belongs
30320 echo "$GVC_PKG_ERRORS" >&5
30321
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30323$as_echo "no" >&6; }
30324 have_gvc=no
30325elif test $pkg_failed = untried; then
30326 have_gvc=no
30327else
30328 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30329 GVC_LIBS=$pkg_cv_GVC_LIBS
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30331$as_echo "yes" >&6; }
30332 have_gvc=yes
30333fi
cristyad38abe2012-12-23 23:03:21 +000030334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30335$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030336fi
30337
30338if test "$have_gvc" = 'yes'; then
30339
cristy8b350f62009-11-15 23:12:43 +000030340$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030341
cristyc6722092012-10-14 00:19:31 +000030342 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030343 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30344 fi
30345fi
30346
cristy73bd4a52010-10-05 11:24:23 +000030347 if test "$have_gvc" = 'yes'; then
30348 GVC_DELEGATE_TRUE=
30349 GVC_DELEGATE_FALSE='#'
30350else
30351 GVC_DELEGATE_TRUE='#'
30352 GVC_DELEGATE_FALSE=
30353fi
30354
cristy3ed852e2009-09-05 21:47:34 +000030355
30356
30357
30358
30359#
30360# Check for JBIG delegate library.
30361#
30362
30363
30364# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030365if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030366 withval=$with_jbig; with_jbig=$withval
30367else
30368 with_jbig='yes'
30369fi
30370
30371
30372have_jbig='no'
30373JBIG_LIBS=''
30374if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30376$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30380$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030381 failed=0
30382 passed=0
cristy8b350f62009-11-15 23:12:43 +000030383 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030384if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030385 passed=`expr $passed + 1`
30386else
30387 failed=`expr $failed + 1`
30388fi
30389
30390
cristy8b350f62009-11-15 23:12:43 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030393if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030394 $as_echo_n "(cached) " >&6
30395else
30396 ac_check_lib_save_LIBS=$LIBS
30397LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030399/* end confdefs.h. */
30400
30401/* Override any GCC internal prototype to avoid an error.
30402 Use char because int might match the return type of a GCC
30403 builtin and then its argument prototype would still apply. */
30404#ifdef __cplusplus
30405extern "C"
30406#endif
30407char jbg_dec_init ();
30408int
30409main ()
30410{
30411return jbg_dec_init ();
30412 ;
30413 return 0;
30414}
30415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030417 ac_cv_lib_jbig_jbg_dec_init=yes
30418else
cristy8b350f62009-11-15 23:12:43 +000030419 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030420fi
cristy8b350f62009-11-15 23:12:43 +000030421rm -f core conftest.err conftest.$ac_objext \
30422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030423LIBS=$ac_check_lib_save_LIBS
30424fi
cristy8b350f62009-11-15 23:12:43 +000030425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030426$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030427if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030428 passed=`expr $passed + 1`
30429else
30430 failed=`expr $failed + 1`
30431fi
30432
cristy8b350f62009-11-15 23:12:43 +000030433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030434$as_echo_n "checking if JBIG package is complete... " >&6; }
30435 if test $passed -gt 0; then
30436 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30438$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030439 have_jbig='no (failed tests)'
30440 else
30441 JBIG_LIBS='-ljbig'
30442 LIBS="$JBIG_LIBS $LIBS"
30443
cristy8b350f62009-11-15 23:12:43 +000030444$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030445
cristyad38abe2012-12-23 23:03:21 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30447$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030448 have_jbig='yes'
30449 fi
30450 else
cristyad38abe2012-12-23 23:03:21 +000030451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030453 fi
30454fi
cristy73bd4a52010-10-05 11:24:23 +000030455 if test "$have_jbig" = 'yes'; then
30456 JBIG_DELEGATE_TRUE=
30457 JBIG_DELEGATE_FALSE='#'
30458else
30459 JBIG_DELEGATE_TRUE='#'
30460 JBIG_DELEGATE_FALSE=
30461fi
30462
cristy3ed852e2009-09-05 21:47:34 +000030463
30464
30465
30466#
30467# Check for JPEG delegate library.
30468#
30469
30470# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030471if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030472 withval=$with_jpeg; with_jpeg=$withval
30473else
30474 with_jpeg='yes'
30475fi
30476
30477
30478if test "$with_jpeg" != 'yes'; then
30479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30480fi
30481
30482have_jpeg='no'
30483JPEG_LIBS=''
30484if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30486$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030488$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30490$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030491 failed=0
30492 passed=0
cristy8b350f62009-11-15 23:12:43 +000030493 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030494if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 passed=`expr $passed + 1`
30496else
30497 failed=`expr $failed + 1`
30498fi
30499
30500
cristy8b350f62009-11-15 23:12:43 +000030501 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030502if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030503 passed=`expr $passed + 1`
30504else
30505 failed=`expr $failed + 1`
30506fi
30507
30508
cristy8b350f62009-11-15 23:12:43 +000030509 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030510if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030511 passed=`expr $passed + 1`
30512else
30513 failed=`expr $failed + 1`
30514fi
30515
30516
cristy8b350f62009-11-15 23:12:43 +000030517 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030518if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030519 passed=`expr $passed + 1`
30520else
30521 failed=`expr $failed + 1`
30522fi
30523
30524
cristy8b350f62009-11-15 23:12:43 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030526$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030527if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030528 $as_echo_n "(cached) " >&6
30529else
30530 ac_check_lib_save_LIBS=$LIBS
30531LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030533/* end confdefs.h. */
30534
30535/* Override any GCC internal prototype to avoid an error.
30536 Use char because int might match the return type of a GCC
30537 builtin and then its argument prototype would still apply. */
30538#ifdef __cplusplus
30539extern "C"
30540#endif
30541char jpeg_read_header ();
30542int
30543main ()
30544{
30545return jpeg_read_header ();
30546 ;
30547 return 0;
30548}
30549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030550if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030551 ac_cv_lib_jpeg_jpeg_read_header=yes
30552else
cristy8b350f62009-11-15 23:12:43 +000030553 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030554fi
cristy8b350f62009-11-15 23:12:43 +000030555rm -f core conftest.err conftest.$ac_objext \
30556 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030557LIBS=$ac_check_lib_save_LIBS
30558fi
cristy8b350f62009-11-15 23:12:43 +000030559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030561if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030562 passed=`expr $passed + 1`
30563else
30564 failed=`expr $failed + 1`
30565fi
30566
30567
30568# Test for compatible JPEG library
30569if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030571$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030572if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030573 $as_echo_n "(cached) " >&6
30574else
cristy8b350f62009-11-15 23:12:43 +000030575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030576/* end confdefs.h. */
30577#include <stdio.h>
30578#include <stdlib.h>
30579#include <jpeglib.h>
30580
30581int
30582main ()
30583{
30584
30585#if JPEG_LIB_VERSION < 62
30586#error IJG JPEG library must be version 6b or newer!
30587#endif
30588return 0;
30589
30590 ;
30591 return 0;
30592}
30593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030594if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030595 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30596else
cristy8b350f62009-11-15 23:12:43 +000030597 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030598fi
cristy3ed852e2009-09-05 21:47:34 +000030599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30600fi
cristy8b350f62009-11-15 23:12:43 +000030601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30603fi
cristy8b350f62009-11-15 23:12:43 +000030604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030605$as_echo_n "checking if JPEG package is complete... " >&6; }
30606 if test $passed -gt 0; then
30607 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30609$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030610 have_jpeg='no (failed tests)'
30611 else
30612 JPEG_LIBS='-ljpeg'
30613 LIBS="$JPEG_LIBS $LIBS"
30614
cristy8b350f62009-11-15 23:12:43 +000030615$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030616
cristyad38abe2012-12-23 23:03:21 +000030617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30618$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030619 have_jpeg='yes'
30620 fi
30621 else
cristyad38abe2012-12-23 23:03:21 +000030622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30623$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030624 fi
30625fi
cristy73bd4a52010-10-05 11:24:23 +000030626 if test "$have_jpeg" = 'yes'; then
30627 JPEG_DELEGATE_TRUE=
30628 JPEG_DELEGATE_FALSE='#'
30629else
30630 JPEG_DELEGATE_TRUE='#'
30631 JPEG_DELEGATE_FALSE=
30632fi
30633
cristy3ed852e2009-09-05 21:47:34 +000030634
30635
30636
30637#
30638# Check for JPEG Version 2 delegate library.
30639#
30640
30641# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030642if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030643 withval=$with_jp2; with_jp2=$withval
30644else
30645 with_jp2='yes'
30646fi
30647
30648
30649if test "$with_jp2" != 'yes'; then
30650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30651fi
30652
30653have_jp2='no'
30654JP2_LIBS=''
30655if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30657$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030659$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30661$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030662 failed=0
30663 passed=0
cristy8b350f62009-11-15 23:12:43 +000030664 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030665if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030666 passed=`expr $passed + 1`
30667else
30668 failed=`expr $failed + 1`
30669fi
30670
30671
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030674if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030675 $as_echo_n "(cached) " >&6
30676else
30677 ac_check_lib_save_LIBS=$LIBS
30678LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030680/* end confdefs.h. */
30681
30682/* Override any GCC internal prototype to avoid an error.
30683 Use char because int might match the return type of a GCC
30684 builtin and then its argument prototype would still apply. */
30685#ifdef __cplusplus
30686extern "C"
30687#endif
30688char jas_stream_fopen ();
30689int
30690main ()
30691{
30692return jas_stream_fopen ();
30693 ;
30694 return 0;
30695}
30696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030698 ac_cv_lib_jasper_jas_stream_fopen=yes
30699else
cristy8b350f62009-11-15 23:12:43 +000030700 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030701fi
cristy8b350f62009-11-15 23:12:43 +000030702rm -f core conftest.err conftest.$ac_objext \
30703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030704LIBS=$ac_check_lib_save_LIBS
30705fi
cristy8b350f62009-11-15 23:12:43 +000030706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030708if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030709 passed=`expr $passed + 1`
30710else
30711 failed=`expr $failed + 1`
30712fi
30713
cristy8b350f62009-11-15 23:12:43 +000030714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030715$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30716 if test $passed -gt 0; then
30717 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30719$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030720 have_jp2='no (failed tests)'
30721 else
30722 JP2_LIBS='-ljasper'
30723 LIBS="$JP2_LIBS $LIBS"
30724
cristy8b350f62009-11-15 23:12:43 +000030725$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030726
cristyad38abe2012-12-23 23:03:21 +000030727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30728$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030729 have_jp2='yes'
30730 fi
30731 else
cristyad38abe2012-12-23 23:03:21 +000030732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30733$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030734 fi
30735fi
cristy73bd4a52010-10-05 11:24:23 +000030736 if test "$have_jp2" = 'yes'; then
30737 JP2_DELEGATE_TRUE=
30738 JP2_DELEGATE_FALSE='#'
30739else
30740 JP2_DELEGATE_TRUE='#'
30741 JP2_DELEGATE_FALSE=
30742fi
30743
cristy3ed852e2009-09-05 21:47:34 +000030744
30745
30746
30747#
30748# Check for LCMS delegate library.
30749#
cristy71203402010-06-18 13:12:03 +000030750# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030751
30752# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030753if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030754 withval=$with_lcms; with_lcms=$withval
30755else
30756 with_lcms='yes'
30757fi
30758
cristy71203402010-06-18 13:12:03 +000030759if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030760 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30761fi
30762
cristy71203402010-06-18 13:12:03 +000030763# Disable LCMS2.
30764
30765# Check whether --with-lcms2 was given.
30766if test "${with_lcms2+set}" = set; then :
30767 withval=$with_lcms2; with_lcms2=$withval
30768else
30769 with_lcms2='yes'
30770fi
30771
30772if test "$with_lcms2" != 'yes' ; then
30773 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30774fi
30775
30776have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030777LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030778if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30780$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30782$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30784$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030785 failed=0
30786 passed=0
30787 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030788
30789 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030790 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030791if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030792 have_lcms_header='yes'
30793fi
30794
30795
30796 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030797
30798$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30799
cristy71203402010-06-18 13:12:03 +000030800 passed=`expr $passed + 1`
30801 fi
30802
30803 # Check for <lcms2/lcms2.h)
30804 if test "$have_lcms_header" != 'yes'; then
30805 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030806if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030807 have_lcms_header='yes'
30808fi
30809
30810
cristy71203402010-06-18 13:12:03 +000030811 if test "$have_lcms_header" = 'yes'; then
30812 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030813
cristy71203402010-06-18 13:12:03 +000030814$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030815
cristy71203402010-06-18 13:12:03 +000030816 fi
cristyd09bcf92010-03-25 03:04:45 +000030817 fi
cristy71203402010-06-18 13:12:03 +000030818
30819 # Failed to find lcms header?
30820 if test "$have_lcms_header" != 'yes'; then
30821 failed=`expr $failed + 1`
30822 fi
30823
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30825$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030826if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030827 $as_echo_n "(cached) " >&6
30828else
30829 ac_check_lib_save_LIBS=$LIBS
30830LIBS="-llcms2 $LIBS"
30831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30832/* end confdefs.h. */
30833
30834/* Override any GCC internal prototype to avoid an error.
30835 Use char because int might match the return type of a GCC
30836 builtin and then its argument prototype would still apply. */
30837#ifdef __cplusplus
30838extern "C"
30839#endif
cristy71203402010-06-18 13:12:03 +000030840char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030841int
30842main ()
30843{
cristy71203402010-06-18 13:12:03 +000030844return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030845 ;
30846 return 0;
30847}
30848_ACEOF
30849if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030850 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030851else
cristy71203402010-06-18 13:12:03 +000030852 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030853fi
30854rm -f core conftest.err conftest.$ac_objext \
30855 conftest$ac_exeext conftest.$ac_ext
30856LIBS=$ac_check_lib_save_LIBS
30857fi
cristy71203402010-06-18 13:12:03 +000030858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30859$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030860if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030861 passed=`expr $passed + 1`
30862else
30863 failed=`expr $failed + 1`
30864fi
30865
cristy71203402010-06-18 13:12:03 +000030866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30867$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030868 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030869 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30871$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030872 have_lcms2='no (failed tests)'
30873 else
30874 LCMS_LIBS='-llcms2'
30875 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30877$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030878 have_lcms2='yes'
30879 fi
cristyd09bcf92010-03-25 03:04:45 +000030880 else
cristyad38abe2012-12-23 23:03:21 +000030881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30882$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030883 fi
30884fi
30885
cristy71203402010-06-18 13:12:03 +000030886#
30887# Check for LCMS v1 (1.11 or later)
30888#
30889if test $have_lcms2 = 'yes'; then
30890 with_lcms='no'
30891fi
30892
30893have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030894if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30896$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30898$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30900$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030901 failed=0
30902 passed=0
30903 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030904
30905 # Check for <lcms.h>
30906 if test "$have_lcms_header" != 'yes'; then
30907 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030908if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030909 have_lcms_header='yes'
30910fi
30911
30912
cristy71203402010-06-18 13:12:03 +000030913 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030914 passed=`expr $passed + 1`
30915
cristy8b350f62009-11-15 23:12:43 +000030916$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030917
cristy71203402010-06-18 13:12:03 +000030918 fi
30919 fi
30920
30921 # Check for <lcms/lcms.h>
30922 if test "$have_lcms_header" != 'yes'; then
30923 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030924if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030925 have_lcms_header='yes'
30926fi
30927
30928
cristy71203402010-06-18 13:12:03 +000030929 if test "$have_lcms_header" = 'yes'; then
30930 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030931
cristy8b350f62009-11-15 23:12:43 +000030932$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030933
cristy71203402010-06-18 13:12:03 +000030934 fi
cristy3ed852e2009-09-05 21:47:34 +000030935 fi
cristy71203402010-06-18 13:12:03 +000030936
30937 # Failed to find lcms header?
30938 if test "$have_lcms_header" != 'yes'; then
30939 failed=`expr $failed + 1`
30940 fi
30941
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30943$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030944if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030945 $as_echo_n "(cached) " >&6
30946else
30947 ac_check_lib_save_LIBS=$LIBS
30948LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030950/* end confdefs.h. */
30951
30952/* Override any GCC internal prototype to avoid an error.
30953 Use char because int might match the return type of a GCC
30954 builtin and then its argument prototype would still apply. */
30955#ifdef __cplusplus
30956extern "C"
30957#endif
cristy71203402010-06-18 13:12:03 +000030958char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030959int
30960main ()
30961{
cristy71203402010-06-18 13:12:03 +000030962return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030963 ;
30964 return 0;
30965}
30966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030967if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030968 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030969else
cristy71203402010-06-18 13:12:03 +000030970 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030971fi
cristy8b350f62009-11-15 23:12:43 +000030972rm -f core conftest.err conftest.$ac_objext \
30973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030974LIBS=$ac_check_lib_save_LIBS
30975fi
cristy71203402010-06-18 13:12:03 +000030976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30977$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030978if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030979 passed=`expr $passed + 1`
30980else
30981 failed=`expr $failed + 1`
30982fi
30983
cristy8b350f62009-11-15 23:12:43 +000030984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985$as_echo_n "checking if LCMS package is complete... " >&6; }
30986 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030987 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30989$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030990 have_lcms='no (failed tests)'
30991 else
30992 LCMS_LIBS='-llcms'
30993 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30995$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030996 have_lcms='yes'
30997 fi
cristy3ed852e2009-09-05 21:47:34 +000030998 else
cristyad38abe2012-12-23 23:03:21 +000030999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31000$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031001 fi
31002fi
cristy71203402010-06-18 13:12:03 +000031003
cristy73bd4a52010-10-05 11:24:23 +000031004 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
31005 LCMS_DELEGATE_TRUE=
31006 LCMS_DELEGATE_FALSE='#'
31007else
31008 LCMS_DELEGATE_TRUE='#'
31009 LCMS_DELEGATE_FALSE=
31010fi
31011
cristy71203402010-06-18 13:12:03 +000031012if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
31013
31014$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
31015
31016fi
31017
cristy3ed852e2009-09-05 21:47:34 +000031018
31019
31020
31021#
31022# Check for the LQR (Liquid Rescale) delegate library.
31023#
31024
31025# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000031026if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031027 withval=$with_lqr; with_lqr=$withval
31028else
31029 with_lqr='yes'
31030fi
31031
31032
31033if test "$with_lqr" != 'yes'; then
31034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
31035fi
31036
31037have_lqr='no'
31038LQR_CFLAGS=""
31039LQR_LIBS=""
31040LQR_PKG=""
31041if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31043$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031044
31045pkg_failed=no
31046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
31047$as_echo_n "checking for LQR... " >&6; }
31048
31049if test -n "$LQR_CFLAGS"; then
31050 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
31051 elif test -n "$PKG_CONFIG"; then
31052 if test -n "$PKG_CONFIG" && \
31053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31054 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31055 ac_status=$?
31056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31057 test $ac_status = 0; }; then
31058 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
31059else
31060 pkg_failed=yes
31061fi
31062 else
31063 pkg_failed=untried
31064fi
31065if test -n "$LQR_LIBS"; then
31066 pkg_cv_LQR_LIBS="$LQR_LIBS"
31067 elif test -n "$PKG_CONFIG"; then
31068 if test -n "$PKG_CONFIG" && \
31069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31070 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31071 ac_status=$?
31072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31073 test $ac_status = 0; }; then
31074 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
31075else
31076 pkg_failed=yes
31077fi
31078 else
31079 pkg_failed=untried
31080fi
31081
31082
31083
31084if test $pkg_failed = yes; then
31085
31086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31087 _pkg_short_errors_supported=yes
31088else
31089 _pkg_short_errors_supported=no
31090fi
31091 if test $_pkg_short_errors_supported = yes; then
31092 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
31093 else
31094 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
31095 fi
31096 # Put the nasty error message in config.log where it belongs
31097 echo "$LQR_PKG_ERRORS" >&5
31098
31099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31100$as_echo "no" >&6; }
31101 have_lqr=no
31102elif test $pkg_failed = untried; then
31103 have_lqr=no
31104else
31105 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
31106 LQR_LIBS=$pkg_cv_LQR_LIBS
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31108$as_echo "yes" >&6; }
31109 have_lqr=yes
31110fi
cristyad38abe2012-12-23 23:03:21 +000031111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31112$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031113fi
31114
31115if test "$have_lqr" = 'yes'; then
31116
cristy8b350f62009-11-15 23:12:43 +000031117$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031118
31119 CFLAGS="$LQR_CFLAGS $CFLAGS"
31120fi
31121
cristy73bd4a52010-10-05 11:24:23 +000031122 if test "$have_lqr" = 'yes'; then
31123 LQR_DELEGATE_TRUE=
31124 LQR_DELEGATE_FALSE='#'
31125else
31126 LQR_DELEGATE_TRUE='#'
31127 LQR_DELEGATE_FALSE=
31128fi
31129
cristy3ed852e2009-09-05 21:47:34 +000031130
31131
31132
31133
cristy81beccd2011-10-03 18:17:24 +000031134# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000031135
31136# Check whether --with-lzma was given.
31137if test "${with_lzma+set}" = set; then :
31138 withval=$with_lzma; with_lzma=$withval
31139else
31140 with_lzma='yes'
31141fi
31142
cristy81beccd2011-10-03 18:17:24 +000031143if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000031144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
31145fi
31146
cristyb94e5002011-11-14 13:20:10 +000031147LZMA_PKG=""
31148if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31150$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031151
31152pkg_failed=no
31153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000031154$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000031155
31156if test -n "$LZMA_CFLAGS"; then
31157 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
31158 elif test -n "$PKG_CONFIG"; then
31159 if test -n "$PKG_CONFIG" && \
31160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31161 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31162 ac_status=$?
31163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }; then
31165 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
31166else
31167 pkg_failed=yes
31168fi
31169 else
31170 pkg_failed=untried
31171fi
31172if test -n "$LZMA_LIBS"; then
31173 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
31174 elif test -n "$PKG_CONFIG"; then
31175 if test -n "$PKG_CONFIG" && \
31176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31177 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31178 ac_status=$?
31179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31180 test $ac_status = 0; }; then
31181 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
31182else
31183 pkg_failed=yes
31184fi
31185 else
31186 pkg_failed=untried
31187fi
31188
31189
31190
31191if test $pkg_failed = yes; then
31192
31193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31194 _pkg_short_errors_supported=yes
31195else
31196 _pkg_short_errors_supported=no
31197fi
31198 if test $_pkg_short_errors_supported = yes; then
31199 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
31200 else
31201 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
31202 fi
31203 # Put the nasty error message in config.log where it belongs
31204 echo "$LZMA_PKG_ERRORS" >&5
31205
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31207$as_echo "no" >&6; }
31208 have_lzma=no
31209elif test $pkg_failed = untried; then
31210 have_lzma=no
31211else
31212 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
31213 LZMA_LIBS=$pkg_cv_LZMA_LIBS
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31215$as_echo "yes" >&6; }
31216 have_lzma=yes
31217fi
cristyad38abe2012-12-23 23:03:21 +000031218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31219$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000031220fi
31221
cristyb94e5002011-11-14 13:20:10 +000031222if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000031223
31224$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
31225
cristyc6722092012-10-14 00:19:31 +000031226 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000031227 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000031228 fi
cristyfbb0ef02010-12-19 02:32:11 +000031229fi
cristyb94e5002011-11-14 13:20:10 +000031230
cristyfbb0ef02010-12-19 02:32:11 +000031231 if test "$have_lzma" = 'yes'; then
31232 LZMA_DELEGATE_TRUE=
31233 LZMA_DELEGATE_FALSE='#'
31234else
31235 LZMA_DELEGATE_TRUE='#'
31236 LZMA_DELEGATE_FALSE=
31237fi
31238
31239
31240
31241
cristyb94e5002011-11-14 13:20:10 +000031242
cristy3ed852e2009-09-05 21:47:34 +000031243#
cristy854c9cf2013-08-10 21:03:06 +000031244# Check for MUPDF delegate library.
31245#
31246
31247# Check whether --with-mupdf was given.
31248if test "${with_mupdf+set}" = set; then :
31249 withval=$with_mupdf; with_mupdf=$withval
31250else
31251 with_mupdf='no'
31252fi
31253
31254
31255if test "$with_mupdf" != 'yes'; then
31256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
31257fi
31258
31259have_mupdf='no'
31260MUPDF_LIBS=''
31261if test "$with_mupdf" != 'no'; then
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31263$as_echo "-------------------------------------------------------------" >&6; }
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
31265$as_echo_n "checking for MUPDF... " >&6; }
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31267$as_echo "" >&6; }
31268 failed=0
31269 passed=0
31270 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
31271if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
31272 passed=`expr $passed + 1`
31273else
31274 failed=`expr $failed + 1`
31275fi
31276
31277
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
31279$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
31280if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
31281 $as_echo_n "(cached) " >&6
31282else
31283 ac_check_lib_save_LIBS=$LIBS
31284LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
31285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31286/* end confdefs.h. */
31287
31288/* Override any GCC internal prototype to avoid an error.
31289 Use char because int might match the return type of a GCC
31290 builtin and then its argument prototype would still apply. */
31291#ifdef __cplusplus
31292extern "C"
31293#endif
31294char fz_new_context ();
31295int
31296main ()
31297{
31298return fz_new_context ();
31299 ;
31300 return 0;
31301}
31302_ACEOF
31303if ac_fn_c_try_link "$LINENO"; then :
31304 ac_cv_lib_mupdf_fz_new_context=yes
31305else
31306 ac_cv_lib_mupdf_fz_new_context=no
31307fi
31308rm -f core conftest.err conftest.$ac_objext \
31309 conftest$ac_exeext conftest.$ac_ext
31310LIBS=$ac_check_lib_save_LIBS
31311fi
31312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
31313$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
31314if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
31315 passed=`expr $passed + 1`
31316else
31317 failed=`expr $failed + 1`
31318fi
31319
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
31321$as_echo_n "checking if MUPDF package is complete... " >&6; }
31322 if test $passed -gt 0; then
31323 if test $failed -gt 0; then
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31325$as_echo "no -- some components failed test" >&6; }
31326 have_mupdf='no (failed tests)'
31327 else
31328 MUPDF_LIBS='-lmupdf'
31329 LIBS="$MUPDF_LIBS $LIBS"
31330
31331$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
31332
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31334$as_echo "yes" >&6; }
31335 have_mupdf='yes'
31336 fi
31337 else
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31339$as_echo "no" >&6; }
31340 fi
31341fi
31342 if test "$have_mupdf" = 'yes'; then
31343 MUPDF_DELEGATE_TRUE=
31344 MUPDF_DELEGATE_FALSE='#'
31345else
31346 MUPDF_DELEGATE_TRUE='#'
31347 MUPDF_DELEGATE_FALSE=
31348fi
31349
31350
31351
31352
31353#
cristy3ed852e2009-09-05 21:47:34 +000031354# Check for the OpenEXR delegate library.
31355#
31356
31357# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000031358if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031359 withval=$with_openexr; with_openexr=$withval
31360else
31361 with_openexr='yes'
31362fi
31363
31364
31365if test "$with_openexr" != 'yes'; then
31366 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31367fi
31368
31369have_openexr='no'
31370OPENEXR_CFLAGS=""
31371OPENEXR_LIBS=""
31372OPENEXR_PKG=""
31373if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31375$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031376
31377pkg_failed=no
31378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31379$as_echo_n "checking for OPENEXR... " >&6; }
31380
31381if test -n "$OPENEXR_CFLAGS"; then
31382 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31383 elif test -n "$PKG_CONFIG"; then
31384 if test -n "$PKG_CONFIG" && \
31385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31386 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31387 ac_status=$?
31388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31389 test $ac_status = 0; }; then
31390 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
31391else
31392 pkg_failed=yes
31393fi
31394 else
31395 pkg_failed=untried
31396fi
31397if test -n "$OPENEXR_LIBS"; then
31398 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31399 elif test -n "$PKG_CONFIG"; then
31400 if test -n "$PKG_CONFIG" && \
31401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31402 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31403 ac_status=$?
31404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31405 test $ac_status = 0; }; then
31406 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
31407else
31408 pkg_failed=yes
31409fi
31410 else
31411 pkg_failed=untried
31412fi
31413
31414
31415
31416if test $pkg_failed = yes; then
31417
31418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31419 _pkg_short_errors_supported=yes
31420else
31421 _pkg_short_errors_supported=no
31422fi
31423 if test $_pkg_short_errors_supported = yes; then
31424 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
31425 else
31426 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
31427 fi
31428 # Put the nasty error message in config.log where it belongs
31429 echo "$OPENEXR_PKG_ERRORS" >&5
31430
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31432$as_echo "no" >&6; }
31433 have_openexr=no
31434elif test $pkg_failed = untried; then
31435 have_openexr=no
31436else
31437 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31438 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31440$as_echo "yes" >&6; }
31441 have_openexr=yes
31442fi
cristyad38abe2012-12-23 23:03:21 +000031443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31444$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031445fi
31446
31447if test "$have_openexr" = 'yes'; then
31448
cristy8b350f62009-11-15 23:12:43 +000031449$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031450
cristyc6722092012-10-14 00:19:31 +000031451 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031452 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31453 fi
31454fi
31455
cristy73bd4a52010-10-05 11:24:23 +000031456 if test "$have_openexr" = 'yes'; then
31457 OPENEXR_DELEGATE_TRUE=
31458 OPENEXR_DELEGATE_FALSE='#'
31459else
31460 OPENEXR_DELEGATE_TRUE='#'
31461 OPENEXR_DELEGATE_FALSE=
31462fi
31463
cristy3ed852e2009-09-05 21:47:34 +000031464
31465
31466
31467
31468#
cristy41cbe8a2011-10-27 01:35:18 +000031469# Check for PANGO delegate library.
31470#
31471
31472# Check whether --with-pango was given.
31473if test "${with_pango+set}" = set; then :
31474 withval=$with_pango; with_pango=$withval
31475else
cristyfc3d0222012-02-07 15:05:57 +000031476 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031477fi
31478
31479
31480if test "$with_pango" != 'yes'; then
31481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31482fi
31483
31484have_pango='no'
cristya054b762012-03-26 23:16:00 +000031485have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031486PANGO_CFLAGS=""
31487PANGO_LIBS=""
31488PANGO_PKG=""
31489if test "x$with_pango" = "xyes"; then
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31491$as_echo "-------------------------------------------------------------" >&6; }
31492
31493pkg_failed=no
31494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31495$as_echo_n "checking for PANGO... " >&6; }
31496
31497if test -n "$PANGO_CFLAGS"; then
31498 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31499 elif test -n "$PKG_CONFIG"; then
31500 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31502 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031503 ac_status=$?
31504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31505 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031506 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031507else
31508 pkg_failed=yes
31509fi
31510 else
31511 pkg_failed=untried
31512fi
31513if test -n "$PANGO_LIBS"; then
31514 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31515 elif test -n "$PKG_CONFIG"; then
31516 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31518 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031519 ac_status=$?
31520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31521 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031522 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031523else
31524 pkg_failed=yes
31525fi
31526 else
31527 pkg_failed=untried
31528fi
31529
31530
31531
31532if test $pkg_failed = yes; then
31533
31534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31535 _pkg_short_errors_supported=yes
31536else
31537 _pkg_short_errors_supported=no
31538fi
31539 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031540 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031541 else
cristya054b762012-03-26 23:16:00 +000031542 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031543 fi
31544 # Put the nasty error message in config.log where it belongs
31545 echo "$PANGO_PKG_ERRORS" >&5
31546
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031549 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031550elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031551 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031552else
31553 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31554 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31556$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031557 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031558fi
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31560$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031561
31562pkg_failed=no
31563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31564$as_echo_n "checking for PANGO... " >&6; }
31565
31566if test -n "$PANGO_CFLAGS"; then
31567 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31568 elif test -n "$PKG_CONFIG"; then
31569 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31571 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031572 ac_status=$?
31573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31574 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031575 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031576else
31577 pkg_failed=yes
31578fi
31579 else
31580 pkg_failed=untried
31581fi
31582if test -n "$PANGO_LIBS"; then
31583 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31584 elif test -n "$PKG_CONFIG"; then
31585 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31587 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031588 ac_status=$?
31589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31590 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031591 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031592else
31593 pkg_failed=yes
31594fi
31595 else
31596 pkg_failed=untried
31597fi
31598
31599
31600
31601if test $pkg_failed = yes; then
31602
31603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31604 _pkg_short_errors_supported=yes
31605else
31606 _pkg_short_errors_supported=no
31607fi
31608 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031609 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031610 else
cristy2542fc62011-12-06 17:50:25 +000031611 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031612 fi
31613 # Put the nasty error message in config.log where it belongs
31614 echo "$PANGO_PKG_ERRORS" >&5
31615
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617$as_echo "no" >&6; }
31618 have_pango=no
31619elif test $pkg_failed = untried; then
31620 have_pango=no
31621else
31622 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31623 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31625$as_echo "yes" >&6; }
31626 have_pango=yes
31627fi
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31629$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031630fi
31631
31632if test "$have_pango" = 'yes'; then
31633
31634$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31635
cristyc6722092012-10-14 00:19:31 +000031636 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031637 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31638 fi
31639fi
31640
cristya054b762012-03-26 23:16:00 +000031641if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031642
cristya054b762012-03-26 23:16:00 +000031643$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031644
cristyc6722092012-10-14 00:19:31 +000031645 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031646 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031647 fi
31648fi
31649
31650 if test "$have_pango" = 'yes'; then
31651 PANGO_DELEGATE_TRUE=
31652 PANGO_DELEGATE_FALSE='#'
31653else
31654 PANGO_DELEGATE_TRUE='#'
31655 PANGO_DELEGATE_FALSE=
31656fi
31657
cristya054b762012-03-26 23:16:00 +000031658 if test "$have_pangocairo" = 'yes'; then
31659 PANGOCAIRO_DELEGATE_TRUE=
31660 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031661else
cristya054b762012-03-26 23:16:00 +000031662 PANGOCAIRO_DELEGATE_TRUE='#'
31663 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031664fi
31665
31666
31667
31668
31669
31670#
cristy3ed852e2009-09-05 21:47:34 +000031671# Check for PNG delegate library.
31672#
31673
31674# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031675if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031676 withval=$with_png; with_png=$withval
31677else
31678 with_png='yes'
31679fi
31680
31681
31682if test "$with_png" != 'yes'; then
31683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31684fi
31685
cristy81beccd2011-10-03 18:17:24 +000031686have_png='no'
31687PNG_LIBS=''
31688
31689if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31691$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31693$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31695$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031696 failed=0
31697 passed=0
31698 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31699if test "x$ac_cv_header_png_h" = xyes; then :
31700 passed=`expr $passed + 1`
31701else
31702 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031703fi
31704
cristy81beccd2011-10-03 18:17:24 +000031705
31706
31707 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031708 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031709 if test "$have_png" = 'no' ; then
31710 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031711 pnglib='png'
31712 else
31713 pnglib="png1${var}"
31714 fi
31715
31716# Test for compatible LIBPNG library
31717 failed=0
31718 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031719 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031720 if test "${pnglib}" != 'png' ; then
31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31722$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31724/* end confdefs.h. */
31725#include <stdio.h>
31726#include <stdlib.h>
31727#include <png.h>
31728
31729int
31730main ()
31731{
31732
31733#if PNG_LIBPNG_VER_MINOR != ${var}
31734#error LIBPNG library must be version 1${var}!
31735Kaboom, Kaboom
31736#endif
31737return 0;
31738
31739 ;
31740 return 0;
31741}
31742_ACEOF
31743if ac_fn_c_try_compile "$LINENO"; then :
31744 ac_cv_libpng_ok='yes'
31745else
31746 ac_cv_libpng_ok='no'
31747fi
31748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31749 if test "$ac_cv_libpng_ok" = 'yes' ; then
31750 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31752$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031753 else
31754 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31756$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031757 fi
31758 else
31759 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31761$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031762 fi
31763 fi
31764
31765 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031766 if test "1${var}" = '17' ; then
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31768$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31769if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31770 $as_echo_n "(cached) " >&6
31771else
31772 ac_check_lib_save_LIBS=$LIBS
31773LIBS="-lpng17 $LIBS"
31774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31775/* end confdefs.h. */
31776
31777/* Override any GCC internal prototype to avoid an error.
31778 Use char because int might match the return type of a GCC
31779 builtin and then its argument prototype would still apply. */
31780#ifdef __cplusplus
31781extern "C"
31782#endif
31783char png_get_io_ptr ();
31784int
31785main ()
31786{
31787return png_get_io_ptr ();
31788 ;
31789 return 0;
31790}
31791_ACEOF
31792if ac_fn_c_try_link "$LINENO"; then :
31793 ac_cv_lib_png17_png_get_io_ptr=yes
31794else
31795 ac_cv_lib_png17_png_get_io_ptr=no
31796fi
31797rm -f core conftest.err conftest.$ac_objext \
31798 conftest$ac_exeext conftest.$ac_ext
31799LIBS=$ac_check_lib_save_LIBS
31800fi
31801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31802$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31803if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31804 passed=`expr $passed + 1`
31805else
31806 failed=`expr $failed + 1`
31807fi
31808
31809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31810$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31811if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31812 $as_echo_n "(cached) " >&6
31813else
31814 ac_check_lib_save_LIBS=$LIBS
31815LIBS="-lpng17 $LIBS"
31816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817/* end confdefs.h. */
31818
31819/* Override any GCC internal prototype to avoid an error.
31820 Use char because int might match the return type of a GCC
31821 builtin and then its argument prototype would still apply. */
31822#ifdef __cplusplus
31823extern "C"
31824#endif
31825char png_longjmp ();
31826int
31827main ()
31828{
31829return png_longjmp ();
31830 ;
31831 return 0;
31832}
31833_ACEOF
31834if ac_fn_c_try_link "$LINENO"; then :
31835 ac_cv_lib_png17_png_longjmp=yes
31836else
31837 ac_cv_lib_png17_png_longjmp=no
31838fi
31839rm -f core conftest.err conftest.$ac_objext \
31840 conftest$ac_exeext conftest.$ac_ext
31841LIBS=$ac_check_lib_save_LIBS
31842fi
31843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31844$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31845if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31846 passed=`expr $passed + 1`
31847else
31848 failed=`expr $failed + 1`
31849fi
31850
31851 fi
31852 if test "1${var}" = '16' ; then
31853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31854$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31855if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31856 $as_echo_n "(cached) " >&6
31857else
31858 ac_check_lib_save_LIBS=$LIBS
31859LIBS="-lpng16 $LIBS"
31860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31861/* end confdefs.h. */
31862
31863/* Override any GCC internal prototype to avoid an error.
31864 Use char because int might match the return type of a GCC
31865 builtin and then its argument prototype would still apply. */
31866#ifdef __cplusplus
31867extern "C"
31868#endif
31869char png_get_io_ptr ();
31870int
31871main ()
31872{
31873return png_get_io_ptr ();
31874 ;
31875 return 0;
31876}
31877_ACEOF
31878if ac_fn_c_try_link "$LINENO"; then :
31879 ac_cv_lib_png16_png_get_io_ptr=yes
31880else
31881 ac_cv_lib_png16_png_get_io_ptr=no
31882fi
31883rm -f core conftest.err conftest.$ac_objext \
31884 conftest$ac_exeext conftest.$ac_ext
31885LIBS=$ac_check_lib_save_LIBS
31886fi
31887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31888$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31889if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31890 passed=`expr $passed + 1`
31891else
31892 failed=`expr $failed + 1`
31893fi
31894
31895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31896$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31897if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31898 $as_echo_n "(cached) " >&6
31899else
31900 ac_check_lib_save_LIBS=$LIBS
31901LIBS="-lpng16 $LIBS"
31902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31903/* end confdefs.h. */
31904
31905/* Override any GCC internal prototype to avoid an error.
31906 Use char because int might match the return type of a GCC
31907 builtin and then its argument prototype would still apply. */
31908#ifdef __cplusplus
31909extern "C"
31910#endif
31911char png_longjmp ();
31912int
31913main ()
31914{
31915return png_longjmp ();
31916 ;
31917 return 0;
31918}
31919_ACEOF
31920if ac_fn_c_try_link "$LINENO"; then :
31921 ac_cv_lib_png16_png_longjmp=yes
31922else
31923 ac_cv_lib_png16_png_longjmp=no
31924fi
31925rm -f core conftest.err conftest.$ac_objext \
31926 conftest$ac_exeext conftest.$ac_ext
31927LIBS=$ac_check_lib_save_LIBS
31928fi
31929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31930$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31931if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31932 passed=`expr $passed + 1`
31933else
31934 failed=`expr $failed + 1`
31935fi
31936
31937 fi
cristy81beccd2011-10-03 18:17:24 +000031938 if test "1${var}" = '15' ; then
31939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31940$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31941if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31942 $as_echo_n "(cached) " >&6
31943else
31944 ac_check_lib_save_LIBS=$LIBS
31945LIBS="-lpng15 $LIBS"
31946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31947/* end confdefs.h. */
31948
31949/* Override any GCC internal prototype to avoid an error.
31950 Use char because int might match the return type of a GCC
31951 builtin and then its argument prototype would still apply. */
31952#ifdef __cplusplus
31953extern "C"
31954#endif
31955char png_get_io_ptr ();
31956int
31957main ()
31958{
31959return png_get_io_ptr ();
31960 ;
31961 return 0;
31962}
31963_ACEOF
31964if ac_fn_c_try_link "$LINENO"; then :
31965 ac_cv_lib_png15_png_get_io_ptr=yes
31966else
31967 ac_cv_lib_png15_png_get_io_ptr=no
31968fi
31969rm -f core conftest.err conftest.$ac_objext \
31970 conftest$ac_exeext conftest.$ac_ext
31971LIBS=$ac_check_lib_save_LIBS
31972fi
31973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31974$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31975if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31976 passed=`expr $passed + 1`
31977else
31978 failed=`expr $failed + 1`
31979fi
31980
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31982$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31983if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31984 $as_echo_n "(cached) " >&6
31985else
31986 ac_check_lib_save_LIBS=$LIBS
31987LIBS="-lpng15 $LIBS"
31988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31989/* end confdefs.h. */
31990
31991/* Override any GCC internal prototype to avoid an error.
31992 Use char because int might match the return type of a GCC
31993 builtin and then its argument prototype would still apply. */
31994#ifdef __cplusplus
31995extern "C"
31996#endif
31997char png_longjmp ();
31998int
31999main ()
32000{
32001return png_longjmp ();
32002 ;
32003 return 0;
32004}
32005_ACEOF
32006if ac_fn_c_try_link "$LINENO"; then :
32007 ac_cv_lib_png15_png_longjmp=yes
32008else
32009 ac_cv_lib_png15_png_longjmp=no
32010fi
32011rm -f core conftest.err conftest.$ac_objext \
32012 conftest$ac_exeext conftest.$ac_ext
32013LIBS=$ac_check_lib_save_LIBS
32014fi
32015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
32016$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
32017if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
32018 passed=`expr $passed + 1`
32019else
32020 failed=`expr $failed + 1`
32021fi
32022
32023 fi
32024 if test "1${var}" = '14' ; then
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
32026$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
32027if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
32028 $as_echo_n "(cached) " >&6
32029else
32030 ac_check_lib_save_LIBS=$LIBS
32031LIBS="-lpng14 $LIBS"
32032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32033/* end confdefs.h. */
32034
32035/* Override any GCC internal prototype to avoid an error.
32036 Use char because int might match the return type of a GCC
32037 builtin and then its argument prototype would still apply. */
32038#ifdef __cplusplus
32039extern "C"
32040#endif
32041char png_get_io_ptr ();
32042int
32043main ()
32044{
32045return png_get_io_ptr ();
32046 ;
32047 return 0;
32048}
32049_ACEOF
32050if ac_fn_c_try_link "$LINENO"; then :
32051 ac_cv_lib_png14_png_get_io_ptr=yes
32052else
32053 ac_cv_lib_png14_png_get_io_ptr=no
32054fi
32055rm -f core conftest.err conftest.$ac_objext \
32056 conftest$ac_exeext conftest.$ac_ext
32057LIBS=$ac_check_lib_save_LIBS
32058fi
32059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
32060$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
32061if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
32062 passed=`expr $passed + 1`
32063else
32064 failed=`expr $failed + 1`
32065fi
32066
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
32068$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
32069if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
32070 $as_echo_n "(cached) " >&6
32071else
32072 ac_check_lib_save_LIBS=$LIBS
32073LIBS="-lpng14 $LIBS"
32074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32075/* end confdefs.h. */
32076
32077/* Override any GCC internal prototype to avoid an error.
32078 Use char because int might match the return type of a GCC
32079 builtin and then its argument prototype would still apply. */
32080#ifdef __cplusplus
32081extern "C"
32082#endif
32083char png_get_io_state ();
32084int
32085main ()
32086{
32087return png_get_io_state ();
32088 ;
32089 return 0;
32090}
32091_ACEOF
32092if ac_fn_c_try_link "$LINENO"; then :
32093 ac_cv_lib_png14_png_get_io_state=yes
32094else
32095 ac_cv_lib_png14_png_get_io_state=no
32096fi
32097rm -f core conftest.err conftest.$ac_objext \
32098 conftest$ac_exeext conftest.$ac_ext
32099LIBS=$ac_check_lib_save_LIBS
32100fi
32101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
32102$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
32103if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
32104 passed=`expr $passed + 1`
32105else
32106 failed=`expr $failed + 1`
32107fi
32108
32109 fi
32110 if test "1${var}" = '12' ; then
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
32112$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
32113if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
32114 $as_echo_n "(cached) " >&6
32115else
32116 ac_check_lib_save_LIBS=$LIBS
32117LIBS="-lpng12 $LIBS"
32118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32119/* end confdefs.h. */
32120
32121/* Override any GCC internal prototype to avoid an error.
32122 Use char because int might match the return type of a GCC
32123 builtin and then its argument prototype would still apply. */
32124#ifdef __cplusplus
32125extern "C"
32126#endif
32127char png_get_io_ptr ();
32128int
32129main ()
32130{
32131return png_get_io_ptr ();
32132 ;
32133 return 0;
32134}
32135_ACEOF
32136if ac_fn_c_try_link "$LINENO"; then :
32137 ac_cv_lib_png12_png_get_io_ptr=yes
32138else
32139 ac_cv_lib_png12_png_get_io_ptr=no
32140fi
32141rm -f core conftest.err conftest.$ac_objext \
32142 conftest$ac_exeext conftest.$ac_ext
32143LIBS=$ac_check_lib_save_LIBS
32144fi
32145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
32146$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
32147if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
32148 passed=`expr $passed + 1`
32149else
32150 failed=`expr $failed + 1`
32151fi
32152
32153 fi
32154 if test "1${var}" = '1' ; then
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
32156$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
32157if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
32158 $as_echo_n "(cached) " >&6
32159else
32160 ac_check_lib_save_LIBS=$LIBS
32161LIBS="-lpng $LIBS"
32162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32163/* end confdefs.h. */
32164
32165/* Override any GCC internal prototype to avoid an error.
32166 Use char because int might match the return type of a GCC
32167 builtin and then its argument prototype would still apply. */
32168#ifdef __cplusplus
32169extern "C"
32170#endif
32171char png_get_io_ptr ();
32172int
32173main ()
32174{
32175return png_get_io_ptr ();
32176 ;
32177 return 0;
32178}
32179_ACEOF
32180if ac_fn_c_try_link "$LINENO"; then :
32181 ac_cv_lib_png_png_get_io_ptr=yes
32182else
32183 ac_cv_lib_png_png_get_io_ptr=no
32184fi
32185rm -f core conftest.err conftest.$ac_objext \
32186 conftest$ac_exeext conftest.$ac_ext
32187LIBS=$ac_check_lib_save_LIBS
32188fi
32189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
32190$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
32191if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
32192 passed=`expr $passed + 1`
32193else
32194 failed=`expr $failed + 1`
32195fi
32196
32197 fi
32198 if test $passed -gt 0 -a $failed -le 0 ; then
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
32200$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
32201 if test $passed -gt 0 ; then
32202 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32204$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032205 have_png='no (failed tests)'
32206 else
32207 PNG_LIBS="-l${pnglib}"
32208 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032209
cristy8b350f62009-11-15 23:12:43 +000032210$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032211
cristyad38abe2012-12-23 23:03:21 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32213$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032214 have_png='yes'
32215 fi
32216 fi
32217 fi
32218 fi
32219 fi
32220 done
32221 fi
cristy3ed852e2009-09-05 21:47:34 +000032222fi
cristy64877302011-08-23 19:10:31 +000032223
cristy73bd4a52010-10-05 11:24:23 +000032224 if test "$have_png" = 'yes'; then
32225 PNG_DELEGATE_TRUE=
32226 PNG_DELEGATE_FALSE='#'
32227else
32228 PNG_DELEGATE_TRUE='#'
32229 PNG_DELEGATE_FALSE=
32230fi
32231
cristy3ed852e2009-09-05 21:47:34 +000032232
cristy50d3f5c2011-09-10 20:09:06 +000032233
cristy3ed852e2009-09-05 21:47:34 +000032234
32235
32236#
32237# Check for RSVG delegate library.
32238#
32239
32240# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000032241if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032242 withval=$with_rsvg; with_rsvg=$withval
32243else
cristy1164d5f2012-08-15 00:58:25 +000032244 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000032245fi
32246
32247
32248if test "$with_rsvg" != 'yes'; then
32249 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
32250fi
32251
32252have_rsvg='no'
32253have_cairo='no'
32254RSVG_CFLAGS=""
32255RSVG_LIBS=""
32256RSVG_PKG=""
32257if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000032258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32259$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032260
32261pkg_failed=no
32262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
32263$as_echo_n "checking for RSVG... " >&6; }
32264
32265if test -n "$RSVG_CFLAGS"; then
32266 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
32267 elif test -n "$PKG_CONFIG"; then
32268 if test -n "$PKG_CONFIG" && \
32269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32270 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32271 ac_status=$?
32272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32273 test $ac_status = 0; }; then
32274 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32275else
32276 pkg_failed=yes
32277fi
32278 else
32279 pkg_failed=untried
32280fi
32281if test -n "$RSVG_LIBS"; then
32282 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
32283 elif test -n "$PKG_CONFIG"; then
32284 if test -n "$PKG_CONFIG" && \
32285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32286 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32287 ac_status=$?
32288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32289 test $ac_status = 0; }; then
32290 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32291else
32292 pkg_failed=yes
32293fi
32294 else
32295 pkg_failed=untried
32296fi
32297
32298
32299
32300if test $pkg_failed = yes; then
32301
32302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32303 _pkg_short_errors_supported=yes
32304else
32305 _pkg_short_errors_supported=no
32306fi
32307 if test $_pkg_short_errors_supported = yes; then
32308 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
32309 else
32310 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
32311 fi
32312 # Put the nasty error message in config.log where it belongs
32313 echo "$RSVG_PKG_ERRORS" >&5
32314
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32316$as_echo "no" >&6; }
32317 have_rsvg=no
32318elif test $pkg_failed = untried; then
32319 have_rsvg=no
32320else
32321 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
32322 RSVG_LIBS=$pkg_cv_RSVG_LIBS
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32324$as_echo "yes" >&6; }
32325 have_rsvg=yes
32326fi
cristyad38abe2012-12-23 23:03:21 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32328$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032329
32330pkg_failed=no
32331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
32332$as_echo_n "checking for CAIRO_SVG... " >&6; }
32333
32334if test -n "$CAIRO_SVG_CFLAGS"; then
32335 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
32336 elif test -n "$PKG_CONFIG"; then
32337 if test -n "$PKG_CONFIG" && \
32338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32339 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32340 ac_status=$?
32341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32342 test $ac_status = 0; }; then
32343 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
32344else
32345 pkg_failed=yes
32346fi
32347 else
32348 pkg_failed=untried
32349fi
32350if test -n "$CAIRO_SVG_LIBS"; then
32351 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32352 elif test -n "$PKG_CONFIG"; then
32353 if test -n "$PKG_CONFIG" && \
32354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32355 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32356 ac_status=$?
32357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32358 test $ac_status = 0; }; then
32359 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
32360else
32361 pkg_failed=yes
32362fi
32363 else
32364 pkg_failed=untried
32365fi
32366
32367
32368
32369if test $pkg_failed = yes; then
32370
32371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32372 _pkg_short_errors_supported=yes
32373else
32374 _pkg_short_errors_supported=no
32375fi
32376 if test $_pkg_short_errors_supported = yes; then
32377 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
32378 else
32379 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
32380 fi
32381 # Put the nasty error message in config.log where it belongs
32382 echo "$CAIRO_SVG_PKG_ERRORS" >&5
32383
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32385$as_echo "no" >&6; }
32386 have_cairo=no
32387elif test $pkg_failed = untried; then
32388 have_cairo=no
32389else
32390 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32391 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32393$as_echo "yes" >&6; }
32394 have_cairo=yes
32395fi
cristyad38abe2012-12-23 23:03:21 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32397$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032398fi
32399
32400if test "$have_rsvg" = 'yes'; then
32401
cristy8b350f62009-11-15 23:12:43 +000032402$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032403
cristyc6722092012-10-14 00:19:31 +000032404 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032405 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
32406 fi
32407fi
32408
32409if test "$have_cairo" = 'yes'; then
32410
cristy8b350f62009-11-15 23:12:43 +000032411$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032412
cristyc6722092012-10-14 00:19:31 +000032413 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032414 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
32415 fi
32416fi
32417
cristy73bd4a52010-10-05 11:24:23 +000032418 if test "$have_rsvg" = 'yes'; then
32419 RSVG_DELEGATE_TRUE=
32420 RSVG_DELEGATE_FALSE='#'
32421else
32422 RSVG_DELEGATE_TRUE='#'
32423 RSVG_DELEGATE_FALSE=
32424fi
32425
32426 if test "$have_cairo" = 'yes'; then
32427 CAIRO_DELEGATE_TRUE=
32428 CAIRO_DELEGATE_FALSE='#'
32429else
32430 CAIRO_DELEGATE_TRUE='#'
32431 CAIRO_DELEGATE_FALSE=
32432fi
32433
cristy3ed852e2009-09-05 21:47:34 +000032434
32435
32436
32437
32438#
32439# Check for TIFF delegate library.
32440#
32441
32442# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032443if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032444 withval=$with_tiff; with_tiff=$withval
32445else
32446 with_tiff='yes'
32447fi
32448
32449
32450if test "$with_tiff" != 'yes'; then
32451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32452fi
32453
32454have_tiff='no'
32455TIFF_LIBS=''
32456if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32458$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032460$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32462$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032463 failed=0
32464 passed=0
cristy8b350f62009-11-15 23:12:43 +000032465 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032466if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032467 passed=`expr $passed + 1`
32468else
32469 failed=`expr $failed + 1`
32470fi
32471
32472
cristy8b350f62009-11-15 23:12:43 +000032473 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032474if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032475 passed=`expr $passed + 1`
32476else
32477 failed=`expr $failed + 1`
32478fi
32479
32480
cristy8b350f62009-11-15 23:12:43 +000032481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032483if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032484 $as_echo_n "(cached) " >&6
32485else
32486 ac_check_lib_save_LIBS=$LIBS
32487LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032489/* end confdefs.h. */
32490
32491/* Override any GCC internal prototype to avoid an error.
32492 Use char because int might match the return type of a GCC
32493 builtin and then its argument prototype would still apply. */
32494#ifdef __cplusplus
32495extern "C"
32496#endif
32497char TIFFOpen ();
32498int
32499main ()
32500{
32501return TIFFOpen ();
32502 ;
32503 return 0;
32504}
32505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032507 ac_cv_lib_tiff_TIFFOpen=yes
32508else
cristy8b350f62009-11-15 23:12:43 +000032509 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032510fi
cristy8b350f62009-11-15 23:12:43 +000032511rm -f core conftest.err conftest.$ac_objext \
32512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032513LIBS=$ac_check_lib_save_LIBS
32514fi
cristy8b350f62009-11-15 23:12:43 +000032515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032516$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032517if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032518 passed=`expr $passed + 1`
32519else
32520 failed=`expr $failed + 1`
32521fi
32522
cristy8b350f62009-11-15 23:12:43 +000032523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032524$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032525if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032526 $as_echo_n "(cached) " >&6
32527else
32528 ac_check_lib_save_LIBS=$LIBS
32529LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032531/* end confdefs.h. */
32532
32533/* Override any GCC internal prototype to avoid an error.
32534 Use char because int might match the return type of a GCC
32535 builtin and then its argument prototype would still apply. */
32536#ifdef __cplusplus
32537extern "C"
32538#endif
32539char TIFFClientOpen ();
32540int
32541main ()
32542{
32543return TIFFClientOpen ();
32544 ;
32545 return 0;
32546}
32547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032548if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032549 ac_cv_lib_tiff_TIFFClientOpen=yes
32550else
cristy8b350f62009-11-15 23:12:43 +000032551 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032552fi
cristy8b350f62009-11-15 23:12:43 +000032553rm -f core conftest.err conftest.$ac_objext \
32554 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032555LIBS=$ac_check_lib_save_LIBS
32556fi
cristy8b350f62009-11-15 23:12:43 +000032557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032559if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032560 passed=`expr $passed + 1`
32561else
32562 failed=`expr $failed + 1`
32563fi
32564
cristy8b350f62009-11-15 23:12:43 +000032565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032566$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032567if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032568 $as_echo_n "(cached) " >&6
32569else
32570 ac_check_lib_save_LIBS=$LIBS
32571LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032573/* end confdefs.h. */
32574
32575/* Override any GCC internal prototype to avoid an error.
32576 Use char because int might match the return type of a GCC
32577 builtin and then its argument prototype would still apply. */
32578#ifdef __cplusplus
32579extern "C"
32580#endif
32581char TIFFIsByteSwapped ();
32582int
32583main ()
32584{
32585return TIFFIsByteSwapped ();
32586 ;
32587 return 0;
32588}
32589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032591 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32592else
cristy8b350f62009-11-15 23:12:43 +000032593 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032594fi
cristy8b350f62009-11-15 23:12:43 +000032595rm -f core conftest.err conftest.$ac_objext \
32596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032597LIBS=$ac_check_lib_save_LIBS
32598fi
cristy8b350f62009-11-15 23:12:43 +000032599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032600$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032601if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032602 passed=`expr $passed + 1`
32603else
32604 failed=`expr $failed + 1`
32605fi
32606
cristy8b350f62009-11-15 23:12:43 +000032607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032608$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032609if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032610 $as_echo_n "(cached) " >&6
32611else
32612 ac_check_lib_save_LIBS=$LIBS
32613LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032615/* end confdefs.h. */
32616
32617/* Override any GCC internal prototype to avoid an error.
32618 Use char because int might match the return type of a GCC
32619 builtin and then its argument prototype would still apply. */
32620#ifdef __cplusplus
32621extern "C"
32622#endif
32623char TIFFReadRGBATile ();
32624int
32625main ()
32626{
32627return TIFFReadRGBATile ();
32628 ;
32629 return 0;
32630}
32631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032633 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32634else
cristy8b350f62009-11-15 23:12:43 +000032635 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032636fi
cristy8b350f62009-11-15 23:12:43 +000032637rm -f core conftest.err conftest.$ac_objext \
32638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032639LIBS=$ac_check_lib_save_LIBS
32640fi
cristy8b350f62009-11-15 23:12:43 +000032641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032643if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032644 passed=`expr $passed + 1`
32645else
32646 failed=`expr $failed + 1`
32647fi
32648
cristy8b350f62009-11-15 23:12:43 +000032649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032650$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032651if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032652 $as_echo_n "(cached) " >&6
32653else
32654 ac_check_lib_save_LIBS=$LIBS
32655LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032657/* end confdefs.h. */
32658
32659/* Override any GCC internal prototype to avoid an error.
32660 Use char because int might match the return type of a GCC
32661 builtin and then its argument prototype would still apply. */
32662#ifdef __cplusplus
32663extern "C"
32664#endif
32665char TIFFReadRGBAStrip ();
32666int
32667main ()
32668{
32669return TIFFReadRGBAStrip ();
32670 ;
32671 return 0;
32672}
32673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032675 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32676else
cristy8b350f62009-11-15 23:12:43 +000032677 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032678fi
cristy8b350f62009-11-15 23:12:43 +000032679rm -f core conftest.err conftest.$ac_objext \
32680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032681LIBS=$ac_check_lib_save_LIBS
32682fi
cristy8b350f62009-11-15 23:12:43 +000032683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032685if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032686 passed=`expr $passed + 1`
32687else
32688 failed=`expr $failed + 1`
32689fi
32690
cristy8b350f62009-11-15 23:12:43 +000032691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032692$as_echo_n "checking if TIFF package is complete... " >&6; }
32693 if test $passed -gt 0; then
32694 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32696$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032697 have_tiff='no (failed tests)'
32698 else
32699 TIFF_LIBS='-ltiff'
32700 LIBS="$TIFF_LIBS $LIBS"
32701
cristy8b350f62009-11-15 23:12:43 +000032702$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032703
cristyad38abe2012-12-23 23:03:21 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32705$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032706 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032707 for ac_header in tiffconf.h
32708do :
32709 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032710if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032711 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032712#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032713_ACEOF
32714
32715fi
32716
32717done
32718
cristy8b350f62009-11-15 23:12:43 +000032719 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032720 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32721 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32722 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032723do :
32724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32725ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032726if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032727 cat >>confdefs.h <<_ACEOF
32728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32729_ACEOF
32730
32731fi
32732done
32733
32734 fi
32735 else
cristyad38abe2012-12-23 23:03:21 +000032736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32737$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032738 fi
32739fi
cristy73bd4a52010-10-05 11:24:23 +000032740 if test "$have_tiff" = 'yes'; then
32741 TIFF_DELEGATE_TRUE=
32742 TIFF_DELEGATE_FALSE='#'
32743else
32744 TIFF_DELEGATE_TRUE='#'
32745 TIFF_DELEGATE_FALSE=
32746fi
32747
cristy3ed852e2009-09-05 21:47:34 +000032748
32749
32750
32751#
cristyb1860752011-03-14 00:27:46 +000032752# Check for WEBP delegate library.
32753#
32754
32755# Check whether --with-webp was given.
32756if test "${with_webp+set}" = set; then :
32757 withval=$with_webp; with_webp=$withval
32758else
32759 with_webp='yes'
32760fi
32761
32762
32763if test "$with_webp" != 'yes'; then
32764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32765fi
32766
32767have_webp='no'
32768WEBP_LIBS=''
32769if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32771$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32773$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32775$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032776 failed=0
32777 passed=0
32778 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32779if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32780 passed=`expr $passed + 1`
32781else
32782 failed=`expr $failed + 1`
32783fi
32784
32785
cristy6d670312013-03-22 23:23:01 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32787$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32788if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032789 $as_echo_n "(cached) " >&6
32790else
32791 ac_check_lib_save_LIBS=$LIBS
32792LIBS="-lwebp $LIBS"
32793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32794/* end confdefs.h. */
32795
32796/* Override any GCC internal prototype to avoid an error.
32797 Use char because int might match the return type of a GCC
32798 builtin and then its argument prototype would still apply. */
32799#ifdef __cplusplus
32800extern "C"
32801#endif
cristy6d670312013-03-22 23:23:01 +000032802char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032803int
32804main ()
32805{
cristy6d670312013-03-22 23:23:01 +000032806return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032807 ;
32808 return 0;
32809}
32810_ACEOF
32811if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032812 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032813else
cristy6d670312013-03-22 23:23:01 +000032814 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032815fi
32816rm -f core conftest.err conftest.$ac_objext \
32817 conftest$ac_exeext conftest.$ac_ext
32818LIBS=$ac_check_lib_save_LIBS
32819fi
cristy6d670312013-03-22 23:23:01 +000032820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32821$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32822if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032823 passed=`expr $passed + 1`
32824else
32825 failed=`expr $failed + 1`
32826fi
32827
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32829$as_echo_n "checking if WEBP package is complete... " >&6; }
32830 if test $passed -gt 0; then
32831 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32833$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032834 have_webp='no (failed tests)'
32835 else
32836 WEBP_LIBS='-lwebp'
32837 LIBS="$WEBP_LIBS $LIBS"
32838
32839$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32840
cristyad38abe2012-12-23 23:03:21 +000032841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032843 have_webp='yes'
32844 fi
32845 else
cristyad38abe2012-12-23 23:03:21 +000032846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32847$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032848 fi
32849fi
32850 if test "$have_webp" = 'yes'; then
32851 WEBP_DELEGATE_TRUE=
32852 WEBP_DELEGATE_FALSE='#'
32853else
32854 WEBP_DELEGATE_TRUE='#'
32855 WEBP_DELEGATE_FALSE=
32856fi
32857
32858
32859
32860
32861#
cristy3ed852e2009-09-05 21:47:34 +000032862# Set Windows font directory.
32863#
32864
32865# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032866if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032867 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32868else
32869 with_windows_font_dir=''
32870fi
32871
32872if test "$with_windows_font_dir" != '' ; then
32873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32874fi
32875
32876
32877#
32878# Check for WMF delegate library.
32879#
32880
32881# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032882if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032883 withval=$with_wmf; with_wmf=$withval
32884else
cristyfc3d0222012-02-07 15:05:57 +000032885 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032886fi
32887
32888
32889if test "$with_wmf" != 'yes'; then
32890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32891fi
32892
32893have_wmf='no'
32894WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032895WMF_LIBS_DEPS=''
32896OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032897if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32899$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32903$as_echo "" >&6; }
32904 have_libwmf='no'
32905 have_libwmflite='no'
32906 have_libwmf_ipa_h='no'
32907
32908 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32909"
32910if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32911 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032912fi
32913
32914
cristy03f7cf92011-12-15 01:40:41 +000032915 if test "$have_libwmf_ipa_h" = 'yes'; then
32916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32917$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32918if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032922LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032924/* end confdefs.h. */
32925
32926/* Override any GCC internal prototype to avoid an error.
32927 Use char because int might match the return type of a GCC
32928 builtin and then its argument prototype would still apply. */
32929#ifdef __cplusplus
32930extern "C"
32931#endif
cristy03f7cf92011-12-15 01:40:41 +000032932char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032933int
32934main ()
32935{
cristy03f7cf92011-12-15 01:40:41 +000032936return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032937 ;
32938 return 0;
32939}
32940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032941if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032942 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032943else
cristy03f7cf92011-12-15 01:40:41 +000032944 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032945fi
cristy8b350f62009-11-15 23:12:43 +000032946rm -f core conftest.err conftest.$ac_objext \
32947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032948LIBS=$ac_check_lib_save_LIBS
32949fi
cristy03f7cf92011-12-15 01:40:41 +000032950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32951$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32952if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32953 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032954fi
32955
cristy03f7cf92011-12-15 01:40:41 +000032956 if test "$have_libwmflite" = 'yes'; then
32957
32958$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32959
32960 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032961 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032962 have_wmf='yes'
32963 else
32964 WMF_LIBS_DEPS=''
32965 WMF_CONFIG_LIBS=`libwmf-config --libs`
32966 for lib in xml2 expat freetype jpeg png z; do
32967 testlib="-l${lib}"
32968 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32969 done
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32971$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32972if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32973 $as_echo_n "(cached) " >&6
32974else
32975 ac_check_lib_save_LIBS=$LIBS
32976LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32978/* end confdefs.h. */
32979
32980/* Override any GCC internal prototype to avoid an error.
32981 Use char because int might match the return type of a GCC
32982 builtin and then its argument prototype would still apply. */
32983#ifdef __cplusplus
32984extern "C"
32985#endif
32986char wmf_api_create ();
32987int
32988main ()
32989{
32990return wmf_api_create ();
32991 ;
32992 return 0;
32993}
32994_ACEOF
32995if ac_fn_c_try_link "$LINENO"; then :
32996 ac_cv_lib_wmf_wmf_api_create=yes
32997else
32998 ac_cv_lib_wmf_wmf_api_create=no
32999fi
33000rm -f core conftest.err conftest.$ac_objext \
33001 conftest$ac_exeext conftest.$ac_ext
33002LIBS=$ac_check_lib_save_LIBS
33003fi
33004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
33005$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
33006if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
33007 have_libwmf='yes'
33008fi
33009
33010 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033011
cristy8b350f62009-11-15 23:12:43 +000033012$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033013
cristy03f7cf92011-12-15 01:40:41 +000033014 WMF_LIBS='-lwmf'
33015 LIBS="$WMF_LIBS $LIBS"
33016 have_wmf='yes'
33017 else
33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33019$as_echo "no -- some components failed test" >&6; }
33020 have_wmf='no (failed tests)'
33021 have_wmflite='no (failed tests)'
33022 LIBS="$OLIBS"
33023 WMF_LIBS=''
33024 fi
glennrp33e524b2011-08-24 17:41:57 +000033025 fi
cristy03f7cf92011-12-15 01:40:41 +000033026 fi
33027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
33028$as_echo_n "checking if WMF package is complete... " >&6; }
33029 if test "$have_wmf" = 'yes'; then
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33031$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000033032 else
cristy03f7cf92011-12-15 01:40:41 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000033035 fi
cristy3ed852e2009-09-05 21:47:34 +000033036fi
cristy73bd4a52010-10-05 11:24:23 +000033037 if test "$have_wmf" = 'yes'; then
33038 WMF_DELEGATE_TRUE=
33039 WMF_DELEGATE_FALSE='#'
33040else
33041 WMF_DELEGATE_TRUE='#'
33042 WMF_DELEGATE_FALSE=
33043fi
33044
cristy3ed852e2009-09-05 21:47:34 +000033045
33046
33047
cristy81beccd2011-10-03 18:17:24 +000033048
33049
cristy3ed852e2009-09-05 21:47:34 +000033050#
33051# Check for XML delegate library.
33052#
33053
33054# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000033055if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000033056 withval=$with_xml; with_xml=$withval
33057else
cristyfc3d0222012-02-07 15:05:57 +000033058 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000033059fi
33060
33061
cristy81beccd2011-10-03 18:17:24 +000033062if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000033063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
33064fi
33065
cristy81beccd2011-10-03 18:17:24 +000033066have_xml='no'
33067XML_LIBS=''
33068if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33070$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000033071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
33072$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33074$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000033075 PERSIST_LDFLAGS=$LDFLAGS
33076 PERSIST_CPPFLAGS=$CPPFLAGS
33077 xml2_config=''
33078 # Extract the first word of "xml2-config", so it can be a program name with args.
33079set dummy xml2-config; ac_word=$2
33080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33081$as_echo_n "checking for $ac_word... " >&6; }
33082if ${ac_cv_path_xml2_config+:} false; then :
33083 $as_echo_n "(cached) " >&6
33084else
33085 case $xml2_config in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
33095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000033097 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
33098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33099 break 2
33100 fi
33101done
33102 done
33103IFS=$as_save_IFS
33104
33105 ;;
33106esac
33107fi
33108xml2_config=$ac_cv_path_xml2_config
33109if test -n "$xml2_config"; then
33110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
33111$as_echo "$xml2_config" >&6; }
33112else
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33114$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033115fi
33116
cristy81beccd2011-10-03 18:17:24 +000033117 if test -n "$xml2_config"; then
33118 # Debian installs libxml headers under /usr/include/libxml2/libxml with
33119 # the shared library installed under /usr/lib, whereas the package
33120 # installs itself under $prefix/libxml and $prefix/lib.
33121 xml2_prefix=`xml2-config --prefix`
33122 if test -d "${xml2_prefix}/include/libxml2"; then
33123 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
33124 fi
33125 if test "${xml2_prefix}" != '/usr'; then
33126 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
33127 fi
33128 fi
33129 failed=0
33130 passed=0
33131 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
33132if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
33133 passed=`expr $passed + 1`
33134else
33135 failed=`expr $failed + 1`
33136fi
33137
33138
33139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
33140$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
33141if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
33142 $as_echo_n "(cached) " >&6
33143else
33144 ac_check_lib_save_LIBS=$LIBS
33145LIBS="-lxml2 $LIBS"
33146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33147/* end confdefs.h. */
33148
33149/* Override any GCC internal prototype to avoid an error.
33150 Use char because int might match the return type of a GCC
33151 builtin and then its argument prototype would still apply. */
33152#ifdef __cplusplus
33153extern "C"
33154#endif
33155char xmlSAXVersion ();
33156int
33157main ()
33158{
33159return xmlSAXVersion ();
33160 ;
33161 return 0;
33162}
33163_ACEOF
33164if ac_fn_c_try_link "$LINENO"; then :
33165 ac_cv_lib_xml2_xmlSAXVersion=yes
33166else
33167 ac_cv_lib_xml2_xmlSAXVersion=no
33168fi
33169rm -f core conftest.err conftest.$ac_objext \
33170 conftest$ac_exeext conftest.$ac_ext
33171LIBS=$ac_check_lib_save_LIBS
33172fi
33173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
33174$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
33175if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
33176 passed=`expr $passed + 1`
33177else
33178 failed=`expr $failed + 1`
33179fi
33180
33181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
33182$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
33183if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
33184 $as_echo_n "(cached) " >&6
33185else
33186 ac_check_lib_save_LIBS=$LIBS
33187LIBS="-lxml2 $LIBS"
33188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33189/* end confdefs.h. */
33190
33191/* Override any GCC internal prototype to avoid an error.
33192 Use char because int might match the return type of a GCC
33193 builtin and then its argument prototype would still apply. */
33194#ifdef __cplusplus
33195extern "C"
33196#endif
33197char xmlParseChunk ();
33198int
33199main ()
33200{
33201return xmlParseChunk ();
33202 ;
33203 return 0;
33204}
33205_ACEOF
33206if ac_fn_c_try_link "$LINENO"; then :
33207 ac_cv_lib_xml2_xmlParseChunk=yes
33208else
33209 ac_cv_lib_xml2_xmlParseChunk=no
33210fi
33211rm -f core conftest.err conftest.$ac_objext \
33212 conftest$ac_exeext conftest.$ac_ext
33213LIBS=$ac_check_lib_save_LIBS
33214fi
33215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
33216$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
33217if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
33218 passed=`expr $passed + 1`
33219else
33220 failed=`expr $failed + 1`
33221fi
33222
33223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
33224$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
33225if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
33226 $as_echo_n "(cached) " >&6
33227else
33228 ac_check_lib_save_LIBS=$LIBS
33229LIBS="-lxml2 $LIBS"
33230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33231/* end confdefs.h. */
33232
33233/* Override any GCC internal prototype to avoid an error.
33234 Use char because int might match the return type of a GCC
33235 builtin and then its argument prototype would still apply. */
33236#ifdef __cplusplus
33237extern "C"
33238#endif
33239char xmlCreatePushParserCtxt ();
33240int
33241main ()
33242{
33243return xmlCreatePushParserCtxt ();
33244 ;
33245 return 0;
33246}
33247_ACEOF
33248if ac_fn_c_try_link "$LINENO"; then :
33249 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
33250else
33251 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
33252fi
33253rm -f core conftest.err conftest.$ac_objext \
33254 conftest$ac_exeext conftest.$ac_ext
33255LIBS=$ac_check_lib_save_LIBS
33256fi
33257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
33258$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
33259if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
33260 passed=`expr $passed + 1`
33261else
33262 failed=`expr $failed + 1`
33263fi
33264
33265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
33266$as_echo_n "checking if XML package is complete... " >&6; }
33267 if test $passed -gt 0; then
33268 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000033269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33270$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000033271 have_xml='no (failed tests)'
33272 LDFLAGS="$PERSIST_LDFLAGS"
33273 CPPFLAGS="$PERSIST_CPPFLAGS"
33274 else
33275 XML_LIBS='-lxml2'
33276 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000033277
cristy8b350f62009-11-15 23:12:43 +000033278$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033279
cristyad38abe2012-12-23 23:03:21 +000033280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33281$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000033282 have_xml='yes'
33283 fi
33284 else
cristyad38abe2012-12-23 23:03:21 +000033285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33286$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033287 fi
33288fi
cristy73bd4a52010-10-05 11:24:23 +000033289 if test "$have_xml" = 'yes'; then
33290 XML_DELEGATE_TRUE=
33291 XML_DELEGATE_FALSE='#'
33292else
33293 XML_DELEGATE_TRUE='#'
33294 XML_DELEGATE_FALSE=
33295fi
33296
cristy3ed852e2009-09-05 21:47:34 +000033297
33298
33299
33300# Substitute compiler name to build/link PerlMagick
33301#
33302
33303
33304#
33305# Configure install Paths
33306#
cristy7def36a2011-10-28 19:04:41 +000033307
cristy2a11bef2011-10-28 18:33:11 +000033308# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000033309INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000033310INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
33311DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000033312case "${build_os}" in
33313 mingw* )
33314 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
33315 ;;
33316esac
33317
33318cat >>confdefs.h <<_ACEOF
33319#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
33320_ACEOF
33321
33322
cristy3ed852e2009-09-05 21:47:34 +000033323
cristye52f12f2012-12-31 15:32:36 +000033324# Path to ImageMagick header files (arch part)
33325INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
33326DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
33327case "${build_os}" in
33328 mingw* )
33329 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
33330 ;;
33331esac
33332
33333cat >>confdefs.h <<_ACEOF
33334#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
33335_ACEOF
33336
33337
33338
cristy3ed852e2009-09-05 21:47:34 +000033339# Subdirectory under lib to place ImageMagick lib files
33340LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
33341
33342cat >>confdefs.h <<_ACEOF
33343#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
33344_ACEOF
33345
33346
33347# Path to ImageMagick bin directory
33348EXECUTABLE_PATH="${BIN_DIR}"
33349DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33350case "${build_os}" in
33351 mingw* )
33352 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33353 ;;
33354esac
33355
33356cat >>confdefs.h <<_ACEOF
33357#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33358_ACEOF
33359
33360
33361
33362# Path to ImageMagick lib
33363LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33364DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33365case "${build_os}" in
33366 mingw* )
33367 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33368 ;;
33369esac
33370
33371cat >>confdefs.h <<_ACEOF
33372#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33373_ACEOF
33374
33375
33376
cristy3ed852e2009-09-05 21:47:34 +000033377#
cristy8d0ff762013-03-10 20:33:28 +000033378# path to local binaries
33379if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33380 LIB_BIN_BASEDIRNAME="bin"
33381fi
33382
33383cat >>confdefs.h <<_ACEOF
33384#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33385_ACEOF
33386
33387
33388
33389if test "x$LIB_BIN_DIR" = "x"; then
33390 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33391fi
33392
33393
33394LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33395
33396LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33397
33398
33399#
cristy01ff9f32012-12-01 18:15:29 +000033400# path to modules lib
33401if test "x$MODULES_BASEDIRNAME" = "x"; then
33402 MODULES_BASEDIRNAME="modules"
33403fi
cristy3ed852e2009-09-05 21:47:34 +000033404
33405cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033406#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033407_ACEOF
33408
cristy01ff9f32012-12-01 18:15:29 +000033409
33410
33411if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000033412 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33413else
cristy3ed852e2009-09-05 21:47:34 +000033414
33415cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033416#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033417_ACEOF
33418
cristycf4a3c22012-12-02 21:47:25 +000033419fi
cristy01ff9f32012-12-01 18:15:29 +000033420
33421
cristy371d4812012-12-01 19:48:10 +000033422MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033423
33424MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33425
33426
33427#
33428# path to coders lib
33429if test "x$CODER_DIRNAME" = "x"; then
33430 CODER_DIRNAME="coders"
33431fi
33432
33433cat >>confdefs.h <<_ACEOF
33434#define CODER_DIRNAME "$CODER_DIRNAME"
33435_ACEOF
33436
33437
33438
cristy371d4812012-12-01 19:48:10 +000033439CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033440CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033441
33442
33443#
33444# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033445#
33446# path to coders lib
33447if test "x$FILTER_DIRNAME" = "x"; then
33448 FILTER_DIRNAME="filters"
33449fi
cristy3ed852e2009-09-05 21:47:34 +000033450
33451cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033452#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033453_ACEOF
33454
cristy3ed852e2009-09-05 21:47:34 +000033455
cristy3ed852e2009-09-05 21:47:34 +000033456
cristy371d4812012-12-01 19:48:10 +000033457FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033458FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033459
33460
33461#
33462# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033463DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033464DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33465DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033466case "${build_os}" in
33467 mingw* )
33468 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33469 ;;
33470esac
33471
33472cat >>confdefs.h <<_ACEOF
33473#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33474_ACEOF
33475
33476
33477
cristy2a11bef2011-10-28 18:33:11 +000033478# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033479CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033480
33481cat >>confdefs.h <<_ACEOF
33482#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33483_ACEOF
33484
cristy7def36a2011-10-28 19:04:41 +000033485CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033486DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33487case "${build_os}" in
33488 mingw* )
33489 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33490 ;;
33491esac
33492
33493cat >>confdefs.h <<_ACEOF
33494#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33495_ACEOF
33496
33497
33498
cristy2a11bef2011-10-28 18:33:11 +000033499# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033500SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033501
33502cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033503#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033504_ACEOF
33505
cristy670aa3c2011-11-03 00:54:00 +000033506SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033507DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033508case "${build_os}" in
33509 mingw* )
cristy4f820712011-04-01 12:35:43 +000033510 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033511 ;;
33512esac
33513
33514cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033515#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033516_ACEOF
33517
33518
33519
cristy54378032012-12-04 15:52:20 +000033520#
33521# Subdirectory to place architecture-dependent configuration files.
33522if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33523 SHAREARCH_BASEDIRNAME="config"
33524fi
cristy670aa3c2011-11-03 00:54:00 +000033525
33526cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033527#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033528_ACEOF
33529
cristy54378032012-12-04 15:52:20 +000033530
33531
33532if test "x$SHAREARCH_DIRNAME" = "x"; then
33533 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33534else
cristy670aa3c2011-11-03 00:54:00 +000033535
33536cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033537#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033538_ACEOF
33539
cristy54378032012-12-04 15:52:20 +000033540fi
33541
33542
33543SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33544
33545SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033546
33547
cristy3ed852e2009-09-05 21:47:34 +000033548#
33549# program_transform_name is formed for use in a Makefile, so create a
33550# modified version for use in a shell script.
33551configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33552
33553# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33555$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033557$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33559$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033560AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000033561BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033562BZIPDelegateDefault='bzip2'
33563BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033564CatDelegateDefault='cat'
33565DNGDecodeDelegateDefault='ufraw-batch'
33566GVCDecodeDelegateDefault='dot'
33567DVIDecodeDelegateDefault='dvips'
33568EchoDelegateDefault='echo'
33569EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033570ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33571DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33572MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33573GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033574HPGLDecodeDelegateDefault='hp2xx'
33575HTMLDecodeDelegateDefault='html2ps'
33576ILBMDecodeDelegateDefault='ilbmtoppm'
33577ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033578JXRDecodeDelegateDefault='JxrDecApp'
33579JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033580LPDelegateDefault='lp'
33581LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033582LaunchDelegateDefault='gimp'
33583MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033584MPEGDecodeDelegateDefault='avconv'
33585MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033586MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033587MVDelegateDefault='mv'
33588PCLDelegateDefault='pcl6'
33589PGPDecodeDelegateDefault='pgpv'
33590POVDelegateDefault='povray'
33591if test "$native_win32_build" = 'yes'; then
33592 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033593elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033594 PSDelegateDefault='gsc'
33595else
33596 PSDelegateDefault='gs'
33597fi
33598RLEEncodeDelegateDefault='rawtorle'
33599RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033600RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033601SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033602SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033603TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033604UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033605WebPDecodeDelegateDefault='dwebp'
33606WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033607WMFDecodeDelegateDefault='wmf2eps'
33608WWWDecodeDelegateDefault='curl'
33609XPSDelegateDefault='gxps'
33610ZipDelegateDefault='gzip'
33611
33612# Search for delegates
33613# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33614set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033617if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033618 $as_echo_n "(cached) " >&6
33619else
33620 case $AutotraceDecodeDelegate in
33621 [\\/]* | ?:[\\/]*)
33622 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33623 ;;
33624 *)
33625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33626for as_dir in $PATH
33627do
33628 IFS=$as_save_IFS
33629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033632 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033634 break 2
33635 fi
33636done
cristy8b350f62009-11-15 23:12:43 +000033637 done
cristy3ed852e2009-09-05 21:47:34 +000033638IFS=$as_save_IFS
33639
33640 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33641 ;;
33642esac
33643fi
33644AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33645if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647$as_echo "$AutotraceDecodeDelegate" >&6; }
33648else
cristy8b350f62009-11-15 23:12:43 +000033649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033650$as_echo "no" >&6; }
33651fi
33652
33653
cristy3ed852e2009-09-05 21:47:34 +000033654# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33655set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033658if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033659 $as_echo_n "(cached) " >&6
33660else
33661 case $BlenderDecodeDelegate in
33662 [\\/]* | ?:[\\/]*)
33663 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33664 ;;
33665 *)
33666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667for as_dir in $PATH
33668do
33669 IFS=$as_save_IFS
33670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033673 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675 break 2
33676 fi
33677done
cristy8b350f62009-11-15 23:12:43 +000033678 done
cristy3ed852e2009-09-05 21:47:34 +000033679IFS=$as_save_IFS
33680
33681 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33682 ;;
33683esac
33684fi
33685BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33686if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "$BlenderDecodeDelegate" >&6; }
33689else
cristy8b350f62009-11-15 23:12:43 +000033690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033691$as_echo "no" >&6; }
33692fi
33693
33694
33695# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33696set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033699if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033700 $as_echo_n "(cached) " >&6
33701else
33702 case $BZIPDelegate in
33703 [\\/]* | ?:[\\/]*)
33704 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33705 ;;
33706 *)
33707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33708for as_dir in $PATH
33709do
33710 IFS=$as_save_IFS
33711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033714 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033716 break 2
33717 fi
33718done
cristy8b350f62009-11-15 23:12:43 +000033719 done
cristy3ed852e2009-09-05 21:47:34 +000033720IFS=$as_save_IFS
33721
33722 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33723 ;;
33724esac
33725fi
33726BZIPDelegate=$ac_cv_path_BZIPDelegate
33727if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo "$BZIPDelegate" >&6; }
33730else
cristy8b350f62009-11-15 23:12:43 +000033731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033732$as_echo "no" >&6; }
33733fi
33734
33735
cristyc59f0e72012-08-27 12:59:33 +000033736for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33737do
33738 # Extract the first word of "$ac_prog", so it can be a program name with args.
33739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $BrowseDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033757 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
cristy3ed852e2009-09-05 21:47:34 +000033765 ;;
33766esac
33767fi
33768BrowseDelegate=$ac_cv_path_BrowseDelegate
33769if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "$BrowseDelegate" >&6; }
33772else
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "no" >&6; }
33775fi
33776
33777
cristyc59f0e72012-08-27 12:59:33 +000033778 test -n "$BrowseDelegate" && break
33779done
33780test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33781
cristy3ed852e2009-09-05 21:47:34 +000033782# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33783set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033786if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033787 $as_echo_n "(cached) " >&6
33788else
33789 case $CatDelegate in
33790 [\\/]* | ?:[\\/]*)
33791 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33792 ;;
33793 *)
33794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33795for as_dir in $PATH
33796do
33797 IFS=$as_save_IFS
33798 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033801 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033803 break 2
33804 fi
33805done
cristy8b350f62009-11-15 23:12:43 +000033806 done
cristy3ed852e2009-09-05 21:47:34 +000033807IFS=$as_save_IFS
33808
33809 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33810 ;;
33811esac
33812fi
33813CatDelegate=$ac_cv_path_CatDelegate
33814if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816$as_echo "$CatDelegate" >&6; }
33817else
cristy8b350f62009-11-15 23:12:43 +000033818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo "no" >&6; }
33820fi
33821
33822
33823# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33824set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033827if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033828 $as_echo_n "(cached) " >&6
33829else
33830 case $DNGDecodeDelegate in
33831 [\\/]* | ?:[\\/]*)
33832 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33833 ;;
33834 *)
33835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33836for as_dir in $PATH
33837do
33838 IFS=$as_save_IFS
33839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033842 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844 break 2
33845 fi
33846done
cristy8b350f62009-11-15 23:12:43 +000033847 done
cristy3ed852e2009-09-05 21:47:34 +000033848IFS=$as_save_IFS
33849
33850 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33851 ;;
33852esac
33853fi
33854DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33855if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "$DNGDecodeDelegate" >&6; }
33858else
cristy8b350f62009-11-15 23:12:43 +000033859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo "no" >&6; }
33861fi
33862
33863
33864# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33865set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033868if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033869 $as_echo_n "(cached) " >&6
33870else
33871 case $GVCDecodeDelegate in
33872 [\\/]* | ?:[\\/]*)
33873 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33874 ;;
33875 *)
33876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33877for as_dir in $PATH
33878do
33879 IFS=$as_save_IFS
33880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033883 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885 break 2
33886 fi
33887done
cristy8b350f62009-11-15 23:12:43 +000033888 done
cristy3ed852e2009-09-05 21:47:34 +000033889IFS=$as_save_IFS
33890
33891 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33892 ;;
33893esac
33894fi
33895GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33896if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "$GVCDecodeDelegate" >&6; }
33899else
cristy8b350f62009-11-15 23:12:43 +000033900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo "no" >&6; }
33902fi
33903
33904
33905# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33906set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033909if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033910 $as_echo_n "(cached) " >&6
33911else
33912 case $DVIDecodeDelegate in
33913 [\\/]* | ?:[\\/]*)
33914 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33915 ;;
33916 *)
33917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33918for as_dir in $PATH
33919do
33920 IFS=$as_save_IFS
33921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033924 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033926 break 2
33927 fi
33928done
cristy8b350f62009-11-15 23:12:43 +000033929 done
cristy3ed852e2009-09-05 21:47:34 +000033930IFS=$as_save_IFS
33931
33932 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33933 ;;
33934esac
33935fi
33936DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33937if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939$as_echo "$DVIDecodeDelegate" >&6; }
33940else
cristy8b350f62009-11-15 23:12:43 +000033941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942$as_echo "no" >&6; }
33943fi
33944
33945
33946# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33947set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033950if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033951 $as_echo_n "(cached) " >&6
33952else
33953 case $EchoDelegate in
33954 [\\/]* | ?:[\\/]*)
33955 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33956 ;;
33957 *)
33958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33959for as_dir in $PATH
33960do
33961 IFS=$as_save_IFS
33962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033965 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033967 break 2
33968 fi
33969done
cristy8b350f62009-11-15 23:12:43 +000033970 done
cristy3ed852e2009-09-05 21:47:34 +000033971IFS=$as_save_IFS
33972
33973 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33974 ;;
33975esac
33976fi
33977EchoDelegate=$ac_cv_path_EchoDelegate
33978if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo "$EchoDelegate" >&6; }
33981else
cristy8b350f62009-11-15 23:12:43 +000033982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983$as_echo "no" >&6; }
33984fi
33985
33986
33987# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33988set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033991if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033992 $as_echo_n "(cached) " >&6
33993else
33994 case $EditorDelegate in
33995 [\\/]* | ?:[\\/]*)
33996 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33997 ;;
33998 *)
33999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34000for as_dir in $PATH
34001do
34002 IFS=$as_save_IFS
34003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034006 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008 break 2
34009 fi
34010done
cristy8b350f62009-11-15 23:12:43 +000034011 done
cristy3ed852e2009-09-05 21:47:34 +000034012IFS=$as_save_IFS
34013
34014 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
34015 ;;
34016esac
34017fi
34018EditorDelegate=$ac_cv_path_EditorDelegate
34019if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021$as_echo "$EditorDelegate" >&6; }
34022else
cristy8b350f62009-11-15 23:12:43 +000034023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024$as_echo "no" >&6; }
34025fi
34026
34027
cristy3ed852e2009-09-05 21:47:34 +000034028# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
34029set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034032if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034033 $as_echo_n "(cached) " >&6
34034else
34035 case $ConvertDelegate in
34036 [\\/]* | ?:[\\/]*)
34037 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
34038 ;;
34039 *)
34040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34041for as_dir in $PATH
34042do
34043 IFS=$as_save_IFS
34044 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034047 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034049 break 2
34050 fi
34051done
cristy8b350f62009-11-15 23:12:43 +000034052 done
cristy3ed852e2009-09-05 21:47:34 +000034053IFS=$as_save_IFS
34054
34055 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
34056 ;;
34057esac
34058fi
34059ConvertDelegate=$ac_cv_path_ConvertDelegate
34060if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062$as_echo "$ConvertDelegate" >&6; }
34063else
cristy8b350f62009-11-15 23:12:43 +000034064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo "no" >&6; }
34066fi
34067
34068
34069# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
34070set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034073if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034074 $as_echo_n "(cached) " >&6
34075else
34076 case $DisplayDelegate in
34077 [\\/]* | ?:[\\/]*)
34078 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
34079 ;;
34080 *)
34081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34082for as_dir in $PATH
34083do
34084 IFS=$as_save_IFS
34085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034088 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034090 break 2
34091 fi
34092done
cristy8b350f62009-11-15 23:12:43 +000034093 done
cristy3ed852e2009-09-05 21:47:34 +000034094IFS=$as_save_IFS
34095
34096 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
34097 ;;
34098esac
34099fi
34100DisplayDelegate=$ac_cv_path_DisplayDelegate
34101if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034103$as_echo "$DisplayDelegate" >&6; }
34104else
cristy8b350f62009-11-15 23:12:43 +000034105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106$as_echo "no" >&6; }
34107fi
34108
34109
34110# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34111set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034113$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034114if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034115 $as_echo_n "(cached) " >&6
34116else
34117 case $MogrifyDelegate in
34118 [\\/]* | ?:[\\/]*)
34119 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34120 ;;
34121 *)
34122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34123for as_dir in $PATH
34124do
34125 IFS=$as_save_IFS
34126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034129 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034131 break 2
34132 fi
34133done
cristy8b350f62009-11-15 23:12:43 +000034134 done
cristy3ed852e2009-09-05 21:47:34 +000034135IFS=$as_save_IFS
34136
34137 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34138 ;;
34139esac
34140fi
34141MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34142if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144$as_echo "$MogrifyDelegate" >&6; }
34145else
cristy8b350f62009-11-15 23:12:43 +000034146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034147$as_echo "no" >&6; }
34148fi
34149
34150
34151# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
34152set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034155if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034156 $as_echo_n "(cached) " >&6
34157else
34158 case $GnuplotDecodeDelegate in
34159 [\\/]* | ?:[\\/]*)
34160 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
34161 ;;
34162 *)
34163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34164for as_dir in $PATH
34165do
34166 IFS=$as_save_IFS
34167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034170 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172 break 2
34173 fi
34174done
cristy8b350f62009-11-15 23:12:43 +000034175 done
cristy3ed852e2009-09-05 21:47:34 +000034176IFS=$as_save_IFS
34177
34178 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
34179 ;;
34180esac
34181fi
34182GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
34183if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034185$as_echo "$GnuplotDecodeDelegate" >&6; }
34186else
cristy8b350f62009-11-15 23:12:43 +000034187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188$as_echo "no" >&6; }
34189fi
34190
34191
cristy3ed852e2009-09-05 21:47:34 +000034192# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
34193set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034196if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034197 $as_echo_n "(cached) " >&6
34198else
34199 case $HPGLDecodeDelegate in
34200 [\\/]* | ?:[\\/]*)
34201 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
34202 ;;
34203 *)
34204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34205for as_dir in $PATH
34206do
34207 IFS=$as_save_IFS
34208 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034209 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034211 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213 break 2
34214 fi
34215done
cristy8b350f62009-11-15 23:12:43 +000034216 done
cristy3ed852e2009-09-05 21:47:34 +000034217IFS=$as_save_IFS
34218
34219 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
34220 ;;
34221esac
34222fi
34223HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
34224if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo "$HPGLDecodeDelegate" >&6; }
34227else
cristy8b350f62009-11-15 23:12:43 +000034228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034229$as_echo "no" >&6; }
34230fi
34231
34232
34233# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
34234set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034237if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034238 $as_echo_n "(cached) " >&6
34239else
34240 case $HTMLDecodeDelegate in
34241 [\\/]* | ?:[\\/]*)
34242 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34243 ;;
34244 *)
34245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34246for as_dir in $PATH
34247do
34248 IFS=$as_save_IFS
34249 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034252 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034254 break 2
34255 fi
34256done
cristy8b350f62009-11-15 23:12:43 +000034257 done
cristy3ed852e2009-09-05 21:47:34 +000034258IFS=$as_save_IFS
34259
34260 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34261 ;;
34262esac
34263fi
34264HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34265if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo "$HTMLDecodeDelegate" >&6; }
34268else
cristy8b350f62009-11-15 23:12:43 +000034269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034270$as_echo "no" >&6; }
34271fi
34272
34273
34274# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34275set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034278if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034279 $as_echo_n "(cached) " >&6
34280else
34281 case $ILBMDecodeDelegate in
34282 [\\/]* | ?:[\\/]*)
34283 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34284 ;;
34285 *)
34286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34287for as_dir in $PATH
34288do
34289 IFS=$as_save_IFS
34290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034293 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295 break 2
34296 fi
34297done
cristy8b350f62009-11-15 23:12:43 +000034298 done
cristy3ed852e2009-09-05 21:47:34 +000034299IFS=$as_save_IFS
34300
34301 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34302 ;;
34303esac
34304fi
34305ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34306if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034308$as_echo "$ILBMDecodeDelegate" >&6; }
34309else
cristy8b350f62009-11-15 23:12:43 +000034310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034311$as_echo "no" >&6; }
34312fi
34313
34314
34315# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34316set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034319if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034320 $as_echo_n "(cached) " >&6
34321else
34322 case $ILBMEncodeDelegate in
34323 [\\/]* | ?:[\\/]*)
34324 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34325 ;;
34326 *)
34327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34328for as_dir in $PATH
34329do
34330 IFS=$as_save_IFS
34331 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034334 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034336 break 2
34337 fi
34338done
cristy8b350f62009-11-15 23:12:43 +000034339 done
cristy3ed852e2009-09-05 21:47:34 +000034340IFS=$as_save_IFS
34341
34342 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34343 ;;
34344esac
34345fi
34346ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34347if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034349$as_echo "$ILBMEncodeDelegate" >&6; }
34350else
cristy8b350f62009-11-15 23:12:43 +000034351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034352$as_echo "no" >&6; }
34353fi
34354
34355
cristy71f53d52013-04-27 13:33:59 +000034356# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34357set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34359$as_echo_n "checking for $ac_word... " >&6; }
34360if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34361 $as_echo_n "(cached) " >&6
34362else
34363 case $JXRDecodeDelegate in
34364 [\\/]* | ?:[\\/]*)
34365 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34366 ;;
34367 *)
34368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369for as_dir in $PATH
34370do
34371 IFS=$as_save_IFS
34372 test -z "$as_dir" && as_dir=.
34373 for ac_exec_ext in '' $ac_executable_extensions; do
34374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34375 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34377 break 2
34378 fi
34379done
34380 done
34381IFS=$as_save_IFS
34382
34383 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34384 ;;
34385esac
34386fi
34387JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34388if test -n "$JXRDecodeDelegate"; then
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34390$as_echo "$JXRDecodeDelegate" >&6; }
34391else
34392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34393$as_echo "no" >&6; }
34394fi
34395
34396
34397# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34398set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34400$as_echo_n "checking for $ac_word... " >&6; }
34401if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34402 $as_echo_n "(cached) " >&6
34403else
34404 case $JXREncodeDelegate in
34405 [\\/]* | ?:[\\/]*)
34406 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34407 ;;
34408 *)
34409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34410for as_dir in $PATH
34411do
34412 IFS=$as_save_IFS
34413 test -z "$as_dir" && as_dir=.
34414 for ac_exec_ext in '' $ac_executable_extensions; do
34415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34416 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34418 break 2
34419 fi
34420done
34421 done
34422IFS=$as_save_IFS
34423
34424 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34425 ;;
34426esac
34427fi
34428JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34429if test -n "$JXREncodeDelegate"; then
34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34431$as_echo "$JXREncodeDelegate" >&6; }
34432else
34433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34434$as_echo "no" >&6; }
34435fi
34436
34437
cristy3ed852e2009-09-05 21:47:34 +000034438# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34439set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034442if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034443 $as_echo_n "(cached) " >&6
34444else
34445 case $LPDelegate in
34446 [\\/]* | ?:[\\/]*)
34447 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34448 ;;
34449 *)
34450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34451for as_dir in $PATH
34452do
34453 IFS=$as_save_IFS
34454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034457 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034459 break 2
34460 fi
34461done
cristy8b350f62009-11-15 23:12:43 +000034462 done
cristy3ed852e2009-09-05 21:47:34 +000034463IFS=$as_save_IFS
34464
34465 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34466 ;;
34467esac
34468fi
34469LPDelegate=$ac_cv_path_LPDelegate
34470if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472$as_echo "$LPDelegate" >&6; }
34473else
cristy8b350f62009-11-15 23:12:43 +000034474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034475$as_echo "no" >&6; }
34476fi
34477
34478
34479# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34480set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034483if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034484 $as_echo_n "(cached) " >&6
34485else
34486 case $LPRDelegate in
34487 [\\/]* | ?:[\\/]*)
34488 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34489 ;;
34490 *)
34491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34492for as_dir in $PATH
34493do
34494 IFS=$as_save_IFS
34495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034498 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034500 break 2
34501 fi
34502done
cristy8b350f62009-11-15 23:12:43 +000034503 done
cristy3ed852e2009-09-05 21:47:34 +000034504IFS=$as_save_IFS
34505
34506 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34507 ;;
34508esac
34509fi
34510LPRDelegate=$ac_cv_path_LPRDelegate
34511if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo "$LPRDelegate" >&6; }
34514else
cristy8b350f62009-11-15 23:12:43 +000034515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034516$as_echo "no" >&6; }
34517fi
34518
34519
cristy3ed852e2009-09-05 21:47:34 +000034520# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34521set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034524if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034525 $as_echo_n "(cached) " >&6
34526else
34527 case $LaunchDelegate in
34528 [\\/]* | ?:[\\/]*)
34529 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34530 ;;
34531 *)
34532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34533for as_dir in $PATH
34534do
34535 IFS=$as_save_IFS
34536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034539 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034541 break 2
34542 fi
34543done
cristy8b350f62009-11-15 23:12:43 +000034544 done
cristy3ed852e2009-09-05 21:47:34 +000034545IFS=$as_save_IFS
34546
34547 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34548 ;;
34549esac
34550fi
34551LaunchDelegate=$ac_cv_path_LaunchDelegate
34552if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo "$LaunchDelegate" >&6; }
34555else
cristy8b350f62009-11-15 23:12:43 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034557$as_echo "no" >&6; }
34558fi
34559
34560
34561# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34562set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034565if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034566 $as_echo_n "(cached) " >&6
34567else
34568 case $MANDelegate in
34569 [\\/]* | ?:[\\/]*)
34570 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34571 ;;
34572 *)
34573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34574for as_dir in $PATH
34575do
34576 IFS=$as_save_IFS
34577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034580 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034582 break 2
34583 fi
34584done
cristy8b350f62009-11-15 23:12:43 +000034585 done
cristy3ed852e2009-09-05 21:47:34 +000034586IFS=$as_save_IFS
34587
34588 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34589 ;;
34590esac
34591fi
34592MANDelegate=$ac_cv_path_MANDelegate
34593if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo "$MANDelegate" >&6; }
34596else
cristy8b350f62009-11-15 23:12:43 +000034597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo "no" >&6; }
34599fi
34600
34601
34602# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34603set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034606if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034607 $as_echo_n "(cached) " >&6
34608else
34609 case $MPEGDecodeDelegate in
34610 [\\/]* | ?:[\\/]*)
34611 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34612 ;;
34613 *)
34614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34615for as_dir in $PATH
34616do
34617 IFS=$as_save_IFS
34618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034621 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034623 break 2
34624 fi
34625done
cristy8b350f62009-11-15 23:12:43 +000034626 done
cristy3ed852e2009-09-05 21:47:34 +000034627IFS=$as_save_IFS
34628
34629 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34630 ;;
34631esac
34632fi
34633MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34634if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034636$as_echo "$MPEGDecodeDelegate" >&6; }
34637else
cristy8b350f62009-11-15 23:12:43 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034639$as_echo "no" >&6; }
34640fi
34641
34642
cristy81ab5af2013-10-06 18:28:39 +000034643if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
34644 MPEGDecodeDelegateDefault='ffmpeg'
34645 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34646set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34648$as_echo_n "checking for $ac_word... " >&6; }
34649if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34650 $as_echo_n "(cached) " >&6
34651else
34652 case $MPEGDecodeDelegate in
34653 [\\/]* | ?:[\\/]*)
34654 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34655 ;;
34656 *)
34657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34658for as_dir in $PATH
34659do
34660 IFS=$as_save_IFS
34661 test -z "$as_dir" && as_dir=.
34662 for ac_exec_ext in '' $ac_executable_extensions; do
34663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34664 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34666 break 2
34667 fi
34668done
34669 done
34670IFS=$as_save_IFS
34671
34672 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34673 ;;
34674esac
34675fi
34676MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34677if test -n "$MPEGDecodeDelegate"; then
34678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34679$as_echo "$MPEGDecodeDelegate" >&6; }
34680else
34681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34682$as_echo "no" >&6; }
34683fi
34684
34685
34686fi;
cristy3ed852e2009-09-05 21:47:34 +000034687# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34688set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034691if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034692 $as_echo_n "(cached) " >&6
34693else
34694 case $MPEGEncodeDelegate in
34695 [\\/]* | ?:[\\/]*)
34696 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34697 ;;
34698 *)
34699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34700for as_dir in $PATH
34701do
34702 IFS=$as_save_IFS
34703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034706 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034708 break 2
34709 fi
34710done
cristy8b350f62009-11-15 23:12:43 +000034711 done
cristy3ed852e2009-09-05 21:47:34 +000034712IFS=$as_save_IFS
34713
34714 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34715 ;;
34716esac
34717fi
34718MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34719if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034721$as_echo "$MPEGEncodeDelegate" >&6; }
34722else
cristy8b350f62009-11-15 23:12:43 +000034723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034724$as_echo "no" >&6; }
34725fi
34726
34727
cristy81ab5af2013-10-06 18:28:39 +000034728if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
34729 MPEGEncodeDelegateDefault='ffmpeg'
34730 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34731set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34733$as_echo_n "checking for $ac_word... " >&6; }
34734if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34735 $as_echo_n "(cached) " >&6
34736else
34737 case $MPEGEncodeDelegate in
34738 [\\/]* | ?:[\\/]*)
34739 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34740 ;;
34741 *)
34742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745 IFS=$as_save_IFS
34746 test -z "$as_dir" && as_dir=.
34747 for ac_exec_ext in '' $ac_executable_extensions; do
34748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34749 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34751 break 2
34752 fi
34753done
34754 done
34755IFS=$as_save_IFS
34756
34757 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34758 ;;
34759esac
34760fi
34761MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34762if test -n "$MPEGEncodeDelegate"; then
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34764$as_echo "$MPEGEncodeDelegate" >&6; }
34765else
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767$as_echo "no" >&6; }
34768fi
34769
34770
34771fi;
cristy935c86e2010-06-05 23:50:07 +000034772# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34773set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34775$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034776if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034777 $as_echo_n "(cached) " >&6
34778else
34779 case $MrSIDDecodeDelegate in
34780 [\\/]* | ?:[\\/]*)
34781 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34782 ;;
34783 *)
34784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34785for as_dir in $PATH
34786do
34787 IFS=$as_save_IFS
34788 test -z "$as_dir" && as_dir=.
34789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034791 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34793 break 2
34794 fi
34795done
34796 done
34797IFS=$as_save_IFS
34798
34799 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34800 ;;
34801esac
34802fi
34803MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34804if test -n "$MrSIDDecodeDelegate"; then
34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34806$as_echo "$MrSIDDecodeDelegate" >&6; }
34807else
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809$as_echo "no" >&6; }
34810fi
34811
34812
cristy3ed852e2009-09-05 21:47:34 +000034813# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34814set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034817if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034818 $as_echo_n "(cached) " >&6
34819else
34820 case $MVDelegate in
34821 [\\/]* | ?:[\\/]*)
34822 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34823 ;;
34824 *)
34825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34826for as_dir in $PATH
34827do
34828 IFS=$as_save_IFS
34829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034832 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034834 break 2
34835 fi
34836done
cristy8b350f62009-11-15 23:12:43 +000034837 done
cristy3ed852e2009-09-05 21:47:34 +000034838IFS=$as_save_IFS
34839
34840 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34841 ;;
34842esac
34843fi
34844MVDelegate=$ac_cv_path_MVDelegate
34845if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034847$as_echo "$MVDelegate" >&6; }
34848else
cristy8b350f62009-11-15 23:12:43 +000034849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034850$as_echo "no" >&6; }
34851fi
34852
34853
34854# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34855set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034858if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034859 $as_echo_n "(cached) " >&6
34860else
34861 case $PCLDelegate in
34862 [\\/]* | ?:[\\/]*)
34863 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34864 ;;
34865 *)
34866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34867for as_dir in $PATH
34868do
34869 IFS=$as_save_IFS
34870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034873 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875 break 2
34876 fi
34877done
cristy8b350f62009-11-15 23:12:43 +000034878 done
cristy3ed852e2009-09-05 21:47:34 +000034879IFS=$as_save_IFS
34880
34881 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34882 ;;
34883esac
34884fi
34885PCLDelegate=$ac_cv_path_PCLDelegate
34886if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034888$as_echo "$PCLDelegate" >&6; }
34889else
cristy8b350f62009-11-15 23:12:43 +000034890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034891$as_echo "no" >&6; }
34892fi
34893
34894
34895# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34896set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034899if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034900 $as_echo_n "(cached) " >&6
34901else
34902 case $PGPDecodeDelegate in
34903 [\\/]* | ?:[\\/]*)
34904 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34905 ;;
34906 *)
34907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34908for as_dir in $PATH
34909do
34910 IFS=$as_save_IFS
34911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034914 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916 break 2
34917 fi
34918done
cristy8b350f62009-11-15 23:12:43 +000034919 done
cristy3ed852e2009-09-05 21:47:34 +000034920IFS=$as_save_IFS
34921
34922 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34923 ;;
34924esac
34925fi
34926PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34927if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo "$PGPDecodeDelegate" >&6; }
34930else
cristy8b350f62009-11-15 23:12:43 +000034931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo "no" >&6; }
34933fi
34934
34935
34936# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34937set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034940if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034941 $as_echo_n "(cached) " >&6
34942else
34943 case $POVDelegate in
34944 [\\/]* | ?:[\\/]*)
34945 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34946 ;;
34947 *)
34948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34949for as_dir in $PATH
34950do
34951 IFS=$as_save_IFS
34952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034955 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957 break 2
34958 fi
34959done
cristy8b350f62009-11-15 23:12:43 +000034960 done
cristy3ed852e2009-09-05 21:47:34 +000034961IFS=$as_save_IFS
34962
34963 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34964 ;;
34965esac
34966fi
34967POVDelegate=$ac_cv_path_POVDelegate
34968if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034970$as_echo "$POVDelegate" >&6; }
34971else
cristy8b350f62009-11-15 23:12:43 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973$as_echo "no" >&6; }
34974fi
34975
34976
34977for ac_prog in gsx gsc "$PSDelegateDefault"
34978do
34979 # Extract the first word of "$ac_prog", so it can be a program name with args.
34980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034983if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034984 $as_echo_n "(cached) " >&6
34985else
34986 case $PSDelegate in
34987 [\\/]* | ?:[\\/]*)
34988 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34989 ;;
34990 *)
34991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34992for as_dir in $PATH
34993do
34994 IFS=$as_save_IFS
34995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034998 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000 break 2
35001 fi
35002done
cristy8b350f62009-11-15 23:12:43 +000035003 done
cristy3ed852e2009-09-05 21:47:34 +000035004IFS=$as_save_IFS
35005
35006 ;;
35007esac
35008fi
35009PSDelegate=$ac_cv_path_PSDelegate
35010if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035012$as_echo "$PSDelegate" >&6; }
35013else
cristy8b350f62009-11-15 23:12:43 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035015$as_echo "no" >&6; }
35016fi
35017
35018
35019 test -n "$PSDelegate" && break
35020done
35021test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
35022
35023# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
35024set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035027if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035028 $as_echo_n "(cached) " >&6
35029else
35030 case $RLEEncodeDelegate in
35031 [\\/]* | ?:[\\/]*)
35032 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
35033 ;;
35034 *)
35035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35036for as_dir in $PATH
35037do
35038 IFS=$as_save_IFS
35039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035042 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035044 break 2
35045 fi
35046done
cristy8b350f62009-11-15 23:12:43 +000035047 done
cristy3ed852e2009-09-05 21:47:34 +000035048IFS=$as_save_IFS
35049
35050 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
35051 ;;
35052esac
35053fi
35054RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
35055if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035057$as_echo "$RLEEncodeDelegate" >&6; }
35058else
cristy8b350f62009-11-15 23:12:43 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060$as_echo "no" >&6; }
35061fi
35062
35063
35064# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
35065set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035067$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035068if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035069 $as_echo_n "(cached) " >&6
35070else
35071 case $RMDelegate in
35072 [\\/]* | ?:[\\/]*)
35073 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
35074 ;;
35075 *)
35076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35077for as_dir in $PATH
35078do
35079 IFS=$as_save_IFS
35080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035083 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085 break 2
35086 fi
35087done
cristy8b350f62009-11-15 23:12:43 +000035088 done
cristy3ed852e2009-09-05 21:47:34 +000035089IFS=$as_save_IFS
35090
35091 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
35092 ;;
35093esac
35094fi
35095RMDelegate=$ac_cv_path_RMDelegate
35096if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035098$as_echo "$RMDelegate" >&6; }
35099else
cristy8b350f62009-11-15 23:12:43 +000035100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101$as_echo "no" >&6; }
35102fi
35103
35104
cristy4689cf02010-02-17 21:15:45 +000035105# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
35106set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
35107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035109if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000035110 $as_echo_n "(cached) " >&6
35111else
35112 case $RSVGDecodeDelegate in
35113 [\\/]* | ?:[\\/]*)
35114 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
35115 ;;
35116 *)
35117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35118for as_dir in $PATH
35119do
35120 IFS=$as_save_IFS
35121 test -z "$as_dir" && as_dir=.
35122 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000035124 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35126 break 2
35127 fi
35128done
35129 done
35130IFS=$as_save_IFS
35131
35132 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
35133 ;;
35134esac
35135fi
35136RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
35137if test -n "$RSVGDecodeDelegate"; then
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
35139$as_echo "$RSVGDecodeDelegate" >&6; }
35140else
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142$as_echo "no" >&6; }
35143fi
35144
35145
cristy3ed852e2009-09-05 21:47:34 +000035146# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
35147set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035150if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035151 $as_echo_n "(cached) " >&6
35152else
35153 case $SCANDecodeDelegate in
35154 [\\/]* | ?:[\\/]*)
35155 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
35156 ;;
35157 *)
35158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35159for as_dir in $PATH
35160do
35161 IFS=$as_save_IFS
35162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035165 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035167 break 2
35168 fi
35169done
cristy8b350f62009-11-15 23:12:43 +000035170 done
cristy3ed852e2009-09-05 21:47:34 +000035171IFS=$as_save_IFS
35172
35173 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
35174 ;;
35175esac
35176fi
35177SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
35178if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180$as_echo "$SCANDecodeDelegate" >&6; }
35181else
cristy8b350f62009-11-15 23:12:43 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035183$as_echo "no" >&6; }
35184fi
35185
35186
cristyec6934f2012-08-14 18:38:40 +000035187# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
35188set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
35189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35190$as_echo_n "checking for $ac_word... " >&6; }
35191if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
35192 $as_echo_n "(cached) " >&6
35193else
35194 case $SVGDecodeDelegate in
35195 [\\/]* | ?:[\\/]*)
35196 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
35197 ;;
35198 *)
35199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35200for as_dir in $PATH
35201do
35202 IFS=$as_save_IFS
35203 test -z "$as_dir" && as_dir=.
35204 for ac_exec_ext in '' $ac_executable_extensions; do
35205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35206 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35208 break 2
35209 fi
35210done
35211 done
35212IFS=$as_save_IFS
35213
35214 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35215 ;;
35216esac
35217fi
35218SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35219if test -n "$SVGDecodeDelegate"; then
35220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35221$as_echo "$SVGDecodeDelegate" >&6; }
35222else
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35224$as_echo "no" >&6; }
35225fi
35226
35227
cristy3ed852e2009-09-05 21:47:34 +000035228# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
35229set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035232if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035233 $as_echo_n "(cached) " >&6
35234else
35235 case $TXTDelegate in
35236 [\\/]* | ?:[\\/]*)
35237 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
35238 ;;
35239 *)
35240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35241for as_dir in $PATH
35242do
35243 IFS=$as_save_IFS
35244 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035247 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035249 break 2
35250 fi
35251done
cristy8b350f62009-11-15 23:12:43 +000035252 done
cristy3ed852e2009-09-05 21:47:34 +000035253IFS=$as_save_IFS
35254
35255 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
35256 ;;
35257esac
35258fi
35259TXTDelegate=$ac_cv_path_TXTDelegate
35260if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035262$as_echo "$TXTDelegate" >&6; }
35263else
cristy8b350f62009-11-15 23:12:43 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo "no" >&6; }
35266fi
35267
35268
cristy5ac9ac82010-07-29 13:24:24 +000035269# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35270set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035273if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000035274 $as_echo_n "(cached) " >&6
35275else
35276 case $UniconvertorDelegate in
35277 [\\/]* | ?:[\\/]*)
35278 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35279 ;;
35280 *)
35281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35282for as_dir in $PATH
35283do
35284 IFS=$as_save_IFS
35285 test -z "$as_dir" && as_dir=.
35286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000035288 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35290 break 2
35291 fi
35292done
35293 done
35294IFS=$as_save_IFS
35295
35296 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35297 ;;
35298esac
35299fi
35300UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35301if test -n "$UniconvertorDelegate"; then
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35303$as_echo "$UniconvertorDelegate" >&6; }
35304else
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306$as_echo "no" >&6; }
35307fi
35308
35309
cristy86e86092013-08-04 17:43:57 +000035310# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35311set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35313$as_echo_n "checking for $ac_word... " >&6; }
35314if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35315 $as_echo_n "(cached) " >&6
35316else
35317 case $WebPDecodeDelegate in
35318 [\\/]* | ?:[\\/]*)
35319 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35320 ;;
35321 *)
35322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35323for as_dir in $PATH
35324do
35325 IFS=$as_save_IFS
35326 test -z "$as_dir" && as_dir=.
35327 for ac_exec_ext in '' $ac_executable_extensions; do
35328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35329 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35331 break 2
35332 fi
35333done
35334 done
35335IFS=$as_save_IFS
35336
35337 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35338 ;;
35339esac
35340fi
35341WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35342if test -n "$WebPDecodeDelegate"; then
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35344$as_echo "$WebPDecodeDelegate" >&6; }
35345else
35346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35347$as_echo "no" >&6; }
35348fi
35349
35350
35351# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35352set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35354$as_echo_n "checking for $ac_word... " >&6; }
35355if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35356 $as_echo_n "(cached) " >&6
35357else
35358 case $WebPEncodeDelegate in
35359 [\\/]* | ?:[\\/]*)
35360 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35361 ;;
35362 *)
35363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35364for as_dir in $PATH
35365do
35366 IFS=$as_save_IFS
35367 test -z "$as_dir" && as_dir=.
35368 for ac_exec_ext in '' $ac_executable_extensions; do
35369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35370 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35372 break 2
35373 fi
35374done
35375 done
35376IFS=$as_save_IFS
35377
35378 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35379 ;;
35380esac
35381fi
35382WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35383if test -n "$WebPEncodeDelegate"; then
35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35385$as_echo "$WebPEncodeDelegate" >&6; }
35386else
35387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35388$as_echo "no" >&6; }
35389fi
35390
35391
cristy3ed852e2009-09-05 21:47:34 +000035392# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35393set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035396if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035397 $as_echo_n "(cached) " >&6
35398else
35399 case $WMFDecodeDelegate in
35400 [\\/]* | ?:[\\/]*)
35401 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35402 ;;
35403 *)
35404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35405for as_dir in $PATH
35406do
35407 IFS=$as_save_IFS
35408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035411 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035413 break 2
35414 fi
35415done
cristy8b350f62009-11-15 23:12:43 +000035416 done
cristy3ed852e2009-09-05 21:47:34 +000035417IFS=$as_save_IFS
35418
35419 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35420 ;;
35421esac
35422fi
35423WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35424if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035426$as_echo "$WMFDecodeDelegate" >&6; }
35427else
cristy8b350f62009-11-15 23:12:43 +000035428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035429$as_echo "no" >&6; }
35430fi
35431
35432
35433# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35434set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035437if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035438 $as_echo_n "(cached) " >&6
35439else
35440 case $WWWDecodeDelegate in
35441 [\\/]* | ?:[\\/]*)
35442 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35443 ;;
35444 *)
35445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35446for as_dir in $PATH
35447do
35448 IFS=$as_save_IFS
35449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035452 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454 break 2
35455 fi
35456done
cristy8b350f62009-11-15 23:12:43 +000035457 done
cristy3ed852e2009-09-05 21:47:34 +000035458IFS=$as_save_IFS
35459
35460 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35461 ;;
35462esac
35463fi
35464WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35465if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035467$as_echo "$WWWDecodeDelegate" >&6; }
35468else
cristy8b350f62009-11-15 23:12:43 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035470$as_echo "no" >&6; }
35471fi
35472
35473
35474# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35475set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035478if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035479 $as_echo_n "(cached) " >&6
35480else
35481 case $XPSDelegate in
35482 [\\/]* | ?:[\\/]*)
35483 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35484 ;;
35485 *)
35486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35487for as_dir in $PATH
35488do
35489 IFS=$as_save_IFS
35490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035493 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035495 break 2
35496 fi
35497done
cristy8b350f62009-11-15 23:12:43 +000035498 done
cristy3ed852e2009-09-05 21:47:34 +000035499IFS=$as_save_IFS
35500
35501 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35502 ;;
35503esac
35504fi
35505XPSDelegate=$ac_cv_path_XPSDelegate
35506if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035508$as_echo "$XPSDelegate" >&6; }
35509else
cristy8b350f62009-11-15 23:12:43 +000035510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035511$as_echo "no" >&6; }
35512fi
35513
35514
35515# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35516set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035519if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035520 $as_echo_n "(cached) " >&6
35521else
35522 case $ZipDelegate in
35523 [\\/]* | ?:[\\/]*)
35524 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35525 ;;
35526 *)
35527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35528for as_dir in $PATH
35529do
35530 IFS=$as_save_IFS
35531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035534 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035536 break 2
35537 fi
35538done
cristy8b350f62009-11-15 23:12:43 +000035539 done
cristy3ed852e2009-09-05 21:47:34 +000035540IFS=$as_save_IFS
35541
35542 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35543 ;;
35544esac
35545fi
35546ZipDelegate=$ac_cv_path_ZipDelegate
35547if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo "$ZipDelegate" >&6; }
35550else
cristy8b350f62009-11-15 23:12:43 +000035551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035552$as_echo "no" >&6; }
35553fi
35554
35555
35556
35557# Prefer lpr to lp; lp needs options tacked on.
35558if test "$LPRDelegate" != no; then
35559 PrintDelegate="$LPRDelegate"
35560else
35561 PrintDelegate="$LPDelegate -c -s"
35562fi
35563
35564
35565# Installed ImageMagick utiltity paths
35566ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35567DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35568MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35569
35570# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035571have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035572have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35573have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35574have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035575have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035576have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35577have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035578have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35579
35580#
35581# Test for font directories
35582#
35583type_include_files=''
35584
cristy430a7312010-01-21 20:44:04 +000035585# Dejavu fonts.
35586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35587$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35588dejavu_font_dir=''
35589if test "${with_dejavu_font_dir}" != 'default'; then
35590 dejavu_font_dir="${with_dejavu_font_dir}/"
35591else
35592 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35593 if test -f "${font_dir}DejaVuSerif.ttf"; then
35594 dejavu_font_dir="${font_dir}"
35595 break 1
35596 fi
35597 done
35598fi
35599if test "${dejavu_font_dir}x" != 'x'; then
35600 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35602$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035603else
cristyad38abe2012-12-23 23:03:21 +000035604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35605$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035606fi
35607
35608
cristy3ed852e2009-09-05 21:47:34 +000035609# Windows
35610windows_font_dir=''
35611if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
35612 windows_font_dir="${with_windows_font_dir}/"
35613fi
cristy430a7312010-01-21 20:44:04 +000035614if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000035615 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
35616 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
35617 fi
35618 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
35619 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
35620 fi
35621 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
35622 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
35623 fi
35624fi
cristy430a7312010-01-21 20:44:04 +000035625if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000035626 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
35627fi
35628
35629
35630# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035632$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35633ghostscript_font_dir=''
35634if test "${with_gs_font_dir}" != 'default'; then
35635 ghostscript_font_dir="${with_gs_font_dir}/"
35636else
35637 if test "${native_win32_build}" = 'yes'; then
35638 # Native Windows Build
35639 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35640 if test -f "${font_dir}a010013l.pfb"; then
35641 ghostscript_font_dir="$font_dir"
35642 break 1
35643 fi
35644 done
35645 if test "${PSDelegate}" != 'gswin32c'; then
35646 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35647 fi
35648 else
35649 # Linux / Mac OS X / Unix Build
35650 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
35651 if test -f "${font_dir}a010013l.pfb"; then
35652 ghostscript_font_dir="${font_dir}"
35653 break 1
35654 fi
35655 done
35656 if test "${ghostscript_font_dir}x" = 'x'; then
35657 if test "$PSDelegate" != 'gs'; then
35658 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35659 fi
35660 fi
35661 fi
35662fi
35663if test "${ghostscript_font_dir}x" != 'x'; then
35664 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35666$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035667else
cristyad38abe2012-12-23 23:03:21 +000035668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35669$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035670fi
35671
35672case "${build_os}" in
35673 mingw* )
35674 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35675 ;;
35676esac
35677
35678
35679
35680#
35681# Handle case where user doesn't want frozen paths
35682#
35683if test "$with_frozenpaths" != 'yes'; then
35684 # Re-set delegate definitions to default (no paths)
35685 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035686 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35687 BZIPDelegate="$BZIPDelegateDefault"
35688 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035689 CatDelegate="$CatDelegateDefault"
35690 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035691 DisplayDelegate="$DisplayDelegateDefault"
35692 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035693 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35694 EchoDelegate="$EchoDelegateDefault"
35695 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035696 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035697 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035698 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35699 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35700 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35701 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035702 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35703 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035704 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035705 LaunchDelegate="$LaunchDelegateDefault"
35706 MANDelegate="$MANDelegateDefault"
35707 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35708 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035709 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035710 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35711 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035712 PCLDelegate="$PCLDelegateDefault"
35713 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35714 POVDelegate="$POVDelegateDefault"
35715 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035716 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35717 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035718 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035719 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035720 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035721 ShowImageDelegate="$ShowImageDelegateDefault"
35722 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035723 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035724 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35725 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035726 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35727 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35728 XPSDelegate="$XPSDelegateDefault"
35729 ZipDelegate="$ZipDelegateDefault"
35730fi
35731
35732# Delegate substitutions
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
cristy71f53d52013-04-27 13:33:59 +000035773
35774
cristy3ed852e2009-09-05 21:47:34 +000035775#
35776# RPM support.
35777#
35778RPM=''
35779for ac_prog in gnutar gtar tar
35780do
35781 # Extract the first word of "$ac_prog", so it can be a program name with args.
35782set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035785if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035786 $as_echo_n "(cached) " >&6
35787else
35788 if test -n "$TAR"; then
35789 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35790else
35791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35792for as_dir in $PATH
35793do
35794 IFS=$as_save_IFS
35795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035798 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035800 break 2
35801 fi
35802done
cristy8b350f62009-11-15 23:12:43 +000035803 done
cristy3ed852e2009-09-05 21:47:34 +000035804IFS=$as_save_IFS
35805
35806fi
35807fi
35808TAR=$ac_cv_prog_TAR
35809if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035811$as_echo "$TAR" >&6; }
35812else
cristy8b350f62009-11-15 23:12:43 +000035813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035814$as_echo "no" >&6; }
35815fi
35816
35817
35818 test -n "$TAR" && break
35819done
35820
35821for ac_prog in perl
35822do
35823 # Extract the first word of "$ac_prog", so it can be a program name with args.
35824set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035827if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035828 $as_echo_n "(cached) " >&6
35829else
35830 if test -n "$PERL"; then
35831 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35832else
35833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35834for as_dir in $PATH
35835do
35836 IFS=$as_save_IFS
35837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035840 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035842 break 2
35843 fi
35844done
cristy8b350f62009-11-15 23:12:43 +000035845 done
cristy3ed852e2009-09-05 21:47:34 +000035846IFS=$as_save_IFS
35847
35848fi
35849fi
35850PERL=$ac_cv_prog_PERL
35851if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035853$as_echo "$PERL" >&6; }
35854else
cristy8b350f62009-11-15 23:12:43 +000035855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035856$as_echo "no" >&6; }
35857fi
35858
35859
35860 test -n "$PERL" && break
35861done
35862
35863for ac_prog in rpmbuild rpm
35864do
35865 # Extract the first word of "$ac_prog", so it can be a program name with args.
35866set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035869if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035870 $as_echo_n "(cached) " >&6
35871else
35872 if test -n "$RPM"; then
35873 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35874else
35875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35876for as_dir in $PATH
35877do
35878 IFS=$as_save_IFS
35879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035882 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035884 break 2
35885 fi
35886done
cristy8b350f62009-11-15 23:12:43 +000035887 done
cristy3ed852e2009-09-05 21:47:34 +000035888IFS=$as_save_IFS
35889
35890fi
35891fi
35892RPM=$ac_cv_prog_RPM
35893if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035895$as_echo "$RPM" >&6; }
35896else
cristy8b350f62009-11-15 23:12:43 +000035897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035898$as_echo "no" >&6; }
35899fi
35900
35901
35902 test -n "$RPM" && break
35903done
35904
35905
cristy73bd4a52010-10-05 11:24:23 +000035906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35907
35908
35909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35910
35911
35912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35913
35914
35915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35916
35917
35918 if test "x$RPM" != "x" ; then
35919 RPM_DELEGATE_TRUE=
35920 RPM_DELEGATE_FALSE='#'
35921else
35922 RPM_DELEGATE_TRUE='#'
35923 RPM_DELEGATE_FALSE=
35924fi
35925
cristy3ed852e2009-09-05 21:47:34 +000035926
35927#
35928# 7ZIP support (http://p7zip.sourceforge.net/)
35929#
35930P7ZIP=''
35931for ac_prog in 7za
35932do
35933 # Extract the first word of "$ac_prog", so it can be a program name with args.
35934set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035937if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035938 $as_echo_n "(cached) " >&6
35939else
35940 if test -n "$P7ZIP"; then
35941 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35942else
35943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35944for as_dir in $PATH
35945do
35946 IFS=$as_save_IFS
35947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035950 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035952 break 2
35953 fi
35954done
cristy8b350f62009-11-15 23:12:43 +000035955 done
cristy3ed852e2009-09-05 21:47:34 +000035956IFS=$as_save_IFS
35957
35958fi
35959fi
35960P7ZIP=$ac_cv_prog_P7ZIP
35961if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035963$as_echo "$P7ZIP" >&6; }
35964else
cristy8b350f62009-11-15 23:12:43 +000035965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035966$as_echo "no" >&6; }
35967fi
35968
35969
35970 test -n "$P7ZIP" && break
35971done
35972
35973
cristy73bd4a52010-10-05 11:24:23 +000035974 if test "x$P7ZIP" != "x" ; then
35975 P7ZIP_DELEGATE_TRUE=
35976 P7ZIP_DELEGATE_FALSE='#'
35977else
35978 P7ZIP_DELEGATE_TRUE='#'
35979 P7ZIP_DELEGATE_FALSE=
35980fi
35981
cristy3ed852e2009-09-05 21:47:34 +000035982
35983#
35984# ZIP support (http://www.info-zip.org/Zip.html)
35985#
35986ZIP=''
35987for ac_prog in zip
35988do
35989 # Extract the first word of "$ac_prog", so it can be a program name with args.
35990set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035993if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035994 $as_echo_n "(cached) " >&6
35995else
35996 if test -n "$ZIP"; then
35997 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35998else
35999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36000for as_dir in $PATH
36001do
36002 IFS=$as_save_IFS
36003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036006 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036008 break 2
36009 fi
36010done
cristy8b350f62009-11-15 23:12:43 +000036011 done
cristy3ed852e2009-09-05 21:47:34 +000036012IFS=$as_save_IFS
36013
36014fi
36015fi
36016ZIP=$ac_cv_prog_ZIP
36017if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000036018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000036019$as_echo "$ZIP" >&6; }
36020else
cristy8b350f62009-11-15 23:12:43 +000036021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036022$as_echo "no" >&6; }
36023fi
36024
36025
36026 test -n "$ZIP" && break
36027done
36028
36029
cristy73bd4a52010-10-05 11:24:23 +000036030 if test "x$ZIP" != "x" ; then
36031 ZIP_DELEGATE_TRUE=
36032 ZIP_DELEGATE_FALSE='#'
36033else
36034 ZIP_DELEGATE_TRUE='#'
36035 ZIP_DELEGATE_FALSE=
36036fi
36037
cristy3ed852e2009-09-05 21:47:34 +000036038
36039#
36040# GhostPCL related configuration.
36041#
36042PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000036043PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000036044PCLMonoDevice=pbmraw
36045if test -z "$PCLVersion"; then
36046 PCLVersion='unknown'
36047fi
36048if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36050$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036052$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36054$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036055 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000036056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036057$as_echo_n "checking for pcl color device... " >&6; }
36058 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36059 :
36060 else
36061 PCLColorDevice=ppmraw
36062 fi
cristyad38abe2012-12-23 23:03:21 +000036063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
36064$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036065
36066 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036068$as_echo_n "checking for pcl CMYK device... " >&6; }
36069 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36070 :
36071 else
36072 PCLCMYKDevice=$PCLColorDevice
36073 fi
cristyad38abe2012-12-23 23:03:21 +000036074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
36075$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036076
36077 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036079$as_echo_n "checking for pcl mono device... " >&6; }
36080 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36081 :
36082 else
36083 PCLMonoDevice=$PCLColorDevice
36084 fi
cristyad38abe2012-12-23 23:03:21 +000036085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
36086$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036087fi
36088
36089
36090
36091
36092
36093
36094#
36095# GhostXPS related configuration.
36096#
36097XPSColorDevice=ppmraw
36098XPSCMYKDevice=bmpsep8
36099XPSMonoDevice=pbmraw
36100if test -z "$XPSVersion"; then
36101 XPSVersion='unknown'
36102fi
36103if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36105$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036107$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36109$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036110 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036112$as_echo_n "checking for xps color device... " >&6; }
36113 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36114 :
36115 else
36116 XPSColorDevice=ppmraw
36117 fi
cristyad38abe2012-12-23 23:03:21 +000036118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
36119$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036120
36121 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036123$as_echo_n "checking for xps CMYK device... " >&6; }
36124 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36125 :
36126 else
36127 XPSCMYKDevice=$XPSColorDevice
36128 fi
cristyad38abe2012-12-23 23:03:21 +000036129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
36130$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036131
36132 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036134$as_echo_n "checking for xps mono device... " >&6; }
36135 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36136 :
36137 else
36138 XPSMonoDevice=$XPSColorDevice
36139 fi
cristyad38abe2012-12-23 23:03:21 +000036140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
36141$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036142fi
36143
36144
36145
36146
36147
36148
36149#
36150# Ghostscript related configuration.
36151#
cristya97426c2011-02-04 01:41:27 +000036152GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000036153GSColorDevice=pnmraw
36154GSCMYKDevice=pam
36155GSMonoDevice=pbmraw
36156GSPDFDevice=pdfwrite
36157GSPSDevice=pswrite
36158GSEPSDevice=epswrite
36159GSVersion='unknown'
36160if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36162$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000036164$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36166$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000036168$as_echo_n "checking for Ghostscript version... " >&6; }
36169 if GSVersion=`$PSDelegate --version`; then
36170 :
36171 else
36172 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36173 fi
cristyad38abe2012-12-23 23:03:21 +000036174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36175$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036176
36177 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000036178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036179$as_echo_n "checking for gs alpha device... " >&6; }
36180 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36181 :
36182 else
36183 GSAlphaDevice=pnmraw
36184 fi
cristyad38abe2012-12-23 23:03:21 +000036185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36186$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036187
36188 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036190$as_echo_n "checking for gs color device... " >&6; }
36191 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36192 :
36193 else
36194 GSColorDevice=pnmraw
36195 fi
cristyad38abe2012-12-23 23:03:21 +000036196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36197$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036198
36199 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036201$as_echo_n "checking for gs CMYK device... " >&6; }
36202 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36203 :
36204 else
36205 GSCMYKDevice=bmpsep8
36206 fi
cristyad38abe2012-12-23 23:03:21 +000036207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36208$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036209
36210 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036212$as_echo_n "checking for gs mono device... " >&6; }
36213 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36214 :
36215 else
36216 GSMonoDevice=$GSColorDevice
36217 fi
cristyad38abe2012-12-23 23:03:21 +000036218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36219$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036220
36221 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000036222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036223$as_echo_n "checking for gs PDF writing device... " >&6; }
36224 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36225 :
36226 else
36227 GSPDFDevice=nodevice
36228 fi
cristyad38abe2012-12-23 23:03:21 +000036229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36230$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036231
36232 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000036233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036234$as_echo_n "checking for gs PS writing device... " >&6; }
36235 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36236 :
36237 else
36238 GSPSDevice=nodevice
36239 fi
cristyad38abe2012-12-23 23:03:21 +000036240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36241$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036242
36243 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000036244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036245$as_echo_n "checking for gs EPS writing device... " >&6; }
36246 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36247 :
36248 else
36249 GSEPSDevice=nodevice
36250 fi
cristyad38abe2012-12-23 23:03:21 +000036251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36252$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036253fi
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264#
36265# PerlMagick-related configuration
36266#
36267
36268# Look for PERL if PerlMagick requested
36269# If name/path of desired PERL interpreter is specified, look for that one first
36270have_perl='no'
36271if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36273$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036275$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36277$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036278 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036280$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036281if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036282 $as_echo_n "(cached) " >&6
36283else
36284 ac_cv_path_PERL="$with_perl"
36285fi
cristy8b350f62009-11-15 23:12:43 +000036286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036287$as_echo "$ac_cv_path_PERL" >&6; };
36288 PERL=$ac_cv_path_PERL
36289 have_perl="$ac_cv_path_PERL"
36290 else
36291 for ac_prog in perl perl5
36292do
36293 # Extract the first word of "$ac_prog", so it can be a program name with args.
36294set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036297if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036298 $as_echo_n "(cached) " >&6
36299else
36300 case $PERL in
36301 [\\/]* | ?:[\\/]*)
36302 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36303 ;;
36304 *)
36305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36306for as_dir in $PATH
36307do
36308 IFS=$as_save_IFS
36309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036312 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036314 break 2
36315 fi
36316done
cristy8b350f62009-11-15 23:12:43 +000036317 done
cristy3ed852e2009-09-05 21:47:34 +000036318IFS=$as_save_IFS
36319
36320 ;;
36321esac
36322fi
36323PERL=$ac_cv_path_PERL
36324if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036326$as_echo "$PERL" >&6; }
36327else
cristy8b350f62009-11-15 23:12:43 +000036328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036329$as_echo "no" >&6; }
36330fi
36331
36332
36333 test -n "$PERL" && break
36334done
36335 if test "$ac_cv_path_PERL"; then
36336 have_perl="$ac_cv_path_PERL"
36337 fi
36338 fi
36339fi
36340
cristy949301e2010-01-06 01:38:40 +000036341if test "$with_perl" != 'yes' ; then
36342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36343fi
36344
36345PERL_SUPPORTS_DESTDIR='no'
36346
cristy3ed852e2009-09-05 21:47:34 +000036347with_perl_static='no'
36348with_perl_dynamic='no'
36349if test "$have_perl" != 'no'; then
36350 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36351 with_perl_static='yes'
36352 fi
36353 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36354 with_perl_dynamic='yes'
36355 fi
36356 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036357
36358
36359
36360
36361 if test -n "$PERL"; then :
36362
36363 ax_perl_version="5.8.1"
36364
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36366$as_echo_n "checking for perl version... " >&6; }
36367
36368 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
36369
36370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36371$as_echo "$perl_version" >&6; }
36372
36373 PERL_VERSION=$perl_version
36374
36375
36376
36377
36378
36379 # Used to indicate true or false condition
36380 ax_compare_version=false
36381
36382 # Convert the two version strings to be compared into a format that
36383 # allows a simple string comparison. The end result is that a version
36384 # string of the form 1.12.5-r617 will be converted to the form
36385 # 0001001200050617. In other words, each number is zero padded to four
36386 # digits, and non digits are removed.
36387
36388 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36389 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36390 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36391 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36392 -e 's/[^0-9]//g'`
36393
36394
36395 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36396 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36397 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36398 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36399 -e 's/[^0-9]//g'`
36400
36401
36402 ax_compare_version=`echo "x$ax_compare_version_A
36403x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36404
36405
36406
36407 if test "$ax_compare_version" = "true" ; then
36408
36409 :
36410 PERL_SUPPORTS_DESTDIR='yes'
36411
36412 else
36413 :
36414 PERL_SUPPORTS_DESTDIR='no'
36415
36416 fi
36417
36418
36419else
36420
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36422$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36423 PERL_SUPPORTS_DESTDIR='no'
36424
cristy3ed852e2009-09-05 21:47:34 +000036425fi
cristy73bd4a52010-10-05 11:24:23 +000036426
36427fi
36428 if test "$have_perl" != 'no'; then
36429 WITH_PERL_TRUE=
36430 WITH_PERL_FALSE='#'
36431else
36432 WITH_PERL_TRUE='#'
36433 WITH_PERL_FALSE=
36434fi
36435
36436 if test $with_perl_static = 'yes'; then
36437 WITH_PERL_STATIC_TRUE=
36438 WITH_PERL_STATIC_FALSE='#'
36439else
36440 WITH_PERL_STATIC_TRUE='#'
36441 WITH_PERL_STATIC_FALSE=
36442fi
36443
36444 if test $with_perl_dynamic = 'yes'; then
36445 WITH_PERL_DYNAMIC_TRUE=
36446 WITH_PERL_DYNAMIC_FALSE='#'
36447else
36448 WITH_PERL_DYNAMIC_TRUE='#'
36449 WITH_PERL_DYNAMIC_FALSE=
36450fi
36451
cristy3ed852e2009-09-05 21:47:34 +000036452
36453
36454# Determine path to pick up MagickCore library from for use with building PerlMagick
36455MAGICKCORE_PATH="${LIB_DIR}"
36456if test $with_perl_static = 'yes'; then
36457 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36458 libtool_objdir=$objdir
36459
36460 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036461 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036462fi
36463
36464
cristy2a3eb392012-12-17 13:39:20 +000036465# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036466MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036467if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036468 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036469fi
cristy2a3eb392012-12-17 13:39:20 +000036470if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036471 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036472fi
36473if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036474 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036475fi
36476if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036477 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036478fi
cristy81ab5af2013-10-06 18:28:39 +000036479if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036480 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036481fi
cristy854c9cf2013-08-10 21:03:06 +000036482if test "$have_mupdf" = 'yes' ; then
36483 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000036484fi
cristy2a3eb392012-12-17 13:39:20 +000036485if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036486 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036487fi
cristy2a3eb392012-12-17 13:39:20 +000036488if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036489 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036490fi
36491if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036492 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036493fi
36494if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036495 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036496fi
36497if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036498 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036499fi
36500if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036501 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036502fi
36503if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036504 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036505fi
36506if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036507 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036508fi
36509if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036510 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036511fi
36512if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036513 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036514fi
36515if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036516 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036517fi
36518if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036519 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036520fi
36521if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036522 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036523fi
36524if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036525 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036526fi
36527if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036528 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036529fi
36530have_ps='no'
36531if test "$have_dps" = 'yes' || \
36532 test "$have_gs" = 'yes' || \
36533 test "${native_win32_build}" = 'yes' ; then
36534 have_ps='yes'
36535fi
36536if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036537 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036538fi
cristy2a3eb392012-12-17 13:39:20 +000036539if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036540 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036541fi
36542if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036543 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036544fi
36545if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036546 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036547fi
36548if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036549 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036550fi
cristy3b640ed2013-07-29 00:27:59 +000036551if test "$have_webp" = 'yes' ; then
36552 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36553fi
cristy2a3eb392012-12-17 13:39:20 +000036554if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036555 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036556fi
36557if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036558 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036559fi
36560if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036561 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036562fi
36563if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036564 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036565fi
cristy2a3eb392012-12-17 13:39:20 +000036566# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036567MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036568MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036569
36570
cristyfa161182012-12-19 15:45:28 +000036571
cristy3ed852e2009-09-05 21:47:34 +000036572#
36573# Handle special compiler flags
36574#
36575
36576# Add '-p' if prof source profiling support enabled
36577if test "$enable_prof" = 'yes'; then
36578 CFLAGS="-p $CFLAGS"
36579 CXXFLAGS="-p $CXXFLAGS"
36580 LDFLAGS="-p $LDFLAGS"
36581fi
36582
36583# Add '-pg' if gprof source profiling support enabled
36584if test "$enable_gprof" = 'yes'; then
36585 CFLAGS="-pg $CFLAGS"
36586 CXXFLAGS="-pg $CXXFLAGS"
36587 LDFLAGS="-pg $LDFLAGS"
36588fi
36589
36590# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36591# This is a gcc-specific feature
36592if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036594$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036595if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036596 $as_echo_n "(cached) " >&6
36597else
36598 ac_check_lib_save_LIBS=$LIBS
36599LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036601/* end confdefs.h. */
36602
36603/* Override any GCC internal prototype to avoid an error.
36604 Use char because int might match the return type of a GCC
36605 builtin and then its argument prototype would still apply. */
36606#ifdef __cplusplus
36607extern "C"
36608#endif
36609char _gcov_init ();
36610int
36611main ()
36612{
36613return _gcov_init ();
36614 ;
36615 return 0;
36616}
36617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036618if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036619 ac_cv_lib_gcov__gcov_init=yes
36620else
cristy8b350f62009-11-15 23:12:43 +000036621 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036622fi
cristy8b350f62009-11-15 23:12:43 +000036623rm -f core conftest.err conftest.$ac_objext \
36624 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036625LIBS=$ac_check_lib_save_LIBS
36626fi
cristy8b350f62009-11-15 23:12:43 +000036627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036628$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036629if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036630 cat >>confdefs.h <<_ACEOF
36631#define HAVE_LIBGCOV 1
36632_ACEOF
36633
36634 LIBS="-lgcov $LIBS"
36635
36636fi
36637
cristy8b350f62009-11-15 23:12:43 +000036638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036639$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036640if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036641 $as_echo_n "(cached) " >&6
36642else
36643 ac_check_lib_save_LIBS=$LIBS
36644LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036646/* end confdefs.h. */
36647
36648/* Override any GCC internal prototype to avoid an error.
36649 Use char because int might match the return type of a GCC
36650 builtin and then its argument prototype would still apply. */
36651#ifdef __cplusplus
36652extern "C"
36653#endif
36654char __gcov_init ();
36655int
36656main ()
36657{
36658return __gcov_init ();
36659 ;
36660 return 0;
36661}
36662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036664 ac_cv_lib_gcov___gcov_init=yes
36665else
cristy8b350f62009-11-15 23:12:43 +000036666 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036667fi
cristy8b350f62009-11-15 23:12:43 +000036668rm -f core conftest.err conftest.$ac_objext \
36669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036670LIBS=$ac_check_lib_save_LIBS
36671fi
cristy8b350f62009-11-15 23:12:43 +000036672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036673$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036674if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036675 cat >>confdefs.h <<_ACEOF
36676#define HAVE_LIBGCOV 1
36677_ACEOF
36678
36679 LIBS="-lgcov $LIBS"
36680
36681fi
36682
36683 case "$target_os" in
36684 darwin*)
36685 OSX_GCOV_LDFLAG="-Wl,-single_module"
36686 ;;
36687 *)
36688 OSX_GCOV_LDFLAG=""
36689 ;;
36690 esac
36691
36692 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36693 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36694 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36695fi
36696
36697#
36698# Build library dependency list for libMagickCore
36699#
36700
cristyc6722092012-10-14 00:19:31 +000036701if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000036702 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036703else
cristy3a75f062012-09-08 23:29:40 +000036704 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036705fi
36706
36707
36708#
36709# Remove extraneous spaces from output variables (asthetic)
36710#
36711X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36712X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36713X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36714X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36715
36716CC=`echo $CC | sed -e 's/ */ /g'`
36717CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36718CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36719CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036720DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36721LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36722TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36723MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36724#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36725
36726# Pass only user-provided LIBS as "global" libraries
36727LIBS=$USER_LIBS
36728
36729#AC_SUBST(CPPFLAGS)
36730
36731#AC_SUBST(LDFLAGS)
36732#AC_SUBST(X_PRE_LIBS)
36733#AC_SUBST(X_LIBS)
36734#AC_SUBST(X_EXTRA_LIBS)
36735
36736MAGICK_CFLAGS=$CFLAGS
36737MAGICK_CXXFLAGS="$CXXFLAGS"
36738MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36739MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36740MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036741MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036742
36743
36744
36745
36746
36747
36748
36749
36750# Set configured scripts to executable.
36751ac_config_commands="$ac_config_commands default"
36752
cristy2bd4b6e2012-07-22 15:29:11 +000036753ac_config_commands="$ac_config_commands magick.sh.in"
36754
cristy3ed852e2009-09-05 21:47:34 +000036755ac_config_commands="$ac_config_commands MagickCore-config.in"
36756
cristy3ed852e2009-09-05 21:47:34 +000036757ac_config_commands="$ac_config_commands MagickWand-config.in"
36758
cristy3ed852e2009-09-05 21:47:34 +000036759ac_config_commands="$ac_config_commands Magick++-config.in"
36760
36761ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36762
36763
cristyad38abe2012-12-23 23:03:21 +000036764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36765$as_echo "-------------------------------------------------------------" >&6; }
36766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36767$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036768cat >confcache <<\_ACEOF
36769# This file is a shell script that caches the results of configure
36770# tests run on this system so they can be shared between configure
36771# scripts and configure runs, see configure's option --config-cache.
36772# It is not useful on other systems. If it contains results you don't
36773# want to keep, you may remove or edit it.
36774#
36775# config.status only pays attention to the cache file if you give it
36776# the --recheck option to rerun configure.
36777#
36778# `ac_cv_env_foo' variables (set or unset) will be overridden when
36779# loading this file, other *unset* `ac_cv_foo' will be assigned the
36780# following values.
36781
36782_ACEOF
36783
36784# The following way of writing the cache mishandles newlines in values,
36785# but we know of no workaround that is simple, portable, and efficient.
36786# So, we kill variables containing newlines.
36787# Ultrix sh set writes to stderr and can't be redirected directly,
36788# and sets the high bit in the cache file unless we assign to the vars.
36789(
36790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36791 eval ac_val=\$$ac_var
36792 case $ac_val in #(
36793 *${as_nl}*)
36794 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036795 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036796$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36797 esac
36798 case $ac_var in #(
36799 _ | IFS | as_nl) ;; #(
36800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036801 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036802 esac ;;
36803 esac
36804 done
36805
36806 (set) 2>&1 |
36807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36808 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036809 # `set' does not quote correctly, so add quotes: double-quote
36810 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036811 sed -n \
36812 "s/'/'\\\\''/g;
36813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36814 ;; #(
36815 *)
36816 # `set' quotes correctly as required by POSIX, so do not add quotes.
36817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36818 ;;
36819 esac |
36820 sort
36821) |
36822 sed '
36823 /^ac_cv_env_/b end
36824 t clear
36825 :clear
36826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36827 t end
36828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36829 :end' >>confcache
36830if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36831 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036832 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036834$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036835 if test ! -f "$cache_file" || test -h "$cache_file"; then
36836 cat confcache >"$cache_file"
36837 else
36838 case $cache_file in #(
36839 */* | ?:*)
36840 mv -f confcache "$cache_file"$$ &&
36841 mv -f "$cache_file"$$ "$cache_file" ;; #(
36842 *)
36843 mv -f confcache "$cache_file" ;;
36844 esac
36845 fi
36846 fi
cristy3ed852e2009-09-05 21:47:34 +000036847 else
cristy8b350f62009-11-15 23:12:43 +000036848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036849$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36850 fi
36851fi
36852rm -f confcache
36853
36854test "x$prefix" = xNONE && prefix=$ac_default_prefix
36855# Let make expand exec_prefix.
36856test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36857
36858DEFS=-DHAVE_CONFIG_H
36859
36860ac_libobjs=
36861ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036862U=
cristy3ed852e2009-09-05 21:47:34 +000036863for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36864 # 1. Remove the extension, and $U if already installed.
36865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36866 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36868 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036869 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36870 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036871done
36872LIBOBJS=$ac_libobjs
36873
36874LTLIBOBJS=$ac_ltlibobjs
36875
36876
cristyc0890a62012-07-19 00:18:20 +000036877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36878$as_echo_n "checking that generated files are newer than configure... " >&6; }
36879 if test -n "$am_sleep_pid"; then
36880 # Hide warnings about reused PIDs.
36881 wait $am_sleep_pid 2>/dev/null
36882 fi
36883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36884$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036885 if test -n "$EXEEXT"; then
36886 am__EXEEXT_TRUE=
36887 am__EXEEXT_FALSE='#'
36888else
36889 am__EXEEXT_TRUE='#'
36890 am__EXEEXT_FALSE=
36891fi
cristy3ed852e2009-09-05 21:47:34 +000036892
cristy73bd4a52010-10-05 11:24:23 +000036893if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036894 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036895Usually this means the macro was only invoked conditionally." "$LINENO" 5
36896fi
36897if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036898 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036899Usually this means the macro was only invoked conditionally." "$LINENO" 5
36900fi
36901if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036902 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036903Usually this means the macro was only invoked conditionally." "$LINENO" 5
36904fi
36905if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036906 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036907Usually this means the macro was only invoked conditionally." "$LINENO" 5
36908fi
cristy9b86f202012-11-28 21:55:35 +000036909if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36910 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36911Usually this means the macro was only invoked conditionally." "$LINENO" 5
36912fi
cristy73bd4a52010-10-05 11:24:23 +000036913if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036914 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036915Usually this means the macro was only invoked conditionally." "$LINENO" 5
36916fi
36917if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036918 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036919Usually this means the macro was only invoked conditionally." "$LINENO" 5
36920fi
36921if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036922 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036923Usually this means the macro was only invoked conditionally." "$LINENO" 5
36924fi
36925if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036926 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036927Usually this means the macro was only invoked conditionally." "$LINENO" 5
36928fi
cristy73bd4a52010-10-05 11:24:23 +000036929if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036930 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036931Usually this means the macro was only invoked conditionally." "$LINENO" 5
36932fi
36933if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036934 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036935Usually this means the macro was only invoked conditionally." "$LINENO" 5
36936fi
cristy73bd4a52010-10-05 11:24:23 +000036937if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036938 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036939Usually this means the macro was only invoked conditionally." "$LINENO" 5
36940fi
cristy71d8c202012-03-20 17:05:01 +000036941if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36942 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36943Usually this means the macro was only invoked conditionally." "$LINENO" 5
36944fi
cristy73bd4a52010-10-05 11:24:23 +000036945
36946if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036947 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036948Usually this means the macro was only invoked conditionally." "$LINENO" 5
36949fi
36950if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036951 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036952Usually this means the macro was only invoked conditionally." "$LINENO" 5
36953fi
36954if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036955 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036956Usually this means the macro was only invoked conditionally." "$LINENO" 5
36957fi
36958if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036959 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036960Usually this means the macro was only invoked conditionally." "$LINENO" 5
36961fi
36962if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036963 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036964Usually this means the macro was only invoked conditionally." "$LINENO" 5
36965fi
36966if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036967 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036968Usually this means the macro was only invoked conditionally." "$LINENO" 5
36969fi
cristy5eef09f2012-10-16 12:08:28 +000036970if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36971 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36972Usually this means the macro was only invoked conditionally." "$LINENO" 5
36973fi
cristy73bd4a52010-10-05 11:24:23 +000036974if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036975 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036976Usually this means the macro was only invoked conditionally." "$LINENO" 5
36977fi
36978if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036979 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036980Usually this means the macro was only invoked conditionally." "$LINENO" 5
36981fi
36982if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036983 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036984Usually this means the macro was only invoked conditionally." "$LINENO" 5
36985fi
36986if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036987 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036988Usually this means the macro was only invoked conditionally." "$LINENO" 5
36989fi
36990if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036991 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036992Usually this means the macro was only invoked conditionally." "$LINENO" 5
36993fi
36994if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036995 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036996Usually this means the macro was only invoked conditionally." "$LINENO" 5
36997fi
36998if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036999 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037000Usually this means the macro was only invoked conditionally." "$LINENO" 5
37001fi
37002if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037003 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037004Usually this means the macro was only invoked conditionally." "$LINENO" 5
37005fi
37006if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037007 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037008Usually this means the macro was only invoked conditionally." "$LINENO" 5
37009fi
37010if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037011 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037012Usually this means the macro was only invoked conditionally." "$LINENO" 5
37013fi
37014if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037015 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037016Usually this means the macro was only invoked conditionally." "$LINENO" 5
37017fi
37018if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037019 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037020Usually this means the macro was only invoked conditionally." "$LINENO" 5
37021fi
37022if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037023 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037024Usually this means the macro was only invoked conditionally." "$LINENO" 5
37025fi
37026if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037027 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037028Usually this means the macro was only invoked conditionally." "$LINENO" 5
37029fi
cristyfbb0ef02010-12-19 02:32:11 +000037030if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
37031 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
37032Usually this means the macro was only invoked conditionally." "$LINENO" 5
37033fi
cristy854c9cf2013-08-10 21:03:06 +000037034if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
37035 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
37036Usually this means the macro was only invoked conditionally." "$LINENO" 5
37037fi
cristy73bd4a52010-10-05 11:24:23 +000037038if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037039 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037040Usually this means the macro was only invoked conditionally." "$LINENO" 5
37041fi
cristy41cbe8a2011-10-27 01:35:18 +000037042if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
37043 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
37044Usually this means the macro was only invoked conditionally." "$LINENO" 5
37045fi
cristya054b762012-03-26 23:16:00 +000037046if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
37047 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000037048Usually this means the macro was only invoked conditionally." "$LINENO" 5
37049fi
cristy73bd4a52010-10-05 11:24:23 +000037050if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037051 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037052Usually this means the macro was only invoked conditionally." "$LINENO" 5
37053fi
37054if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037055 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037056Usually this means the macro was only invoked conditionally." "$LINENO" 5
37057fi
37058if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037059 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037060Usually this means the macro was only invoked conditionally." "$LINENO" 5
37061fi
37062if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037063 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037064Usually this means the macro was only invoked conditionally." "$LINENO" 5
37065fi
cristyb1860752011-03-14 00:27:46 +000037066if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
37067 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
37068Usually this means the macro was only invoked conditionally." "$LINENO" 5
37069fi
cristy73bd4a52010-10-05 11:24:23 +000037070if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037071 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037072Usually this means the macro was only invoked conditionally." "$LINENO" 5
37073fi
37074if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037075 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037076Usually this means the macro was only invoked conditionally." "$LINENO" 5
37077fi
37078if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037079 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037080Usually this means the macro was only invoked conditionally." "$LINENO" 5
37081fi
37082if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037083 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037084Usually this means the macro was only invoked conditionally." "$LINENO" 5
37085fi
37086if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037087 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037088Usually this means the macro was only invoked conditionally." "$LINENO" 5
37089fi
37090if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037091 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037092Usually this means the macro was only invoked conditionally." "$LINENO" 5
37093fi
37094if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037095 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037096Usually this means the macro was only invoked conditionally." "$LINENO" 5
37097fi
37098if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037099 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037100Usually this means the macro was only invoked conditionally." "$LINENO" 5
37101fi
cristy3ed852e2009-09-05 21:47:34 +000037102
cristyda16f162011-02-19 23:52:17 +000037103: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000037104ac_write_fail=0
37105ac_clean_files_save=$ac_clean_files
37106ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000037107{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000037108$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000037109as_write_fail=0
37110cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037111#! $SHELL
37112# Generated by $as_me.
37113# Run this file to recreate the current configuration.
37114# Compiler output produced by configure, useful for debugging
37115# configure, is in config.log if it exists.
37116
37117debug=false
37118ac_cs_recheck=false
37119ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000037120
cristy8b350f62009-11-15 23:12:43 +000037121SHELL=\${CONFIG_SHELL-$SHELL}
37122export SHELL
37123_ASEOF
37124cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37125## -------------------- ##
37126## M4sh Initialization. ##
37127## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000037128
37129# Be more Bourne compatible
37130DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000037131if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000037132 emulate sh
37133 NULLCMD=:
37134 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37135 # is contrary to our usage. Disable this feature.
37136 alias -g '${1+"$@"}'='"$@"'
37137 setopt NO_GLOB_SUBST
37138else
cristy8b350f62009-11-15 23:12:43 +000037139 case `(set -o) 2>/dev/null` in #(
37140 *posix*) :
37141 set -o posix ;; #(
37142 *) :
37143 ;;
cristy3ed852e2009-09-05 21:47:34 +000037144esac
cristy3ed852e2009-09-05 21:47:34 +000037145fi
37146
37147
cristy3ed852e2009-09-05 21:47:34 +000037148as_nl='
37149'
37150export as_nl
37151# Printing a long string crashes Solaris 7 /usr/bin/printf.
37152as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37153as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37154as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000037155# Prefer a ksh shell builtin over an external printf program on Solaris,
37156# but without wasting forks for bash or zsh.
37157if test -z "$BASH_VERSION$ZSH_VERSION" \
37158 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37159 as_echo='print -r --'
37160 as_echo_n='print -rn --'
37161elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000037162 as_echo='printf %s\n'
37163 as_echo_n='printf %s'
37164else
37165 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37166 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37167 as_echo_n='/usr/ucb/echo -n'
37168 else
37169 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37170 as_echo_n_body='eval
37171 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000037172 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000037173 *"$as_nl"*)
37174 expr "X$arg" : "X\\(.*\\)$as_nl";
37175 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37176 esac;
37177 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37178 '
37179 export as_echo_n_body
37180 as_echo_n='sh -c $as_echo_n_body as_echo'
37181 fi
37182 export as_echo_body
37183 as_echo='sh -c $as_echo_body as_echo'
37184fi
37185
37186# The user is always right.
37187if test "${PATH_SEPARATOR+set}" != set; then
37188 PATH_SEPARATOR=:
37189 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37190 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37191 PATH_SEPARATOR=';'
37192 }
37193fi
37194
cristy3ed852e2009-09-05 21:47:34 +000037195
37196# IFS
37197# We need space, tab and new line, in precisely that order. Quoting is
37198# there to prevent editors from complaining about space-tab.
37199# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37200# splitting by setting IFS to empty value.)
37201IFS=" "" $as_nl"
37202
37203# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000037204as_myself=
cristy8b350f62009-11-15 23:12:43 +000037205case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000037206 *[\\/]* ) as_myself=$0 ;;
37207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37208for as_dir in $PATH
37209do
37210 IFS=$as_save_IFS
37211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000037212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37213 done
cristy3ed852e2009-09-05 21:47:34 +000037214IFS=$as_save_IFS
37215
37216 ;;
37217esac
37218# We did not find ourselves, most probably we were run as `sh COMMAND'
37219# in which case we are not to be found in the path.
37220if test "x$as_myself" = x; then
37221 as_myself=$0
37222fi
37223if test ! -f "$as_myself"; then
37224 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000037225 exit 1
cristy3ed852e2009-09-05 21:47:34 +000037226fi
37227
cristy8b350f62009-11-15 23:12:43 +000037228# Unset variables that we do not need and which cause bugs (e.g. in
37229# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37230# suppresses any "Segmentation fault" message there. '((' could
37231# trigger a bug in pdksh 5.2.14.
37232for as_var in BASH_ENV ENV MAIL MAILPATH
37233do eval test x\${$as_var+set} = xset \
37234 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037235done
37236PS1='$ '
37237PS2='> '
37238PS4='+ '
37239
37240# NLS nuisances.
37241LC_ALL=C
37242export LC_ALL
37243LANGUAGE=C
37244export LANGUAGE
37245
cristy8b350f62009-11-15 23:12:43 +000037246# CDPATH.
37247(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37248
37249
cristy98dddb52010-11-04 00:30:15 +000037250# as_fn_error STATUS ERROR [LINENO LOG_FD]
37251# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037252# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37253# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037254# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037255as_fn_error ()
37256{
cristy98dddb52010-11-04 00:30:15 +000037257 as_status=$1; test $as_status -eq 0 && as_status=1
37258 if test "$4"; then
37259 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37260 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037261 fi
cristy98dddb52010-11-04 00:30:15 +000037262 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037263 as_fn_exit $as_status
37264} # as_fn_error
37265
37266
37267# as_fn_set_status STATUS
37268# -----------------------
37269# Set $? to STATUS, without forking.
37270as_fn_set_status ()
37271{
37272 return $1
37273} # as_fn_set_status
37274
37275# as_fn_exit STATUS
37276# -----------------
37277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37278as_fn_exit ()
37279{
37280 set +e
37281 as_fn_set_status $1
37282 exit $1
37283} # as_fn_exit
37284
37285# as_fn_unset VAR
37286# ---------------
37287# Portably unset VAR.
37288as_fn_unset ()
37289{
37290 { eval $1=; unset $1;}
37291}
37292as_unset=as_fn_unset
37293# as_fn_append VAR VALUE
37294# ----------------------
37295# Append the text in VALUE to the end of the definition contained in VAR. Take
37296# advantage of any shell optimizations that allow amortized linear growth over
37297# repeated appends, instead of the typical quadratic growth present in naive
37298# implementations.
37299if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37300 eval 'as_fn_append ()
37301 {
37302 eval $1+=\$2
37303 }'
37304else
37305 as_fn_append ()
37306 {
37307 eval $1=\$$1\$2
37308 }
37309fi # as_fn_append
37310
37311# as_fn_arith ARG...
37312# ------------------
37313# Perform arithmetic evaluation on the ARGs, and store the result in the
37314# global $as_val. Take advantage of shells that can avoid forks. The arguments
37315# must be portable across $(()) and expr.
37316if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37317 eval 'as_fn_arith ()
37318 {
37319 as_val=$(( $* ))
37320 }'
37321else
37322 as_fn_arith ()
37323 {
37324 as_val=`expr "$@" || test $? -eq 1`
37325 }
37326fi # as_fn_arith
37327
37328
cristy3ed852e2009-09-05 21:47:34 +000037329if expr a : '\(a\)' >/dev/null 2>&1 &&
37330 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37331 as_expr=expr
37332else
37333 as_expr=false
37334fi
37335
37336if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37337 as_basename=basename
37338else
37339 as_basename=false
37340fi
37341
cristy8b350f62009-11-15 23:12:43 +000037342if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37343 as_dirname=dirname
37344else
37345 as_dirname=false
37346fi
cristy3ed852e2009-09-05 21:47:34 +000037347
cristy3ed852e2009-09-05 21:47:34 +000037348as_me=`$as_basename -- "$0" ||
37349$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37350 X"$0" : 'X\(//\)$' \| \
37351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37352$as_echo X/"$0" |
37353 sed '/^.*\/\([^/][^/]*\)\/*$/{
37354 s//\1/
37355 q
37356 }
37357 /^X\/\(\/\/\)$/{
37358 s//\1/
37359 q
37360 }
37361 /^X\/\(\/\).*/{
37362 s//\1/
37363 q
37364 }
37365 s/.*/./; q'`
37366
cristy8b350f62009-11-15 23:12:43 +000037367# Avoid depending upon Character Ranges.
37368as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37369as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37370as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37371as_cr_digits='0123456789'
37372as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037373
37374ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037375case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037376-n*)
cristy8b350f62009-11-15 23:12:43 +000037377 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037378 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037379 xy) ECHO_C='\c';;
37380 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37381 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037382 esac;;
37383*)
37384 ECHO_N='-n';;
37385esac
cristy3ed852e2009-09-05 21:47:34 +000037386
37387rm -f conf$$ conf$$.exe conf$$.file
37388if test -d conf$$.dir; then
37389 rm -f conf$$.dir/conf$$.file
37390else
37391 rm -f conf$$.dir
37392 mkdir conf$$.dir 2>/dev/null
37393fi
37394if (echo >conf$$.file) 2>/dev/null; then
37395 if ln -s conf$$.file conf$$ 2>/dev/null; then
37396 as_ln_s='ln -s'
37397 # ... but there are two gotchas:
37398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037400 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037402 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037403 elif ln conf$$.file conf$$ 2>/dev/null; then
37404 as_ln_s=ln
37405 else
cristy14fefe52012-05-21 00:59:18 +000037406 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037407 fi
37408else
cristy14fefe52012-05-21 00:59:18 +000037409 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037410fi
37411rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37412rmdir conf$$.dir 2>/dev/null
37413
cristy8b350f62009-11-15 23:12:43 +000037414
37415# as_fn_mkdir_p
37416# -------------
37417# Create "$as_dir" as a directory, including parents if necessary.
37418as_fn_mkdir_p ()
37419{
37420
37421 case $as_dir in #(
37422 -*) as_dir=./$as_dir;;
37423 esac
37424 test -d "$as_dir" || eval $as_mkdir_p || {
37425 as_dirs=
37426 while :; do
37427 case $as_dir in #(
37428 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37429 *) as_qdir=$as_dir;;
37430 esac
37431 as_dirs="'$as_qdir' $as_dirs"
37432 as_dir=`$as_dirname -- "$as_dir" ||
37433$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37434 X"$as_dir" : 'X\(//\)[^/]' \| \
37435 X"$as_dir" : 'X\(//\)$' \| \
37436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37437$as_echo X"$as_dir" |
37438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37439 s//\1/
37440 q
37441 }
37442 /^X\(\/\/\)[^/].*/{
37443 s//\1/
37444 q
37445 }
37446 /^X\(\/\/\)$/{
37447 s//\1/
37448 q
37449 }
37450 /^X\(\/\).*/{
37451 s//\1/
37452 q
37453 }
37454 s/.*/./; q'`
37455 test -d "$as_dir" && break
37456 done
37457 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037458 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037459
37460
37461} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037462if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037463 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037464else
37465 test -d ./-p && rmdir ./-p
37466 as_mkdir_p=false
37467fi
37468
cristy14fefe52012-05-21 00:59:18 +000037469
37470# as_fn_executable_p FILE
37471# -----------------------
37472# Test if FILE is an executable regular file.
37473as_fn_executable_p ()
37474{
37475 test -f "$1" && test -x "$1"
37476} # as_fn_executable_p
37477as_test_x='test -x'
37478as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037479
37480# Sed expression to map a string onto a valid CPP name.
37481as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37482
37483# Sed expression to map a string onto a valid variable name.
37484as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37485
37486
37487exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037488## ----------------------------------- ##
37489## Main body of $CONFIG_STATUS script. ##
37490## ----------------------------------- ##
37491_ASEOF
37492test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037493
cristy8b350f62009-11-15 23:12:43 +000037494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37495# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037496# report actual input values of CONFIG_FILES etc. instead of their
37497# values after options handling.
37498ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037499This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037500generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037501
37502 CONFIG_FILES = $CONFIG_FILES
37503 CONFIG_HEADERS = $CONFIG_HEADERS
37504 CONFIG_LINKS = $CONFIG_LINKS
37505 CONFIG_COMMANDS = $CONFIG_COMMANDS
37506 $ $0 $@
37507
37508on `(hostname || uname -n) 2>/dev/null | sed 1q`
37509"
37510
37511_ACEOF
37512
37513case $ac_config_files in *"
37514"*) set x $ac_config_files; shift; ac_config_files=$*;;
37515esac
37516
37517case $ac_config_headers in *"
37518"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37519esac
37520
37521
37522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37523# Files that config.status was made for.
37524config_files="$ac_config_files"
37525config_headers="$ac_config_headers"
37526config_commands="$ac_config_commands"
37527
37528_ACEOF
37529
37530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37531ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037532\`$as_me' instantiates files and other configuration actions
37533from templates according to the current configuration. Unless the files
37534and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037535
cristy8b350f62009-11-15 23:12:43 +000037536Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037537
37538 -h, --help print this help, then exit
37539 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037540 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037541 -q, --quiet, --silent
37542 do not print progress messages
37543 -d, --debug don't remove temporary files
37544 --recheck update $as_me by reconfiguring in the same conditions
37545 --file=FILE[:TEMPLATE]
37546 instantiate the configuration file FILE
37547 --header=FILE[:TEMPLATE]
37548 instantiate the configuration header FILE
37549
37550Configuration files:
37551$config_files
37552
37553Configuration headers:
37554$config_headers
37555
37556Configuration commands:
37557$config_commands
37558
cristy8b350f62009-11-15 23:12:43 +000037559Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037560
37561_ACEOF
37562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037563ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037564ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037565ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037566configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037567 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037568
cristy14fefe52012-05-21 00:59:18 +000037569Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037570This config.status script is free software; the Free Software Foundation
37571gives unlimited permission to copy, distribute and modify it."
37572
37573ac_pwd='$ac_pwd'
37574srcdir='$srcdir'
37575INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037576MKDIR_P='$MKDIR_P'
37577AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037578test -n "\$AWK" || AWK=awk
37579_ACEOF
37580
37581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37582# The default lists apply if the user does not specify any file.
37583ac_need_defaults=:
37584while test $# != 0
37585do
37586 case $1 in
cristyda16f162011-02-19 23:52:17 +000037587 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37590 ac_shift=:
37591 ;;
cristyda16f162011-02-19 23:52:17 +000037592 --*=)
37593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37594 ac_optarg=
37595 ac_shift=:
37596 ;;
cristy3ed852e2009-09-05 21:47:34 +000037597 *)
37598 ac_option=$1
37599 ac_optarg=$2
37600 ac_shift=shift
37601 ;;
37602 esac
37603
37604 case $ac_option in
37605 # Handling of the options.
37606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37607 ac_cs_recheck=: ;;
37608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37609 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037610 --config | --confi | --conf | --con | --co | --c )
37611 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037612 --debug | --debu | --deb | --de | --d | -d )
37613 debug=: ;;
37614 --file | --fil | --fi | --f )
37615 $ac_shift
37616 case $ac_optarg in
37617 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037618 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037619 esac
cristy8b350f62009-11-15 23:12:43 +000037620 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037621 ac_need_defaults=false;;
37622 --header | --heade | --head | --hea )
37623 $ac_shift
37624 case $ac_optarg in
37625 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37626 esac
cristy8b350f62009-11-15 23:12:43 +000037627 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037628 ac_need_defaults=false;;
37629 --he | --h)
37630 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037631 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037632Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037633 --help | --hel | -h )
37634 $as_echo "$ac_cs_usage"; exit ;;
37635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37637 ac_cs_silent=: ;;
37638
37639 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037640 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037641Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037642
cristy8b350f62009-11-15 23:12:43 +000037643 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037644 ac_need_defaults=false ;;
37645
37646 esac
37647 shift
37648done
37649
37650ac_configure_extra_args=
37651
37652if $ac_cs_silent; then
37653 exec 6>/dev/null
37654 ac_configure_extra_args="$ac_configure_extra_args --silent"
37655fi
37656
37657_ACEOF
37658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37659if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037660 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037661 shift
37662 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37663 CONFIG_SHELL='$SHELL'
37664 export CONFIG_SHELL
37665 exec "\$@"
37666fi
37667
37668_ACEOF
37669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37670exec 5>>config.log
37671{
37672 echo
37673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37674## Running $as_me. ##
37675_ASBOX
37676 $as_echo "$ac_log"
37677} >&5
37678
37679_ACEOF
37680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037681#
37682# INIT-COMMANDS
37683#
37684PACKAGE="$PACKAGE"
37685AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37686
37687
37688# The HP-UX ksh and POSIX shell print the target directory to stdout
37689# if CDPATH is set.
37690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37691
37692sed_quote_subst='$sed_quote_subst'
37693double_quote_subst='$double_quote_subst'
37694delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037695SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37696Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37697GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37698EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37699FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37700SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37701ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37702LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37703macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37704macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37705AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37706DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37707OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37708enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37709enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37710pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37711enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037712PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037713host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37714host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37715host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37716build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37717build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37718build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37719NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37720LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37721max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37722ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37723exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37724lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37725lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37726lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037727lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37728lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037729reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37730reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37731deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37732file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037733file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37734want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37735sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037736AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37737AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037738archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037739STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37740RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37741old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37742old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37743old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37744lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37745CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37746CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37747compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37748GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37749lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37750lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37751lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37752lt_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 +000037753nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37754lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037755objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37756MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37757lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037758lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037759lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037760lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37761lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37762need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037763MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037764DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37765NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37766LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37767OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37768OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37769libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37770shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37771extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37772archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37773enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37774export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37775whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37776compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37777old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37778old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37779archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37780archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37781module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37782module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37783with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37784allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37785no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37786hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037787hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37788hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37789hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37790hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37791hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37792hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37793inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37794link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037795always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37796export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37797exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37798include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37799prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037800postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037801file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37802variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37803need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37804need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37805version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37806runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37807shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37808shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37809libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37810library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37811soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37812install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37813postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37814postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37815finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37816finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37817hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37818sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37819sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37820hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37821enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37822enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37823enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37824old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37825striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37826compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37827predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37828postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37829predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37830postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37831compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37832LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37833reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37834reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37835old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37836compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37837GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37838lt_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 +000037839lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037840lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037841lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37842lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37843archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37844enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37845export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37846whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37847compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37848old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37849old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37850archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37851archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37852module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37853module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37854with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37855allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37856no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37857hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037858hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37859hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37860hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37861hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37862hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37863hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37864inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37865link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037866always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37867export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37868exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37869include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37870prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037871postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037872file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37873hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37874compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37875predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37876postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37877predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37878postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37879compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037880
37881LTCC='$LTCC'
37882LTCFLAGS='$LTCFLAGS'
37883compiler='$compiler_DEFAULT'
37884
cristy0c60a692010-11-04 01:09:47 +000037885# A function that is used when there is no print builtin or printf.
37886func_fallback_echo ()
37887{
37888 eval 'cat <<_LTECHO_EOF
37889\$1
37890_LTECHO_EOF'
37891}
37892
cristy73bd4a52010-10-05 11:24:23 +000037893# Quote evaled strings.
37894for var in SED \
37895GREP \
37896EGREP \
37897FGREP \
cristy0c60a692010-11-04 01:09:47 +000037898SHELL \
37899ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037900LD \
cristy0c60a692010-11-04 01:09:47 +000037901AS \
37902DLLTOOL \
37903OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037904PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037905NM \
37906LN_S \
37907lt_SP2NL \
37908lt_NL2SP \
37909reload_flag \
37910deplibs_check_method \
37911file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037912file_magic_glob \
37913want_nocaseglob \
37914sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037915AR \
37916AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037917archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037918STRIP \
37919RANLIB \
37920CC \
37921CFLAGS \
37922compiler \
37923lt_cv_sys_global_symbol_pipe \
37924lt_cv_sys_global_symbol_to_cdecl \
37925lt_cv_sys_global_symbol_to_c_name_address \
37926lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037927nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037928lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037929lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037930lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037931lt_prog_compiler_static \
37932lt_cv_prog_compiler_c_o \
37933need_locks \
cristyda16f162011-02-19 23:52:17 +000037934MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037935DSYMUTIL \
37936NMEDIT \
37937LIPO \
37938OTOOL \
37939OTOOL64 \
37940shrext_cmds \
37941export_dynamic_flag_spec \
37942whole_archive_flag_spec \
37943compiler_needs_object \
37944with_gnu_ld \
37945allow_undefined_flag \
37946no_undefined_flag \
37947hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037948hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037949exclude_expsyms \
37950include_expsyms \
37951file_list_spec \
37952variables_saved_for_relink \
37953libname_spec \
37954library_names_spec \
37955soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037956install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037957finish_eval \
37958old_striplib \
37959striplib \
37960compiler_lib_search_dirs \
37961predep_objects \
37962postdep_objects \
37963predeps \
37964postdeps \
37965compiler_lib_search_path \
37966LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037967reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037968compiler_CXX \
37969lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037970lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037971lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037972lt_prog_compiler_static_CXX \
37973lt_cv_prog_compiler_c_o_CXX \
37974export_dynamic_flag_spec_CXX \
37975whole_archive_flag_spec_CXX \
37976compiler_needs_object_CXX \
37977with_gnu_ld_CXX \
37978allow_undefined_flag_CXX \
37979no_undefined_flag_CXX \
37980hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037981hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037982exclude_expsyms_CXX \
37983include_expsyms_CXX \
37984file_list_spec_CXX \
37985compiler_lib_search_dirs_CXX \
37986predep_objects_CXX \
37987postdep_objects_CXX \
37988predeps_CXX \
37989postdeps_CXX \
37990compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037992 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037994 ;;
37995 *)
37996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37997 ;;
37998 esac
37999done
38000
38001# Double-quote double-evaled strings.
38002for var in reload_cmds \
38003old_postinstall_cmds \
38004old_postuninstall_cmds \
38005old_archive_cmds \
38006extract_expsyms_cmds \
38007old_archive_from_new_cmds \
38008old_archive_from_expsyms_cmds \
38009archive_cmds \
38010archive_expsym_cmds \
38011module_cmds \
38012module_expsym_cmds \
38013export_symbols_cmds \
38014prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000038015postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000038016postinstall_cmds \
38017postuninstall_cmds \
38018finish_cmds \
38019sys_lib_search_path_spec \
38020sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000038021reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038022old_archive_cmds_CXX \
38023old_archive_from_new_cmds_CXX \
38024old_archive_from_expsyms_cmds_CXX \
38025archive_cmds_CXX \
38026archive_expsym_cmds_CXX \
38027module_cmds_CXX \
38028module_expsym_cmds_CXX \
38029export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000038030prelink_cmds_CXX \
38031postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000038032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000038033 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000038034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000038035 ;;
38036 *)
38037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38038 ;;
38039 esac
38040done
38041
cristy73bd4a52010-10-05 11:24:23 +000038042ac_aux_dir='$ac_aux_dir'
38043xsi_shell='$xsi_shell'
38044lt_shell_append='$lt_shell_append'
38045
38046# See if we are running on zsh, and set the options which allow our
38047# commands through without removal of \ escapes INIT.
38048if test -n "\${ZSH_VERSION+set}" ; then
38049 setopt NO_GLOB_SUBST
38050fi
38051
38052
38053 PACKAGE='$PACKAGE'
38054 VERSION='$VERSION'
38055 TIMESTAMP='$TIMESTAMP'
38056 RM='$RM'
38057 ofile='$ofile'
38058
38059
38060
38061
38062
38063
cristy3ed852e2009-09-05 21:47:34 +000038064_ACEOF
38065
38066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38067
38068# Handling of arguments.
38069for ac_config_target in $ac_config_targets
38070do
38071 case $ac_config_target in
38072 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000038073 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000038074 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000038075 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
38076 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
38077 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
38078 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
38079 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000038080 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000038081 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000038082 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
38083 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
38084 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
38085 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
38086 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000038087 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000038088 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000038089 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
38090 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
38091 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000038092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38093 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000038094 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000038095 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000038096 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000038097 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000038098 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
38099 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
38100 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
38101 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000038102 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
38103 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
38104 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
38105 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
38106 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
38107 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
38108 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
38109 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
38110 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
38111 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
38112 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
38113 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000038114 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
38115 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000038116 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38117 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000038118 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038119 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000038120 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000038121 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000038122 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
38123 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
38124
cristy98dddb52010-11-04 00:30:15 +000038125 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038126 esac
38127done
38128
38129
38130# If the user did not use the arguments to specify the items to instantiate,
38131# then the envvar interface is used. Set only those that are not.
38132# We use the long form for the default assignment because of an extremely
38133# bizarre bug on SunOS 4.1.3.
38134if $ac_need_defaults; then
38135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38138fi
38139
38140# Have a temporary directory for convenience. Make it in the build tree
38141# simply because there is no reason against having it here, and in addition,
38142# creating and moving files from /tmp can sometimes cause problems.
38143# Hook for its removal unless debugging.
38144# Note that there is a small window in which the directory will not be cleaned:
38145# after its creation but before its name has been assigned to `$tmp'.
38146$debug ||
38147{
cristyda16f162011-02-19 23:52:17 +000038148 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000038149 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000038150 : "${ac_tmp:=$tmp}"
38151 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000038152' 0
cristy8b350f62009-11-15 23:12:43 +000038153 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000038154}
38155# Create a (secure) tmp directory for tmp files.
38156
38157{
38158 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000038159 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000038160} ||
38161{
38162 tmp=./conf$$-$RANDOM
38163 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000038164} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038165ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000038166
38167# Set up the scripts for CONFIG_FILES section.
38168# No need to generate them if there are no CONFIG_FILES.
38169# This happens for instance with `./config.status config.h'.
38170if test -n "$CONFIG_FILES"; then
38171
38172
cristy8b350f62009-11-15 23:12:43 +000038173ac_cr=`echo X | tr X '\015'`
38174# On cygwin, bash can eat \r inside `` if the user requested igncr.
38175# But we know of no other shell where ac_cr would be empty at this
38176# point, so we can use a bashism as a fallback.
38177if test "x$ac_cr" = x; then
38178 eval ac_cr=\$\'\\r\'
38179fi
cristy3ed852e2009-09-05 21:47:34 +000038180ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38181if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000038182 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000038183else
38184 ac_cs_awk_cr=$ac_cr
38185fi
38186
cristyda16f162011-02-19 23:52:17 +000038187echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000038188_ACEOF
38189
38190
38191{
38192 echo "cat >conf$$subs.awk <<_ACEOF" &&
38193 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38194 echo "_ACEOF"
38195} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38197ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000038198ac_delim='%!_!# '
38199for ac_last_try in false false false false false :; do
38200 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038202
38203 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38204 if test $ac_delim_n = $ac_delim_num; then
38205 break
38206 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038208 else
38209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38210 fi
38211done
38212rm -f conf$$subs.sh
38213
38214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000038215cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038216_ACEOF
38217sed -n '
38218h
38219s/^/S["/; s/!.*/"]=/
38220p
38221g
38222s/^[^!]*!//
38223:repl
38224t repl
38225s/'"$ac_delim"'$//
38226t delim
38227:nl
38228h
cristycd4c5312009-11-22 01:19:08 +000038229s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038230t more1
38231s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38232p
38233n
38234b repl
38235:more1
38236s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38237p
38238g
38239s/.\{148\}//
38240t nl
38241:delim
38242h
cristycd4c5312009-11-22 01:19:08 +000038243s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038244t more2
38245s/["\\]/\\&/g; s/^/"/; s/$/"/
38246p
38247b
38248:more2
38249s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38250p
38251g
38252s/.\{148\}//
38253t delim
38254' <conf$$subs.awk | sed '
38255/^[^""]/{
38256 N
38257 s/\n//
38258}
38259' >>$CONFIG_STATUS || ac_write_fail=1
38260rm -f conf$$subs.awk
38261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38262_ACAWK
cristyda16f162011-02-19 23:52:17 +000038263cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038264 for (key in S) S_is_set[key] = 1
38265 FS = ""
38266
38267}
38268{
38269 line = $ 0
38270 nfields = split(line, field, "@")
38271 substed = 0
38272 len = length(field[1])
38273 for (i = 2; i < nfields; i++) {
38274 key = field[i]
38275 keylen = length(key)
38276 if (S_is_set[key]) {
38277 value = S[key]
38278 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38279 len += length(value) + length(field[++i])
38280 substed = 1
38281 } else
38282 len += 1 + keylen
38283 }
38284
38285 print line
38286}
38287
38288_ACAWK
38289_ACEOF
38290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38291if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38292 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38293else
38294 cat
cristyda16f162011-02-19 23:52:17 +000038295fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038296 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038297_ACEOF
38298
cristy98dddb52010-11-04 00:30:15 +000038299# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38300# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038301# trailing colons and then remove the whole line if VPATH becomes empty
38302# (actually we leave an empty line to preserve line numbers).
38303if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038304 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38305h
38306s///
38307s/^/:/
38308s/[ ]*$/:/
38309s/:\$(srcdir):/:/g
38310s/:\${srcdir}:/:/g
38311s/:@srcdir@:/:/g
38312s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038313s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038314x
38315s/\(=[ ]*\).*/\1/
38316G
38317s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038318s/^[^=]*=[ ]*$//
38319}'
38320fi
38321
38322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38323fi # test -n "$CONFIG_FILES"
38324
38325# Set up the scripts for CONFIG_HEADERS section.
38326# No need to generate them if there are no CONFIG_HEADERS.
38327# This happens for instance with `./config.status Makefile'.
38328if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038329cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038330BEGIN {
38331_ACEOF
38332
38333# Transform confdefs.h into an awk script `defines.awk', embedded as
38334# here-document in config.status, that substitutes the proper values into
38335# config.h.in to produce config.h.
38336
38337# Create a delimiter string that does not exist in confdefs.h, to ease
38338# handling of long lines.
38339ac_delim='%!_!# '
38340for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038341 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38342 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038343 break
38344 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038345 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038346 else
38347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38348 fi
38349done
38350
38351# For the awk script, D is an array of macro values keyed by name,
38352# likewise P contains macro parameters if any. Preserve backslash
38353# newline sequences.
38354
38355ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38356sed -n '
38357s/.\{148\}/&'"$ac_delim"'/g
38358t rset
38359:rset
38360s/^[ ]*#[ ]*define[ ][ ]*/ /
38361t def
38362d
38363:def
38364s/\\$//
38365t bsnl
38366s/["\\]/\\&/g
38367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38368D["\1"]=" \3"/p
38369s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38370d
38371:bsnl
38372s/["\\]/\\&/g
38373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38374D["\1"]=" \3\\\\\\n"\\/p
38375t cont
38376s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38377t cont
38378d
38379:cont
38380n
38381s/.\{148\}/&'"$ac_delim"'/g
38382t clear
38383:clear
38384s/\\$//
38385t bsnlc
38386s/["\\]/\\&/g; s/^/"/; s/$/"/p
38387d
38388:bsnlc
38389s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38390b cont
38391' <confdefs.h | sed '
38392s/'"$ac_delim"'/"\\\
38393"/g' >>$CONFIG_STATUS || ac_write_fail=1
38394
38395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38396 for (key in D) D_is_set[key] = 1
38397 FS = ""
38398}
38399/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38400 line = \$ 0
38401 split(line, arg, " ")
38402 if (arg[1] == "#") {
38403 defundef = arg[2]
38404 mac1 = arg[3]
38405 } else {
38406 defundef = substr(arg[1], 2)
38407 mac1 = arg[2]
38408 }
38409 split(mac1, mac2, "(") #)
38410 macro = mac2[1]
38411 prefix = substr(line, 1, index(line, defundef) - 1)
38412 if (D_is_set[macro]) {
38413 # Preserve the white space surrounding the "#".
38414 print prefix "define", macro P[macro] D[macro]
38415 next
38416 } else {
38417 # Replace #undef with comments. This is necessary, for example,
38418 # in the case of _POSIX_SOURCE, which is predefined and required
38419 # on some systems where configure will not decide to define it.
38420 if (defundef == "undef") {
38421 print "/*", prefix defundef, macro, "*/"
38422 next
38423 }
38424 }
38425}
38426{ print }
38427_ACAWK
38428_ACEOF
38429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038430 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038431fi # test -n "$CONFIG_HEADERS"
38432
38433
38434eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38435shift
38436for ac_tag
38437do
38438 case $ac_tag in
38439 :[FHLC]) ac_mode=$ac_tag; continue;;
38440 esac
38441 case $ac_mode$ac_tag in
38442 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038443 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038444 :[FH]-) ac_tag=-:-;;
38445 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38446 esac
38447 ac_save_IFS=$IFS
38448 IFS=:
38449 set x $ac_tag
38450 IFS=$ac_save_IFS
38451 shift
38452 ac_file=$1
38453 shift
38454
38455 case $ac_mode in
38456 :L) ac_source=$1;;
38457 :[FH])
38458 ac_file_inputs=
38459 for ac_f
38460 do
38461 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038462 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038463 *) # Look for the file first in the build tree, then in the source tree
38464 # (if the path is not absolute). The absolute path cannot be DOS-style,
38465 # because $ac_f cannot contain `:'.
38466 test -f "$ac_f" ||
38467 case $ac_f in
38468 [\\/$]*) false;;
38469 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38470 esac ||
cristy98dddb52010-11-04 00:30:15 +000038471 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038472 esac
38473 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038474 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038475 done
38476
38477 # Let's still pretend it is `configure' which instantiates (i.e., don't
38478 # use $as_me), people would be surprised to read:
38479 # /* config.h. Generated by config.status. */
38480 configure_input='Generated from '`
38481 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38482 `' by configure.'
38483 if test x"$ac_file" != x-; then
38484 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038486$as_echo "$as_me: creating $ac_file" >&6;}
38487 fi
38488 # Neutralize special characters interpreted by sed in replacement strings.
38489 case $configure_input in #(
38490 *\&* | *\|* | *\\* )
38491 ac_sed_conf_input=`$as_echo "$configure_input" |
38492 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38493 *) ac_sed_conf_input=$configure_input;;
38494 esac
38495
38496 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038497 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038499 esac
38500 ;;
38501 esac
38502
38503 ac_dir=`$as_dirname -- "$ac_file" ||
38504$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38505 X"$ac_file" : 'X\(//\)[^/]' \| \
38506 X"$ac_file" : 'X\(//\)$' \| \
38507 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38508$as_echo X"$ac_file" |
38509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38510 s//\1/
38511 q
38512 }
38513 /^X\(\/\/\)[^/].*/{
38514 s//\1/
38515 q
38516 }
38517 /^X\(\/\/\)$/{
38518 s//\1/
38519 q
38520 }
38521 /^X\(\/\).*/{
38522 s//\1/
38523 q
38524 }
38525 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038526 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038527 ac_builddir=.
38528
38529case "$ac_dir" in
38530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38531*)
38532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38533 # A ".." for each directory in $ac_dir_suffix.
38534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38535 case $ac_top_builddir_sub in
38536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38538 esac ;;
38539esac
38540ac_abs_top_builddir=$ac_pwd
38541ac_abs_builddir=$ac_pwd$ac_dir_suffix
38542# for backward compatibility:
38543ac_top_builddir=$ac_top_build_prefix
38544
38545case $srcdir in
38546 .) # We are building in place.
38547 ac_srcdir=.
38548 ac_top_srcdir=$ac_top_builddir_sub
38549 ac_abs_top_srcdir=$ac_pwd ;;
38550 [\\/]* | ?:[\\/]* ) # Absolute name.
38551 ac_srcdir=$srcdir$ac_dir_suffix;
38552 ac_top_srcdir=$srcdir
38553 ac_abs_top_srcdir=$srcdir ;;
38554 *) # Relative name.
38555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38556 ac_top_srcdir=$ac_top_build_prefix$srcdir
38557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38558esac
38559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38560
38561
38562 case $ac_mode in
38563 :F)
38564 #
38565 # CONFIG_FILE
38566 #
38567
38568 case $INSTALL in
38569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38570 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38571 esac
cristy73bd4a52010-10-05 11:24:23 +000038572 ac_MKDIR_P=$MKDIR_P
38573 case $MKDIR_P in
38574 [\\/$]* | ?:[\\/]* ) ;;
38575 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38576 esac
cristy3ed852e2009-09-05 21:47:34 +000038577_ACEOF
38578
38579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38580# If the template does not know about datarootdir, expand it.
38581# FIXME: This hack should be removed a few years after 2.60.
38582ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038583ac_sed_dataroot='
38584/datarootdir/ {
38585 p
38586 q
38587}
38588/@datadir@/p
38589/@docdir@/p
38590/@infodir@/p
38591/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038592/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038593case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38594*datarootdir*) ac_datarootdir_seen=yes;;
38595*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038597$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38598_ACEOF
38599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38600 ac_datarootdir_hack='
38601 s&@datadir@&$datadir&g
38602 s&@docdir@&$docdir&g
38603 s&@infodir@&$infodir&g
38604 s&@localedir@&$localedir&g
38605 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038606 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038607esac
38608_ACEOF
38609
38610# Neutralize VPATH when `$srcdir' = `.'.
38611# Shell code in configure.ac might set extrasub.
38612# FIXME: do we really want to maintain this feature?
38613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38614ac_sed_extra="$ac_vpsub
38615$extrasub
38616_ACEOF
38617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38618:t
38619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38620s|@configure_input@|$ac_sed_conf_input|;t t
38621s&@top_builddir@&$ac_top_builddir_sub&;t t
38622s&@top_build_prefix@&$ac_top_build_prefix&;t t
38623s&@srcdir@&$ac_srcdir&;t t
38624s&@abs_srcdir@&$ac_abs_srcdir&;t t
38625s&@top_srcdir@&$ac_top_srcdir&;t t
38626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38627s&@builddir@&$ac_builddir&;t t
38628s&@abs_builddir@&$ac_abs_builddir&;t t
38629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38630s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038631s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038632$ac_datarootdir_hack
38633"
cristyda16f162011-02-19 23:52:17 +000038634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38635 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038636
38637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038638 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38639 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38640 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038642which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038644which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038645
cristyda16f162011-02-19 23:52:17 +000038646 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038647 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038648 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38649 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038650 esac \
cristy98dddb52010-11-04 00:30:15 +000038651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038652 ;;
38653 :H)
38654 #
38655 # CONFIG_HEADER
38656 #
38657 if test x"$ac_file" != x-; then
38658 {
38659 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038660 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38661 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038663 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038665$as_echo "$as_me: $ac_file is unchanged" >&6;}
38666 else
38667 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038668 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038670 fi
38671 else
38672 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038673 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038674 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038675 fi
cristy73bd4a52010-10-05 11:24:23 +000038676# Compute "$ac_file"'s index in $config_headers.
38677_am_arg="$ac_file"
38678_am_stamp_count=1
38679for _am_header in $config_headers :; do
38680 case $_am_header in
38681 $_am_arg | $_am_arg:* )
38682 break ;;
38683 * )
38684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38685 esac
38686done
38687echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38688$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38689 X"$_am_arg" : 'X\(//\)[^/]' \| \
38690 X"$_am_arg" : 'X\(//\)$' \| \
38691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38692$as_echo X"$_am_arg" |
38693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38694 s//\1/
38695 q
38696 }
38697 /^X\(\/\/\)[^/].*/{
38698 s//\1/
38699 q
38700 }
38701 /^X\(\/\/\)$/{
38702 s//\1/
38703 q
38704 }
38705 /^X\(\/\).*/{
38706 s//\1/
38707 q
38708 }
38709 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038710 ;;
38711
cristy8b350f62009-11-15 23:12:43 +000038712 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038713$as_echo "$as_me: executing $ac_file commands" >&6;}
38714 ;;
38715 esac
38716
38717
38718 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038719 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038720ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38721ac_prefix_conf_PKG=`echo MagickCore`
38722ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38723ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38724ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38725if test ".$ac_prefix_conf_INP" = "."; then
38726 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38727 case "$ac_file" in
38728 *.h) ac_prefix_conf_INP=$ac_file ;;
38729 *)
38730 esac
38731 test ".$ac_prefix_conf_INP" != "." && break
38732 done
38733fi
38734if test ".$ac_prefix_conf_INP" = "."; then
38735 case "$ac_prefix_conf_OUT" in
38736 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38737 ;;
38738 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38739 ;;
38740 *) ac_prefix_conf_INP=config.h
38741 ;;
38742 esac
38743fi
38744if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038745 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038746else
38747 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38748 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38749 fi fi
38750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38751$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38752 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038753 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38754 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38755 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38756 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38757 $as_echo "#endif/" >> conftest.prefix
38758 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38759 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38760 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038761 # now executing _script on _DEF input to create _OUT output file
38762 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38763 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38764 echo ' ' >>$tmp/pconfig.h
38765 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38766
38767 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38768 echo ' ' >>$tmp/pconfig.h
38769 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38770 echo "#endif" >>$tmp/pconfig.h
38771 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38772 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38773$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38774 else
38775 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38776$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38777 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38778 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38779 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38780$as_echo X"$ac_prefix_conf_OUT" |
38781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38782 s//\1/
38783 q
38784 }
38785 /^X\(\/\/\)[^/].*/{
38786 s//\1/
38787 q
38788 }
38789 /^X\(\/\/\)$/{
38790 s//\1/
38791 q
38792 }
38793 /^X\(\/\).*/{
38794 s//\1/
38795 q
38796 }
38797 s/.*/./; q'`
38798 as_dir="$ac_dir"; as_fn_mkdir_p
38799 rm -f "$ac_prefix_conf_OUT"
38800 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38801 fi
38802 cp conftest.prefix _configs.sed
38803 else
cristy98dddb52010-11-04 00:30:15 +000038804 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 +000038805 fi
38806 rm -f conftest.*
38807fi
38808 ;;
38809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038810 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038811 # are listed without --file. Let's play safe and only enable the eval
38812 # if we detect the quoting.
38813 case $CONFIG_FILES in
38814 *\'*) eval set x "$CONFIG_FILES" ;;
38815 *) set x $CONFIG_FILES ;;
38816 esac
38817 shift
38818 for mf
38819 do
38820 # Strip MF so we end up with the name of the file.
38821 mf=`echo "$mf" | sed -e 's/:.*$//'`
38822 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038823 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038824 # some people rename them; so instead we look at the file content.
38825 # Grep'ing the first line is not enough: some people post-process
38826 # each Makefile.in and add a new line on top of each file to say so.
38827 # Grep'ing the whole file is not good either: AIX grep has a line
38828 # limit of 2048, but all sed's we know have understand at least 4000.
38829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38830 dirpart=`$as_dirname -- "$mf" ||
38831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38832 X"$mf" : 'X\(//\)[^/]' \| \
38833 X"$mf" : 'X\(//\)$' \| \
38834 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38835$as_echo X"$mf" |
38836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38837 s//\1/
38838 q
38839 }
38840 /^X\(\/\/\)[^/].*/{
38841 s//\1/
38842 q
38843 }
38844 /^X\(\/\/\)$/{
38845 s//\1/
38846 q
38847 }
38848 /^X\(\/\).*/{
38849 s//\1/
38850 q
38851 }
38852 s/.*/./; q'`
38853 else
38854 continue
38855 fi
38856 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038857 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38859 test -z "$DEPDIR" && continue
38860 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038861 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038863 # Find all dependency output files, they are included files with
38864 # $(DEPDIR) in their names. We invoke sed twice because it is the
38865 # simplest approach to changing $(DEPDIR) to its actual value in the
38866 # expansion.
38867 for file in `sed -n "
38868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038870 # Make sure the directory exists.
38871 test -f "$dirpart/$file" && continue
38872 fdir=`$as_dirname -- "$file" ||
38873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38874 X"$file" : 'X\(//\)[^/]' \| \
38875 X"$file" : 'X\(//\)$' \| \
38876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38877$as_echo X"$file" |
38878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38879 s//\1/
38880 q
38881 }
38882 /^X\(\/\/\)[^/].*/{
38883 s//\1/
38884 q
38885 }
38886 /^X\(\/\/\)$/{
38887 s//\1/
38888 q
38889 }
38890 /^X\(\/\).*/{
38891 s//\1/
38892 q
38893 }
38894 s/.*/./; q'`
38895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38896 # echo "creating $dirpart/$file"
38897 echo '# dummy' > "$dirpart/$file"
38898 done
38899 done
38900}
38901 ;;
38902 "libtool":C)
38903
38904 # See if we are running on zsh, and set the options which allow our
38905 # commands through without removal of \ escapes.
38906 if test -n "${ZSH_VERSION+set}" ; then
38907 setopt NO_GLOB_SUBST
38908 fi
38909
38910 cfgfile="${ofile}T"
38911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38912 $RM "$cfgfile"
38913
38914 cat <<_LT_EOF >> "$cfgfile"
38915#! $SHELL
38916
38917# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38918# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38920# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38921#
38922# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038923# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38924# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038925# Written by Gordon Matzigkeit, 1996
38926#
38927# This file is part of GNU Libtool.
38928#
38929# GNU Libtool is free software; you can redistribute it and/or
38930# modify it under the terms of the GNU General Public License as
38931# published by the Free Software Foundation; either version 2 of
38932# the License, or (at your option) any later version.
38933#
38934# As a special exception to the GNU General Public License,
38935# if you distribute this file as part of a program or library that
38936# is built using GNU Libtool, you may include this file under the
38937# same distribution terms that you use for the rest of that program.
38938#
38939# GNU Libtool is distributed in the hope that it will be useful,
38940# but WITHOUT ANY WARRANTY; without even the implied warranty of
38941# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38942# GNU General Public License for more details.
38943#
38944# You should have received a copy of the GNU General Public License
38945# along with GNU Libtool; see the file COPYING. If not, a copy
38946# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38947# obtained by writing to the Free Software Foundation, Inc.,
38948# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38949
38950
38951# The names of the tagged configurations supported by this script.
38952available_tags="CXX "
38953
38954# ### BEGIN LIBTOOL CONFIG
38955
38956# A sed program that does not truncate output.
38957SED=$lt_SED
38958
38959# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38960Xsed="\$SED -e 1s/^X//"
38961
38962# A grep program that handles long lines.
38963GREP=$lt_GREP
38964
38965# An ERE matcher.
38966EGREP=$lt_EGREP
38967
38968# A literal string matcher.
38969FGREP=$lt_FGREP
38970
cristy0c60a692010-11-04 01:09:47 +000038971# Shell to use when invoking shell scripts.
38972SHELL=$lt_SHELL
38973
38974# An echo program that protects backslashes.
38975ECHO=$lt_ECHO
38976
cristy73bd4a52010-10-05 11:24:23 +000038977# Which release of libtool.m4 was used?
38978macro_version=$macro_version
38979macro_revision=$macro_revision
38980
38981# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038982AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038983
38984# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038985DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038986
38987# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038988OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038989
38990# Whether or not to build shared libraries.
38991build_libtool_libs=$enable_shared
38992
38993# Whether or not to build static libraries.
38994build_old_libs=$enable_static
38995
38996# What type of objects to build.
38997pic_mode=$pic_mode
38998
38999# Whether or not to optimize for fast installation.
39000fast_install=$enable_fast_install
39001
cristy99bd5232011-12-07 14:38:20 +000039002# The PATH separator for the build system.
39003PATH_SEPARATOR=$lt_PATH_SEPARATOR
39004
cristy73bd4a52010-10-05 11:24:23 +000039005# The host system.
39006host_alias=$host_alias
39007host=$host
39008host_os=$host_os
39009
39010# The build system.
39011build_alias=$build_alias
39012build=$build
39013build_os=$build_os
39014
39015# A BSD- or MS-compatible name lister.
39016NM=$lt_NM
39017
39018# Whether we need soft or hard links.
39019LN_S=$lt_LN_S
39020
39021# What is the maximum length of a command?
39022max_cmd_len=$max_cmd_len
39023
39024# Object file suffix (normally "o").
39025objext=$ac_objext
39026
39027# Executable file suffix (normally "").
39028exeext=$exeext
39029
39030# whether the shell understands "unset".
39031lt_unset=$lt_unset
39032
39033# turn spaces into newlines.
39034SP2NL=$lt_lt_SP2NL
39035
39036# turn newlines into spaces.
39037NL2SP=$lt_lt_NL2SP
39038
cristyda16f162011-02-19 23:52:17 +000039039# convert \$build file names to \$host format.
39040to_host_file_cmd=$lt_cv_to_host_file_cmd
39041
39042# convert \$build files to toolchain format.
39043to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39044
cristy73bd4a52010-10-05 11:24:23 +000039045# Method to check whether dependent libraries are shared objects.
39046deplibs_check_method=$lt_deplibs_check_method
39047
cristyda16f162011-02-19 23:52:17 +000039048# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000039049file_magic_cmd=$lt_file_magic_cmd
39050
cristyda16f162011-02-19 23:52:17 +000039051# How to find potential files when deplibs_check_method = "file_magic".
39052file_magic_glob=$lt_file_magic_glob
39053
39054# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39055want_nocaseglob=$lt_want_nocaseglob
39056
39057# Command to associate shared and link libraries.
39058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39059
cristy73bd4a52010-10-05 11:24:23 +000039060# The archiver.
39061AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000039062
39063# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000039064AR_FLAGS=$lt_AR_FLAGS
39065
cristyda16f162011-02-19 23:52:17 +000039066# How to feed a file listing to the archiver.
39067archiver_list_spec=$lt_archiver_list_spec
39068
cristy73bd4a52010-10-05 11:24:23 +000039069# A symbol stripping program.
39070STRIP=$lt_STRIP
39071
39072# Commands used to install an old-style archive.
39073RANLIB=$lt_RANLIB
39074old_postinstall_cmds=$lt_old_postinstall_cmds
39075old_postuninstall_cmds=$lt_old_postuninstall_cmds
39076
cristy0c60a692010-11-04 01:09:47 +000039077# Whether to use a lock for old archive extraction.
39078lock_old_archive_extraction=$lock_old_archive_extraction
39079
cristy73bd4a52010-10-05 11:24:23 +000039080# A C compiler.
39081LTCC=$lt_CC
39082
39083# LTCC compiler flags.
39084LTCFLAGS=$lt_CFLAGS
39085
39086# Take the output of nm and produce a listing of raw symbols and C names.
39087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39088
39089# Transform the output of nm in a proper C declaration.
39090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39091
39092# Transform the output of nm in a C name address pair.
39093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39094
39095# Transform the output of nm in a C name address pair when lib prefix is needed.
39096global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39097
cristyda16f162011-02-19 23:52:17 +000039098# Specify filename containing input files for \$NM.
39099nm_file_list_spec=$lt_nm_file_list_spec
39100
39101# The root where to search for dependent libraries,and in which our libraries should be installed.
39102lt_sysroot=$lt_sysroot
39103
cristy73bd4a52010-10-05 11:24:23 +000039104# The name of the directory that contains temporary libtool files.
39105objdir=$objdir
39106
cristy73bd4a52010-10-05 11:24:23 +000039107# Used to examine libraries when file_magic_cmd begins with "file".
39108MAGIC_CMD=$MAGIC_CMD
39109
39110# Must we lock files when doing compilation?
39111need_locks=$lt_need_locks
39112
cristyda16f162011-02-19 23:52:17 +000039113# Manifest tool.
39114MANIFEST_TOOL=$lt_MANIFEST_TOOL
39115
cristy73bd4a52010-10-05 11:24:23 +000039116# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39117DSYMUTIL=$lt_DSYMUTIL
39118
39119# Tool to change global to local symbols on Mac OS X.
39120NMEDIT=$lt_NMEDIT
39121
39122# Tool to manipulate fat objects and archives on Mac OS X.
39123LIPO=$lt_LIPO
39124
39125# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39126OTOOL=$lt_OTOOL
39127
39128# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39129OTOOL64=$lt_OTOOL64
39130
39131# Old archive suffix (normally "a").
39132libext=$libext
39133
39134# Shared library suffix (normally ".so").
39135shrext_cmds=$lt_shrext_cmds
39136
39137# The commands to extract the exported symbol list from a shared archive.
39138extract_expsyms_cmds=$lt_extract_expsyms_cmds
39139
39140# Variables whose values should be saved in libtool wrapper scripts and
39141# restored at link time.
39142variables_saved_for_relink=$lt_variables_saved_for_relink
39143
39144# Do we need the "lib" prefix for modules?
39145need_lib_prefix=$need_lib_prefix
39146
39147# Do we need a version for libraries?
39148need_version=$need_version
39149
39150# Library versioning type.
39151version_type=$version_type
39152
39153# Shared library runtime path variable.
39154runpath_var=$runpath_var
39155
39156# Shared library path variable.
39157shlibpath_var=$shlibpath_var
39158
39159# Is shlibpath searched before the hard-coded library search path?
39160shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39161
39162# Format of library name prefix.
39163libname_spec=$lt_libname_spec
39164
39165# List of archive names. First name is the real one, the rest are links.
39166# The last name is the one that the linker finds with -lNAME
39167library_names_spec=$lt_library_names_spec
39168
39169# The coded name of the library, if different from the real name.
39170soname_spec=$lt_soname_spec
39171
cristy0c60a692010-11-04 01:09:47 +000039172# Permission mode override for installation of shared libraries.
39173install_override_mode=$lt_install_override_mode
39174
cristy73bd4a52010-10-05 11:24:23 +000039175# Command to use after installation of a shared archive.
39176postinstall_cmds=$lt_postinstall_cmds
39177
39178# Command to use after uninstallation of a shared archive.
39179postuninstall_cmds=$lt_postuninstall_cmds
39180
39181# Commands used to finish a libtool library installation in a directory.
39182finish_cmds=$lt_finish_cmds
39183
39184# As "finish_cmds", except a single script fragment to be evaled but
39185# not shown.
39186finish_eval=$lt_finish_eval
39187
39188# Whether we should hardcode library paths into libraries.
39189hardcode_into_libs=$hardcode_into_libs
39190
39191# Compile-time system search path for libraries.
39192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39193
39194# Run-time system search path for libraries.
39195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39196
39197# Whether dlopen is supported.
39198dlopen_support=$enable_dlopen
39199
39200# Whether dlopen of programs is supported.
39201dlopen_self=$enable_dlopen_self
39202
39203# Whether dlopen of statically linked programs is supported.
39204dlopen_self_static=$enable_dlopen_self_static
39205
39206# Commands to strip libraries.
39207old_striplib=$lt_old_striplib
39208striplib=$lt_striplib
39209
39210
39211# The linker used to build libraries.
39212LD=$lt_LD
39213
cristy0c60a692010-11-04 01:09:47 +000039214# How to create reloadable object files.
39215reload_flag=$lt_reload_flag
39216reload_cmds=$lt_reload_cmds
39217
cristy73bd4a52010-10-05 11:24:23 +000039218# Commands used to build an old-style archive.
39219old_archive_cmds=$lt_old_archive_cmds
39220
39221# A language specific compiler.
39222CC=$lt_compiler
39223
39224# Is the compiler the GNU compiler?
39225with_gcc=$GCC
39226
39227# Compiler flag to turn off builtin functions.
39228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39229
cristy73bd4a52010-10-05 11:24:23 +000039230# Additional compiler flags for building library objects.
39231pic_flag=$lt_lt_prog_compiler_pic
39232
cristyda16f162011-02-19 23:52:17 +000039233# How to pass a linker flag through the compiler.
39234wl=$lt_lt_prog_compiler_wl
39235
cristy73bd4a52010-10-05 11:24:23 +000039236# Compiler flag to prevent dynamic linking.
39237link_static_flag=$lt_lt_prog_compiler_static
39238
39239# Does compiler simultaneously support -c and -o options?
39240compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39241
39242# Whether or not to add -lc for building shared libraries.
39243build_libtool_need_lc=$archive_cmds_need_lc
39244
39245# Whether or not to disallow shared libs when runtime libs are static.
39246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39247
39248# Compiler flag to allow reflexive dlopens.
39249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39250
39251# Compiler flag to generate shared objects directly from archives.
39252whole_archive_flag_spec=$lt_whole_archive_flag_spec
39253
39254# Whether the compiler copes with passing no objects directly.
39255compiler_needs_object=$lt_compiler_needs_object
39256
39257# Create an old-style archive from a shared archive.
39258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39259
39260# Create a temporary old-style archive to link instead of a shared archive.
39261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39262
39263# Commands used to build a shared archive.
39264archive_cmds=$lt_archive_cmds
39265archive_expsym_cmds=$lt_archive_expsym_cmds
39266
39267# Commands used to build a loadable module if different from building
39268# a shared archive.
39269module_cmds=$lt_module_cmds
39270module_expsym_cmds=$lt_module_expsym_cmds
39271
39272# Whether we are building with GNU ld or not.
39273with_gnu_ld=$lt_with_gnu_ld
39274
39275# Flag that allows shared libraries with undefined symbols to be built.
39276allow_undefined_flag=$lt_allow_undefined_flag
39277
39278# Flag that enforces no undefined symbols.
39279no_undefined_flag=$lt_no_undefined_flag
39280
39281# Flag to hardcode \$libdir into a binary during linking.
39282# This must work even if \$libdir does not exist
39283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39284
cristy73bd4a52010-10-05 11:24:23 +000039285# Whether we need a single "-rpath" flag with a separated argument.
39286hardcode_libdir_separator=$lt_hardcode_libdir_separator
39287
39288# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39289# DIR into the resulting binary.
39290hardcode_direct=$hardcode_direct
39291
39292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39293# DIR into the resulting binary and the resulting library dependency is
39294# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39295# library is relocated.
39296hardcode_direct_absolute=$hardcode_direct_absolute
39297
39298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39299# into the resulting binary.
39300hardcode_minus_L=$hardcode_minus_L
39301
39302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39303# into the resulting binary.
39304hardcode_shlibpath_var=$hardcode_shlibpath_var
39305
39306# Set to "yes" if building a shared library automatically hardcodes DIR
39307# into the library and all subsequent libraries and executables linked
39308# against it.
39309hardcode_automatic=$hardcode_automatic
39310
39311# Set to yes if linker adds runtime paths of dependent libraries
39312# to runtime path list.
39313inherit_rpath=$inherit_rpath
39314
39315# Whether libtool must link a program against all its dependency libraries.
39316link_all_deplibs=$link_all_deplibs
39317
cristy73bd4a52010-10-05 11:24:23 +000039318# Set to "yes" if exported symbols are required.
39319always_export_symbols=$always_export_symbols
39320
39321# The commands to list exported symbols.
39322export_symbols_cmds=$lt_export_symbols_cmds
39323
39324# Symbols that should not be listed in the preloaded symbols.
39325exclude_expsyms=$lt_exclude_expsyms
39326
39327# Symbols that must always be exported.
39328include_expsyms=$lt_include_expsyms
39329
39330# Commands necessary for linking programs (against libraries) with templates.
39331prelink_cmds=$lt_prelink_cmds
39332
cristyda16f162011-02-19 23:52:17 +000039333# Commands necessary for finishing linking programs.
39334postlink_cmds=$lt_postlink_cmds
39335
cristy73bd4a52010-10-05 11:24:23 +000039336# Specify filename containing input files.
39337file_list_spec=$lt_file_list_spec
39338
39339# How to hardcode a shared library path into an executable.
39340hardcode_action=$hardcode_action
39341
39342# The directories searched by this compiler when creating a shared library.
39343compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39344
39345# Dependencies to place before and after the objects being linked to
39346# create a shared library.
39347predep_objects=$lt_predep_objects
39348postdep_objects=$lt_postdep_objects
39349predeps=$lt_predeps
39350postdeps=$lt_postdeps
39351
39352# The library search path used internally by the compiler when linking
39353# a shared library.
39354compiler_lib_search_path=$lt_compiler_lib_search_path
39355
39356# ### END LIBTOOL CONFIG
39357
39358_LT_EOF
39359
39360 case $host_os in
39361 aix3*)
39362 cat <<\_LT_EOF >> "$cfgfile"
39363# AIX sometimes has problems with the GCC collect2 program. For some
39364# reason, if we set the COLLECT_NAMES environment variable, the problems
39365# vanish in a puff of smoke.
39366if test "X${COLLECT_NAMES+set}" != Xset; then
39367 COLLECT_NAMES=
39368 export COLLECT_NAMES
39369fi
39370_LT_EOF
39371 ;;
39372 esac
39373
39374
39375ltmain="$ac_aux_dir/ltmain.sh"
39376
39377
39378 # We use sed instead of cat because bash on DJGPP gets confused if
39379 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39380 # text mode, it properly converts lines to CR/LF. This bash problem
39381 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039382 sed '$q' "$ltmain" >> "$cfgfile" \
39383 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039384
cristyda16f162011-02-19 23:52:17 +000039385 if test x"$xsi_shell" = xyes; then
39386 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39387func_dirname ()\
39388{\
39389\ case ${1} in\
39390\ */*) func_dirname_result="${1%/*}${2}" ;;\
39391\ * ) func_dirname_result="${3}" ;;\
39392\ esac\
39393} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39394 && mv -f "$cfgfile.tmp" "$cfgfile" \
39395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39396test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039397
39398
cristyda16f162011-02-19 23:52:17 +000039399 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39400func_basename ()\
39401{\
39402\ func_basename_result="${1##*/}"\
39403} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39404 && mv -f "$cfgfile.tmp" "$cfgfile" \
39405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39406test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039407
39408
cristyda16f162011-02-19 23:52:17 +000039409 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39410func_dirname_and_basename ()\
39411{\
39412\ case ${1} in\
39413\ */*) func_dirname_result="${1%/*}${2}" ;;\
39414\ * ) func_dirname_result="${3}" ;;\
39415\ esac\
39416\ func_basename_result="${1##*/}"\
39417} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39418 && mv -f "$cfgfile.tmp" "$cfgfile" \
39419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39420test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039421
cristyda16f162011-02-19 23:52:17 +000039422
39423 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39424func_stripname ()\
39425{\
39426\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39427\ # positional parameters, so assign one to ordinary parameter first.\
39428\ func_stripname_result=${3}\
39429\ func_stripname_result=${func_stripname_result#"${1}"}\
39430\ func_stripname_result=${func_stripname_result%"${2}"}\
39431} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39432 && mv -f "$cfgfile.tmp" "$cfgfile" \
39433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39434test 0 -eq $? || _lt_function_replace_fail=:
39435
39436
39437 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39438func_split_long_opt ()\
39439{\
39440\ func_split_long_opt_name=${1%%=*}\
39441\ func_split_long_opt_arg=${1#*=}\
39442} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39443 && mv -f "$cfgfile.tmp" "$cfgfile" \
39444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39445test 0 -eq $? || _lt_function_replace_fail=:
39446
39447
39448 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39449func_split_short_opt ()\
39450{\
39451\ func_split_short_opt_arg=${1#??}\
39452\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39453} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39454 && mv -f "$cfgfile.tmp" "$cfgfile" \
39455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39456test 0 -eq $? || _lt_function_replace_fail=:
39457
39458
39459 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39460func_lo2o ()\
39461{\
39462\ case ${1} in\
39463\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39464\ *) func_lo2o_result=${1} ;;\
39465\ esac\
39466} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39467 && mv -f "$cfgfile.tmp" "$cfgfile" \
39468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39469test 0 -eq $? || _lt_function_replace_fail=:
39470
39471
39472 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39473func_xform ()\
39474{\
39475 func_xform_result=${1%.*}.lo\
39476} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39477 && mv -f "$cfgfile.tmp" "$cfgfile" \
39478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39479test 0 -eq $? || _lt_function_replace_fail=:
39480
39481
39482 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39483func_arith ()\
39484{\
39485 func_arith_result=$(( $* ))\
39486} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39487 && mv -f "$cfgfile.tmp" "$cfgfile" \
39488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39489test 0 -eq $? || _lt_function_replace_fail=:
39490
39491
39492 sed -e '/^func_len ()$/,/^} # func_len /c\
39493func_len ()\
39494{\
39495 func_len_result=${#1}\
39496} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39497 && mv -f "$cfgfile.tmp" "$cfgfile" \
39498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39499test 0 -eq $? || _lt_function_replace_fail=:
39500
39501fi
39502
39503if test x"$lt_shell_append" = xyes; then
39504 sed -e '/^func_append ()$/,/^} # func_append /c\
39505func_append ()\
39506{\
39507 eval "${1}+=\\${2}"\
39508} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39509 && mv -f "$cfgfile.tmp" "$cfgfile" \
39510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39511test 0 -eq $? || _lt_function_replace_fail=:
39512
39513
39514 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39515func_append_quoted ()\
39516{\
39517\ func_quote_for_eval "${2}"\
39518\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39519} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39520 && mv -f "$cfgfile.tmp" "$cfgfile" \
39521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39522test 0 -eq $? || _lt_function_replace_fail=:
39523
39524
39525 # Save a `func_append' function call where possible by direct use of '+='
39526 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39527 && mv -f "$cfgfile.tmp" "$cfgfile" \
39528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39529 test 0 -eq $? || _lt_function_replace_fail=:
39530else
39531 # Save a `func_append' function call even when '+=' is not available
39532 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39533 && mv -f "$cfgfile.tmp" "$cfgfile" \
39534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39535 test 0 -eq $? || _lt_function_replace_fail=:
39536fi
39537
39538if test x"$_lt_function_replace_fail" = x":"; then
39539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39540$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39541fi
39542
39543
39544 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39546 chmod +x "$ofile"
39547
39548
39549 cat <<_LT_EOF >> "$ofile"
39550
39551# ### BEGIN LIBTOOL TAG CONFIG: CXX
39552
39553# The linker used to build libraries.
39554LD=$lt_LD_CXX
39555
cristy0c60a692010-11-04 01:09:47 +000039556# How to create reloadable object files.
39557reload_flag=$lt_reload_flag_CXX
39558reload_cmds=$lt_reload_cmds_CXX
39559
cristy73bd4a52010-10-05 11:24:23 +000039560# Commands used to build an old-style archive.
39561old_archive_cmds=$lt_old_archive_cmds_CXX
39562
39563# A language specific compiler.
39564CC=$lt_compiler_CXX
39565
39566# Is the compiler the GNU compiler?
39567with_gcc=$GCC_CXX
39568
39569# Compiler flag to turn off builtin functions.
39570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39571
cristy73bd4a52010-10-05 11:24:23 +000039572# Additional compiler flags for building library objects.
39573pic_flag=$lt_lt_prog_compiler_pic_CXX
39574
cristyda16f162011-02-19 23:52:17 +000039575# How to pass a linker flag through the compiler.
39576wl=$lt_lt_prog_compiler_wl_CXX
39577
cristy73bd4a52010-10-05 11:24:23 +000039578# Compiler flag to prevent dynamic linking.
39579link_static_flag=$lt_lt_prog_compiler_static_CXX
39580
39581# Does compiler simultaneously support -c and -o options?
39582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39583
39584# Whether or not to add -lc for building shared libraries.
39585build_libtool_need_lc=$archive_cmds_need_lc_CXX
39586
39587# Whether or not to disallow shared libs when runtime libs are static.
39588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39589
39590# Compiler flag to allow reflexive dlopens.
39591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39592
39593# Compiler flag to generate shared objects directly from archives.
39594whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39595
39596# Whether the compiler copes with passing no objects directly.
39597compiler_needs_object=$lt_compiler_needs_object_CXX
39598
39599# Create an old-style archive from a shared archive.
39600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39601
39602# Create a temporary old-style archive to link instead of a shared archive.
39603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39604
39605# Commands used to build a shared archive.
39606archive_cmds=$lt_archive_cmds_CXX
39607archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39608
39609# Commands used to build a loadable module if different from building
39610# a shared archive.
39611module_cmds=$lt_module_cmds_CXX
39612module_expsym_cmds=$lt_module_expsym_cmds_CXX
39613
39614# Whether we are building with GNU ld or not.
39615with_gnu_ld=$lt_with_gnu_ld_CXX
39616
39617# Flag that allows shared libraries with undefined symbols to be built.
39618allow_undefined_flag=$lt_allow_undefined_flag_CXX
39619
39620# Flag that enforces no undefined symbols.
39621no_undefined_flag=$lt_no_undefined_flag_CXX
39622
39623# Flag to hardcode \$libdir into a binary during linking.
39624# This must work even if \$libdir does not exist
39625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39626
cristy73bd4a52010-10-05 11:24:23 +000039627# Whether we need a single "-rpath" flag with a separated argument.
39628hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39629
39630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39631# DIR into the resulting binary.
39632hardcode_direct=$hardcode_direct_CXX
39633
39634# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39635# DIR into the resulting binary and the resulting library dependency is
39636# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39637# library is relocated.
39638hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39639
39640# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39641# into the resulting binary.
39642hardcode_minus_L=$hardcode_minus_L_CXX
39643
39644# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39645# into the resulting binary.
39646hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39647
39648# Set to "yes" if building a shared library automatically hardcodes DIR
39649# into the library and all subsequent libraries and executables linked
39650# against it.
39651hardcode_automatic=$hardcode_automatic_CXX
39652
39653# Set to yes if linker adds runtime paths of dependent libraries
39654# to runtime path list.
39655inherit_rpath=$inherit_rpath_CXX
39656
39657# Whether libtool must link a program against all its dependency libraries.
39658link_all_deplibs=$link_all_deplibs_CXX
39659
cristy73bd4a52010-10-05 11:24:23 +000039660# Set to "yes" if exported symbols are required.
39661always_export_symbols=$always_export_symbols_CXX
39662
39663# The commands to list exported symbols.
39664export_symbols_cmds=$lt_export_symbols_cmds_CXX
39665
39666# Symbols that should not be listed in the preloaded symbols.
39667exclude_expsyms=$lt_exclude_expsyms_CXX
39668
39669# Symbols that must always be exported.
39670include_expsyms=$lt_include_expsyms_CXX
39671
39672# Commands necessary for linking programs (against libraries) with templates.
39673prelink_cmds=$lt_prelink_cmds_CXX
39674
cristyda16f162011-02-19 23:52:17 +000039675# Commands necessary for finishing linking programs.
39676postlink_cmds=$lt_postlink_cmds_CXX
39677
cristy73bd4a52010-10-05 11:24:23 +000039678# Specify filename containing input files.
39679file_list_spec=$lt_file_list_spec_CXX
39680
39681# How to hardcode a shared library path into an executable.
39682hardcode_action=$hardcode_action_CXX
39683
39684# The directories searched by this compiler when creating a shared library.
39685compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39686
39687# Dependencies to place before and after the objects being linked to
39688# create a shared library.
39689predep_objects=$lt_predep_objects_CXX
39690postdep_objects=$lt_postdep_objects_CXX
39691predeps=$lt_predeps_CXX
39692postdeps=$lt_postdeps_CXX
39693
39694# The library search path used internally by the compiler when linking
39695# a shared library.
39696compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39697
39698# ### END LIBTOOL TAG CONFIG: CXX
39699_LT_EOF
39700
39701 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039702 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039703 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039704 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039705 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39706 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39707
39708 esac
39709done # for ac_tag
39710
39711
cristy8b350f62009-11-15 23:12:43 +000039712as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039713_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039714ac_clean_files=$ac_clean_files_save
39715
39716test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039717 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039718
39719
39720# configure is writing to config.log, and then calls config.status.
39721# config.status does its own redirection, appending to config.log.
39722# Unfortunately, on DOS this fails, as config.log is still kept open
39723# by configure, so config.status won't be able to write to it; its
39724# output is simply discarded. So we exec the FD to /dev/null,
39725# effectively closing config.log, so it can be properly (re)opened and
39726# appended to by config.status. When coming back to configure, we
39727# need to make the FD available again.
39728if test "$no_create" != yes; then
39729 ac_cs_success=:
39730 ac_config_status_args=
39731 test "$silent" = yes &&
39732 ac_config_status_args="$ac_config_status_args --quiet"
39733 exec 5>/dev/null
39734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39735 exec 5>>config.log
39736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39737 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039738 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039739fi
39740if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039742$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39743fi
39744
39745
39746rm -f magick-version
39747
cristy430a7312010-01-21 20:44:04 +000039748result_dejavu_font_dir='none'
39749if test "${dejavu_font_dir}x" != 'x'; then
39750 result_dejavu_font_dir=$dejavu_font_dir
39751fi
39752
cristy3ed852e2009-09-05 21:47:34 +000039753result_ghostscript_font_dir='none'
39754if test "${ghostscript_font_dir}x" != 'x'; then
39755 result_ghostscript_font_dir=$ghostscript_font_dir
39756fi
39757
39758result_windows_font_dir='none'
39759if test "${windows_font_dir}x" != 'x'; then
39760 result_windows_font_dir=${windows_font_dir}
39761fi
39762
cristyad38abe2012-12-23 23:03:21 +000039763{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039764ImageMagick is configured as follows. Please verify that this configuration
39765matches your expectations.
39766
39767Host system type: $host
39768Build system type: $build
39769
39770 Option Value
39771-------------------------------------------------------------------------------
39772Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39773Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039774Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039775GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39776Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39777High Dynamic Range Imagery
39778 --enable-hdri=$enable_hdri $enable_hdri
39779
39780Delegate Configuration:
39781BZLIB --with-bzlib=$with_bzlib $have_bzlib
39782Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039783Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039784DJVU --with-djvu=$with_djvu $have_djvu
39785DPS --with-dps=$with_dps $have_dps
39786FFTW --with-fftw=$with_fftw $have_fftw
39787FlashPIX --with-fpx=$with_fpx $have_fpx
39788FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39789FreeType --with-freetype=$with_freetype $have_freetype
39790GhostPCL None $PCLDelegate ($PCLVersion)
39791GhostXPS None $XPSDelegate ($XPSVersion)
39792Ghostscript None $PSDelegate ($GSVersion)
39793Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39794Ghostscript lib --with-gslib=$with_gslib $have_gslib
39795Graphviz --with-gvc=$with_gvc $have_gvc
39796JBIG --with-jbig=$with_jbig $have_jbig
39797JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39798JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039799LCMS v1 --with-lcms=$with_lcms $have_lcms
39800LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039801LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039802LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039803LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039804Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039805MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039806OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039807PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039808PERL --with-perl=$with_perl $have_perl
39809PNG --with-png=$with_png $have_png
39810RSVG --with-rsvg=$with_rsvg $have_rsvg
39811TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039812WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039813Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039814WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039815X11 --with-x=$with_x $have_x
39816XML --with-xml=$with_xml $have_xml
39817ZLIB --with-zlib=$with_zlib $have_zlib
39818
39819X11 Configuration:
39820 X_CFLAGS = $X_CFLAGS
39821 X_PRE_LIBS = $X_PRE_LIBS
39822 X_LIBS = $X_LIBS
39823 X_EXTRA_LIBS = $X_EXTRA_LIBS
39824
39825Options used to compile and link:
39826 PREFIX = $PREFIX_DIR
39827 EXEC-PREFIX = $EXEC_PREFIX_DIR
39828 VERSION = $PACKAGE_VERSION
39829 CC = $CC
39830 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039831 CPPFLAGS = $MAGICK_CPPFLAGS
39832 PCFLAGS = $MAGICK_PCFLAGS
39833 DEFS = $DEFS
39834 LDFLAGS = $LDFLAGS
39835 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39836 LIBS = $MAGICK_LIBS
39837 CXX = $CXX
39838 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039839 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039840 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039841" >&5
cristyad38abe2012-12-23 23:03:21 +000039842$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039843ImageMagick is configured as follows. Please verify that this configuration
39844matches your expectations.
39845
39846Host system type: $host
39847Build system type: $build
39848
39849 Option Value
39850-------------------------------------------------------------------------------
39851Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39852Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039853Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039854GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39855Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39856High Dynamic Range Imagery
39857 --enable-hdri=$enable_hdri $enable_hdri
39858
39859Delegate Configuration:
39860BZLIB --with-bzlib=$with_bzlib $have_bzlib
39861Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039862Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039863DJVU --with-djvu=$with_djvu $have_djvu
39864DPS --with-dps=$with_dps $have_dps
39865FFTW --with-fftw=$with_fftw $have_fftw
39866FlashPIX --with-fpx=$with_fpx $have_fpx
39867FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39868FreeType --with-freetype=$with_freetype $have_freetype
39869GhostPCL None $PCLDelegate ($PCLVersion)
39870GhostXPS None $XPSDelegate ($XPSVersion)
39871Ghostscript None $PSDelegate ($GSVersion)
39872Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39873Ghostscript lib --with-gslib=$with_gslib $have_gslib
39874Graphviz --with-gvc=$with_gvc $have_gvc
39875JBIG --with-jbig=$with_jbig $have_jbig
39876JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39877JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039878LCMS v1 --with-lcms=$with_lcms $have_lcms
39879LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039880LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039881LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039882LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039883Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039884MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039885OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039886PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039887PERL --with-perl=$with_perl $have_perl
39888PNG --with-png=$with_png $have_png
39889RSVG --with-rsvg=$with_rsvg $have_rsvg
39890TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039891WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039892Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039893WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039894X11 --with-x=$with_x $have_x
39895XML --with-xml=$with_xml $have_xml
39896ZLIB --with-zlib=$with_zlib $have_zlib
39897
39898X11 Configuration:
39899 X_CFLAGS = $X_CFLAGS
39900 X_PRE_LIBS = $X_PRE_LIBS
39901 X_LIBS = $X_LIBS
39902 X_EXTRA_LIBS = $X_EXTRA_LIBS
39903
39904Options used to compile and link:
39905 PREFIX = $PREFIX_DIR
39906 EXEC-PREFIX = $EXEC_PREFIX_DIR
39907 VERSION = $PACKAGE_VERSION
39908 CC = $CC
39909 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039910 CPPFLAGS = $MAGICK_CPPFLAGS
39911 PCFLAGS = $MAGICK_PCFLAGS
39912 DEFS = $DEFS
39913 LDFLAGS = $LDFLAGS
39914 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39915 LIBS = $MAGICK_LIBS
39916 CXX = $CXX
39917 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039918 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039919 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039920" >&6; }